Skip to content

[lambda calculus] corrections of the mathematics (75 places) - #484

Open
KokunoYumeto wants to merge 4 commits into
OpenLogicProject:masterfrom
KokunoYumeto:corrections/lambda-calculus
Open

KokunoYumeto wants to merge 4 commits into
OpenLogicProject:masterfrom
KokunoYumeto:corrections/lambda-calculus

Conversation

@KokunoYumeto

Copy link
Copy Markdown
Contributor

This is Claude (Claude Opus 5.5 at effort max), an AI model made by Anthropic, writing on behalf of KokunoYumeto.

This is part of the regrouping of #451 to #460 that you asked for: corrections of the mathematics; 75 places in 28 files, one commit per chapter. Spelling, grammar, markup and references are in separate pull requests.

Build: the complete text (open-logic-complete.tex, pdfLaTeX) with this branch alone: 0 errors, 0 undefined references; 382 overfull boxes over 2 pt (385 on master). All 22 branches merge with one another in any order (tried in four), and together give exactly the text of the ten pull requests they replace.

The corrections come from the Open Logic translations, as before: from the review of the French translation (each checked against the English and written up by Claude Opus 5.5, Anthropic, effort max) and from the errata harvest over the other translations (found by the translating models; classified and corrected by GPT-6 Astra, OpenAI, ChatGPT Pro mode; list with sources). Prepared by AI; no human has reviewed them.

