Repository navigation
[proof theory: natural deduction, normalization, propositions as types] corrections of the mathematics (157 places) - #483
Open
KokunoYumeto wants to merge 3 commits into
Conversation
grafting.tex: - l. 25: The upper subproof concludes A under B, and the following implication elimination concludes A. The introduced implication must therefore be B -> A, as the preceding prose already states. - l. 51: Formula compatibility alone does not prevent discharge capture. If a substituted open C^y is inserted above an existing y-discharge, that discharge closes it even though the grafting operation intends to retain it. - l. 54: Grafting removes the selected open B^x leaves from delta 1. This follows directly by inspecting the replacement tree. - l. 66: This definition substitutes proofs with labelled sequent contexts into an N2 proof. The inserted proof is also N2; N1 proofs have formula nodes. - l. 68: Merely adjoining Gamma 2 retains the removed x:B dependency, whereas N2 contexts record exactly the remaining open assumptions. - l. 76: Labels must be compatible, and no open label of Γ_2 may be discharged in δ_1. - l. 81: Only delta 1 and delta 2 are quantified. The recursion traverses delta 1, whose selected leaves are replaced by fixed delta 2. The added explanation verifies preservation of inference contexts and both freshness conditions, rather than citing an undefined delta. quantifiers.tex: - l. 32: This lemma introduces a new replacement term and literally replaces constants throughout formulas, unlike a shorthand after a fixed term declaration. - l. 113: The last inference under discussion is binary existential elimination, but the output tree repeats universal introduction with an undefined delta-prime. - l. 119: The tree repeated ∀ introduction; the case is ∃ elimination. - l. 125: The conclusion is the substituted one, and the condition concerns the assumptions that remain open. - l. 133: The chapter requires global label compatibility: any two assumptions with the same label must have the same formula, even if discharged in separate branches. - l. 136: Discharge labels must not be reused, or local substitutions give one label to two formulas. - l. 140: Existential elimination has two immediate subproofs. Its eigenconstant is confined to the minor-premise proof; allowing it in the major-premise proof would not imply the preceding definition of regularity. - l. 145: Renaming an already clean highest inference need not reduce the induction parameter. - l. 158, 182: The selected inference is a highest dirty one: the ones above it are clean. rules-proofs.tex: - l. 68: The first introduction discharges no B assumption. An unused x label is logically permitted, but contradicts the next sentence saying the example omitted that label. - l. 131: Sequent nodes and identity axioms belong to N2 in the next section. Correct the proof-object description to match the explicit definition. - l. 178: The ternary constructor explicitly pairs delta 1,delta 2,delta 3 with premises A1,A2,A3. Its third branch mistakenly repeats the second premise. - l. 191: The general preceding discharge clause and the N1c rule table already entail discharge for classical reductio. The explicit rule-by-rule list is nevertheless incomplete: FalseCl is a unary rule that discharges its indicated negated assumption. - l. 202: These are formula-tree rules N1c/N1i, whereas N2 is introduced in the next section. - l. 221: This height definition is for the N1 formula proofs just defined, whose end object is a formula. Sequents are not their tree nodes. - l. 247: Delta 1 is the single assumption and the text correctly assigns it height zero earlier. Delta 2 and delta 3 each append one conjunction-elimination inference, so both have height one. sequents.tex: - l. 13: This paragraph describes formula conclusions and open assumptions before constructing the N2 sequent notation. Those are the N1 systems from the preceding section; G1 has sequent nodes already. - l. 45: N1 permits vacuous discharge, including classical reductio, so the claimed exact correspondence requires the N2 classical rule to allow absence of its indicated negated assumption too. - l. 137, 139: Induction supplies an N1 proof of the premise C, while delta-prime names the completed implication proof after the B assumptions are discharged. Introduce delta 1-prime and use it consistently in the two output trees. - l. 144, 152: The proof of the premise C has its own name. translation-G2i.tex: - l. 12: A full-source search finds the G2c table but no definition of G2i before its use. - l. 25: In the singleton-succedent case the proposition must identify C with that sole formula; A has not been bound elsewhere in this statement. - l. 31: No G2ci calculus is defined. The proposition and its explicit cut-induction case concern G2i with Cut. - l. 42: Classical N2c subproofs would not establish that result. - l. 67: The displayed inference adds A to the antecedent; its rule name and surrounding case heading must both be left weakening. - l. 86, 89: The G2i source proof pi 1 has unlabelled multiset contexts. The induction-result N2i proof is the object with labelled y:A and x:A, and the proof in which no x-labelled formula is discharged after the initial alpha-renaming convention. - l. 105: Induction first supplies delta 1 of the premise; appending implication introduction produces the desired delta. The original reverses that construction. - l. 123: Both cases direct assumption/discharge label renaming in an unlabelled source G2i proof pi_i. Those labels belong to the inductively obtained N2i proof delta_i. - l. 135: The inserted implication elimination uses delta 1 with open context Gamma 1-prime, so its conclusion and every affected descendant context must retain those assumptions. - l. 138, 154: The context of δ_1 is added to every context affected, and eigenvariables and labels are freshened first. - l. 203: The remaining rules were not treated. translation-N2i.tex: - l. 14: The target calculus for intuitionistic logic is G2i. - l. 55: The induction statement maps a bottom conclusion to empty succedent in every case, including vacuous implication introduction. - l. 71: When B is ⊥ the induction gives an empty succedent, which is first weakened. - l. 92: Delta 2 concludes B, so its induction result is empty exactly when B is bottom, independently of A. Restore B by right weakening when necessary. - l. 92: The induction announces cases without limiting them to examples but omits conjunction, disjunction, negation, quantifiers and intuitionistic falsity. - l. 113: The induction-result premise is not an N2 labelled context, so its extraneous x: must be removed. - l. 117: The cases A = ⊥ and vacuous discharge were not treated. - l. 119: The construction explicitly uses Cut, and single-succedent shape alone does not eliminate it. State the extended calculus as in the proposition. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
introduction.tex: - l. 16, 27: Delta 1 is introduced as the proof of A; delta 2 proves B from A. Remove the conflicting name on the implication proof and label the displayed right proof of A as delta 1. - l. 54: The literal bound excludes open assumptions, quantified instances, and primitive falsity. A proof from bottom to atomic P already contains an assumption not among the conclusion's subformulas; a proof of P -> not-not-P uses bottom even with no open assumptions. normalization-thm.tex: - l. 32, 40: The repaired permutation and reduction arguments use one explicit order of segment starts, which excludes maximal starts from all copied side/premise subproofs and controls boundary cuts. The theorem must invoke that same selection criterion. permutations.tex: - l. 22: Every displayed repeated major formula is B conjunction C, and the final inference is conjunction elimination. The introductory cut-formula identification has the wrong connective. - l. 68: A length-two segment starting at an assumption can become a singleton assumption directly used by elimination. Such a singleton is excluded by the cut definition, so the cut may disappear rather than survive with a shorter length. - l. 75: Cut length sums only cuts of the current maximum rank. Converting a lower-rank cut need not change it; when rank drops, many previously lower-rank cuts can become maximal and their total length can be larger. - l. 80: There are at least two paths through the two minor branches, but only maximal-rank paths contribute to cut length. With the converted formula maximal and rank unchanged, each path loses a node or disappears, giving the claimed lower bound. - l. 320: The exercise asks only one pair, existential elimination followed by existential elimination. There is no second (latter) case to identify. - l. 345: The original converted display reuses eigenconstant c for two existential eliminations, violating the declared unique-eigenvariable regularity. - l. 353, 356, 361, 364, 369: The two copies of δ_5 need different eigenconstants and labels. - l. 383: Verified an explicit valid propositional counterexample: A=P or Q, C=R and S. A case inference on D or E has two A-assumption minor premises; its A conclusion is eliminated with two C-introduction branches, and C is then projected. reductions.tex: - l. 15: The definition of singleton cuts explicitly includes FalseInt, and this section eventually treats that alternative. The opening must either include it or delimit the introduction case; the correction does both. - l. 53: Vacuous implication introduction leaves no B^x site, so reduction discards the entire argument proof and may lose its open assumptions. - l. 65: There is no delta 4 in the implication example. More substantially, the following paragraphs themselves explain that cuts in delta 3 may be duplicated and boundary segments can change, contradicting an unconditional unchanged-cut and decrease assertion. - l. 80: Diagram-specific rightmost selection does not uniformly exclude copied maximal cuts in introduction premises or crossing segments whose endpoint is below the copied subtree. The independently checked permutation counterexample demonstrates why starts matter. - l. 90: A proof ending in FalseInt grafted into a major-premise assumption creates a singleton cut by the explicit definition, just as an introduction-ending proof does. Its formula is still B, so the existing strictly smaller-depth argument applies. - l. 93: A proof that ends in the rule for ⊥ also produces a cut of length 1. - l. 113: The substitution lemma requires that t contain no eigenconstant of the proof being substituted into. Regularity alone does not enforce this for a vacuous quantified matrix, whose displayed instance may hide all constants of t. - l. 304, 307: Giving arbitrary different C the same label violates the explicit compatibility requirement. Use y for C and label the disjunction elimination with both discharged labels, matching all other case-analysis trees. segments.tex: - l. 66: Clause 3 of the immediately following definition orders a segment from a minor-premise occurrence to that inference's conclusion. The explanatory sentence reverses the order. - l. 96: The formal definition just above explicitly includes singleton segments introduced by FalseInt. The prose summary must retain that alternative. - l. 104: The maximum defining cut rank is undefined on an empty set without a convention. The following induction applies the measures to all proofs, including normal ones. Set rank and the already naturally empty sum to zero explicitly. translations.tex: - l. 15: The source calculus is G2i. - l. 28: The corollary leaves its conclusion formula C unrelated to the source succedent. Under a universal reading this would assert a proof of arbitrary Q from a context corresponding to P when the source is P=>P. - l. 37: An introduction can occur above an elimination in a minor-premise subtree without a cut. Normality concerns introduction/FalseInt conclusions on the major-premise chain, including intervening case-elimination segments. - l. 44: G2i is the cut-free rule system; the intermediate source proof explicitly ending in Cut belongs to G2i+Cut. Name the extended calculus in both descriptions while retaining the final cut-free result. - l. 58: The conditional lacks its predicate. - l. 61: The formal list condition does not prevent early stopping or arbitrary continuation after a minor premise, while the explanatory prose and main-branch proof require maximal contiguous paths. Make adjacency and the allowed terminal positions explicit. - l. 71, 73: The main-branch induction uses the fact that only disjunction/existential elimination can discharge along relevant branches; FalseCl invalidates this for N2c and has no case in the proof. - l. 83: A globally open label can occur in the chosen main branch and another minor branch. Replacing only its main-branch formula then makes one label denote two formulas; deleting the implication-prefix context can likewise erase assumptions still used elsewhere. - l. 111: Implication and negation elimination form the union of major- and minor-premise contexts. They can add formulas without discharging any. The intended and subsequently used property is that the major context is not reduced, not that it is unchanged. - l. 121: Distinguish is misspelled in this transition to constructor cases. - l. 133, 135: The reason why the context stays unchanged along the main branch is stated. - l. 158: The constructed smaller proof is named delta 1 immediately above. Delta-prime is not defined in this argument. - l. 161: Its succedent is Delta, empty when A is bottom. - l. 161, 166: The proposition maps final bottom to empty succedent, but all three displayed special cases weaken it back to bottom. Use Delta uniformly in G2 conclusions and preserve emptiness. - l. 178, 182, 220, 225, 229, 287, 306: When A = ⊥ the proposition gives an empty succedent, so Δ is written for it. - l. 199: An assumption that is discharged vacuously must first be added by weakening. - l. 234, 308: The case of an empty succedent, and the contraction of extra copies. - l. 275: Delta 1 is the independent proof of the implication antecedent and may have arbitrary length. Delta 2 is the continuation below the first implication elimination; that fragment is empty exactly when the elimination is also the final inference. - l. 279: The two induction inputs are delta 1 from Gamma 1 and delta 2-prime from E,Gamma 2. Their unlabelled contexts therefore have distinct primes and indices. - l. 315: A normal proof of P from open P conjunction Q contains that compound assumption; normal forall-elimination contains P(c), a matrix instance rather than a literal subformula; and a normal proof of P -> not-not-P uses primitive bottom. - l. 323: Every non-bottom formula is preserved by the displayed rule-by-rule construction; exclude bottom from the occurrence claim and invoke the qualified first-order subformula property. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
introduction.tex: - l. 16: An occurrence already bound by an inner lambda-x keeps its nearer binder. Only occurrences free in the body N become bound by the newly added outer abstraction. - l. 20: For (lambda x.lambda y.x)y, naive replacement produces lambda y.y and captures the argument's free y. The correct beta contractum is lambda z.y for fresh z. Explicit capture avoidance is necessary for the stated lambda calculus. - l. 39: A type A->B specifies B as codomain, not necessarily the image. A constant function into a two-element B is not onto B but has that function type. Correct both uses of range in this explanation. - l. 57: An arbitrary proof of an implication may be the single assumption f:A->B, whose term is f rather than an abstraction. The displayed empty-conclusion-context rule specifically describes implication introduction with no other open hypotheses. - l. 75: The constructor M1 M2 applies a term of type A->B to one of type A. It is not composition of two functions, which requires an additional function type and yields a function. normalization.tex: - l. 13: The grammar deliberately permits raw terms, and the annotated raw term (lambda x:A.xx)(lambda x:A.xx) has a beta self-loop. The normalization claims require well-typed terms. The chapter concerns the propositional fragment. - l. 23: The grammar includes primitive bottom as well as propositional variables. Its structural length needs the base case len(bottom)=0; otherwise formulas containing bottom have undefined rank. - l. 35, 38: The payload has type A_i and the injection annotation supplies the other summand, A_(3-i). The eliminated sum is A_1 or A_2, so its length is len(A_1)+len(A_2)+1. The source A,B are not bound by this display. - l. 41, 44: Only the three principal beta contractions have been given a rank. A projection of a neutral case term with pair-valued branches has no principal beta redex but can still be permuted: the measure and its zero case concern beta redexes. - l. 54, 57: Substitution creates a case redex only when the variable being replaced is its scrutinee, so the source index i must be x. The inserted abstraction need not bind x; use an arbitrary fresh binder y. Remove the unmatched closing parenthesis in the rank equation. - l. 85: A variable is not a redex, and the source only defines cutrank on redexes. The newly exposed projection of a pair has the rank of its product type, namely len(A), with no intermediate cutrank(x). - l. 107: A substitution contractum contains redexes inherited from the receiving body, copied wholly from the inserted argument or payload, and newly created at a substitution boundary. - l. 118: Redexes copied from N are a case of their own. - l. 127: The induction on the rank does not go through: contracting a case expression can expose an application of higher rank (there is a typed example with maximal rank 1 that exposes one of rank 3). The existence of normal forms is taken from the normalization theorem for natural deduction instead. - l. 133: The rank argument does not work (the local lemma does not bound the rank in a context); the result is taken from the normalization theorem for natural deduction. - l. 160: The original this means inference moves from existence of a normal form to termination of every strategy. State the existential execution consequence of weak beta normalization and preserve the following separate true assertion of strong beta normalization. - l. 160: The coordinated predicates halts and produces require the conjunction and; an is an accidental truncation. - l. 181: The multistep relation includes identity and therefore is not terminating as a binary step relation; SN must refer to one-step beta reduction. - l. 201: The property is proved for beta reduction. - l. 222: The first projection of pair(O1-prime,O2) selects O1-prime, so the printed endpoint O2 is wrong. Keep the original deliberately illustrative proof (it explicitly says E.g.) and correct this endpoint. - l. 226: Newman requires termination of the generating one-step relation. The source red is explicitly reflexive, so it permits constant infinite chains. State the correct hypothesis for redone_beta and confluence of its reflexive transitive closure. - l. 231: The source equates both alleged first successors with N, so its descent argument does not descend. Its common descendant also need not be normal, so comparing it directly with normal endpoints cannot establish distinct normal forms. proof-terms.tex: - l. 12: There are no quantified or primitive-negation term constructors, so a correspondence theorem over all first-order N2i proofs is unsupported. - l. 15: N2i contexts are sets of labelled formulas, and the same section explicitly says so a few lines later. The product example shares x across two premises and takes set union, rather than retaining ordered duplicate entries. - l. 41: The second premise has proof term capital M. The constructor must retain that argument, not an unrelated lowercase m. - l. 78: The injection constructor is unary and must encode the premise proof N. Omitting its argument loses that proof and contradicts the declared constructor arity. - l. 113: This grammar clause assumes proof term N but uses an undeclared M with a formula marker. Its injection payload must be that declared N. proofs-to-terms.tex: - l. 23: The correspondence is for the propositional fragment. - l. 25: A vacuous implication introduction has no discharged occurrence determining its binder name, so lambda x:A.y and lambda z:A.y encode the same sequent derivation. propositions-as-types.tex: - l. 14: The imported proofs-to-terms section explicitly gives the conjunction/product swap proof and its pair of projections; terms-to-proofs also reconstructs that example. The editorial note that no product examples exist is stale. - l. 14: The imported reduction.tex expressly introduces permutation conversions and displays a projection/case commuting conversion as both proof trees and a term equation. Thus an absolute claim that permutations are not covered is false. reduction.tex: - l. 13: An introduced formula used only as a minor premise of an unrelated elimination is not an introduction/elimination redex. The cancellation argument requires it to be the major premise of the elimination for its introduced connective. - l. 62: The inj macro has one optional type annotation and then two mandatory arguments, index and payload (open-logic-config.sty:756). The source supplies three mandatory groups and consequently misassigns the arguments. - l. 62: The three displayed principal beta rules do not include root abort contraction or case permutations. A projection of a neutral case with pair branches can be beta-normal while still admitting the displayed permutation. - l. 94: The payload M has type A_i, while the injection annotation records the other summand. To obtain A1 or A2, that annotation must be A_(3-i), as the preceding typing rules specify. - l. 129: The relation meant is one-step beta reduction. - l. 175: In the displayed permutation delta alone proves A_i, before the injection. Assign M to that entire disjunction-introduction proof, leaving the displayed proof trees and valid term permutation unchanged. - l. 185: The closure under replacement of subterms is part of the definition of each relation. - l. 189: The schematic third term repeats M2, inadvertently inserting an identity step into the one-step chain. It should be the next indexed term M3. - l. 192: Beta-normal and fully normal terms differ when there are permutations or falsity conversions. sequent-natural-deduction.tex: - l. 20, 22: The following purported restatement and both projection trees concern arbitrary A conjunction B. The opening accidentally specializes both occurrences to A conjunction A; restoring B makes the explanation describe its actual rule schema. - l. 115, 117: With D=A or (A->bottom) and B=D->bottom, assume B and A, introduce D, use B to obtain bottom, discharge A, introduce D again, use B again and discharge B. Remove the stray implication and four unmatched parentheses. type-preservation.tex: - l. 17: The relation that mirrors the proof conversions is that of all term conversions, of which beta reduction is a part. - l. 90: Carefuly is a misspelling of carefully in the expressly assigned induction verification. - l. 90: An occurrence of x may be below additional binders, so its axiom context Gamma-prime can strictly contain Gamma,x:B1. Literal replacement by the bare Gamma proof leaves the tN3 shared-context rules unmatched. - l. 106, 109: The preceding reduction section includes a projection/case permutation. A projection over a neutral case term with pair-valued branches is beta-normal but still has that permutation step, so failure of full normality does not imply a principal beta step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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; 157 places in 20 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; 390 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):
proof-theory/natural-deduction/grafting.texproof-theory/natural-deduction/quantifiers.texproof-theory/natural-deduction/rules-proofs.texproof-theory/natural-deduction/sequents.texproof-theory/natural-deduction/translation-G2i.texproof-theory/natural-deduction/translation-N2i.texproof-theory/normalization/introduction.texproof-theory/normalization/normalization-thm.texproof-theory/normalization/permutations.texproof-theory/normalization/reductions.texproof-theory/normalization/segments.texproof-theory/normalization/translations.texproof-theory/propositions-as-types/introduction.texproof-theory/propositions-as-types/normalization.texproof-theory/propositions-as-types/proof-terms.texproof-theory/propositions-as-types/proofs-to-terms.texproof-theory/propositions-as-types/propositions-as-types.texproof-theory/propositions-as-types/reduction.texproof-theory/propositions-as-types/sequent-natural-deduction.texproof-theory/propositions-as-types/type-preservation.tex🤖 Generated with Claude Code