What was wrong, by file (line numbers of master; the same list is in the commit messages; every changed place is in it):

  • lambda-calculus/church-rosser/beta-eta-reduction.tex
    • l. 14: The preceding syntax section defined beta-eta closure but not this one-step notation.
    • l. 21: The proof is about beta-eta one-step contraction; a pure beta-contraction symbol is incorrect in the eta case.
  • lambda-calculus/church-rosser/beta-reduction.tex
    • l. 16, 20: One-step beta contraction is compatible and can occur inside an abstraction or application; the proof only treats a root redex.
    • l. 43: English extra verb.
  • lambda-calculus/church-rosser/parallel-beta-eta-reduction.tex
    • l. 22: The premise must use parallel beta-eta reduction. A beta-only relation cannot lift an eta change in the body.
    • l. 50: The two clauses overlap and may give different alpha-classes, so they do not define a function without priority.
    • l. 70: The component list omits the body N used in the source term, side condition and premise; include it alongside the binder and reduced body. This is a local metavariable-list omission, not a failure of the eta rule.
    • l. 83: Eta contraction can turn an abstraction into a non-abstraction, invalidating the beta proof shape assumption. Also the outer eta-redex and a beta contraction in its body require an additional overlap argument. The theorem remains true.
  • lambda-calculus/church-rosser/parallel-beta-reduction.tex
    • l. 20: Uses ordinary beta step instead of parallel reduction. A variable has no ordinary contraction, so literal rule cannot prove lambda abstraction reflexivity.
    • l. 89: The substituted term is R′, as in the claim.
  • lambda-calculus/introduction/basic-pr-lambda.tex
    • l. 17: The zero function is unary (explicitly Zero(x)=0 in OLP 0294). The proposed term is the numeral zero itself; applied to any argument it reduces to lambda y.y, not to numeral zero.
  • lambda-calculus/introduction/composition.tex
    • l. 16, 27: This roadmap leaves unspecified how partiality is preserved; the later literal-composition construction can erase divergence.
  • lambda-calculus/introduction/computable-lambda.tex
    • l. 18: The outline avoids closure of partial functions under ordinary composition, which does not hold literally: by the normal form theorem, total primitive recursive functions and one search suffice.
  • lambda-calculus/introduction/currying.tex
    • l. 44, 54: The shown intermediate lambda y.M captures a free y of M unless the binder is renamed. For M=y and N=z the displayed intermediate reduces to z, whereas capture-avoiding K y z reduces to y.
    • l. 63: The body introduced throughout this derivation is N; P is unintroduced.
  • lambda-calculus/introduction/fixed-point-combinator.tex
    • l. 13: Literal construction requires x not free in g. Otherwise the abstraction captures occurrences belonging to the given term.
  • lambda-calculus/introduction/lambda-definability.tex
    • l. 21: The whole lambda expression also includes the binding occurrence of x; n counts occurrences in the body, not the entire written term.
    • l. 30: The arguments and all subsequent clauses have arity k, not the otherwise unrelated n.
  • lambda-calculus/introduction/minimization.tex
    • l. 20: The total case is proved first; the partial case is proved at the end.
    • l. 33: Only lambda-definability is assumed in the lemma; primitive recursiveness is unsupported.
    • l. 39, 44, 56, 60: The earlier base-functions file defines the successor term as Succ; identify S as that term rather than silently treating a new symbol as defined.
    • l. 41: The fixed-point term used is Turing's.
    • l. 63: A search that finds nothing must have no normal form; this needs leftmost-outermost reduction, and the partial case is completed here.
  • lambda-calculus/introduction/primitive-recursion.tex
    • l. 13: The requested term must be F; the step index is x, not z; the initial parameterized equations need the original representing terms G′/H′, while the later absorbed G/H are different terms; v already represents the previous parameter function and must receive zvec alone.
    • l. 19: The step index is x, not z.
    • l. 21, 24, 40: The representing terms are G′ and H′, and the term sought is F′.
    • l. 27: The claim is proved by induction on n, for total g and h.
    • l. 38: The recursion takes the previous value v(z), since v already stands for the function at u.
    • l. 79: The equations alone do not preserve undefinedness: the construction is for total functions.
    • l. 98: S was not defined as the successor term.
    • l. 129: The induction hypothesis identifies the nth iterate with its pair in the transition to the third displayed line; the second-to-last line instead unfolds T and pairing.
  • lambda-calculus/introduction/syntax.tex
    • l. 64: An occurrence is bound only by a lambda binding that same variable; another variable can occur freely within the scope. The source own following example has y inside lambda z yet free.
  • lambda-calculus/lambda-definability/arithmetical-functions.tex
    • l. 29: The fully curried term contains the redex (num(n) f); its root is an application whose function is itself an application. Reaching f^n x requires contracting both leading abstractions, not one.
    • l. 72, 74, 80: These lines each combine multiple curried beta contractions.
  • lambda-calculus/lambda-definability/fixpoints.tex
    • l. 24: The displayed pure lambda-term abbreviation uses bare 0 instead of the Church-zero term used in the arithmetic construction.
    • l. 55: The preceding argument establishes agreement on Church-numeral inputs, which does not imply beta-equivalence of arbitrary representing terms. The fixed-point construction later supplies a particular representative with the stronger property.
    • l. 89: With Y=UU, Yg=(UU)g has a redex UU as a proper subterm; it is not itself a root redex of the form (lambda x.M)N.
    • l. 96: The displayed expansion is g(Yg), g(g(Yg)), and so on. That is iteration/nesting around the fixed point, not repeated self-application gg. State the actual displayed operation without suggesting the wrong lambda application shape.
    • l. 148: Missing parentheses around the first abstraction change the scope of the intended application.
    • l. 158, 163: The exact displayed lambda term is standardly identified as Curry’s paradoxical combinator. Ker (2009), p. 11 §1.9 and Seldin (n.d.), p. 8 explicitly give the same term; the Church attribution is unsupported.
  • lambda-calculus/lambda-definability/introduction.tex
    • l. 75: The displayed function name loses its subscript. This is an identifier typo, not a refutation of the constant-function construction.
  • lambda-calculus/lambda-definability/lists.tex
    • l. 15: Without binder freshness, an open component containing s or z is captured; alpha-renaming after insertion cannot restore its free variable.
  • lambda-calculus/lambda-definability/minimization.tex
    • l. 37: The subsequent displayed one-directional unfolding preserves Y Search literally at the recursive call and uses the stronger reducing-combinator property.
    • l. 37: The displayed Search functional calls its parameter g; recursive self-reference belongs to its fixed point Y Search.
  • lambda-calculus/lambda-definability/pairs.tex
    • l. 15: Literal insertion can capture a free f in a component; the fresh-binder condition is not explicitly part of the abbreviation.
  • lambda-calculus/lambda-definability/partial-recursive-functions.tex
    • l. 28: The example illustrates argument erasure but does not satisfy the numerical-function representation hypothesis: lambda y.y is not a Church numeral under the chapter beta-normal-form definition.
  • lambda-calculus/lambda-definability/primitive-recursive-functions.tex
    • l. 126, 128: The lambda macro emits no enclosing parentheses; widest scope places those arguments inside the abstraction rather than applying the abstraction.
  • lambda-calculus/syntax/alpha.tex
    • l. 19: The first definition permits a vacuous self-step (lambda x.z renamed x to x), whereas the later supposedly equivalent inductive definition requires different names.
    • l. 78: This paraphrase omits reflexivity, which is included in both formal definitions.
    • l. 161: The cleared variable is x, not the replacement variable y. For N=x the substitution is y, which has y free.
    • l. 233: Outer freshness alone does not ensure the nested body substitution is defined.
    • l. 233: The first displayed substitution already ends with an equals sign and the continuation begins with another equals sign, producing a duplicated relation before the first right-hand term.
    • l. 273: The second pair needs Rdoubleprime alpha R, and definedness must concern its own substitution.
  • lambda-calculus/syntax/conversion.tex
    • l. 18: The English file ends with a promise of a definition and supplies no following content.
  • lambda-calculus/syntax/de-bruijn.tex
    • l. 49: The recursive context may repeat a variable under nested binders; the lookup must choose its first occurrence to express nearest binding.
  • lambda-calculus/syntax/eta.tex
    • l. 15: The macro prints an unparenthesized abstraction: widest scope places N inside the body, contrary to the intended application.
    • l. 42: The full extensionality theorem uses the general capture-safe eta schema. An unrestricted schema when x is free in M is invalid.
  • lambda-calculus/syntax/free-variables.tex
    • l. 24: The scope is the occurrence of the body M, not the containing whole term N.
  • lambda-calculus/syntax/substitution.tex
    • l. 76: The abstraction case uses the body P, not an unrelated Q.
    • l. 105: The substituted variable changes from y to x between premise and expansion.
    • l. 105: The quantifier both applies to the two substitution operations and requires the plural noun. This is independent of the earlier drop/drops agreement typo, now retained alone in CHK 0262.
    • l. 112: The theorem hypothesis in this case is x in FV(lambda y.P).
    • l. 119, 122: The induction-hypothesis expression removes the wrong variables, loses the outer removal of y, and has unbalanced parentheses; the next annotation claims x notin FV(N), which is not assumed.
  • lambda-calculus/syntax/term-revisited.tex
    • l. 24: The ordinary prose abbreviation etc. is typeset as mathematical letters instead of text.
    • l. 51: The displayed right side is a representative term, whereas the operation on classes must return its alpha-equivalence class.

🤖 Generated with Claude Code

KokunoYumeto and others added 4 commits November 30, 2026 22:30
beta-eta-reduction.tex:
- l. 14: The preceding syntax section defined beta-eta closure but not this
  one-step notation.
- l. 21: The proof is about beta-eta one-step contraction; a pure
  beta-contraction symbol is incorrect in the eta case.

beta-reduction.tex:
- l. 16, 20: One-step beta contraction is compatible and can occur inside an
  abstraction or application; the proof only treats a root redex.
- l. 43: English extra verb.

parallel-beta-eta-reduction.tex:
- l. 22: The premise must use parallel beta-eta reduction. A beta-only
  relation cannot lift an eta change in the body.
- l. 50: The two clauses overlap and may give different alpha-classes, so
  they do not define a function without priority.
- l. 70: The component list omits the body N used in the source term, side
  condition and premise; include it alongside the binder and reduced body.
  This is a local metavariable-list omission, not a failure of the eta rule.
- l. 83: Eta contraction can turn an abstraction into a non-abstraction,
  invalidating the beta proof shape assumption. Also the outer eta-redex and
  a beta contraction in its body require an additional overlap argument. The
  theorem remains true.

parallel-beta-reduction.tex:
- l. 20: Uses ordinary beta step instead of parallel reduction. A variable
  has no ordinary contraction, so literal rule cannot prove lambda
  abstraction reflexivity.
- l. 89: The substituted term is R′, as in the claim.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
basic-pr-lambda.tex:
- l. 17: The zero function is unary (explicitly Zero(x)=0 in OLP 0294). The
  proposed term is the numeral zero itself; applied to any argument it
  reduces to lambda y.y, not to numeral zero.

composition.tex:
- l. 16, 27: This roadmap leaves unspecified how partiality is preserved;
  the later literal-composition construction can erase divergence.

computable-lambda.tex:
- l. 18: The outline avoids closure of partial functions under ordinary
  composition, which does not hold literally: by the normal form theorem,
  total primitive recursive functions and one search suffice.

currying.tex:
- l. 44, 54: The shown intermediate lambda y.M captures a free y of M unless
  the binder is renamed. For M=y and N=z the displayed intermediate reduces
  to z, whereas capture-avoiding K y z reduces to y.
- l. 63: The body introduced throughout this derivation is N; P is
  unintroduced.

fixed-point-combinator.tex:
- l. 13: Literal construction requires x not free in g. Otherwise the
  abstraction captures occurrences belonging to the given term.

lambda-definability.tex:
- l. 21: The whole lambda expression also includes the binding occurrence of
  x; n counts occurrences in the body, not the entire written term.
- l. 30: The arguments and all subsequent clauses have arity k, not the
  otherwise unrelated n.

minimization.tex:
- l. 20: The total case is proved first; the partial case is proved at the
  end.
- l. 33: Only lambda-definability is assumed in the lemma; primitive
  recursiveness is unsupported.
- l. 39, 44, 56, 60: The earlier base-functions file defines the successor
  term as Succ; identify S as that term rather than silently treating a new
  symbol as defined.
- l. 41: The fixed-point term used is Turing's.
- l. 63: A search that finds nothing must have no normal form; this needs
  leftmost-outermost reduction, and the partial case is completed here.

primitive-recursion.tex:
- l. 13: The requested term must be F; the step index is x, not z; the
  initial parameterized equations need the original representing terms
  G′/H′, while the later absorbed G/H are different terms; v already
  represents the previous parameter function and must receive zvec alone.
- l. 19: The step index is x, not z.
- l. 21, 24, 40: The representing terms are G′ and H′, and the term sought
  is F′.
- l. 27: The claim is proved by induction on n, for total g and h.
- l. 38: The recursion takes the previous value v(z), since v already stands
  for the function at u.
- l. 79: The equations alone do not preserve undefinedness: the construction
  is for total functions.
- l. 98: S was not defined as the successor term.
- l. 129: The induction hypothesis identifies the nth iterate with its pair
  in the transition to the third displayed line; the second-to-last line
  instead unfolds T and pairing.

syntax.tex:
- l. 64: An occurrence is bound only by a lambda binding that same variable;
  another variable can occur freely within the scope. The source own
  following example has y inside lambda z yet free.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
arithmetical-functions.tex:
- l. 29: The fully curried term contains the redex (num(n) f); its root is
  an application whose function is itself an application. Reaching f^n x
  requires contracting both leading abstractions, not one.
- l. 72, 74, 80: These lines each combine multiple curried beta
  contractions.

fixpoints.tex:
- l. 24: The displayed pure lambda-term abbreviation uses bare 0 instead of
  the Church-zero term used in the arithmetic construction.
- l. 55: The preceding argument establishes agreement on Church-numeral
  inputs, which does not imply beta-equivalence of arbitrary representing
  terms. The fixed-point construction later supplies a particular
  representative with the stronger property.
- l. 89: With Y=UU, Yg=(UU)g has a redex UU as a proper subterm; it is not
  itself a root redex of the form (lambda x.M)N.
- l. 96: The displayed expansion is g(Yg), g(g(Yg)), and so on. That is
  iteration/nesting around the fixed point, not repeated self-application
  gg. State the actual displayed operation without suggesting the wrong
  lambda application shape.
- l. 148: Missing parentheses around the first abstraction change the scope
  of the intended application.
- l. 158, 163: The exact displayed lambda term is standardly identified as
  Curry’s paradoxical combinator. Ker (2009), p. 11 §1.9 and Seldin (n.d.),
  p. 8 explicitly give the same term; the Church attribution is unsupported.

introduction.tex:
- l. 75: The displayed function name loses its subscript. This is an
  identifier typo, not a refutation of the constant-function construction.

lists.tex:
- l. 15: Without binder freshness, an open component containing s or z is
  captured; alpha-renaming after insertion cannot restore its free variable.

minimization.tex:
- l. 37: The subsequent displayed one-directional unfolding preserves Y
  Search literally at the recursive call and uses the stronger
  reducing-combinator property.
- l. 37: The displayed Search functional calls its parameter g; recursive
  self-reference belongs to its fixed point Y Search.

pairs.tex:
- l. 15: Literal insertion can capture a free f in a component; the
  fresh-binder condition is not explicitly part of the abbreviation.

partial-recursive-functions.tex:
- l. 28: The example illustrates argument erasure but does not satisfy the
  numerical-function representation hypothesis: lambda y.y is not a Church
  numeral under the chapter beta-normal-form definition.

primitive-recursive-functions.tex:
- l. 126, 128: The lambda macro emits no enclosing parentheses; widest scope
  places those arguments inside the abstraction rather than applying the
  abstraction.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
alpha.tex:
- l. 19: The first definition permits a vacuous self-step (lambda x.z
  renamed x to x), whereas the later supposedly equivalent inductive
  definition requires different names.
- l. 78: This paraphrase omits reflexivity, which is included in both formal
  definitions.
- l. 161: The cleared variable is x, not the replacement variable y. For N=x
  the substitution is y, which has y free.
- l. 233: Outer freshness alone does not ensure the nested body substitution
  is defined.
- l. 233: The first displayed substitution already ends with an equals sign
  and the continuation begins with another equals sign, producing a
  duplicated relation before the first right-hand term.
- l. 273: The second pair needs Rdoubleprime alpha R, and definedness must
  concern its own substitution.

conversion.tex:
- l. 18: The English file ends with a promise of a definition and supplies
  no following content.

de-bruijn.tex:
- l. 49: The recursive context may repeat a variable under nested binders;
  the lookup must choose its first occurrence to express nearest binding.

eta.tex:
- l. 15: The macro prints an unparenthesized abstraction: widest scope
  places N inside the body, contrary to the intended application.
- l. 42: The full extensionality theorem uses the general capture-safe eta
  schema. An unrestricted schema when x is free in M is invalid.

free-variables.tex:
- l. 24: The scope is the occurrence of the body M, not the containing whole
  term N.

substitution.tex:
- l. 76: The abstraction case uses the body P, not an unrelated Q.
- l. 105: The substituted variable changes from y to x between premise and
  expansion.
- l. 105: The quantifier both applies to the two substitution operations and
  requires the plural noun. This is independent of the earlier drop/drops
  agreement typo, now retained alone in CHK 0262.
- l. 112: The theorem hypothesis in this case is x in FV(lambda y.P).
- l. 119, 122: The induction-hypothesis expression removes the wrong
  variables, loses the outer removal of y, and has unbalanced parentheses;
  the next annotation claims x notin FV(N), which is not assumed.

term-revisited.tex:
- l. 24: The ordinary prose abbreviation etc. is typeset as mathematical
  letters instead of text.
- l. 51: The displayed right side is a representative term, whereas the
  operation on classes must return its alpha-equivalence class.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant