From 6b2eb07183ddcce6643b24e251f2d3eccc0f06b0 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:48 +0100 Subject: [PATCH 1/3] proof-theory/cut-elimination: corrections (53 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ce-largest.tex: - l. 29: Inspecting the cited inversion construction: if the last inference is binary and principal, each inverted proof is one immediate subproof and may discard all cuts in the other branch. Thus the stated inspection does not preserve the exact rank multiset. - l. 43: The proof has fixed R as the rule being inverted and has just disposed of the case in which the last rule is R. In all other cases the final inference is a different rule. - l. 122: If pi_2 is a bottom-left axiom with bottom in Gamma, A may be nonprincipal while Delta is empty. The conclusion is still a bottom-left axiom. Add that alternative without changing the existing principal-bottom repair. - l. 125: Independently checked the atomic-cut base case against the G3c axioms. If the principal cut formula is bottom, the second premise may be a bottom-left axiom with no common atom in the succedent, so the identity-case contraction argument does not apply. - l. 133: The induction is on height(pi_2). A selected premise of its final rule is proved by a strictly shorter immediate subproof, not by pi_2 itself. - l. 221: The displayed replacement uses Subst(pi_1-prime,t,c) even though pi_1-prime may contain cuts. - l. 223: π_1′ may contain cuts: eigenvariables are renamed away from t, and substitution and weakening are noted to preserve these proofs. - l. 242: Correctness after deleting a marked universal does not prove it was never active: an unmarked duplicate occurrence can still supply the same rule instance. - l. 272: At a binary context-sharing inference, adding Gamma/Delta only to one premise and the conclusion leaves the other premise with different contexts. Weakening the companion proof by the same accumulated contexts restores the rule instance. - l. 277: The cited contraction theorem was stated only for cut-free G3c, whereas the current proof retains lower-rank CutCS inferences. - l. 280: Inversion may discard branches and their cuts, as the first lemma construction shows, and substitution copies need not retain every original cut. - l. 280: The maximal-cut lemma covers every formula, but its active proof enumerates only the universal quantifier case and omits existential cuts. Logical depth falls strictly. ce-topmost.tex: - l. 70: Case E (lines 359 onward) treats both-principal last inferences, which can have positive cut height just as the permutation cases C and D do. The source range omits that necessary case. - l. 70: Read both versions of A/B. The first common-atom arguments do not cover a bottom-left axiom (its succedent may even be empty). The alternate cases at lines 97–121 separately cover identity and bottom. - l. 107: In the second alternative-identity case, the right premise pi_2 is the axiom with A already in Delta. The other, left proof pi_1 ends in Gamma=>Delta-prime,A,A and is the proof to which right contraction applies. - l. 167: In the generic right-rule permutation, Pi contains the active antecedent formulas consumed by R. The new conclusion has antecedent Gamma alone; a trailing comma before the sequent sign denotes no further formula and is accidental. - l. 260: The two premises share exists x B(x),Gamma-prime; A alone is cut. Removing the shared existential is not licensed by CutCS. The immediately following permutation and contraction preserve it. - l. 323: Case D defines Delta=Delta-prime,B and C. This left premise is pi_1 weakened by C, so it has exactly one conjunction. Using unprimed Delta adds a second conjunction and breaks the shared context with the right premise. - l. 352: Both premises at lines 347 and 350 share Delta-prime,B and C. Right conjunction adds precisely one further conjunction. The unprimed Delta already contains one, so the printed conclusion would contain three before contraction instead of two. - l. 365: The quantifier reduction cuts B(t), which need not literally occur as a syntactic subformula of forall x B(x). - l. 484: The implication reduction cuts C with shared antecedent B,Gamma, but its right premise has only C,Gamma. - l. 548: If x is not free in B(x), the chosen instantiation term need not occur in B(t), so its absence cannot be inferred from pi_2. A fresh constant gives the same vacuous instance. - l. 577, 607: The exercise uses universal-left, a one-premise rule in the table. Case C handles one-premise permutations; case D is explicitly the two-premise case. - l. 613: In the combined diagram the lower cut has left premise Gamma=>Delta,B and right premise B,Gamma=>Delta. Its cut formula B is removed, leaving Gamma=>Delta. The source incorrectly retains that distinguished B in the conclusion. - l. 618: Cut height was defined only for a proof ending in one cut with cut-free premises. The transformed cut-free subproof itself has no such last-cut height, and its ordinary height need not strictly grow. interpolation.tex: - l. 14: The introductory entailment has no closedness assumption on A and B, and the theorem below correctly promises a formula. For A=B=P(x), no sentence C is equivalent to P(x) under all assignments in a structure where P has both positive and negative instances. - l. 74: G3c also has bottom-left axioms without a repeated atom. - l. 84: The construction needs one valid interpolant, not uniqueness. Bottom conjunction bottom also works in every context and contains no nonlogical vocabulary; context-specific alternatives may work as well. Bottom is the simplest sufficient choice. - l. 91: The partition data do not rule out A itself as an interpolant when other context formulas make the needed sequents derivable. What fails uniformly is the proposed direct use of these two identity axioms. Negating A remains the correct general construction. - l. 137: Repartitioning a premise does not make the conclusion lose all interpolants: the lemma being proved supplies one independently of that auxiliary choice. - l. 354: The new right-universal conclusion has the extra formula C1, so the original eigenvariable condition alone does not suffice. - l. 404: To abstract the constant b, the replacement variable must avoid existing binders and existing free occurrences. For example, replacing b with y in forall y P(b,y) without freshening captures the new occurrence. - l. 518: The ambient language can contain symbols not used by the theory. Renaming R defines the full ambient language L-prime, but the symbols actually occurring in Gamma-prime form only a subset. The subsequent language-intersection argument needs no equality here. - l. 524: Iterated right-universal inversion and final generalization require distinct fresh names for the separate arguments. If two c_i coincide, the displayed instances constrain only a diagonal, and a general relation on arbitrary tuples cannot be recovered. - l. 529: The distinguished constants are replaced simultaneously, after renaming bound variables. - l. 532: Maehara gives vocabulary inclusion, not equality, and the two partition languages include the newly introduced c_i. Their intersection excludes R and R-prime and is contained in (L(Gamma) minus R) union {c_i}; this is the needed property. - l. 538: There are two separate proofs of the two implication directions. Right-implication and right-universal alone cannot introduce their conjunction, which is the defined biconditional (admissible-derivable.tex:109). - l. 548: The proof applies completeness of Gamma to an arbitrary sentence in the full common language, which is not warranted by completeness in a proper sublanguage. - l. 563: The premise set is Γ_2. introduction.tex: - l. 98: The first cut definition concatenates the two independent contexts. This second display instead has the same Gamma and Delta in each premise and retains one copy; the preceding sentence explicitly introduces it as context-sharing CutCS. intuitionistic.tex: - l. 0: Read the whole standalone fragment and both G3c/mG3i tables. Its arbitrary Delta/Lambda contexts are classical, while its implication-left first premise retains the principal formula. - l. 53, 62: Ordinary Cut concatenates the two contexts. The cut on C of B,Gamma=>Delta,C and C,Pi=>Lambda yields B,Gamma,Pi=>Delta,Lambda, with no duplicated Pi/Lambda. - l. 65, 69: The conclusion of the last cut, with the multiplicities that the two premises give. midsequent.tex: - l. 22: Without the matrix restriction every formula is of the displayed form with an empty prefix. The later proof explicitly uses that no quantified subformula occurs under a propositional connective in a prenex end-formula (lines 117–123). - l. 48: The identity axioms of G3c are atomic; compound ones are derived. - l. 50: The hypothesis only says B is quantifier-free, which allows a compound matrix such as P or Q. G3c identity axioms require an atomic repeated formula. - l. 75: The existential is the principal conclusion formula of right-exists; B(t) is its newly decomposed active instance in the premise. The sentence is selecting those right-exists inferences by the formula introduced. - l. 75: The preceding extraction diagram names the upper subproof pi_1. No pi_1 prime has been defined here, and the subsequent deletion step also refers to pi_1. - l. 106: Order zero includes an atomic identity proof and any purely propositional proof, which has no quantifier inference to select. The end-sequent works in that case. - l. 152: The original pi_3 ends in C,Gamma-prime=>Delta-prime,A(c). The permuted binary inference needs the additional universal side formula in that succedent. - l. 161: π_3 needs the additional side formula too. - l. 172, 175: Order counts propositional inferences below a quantifier inference. Deleting an inference can decrease this count; it need not preserve it exactly. Co-Authored-By: Claude Opus 5.5 --- .../cut-elimination/ce-largest.tex | 53 +++++++++++------ .../cut-elimination/ce-topmost.tex | 41 +++++++------ .../cut-elimination/interpolation.tex | 59 +++++++++++-------- .../cut-elimination/introduction.tex | 2 +- .../cut-elimination/intuitionistic.tex | 15 +++-- .../cut-elimination/midsequent.tex | 33 ++++++----- 6 files changed, 124 insertions(+), 79 deletions(-) diff --git a/content/proof-theory/cut-elimination/ce-largest.tex b/content/proof-theory/cut-elimination/ce-largest.tex index 0a31f5d0..55a0846d 100644 --- a/content/proof-theory/cut-elimination/ce-largest.tex +++ b/content/proof-theory/cut-elimination/ce-largest.tex @@ -26,9 +26,8 @@ with !!{proof}~$\pi'$ (or !!{proof}s~$\pi'$, $\pi''$ depending on whether the rule has one or two premises). Moreover, (a)~$\pheight{\pi'}\le\pheight{\pi}$ (and -$\pheight{\pi''}\le\pheight{\pi}$) and (b)~the number of \CutCS{} -inferences as well as their ranks is the same in~$\pi'$ (and $\pi''$) -as in~$\pi$. +$\pheight{\pi''}\le\pheight{\pi}$) and (b)~for each rank, the number of \CutCS{} +inferences in~$\pi'$ (and in~$\pi''$) is no greater than in~$\pi$. \end{lem} \begin{proof} @@ -40,8 +39,8 @@ sub-!!{proof}s are the !!{proof}s~$\pi_i$ we want, and (a) and~(b) are both satisfied. In all other cases, we applied the inductive hypothesis to the immediate sub-!!{proof}s of~$\pi$, i.e., those -leading to the premise(s) of the last inference~$R$, and then applied -that same rule $R$ to the results. The conditions (a) and~(b) hold for +leading to the premise(s) of the last inference~$S$, and then applied +that same rule $S$ to the results. The conditions (a) and~(b) hold for the immediate sub-!!{proof}s of the new proof, and so (a) and~(b) hold for the entire proof. It remains to verify the case where the last inference is~\CutCS. We do this again for one example only: suppose @@ -119,18 +118,23 @@ \CutCS{} inferences in~$\pi_1$ and $\pi_2$ must have rank $< \depth{!A} = 0$, there can be no \CutCS{} inferences in~$\pi_1$ or~$\pi_2$. We show that $\Gamma \Sequent \Delta$ has a cut-free proof -by induction on $\pheight{\pi_2}$. If $\pheight{\pi_2} = 0$, then $!A, -\Gamma \Sequent \Delta$ is an axiom. If $!A$ is not principal, some +by induction on $\pheight{\pi_2}$, uniformly for all such first-premise proofs and contexts. If $\pheight{\pi_2} = 0$, then $!A, +\Gamma \Sequent \Delta$ is an axiom. If $!A$ is not principal, either $\lfalse$ occurs in~$\Gamma$ or some atomic $!C$ is !!a{element} of both~$\Gamma$ and $\Delta$, and $\Gamma -\Sequent \Delta$ itself is an axiom. If $!A$ is principal, then -$\Delta = \Delta, !A$. In this case, $\pi_1$ ends in $\Gamma \Sequent +\Sequent \Delta$ itself is an axiom. If $!A \ident \lfalse$ is principal, the axiom is an +instance of \LeftR{\lfalse}; deleting the occurrences of~$\lfalse$ in +the succedents of~$\pi_1$ from which the end-sequent's $\lfalse$ +descends yields a cut-free proof of $\Gamma \Sequent \Delta$, since +$\lfalse$ is never principal on the right. If $!A$ is principal +otherwise, then +$\Delta = \Delta', !A$. In this case, $\pi_1$ ends in $\Gamma \Sequent \Delta', !A, !A$. We obtain a cut-free proof of $\Gamma \Sequent \Delta', !A$ by applying \olref[seq][inv]{prop:G3c-cont-adm} (admissibility of contraction). If $\pheight{\pi_2} > 0$ it ends in a rule~$R$. Take a premise of that rule: it has the form $!A, \Gamma', \Pi \Sequent \Delta', \Lambda$, where $\Pi$ and $\Lambda$ are the active !!{formula}s of~$R$. \olref[seq][adm]{prop:weak-G3c-adm} -applied to~$\pi_1$ and $\pi_2$ yields !!{proof}s of $\Gamma, \Gamma', +applied to~$\pi_1$ and the immediate sub-!!{proof} of~$\pi_2$ ending in that premise yields !!{proof}s of $\Gamma, \Gamma', \Pi \Sequent \Delta, \Delta', \Lambda, !A$ and $!A, \Gamma, \Gamma', \Pi \Sequent \Delta, \Delta', \Lambda$, to which the induction hypothesis applies. This gives us !!a{proof} of $\Gamma, \Gamma', \Pi @@ -218,9 +222,15 @@ \] \item $!A \ident \lforall[x][!B(x)]$. The !!{proof}s $\pi_1$ and $\pi_2$ end in $\Gamma \Sequent \Delta, \lforall[x][!B(x)]$ and - $\lforall[x][!B(x)], \Gamma \Sequent \Delta$. By + $\lforall[x][!B(x)], \Gamma \Sequent \Delta$. Choose $c$ fresh for both $\pi_1$ and~$\pi_2$. By \olref{lem:inv-G3c-cut}, there is !!a{proof}~$\pi_1'$ of $\Gamma \Sequent \Delta, !B(c)$. + Before using a copy of~$\pi_1'$ with an instance term~$t$, rename its + eigenvariables away from~$t$ and the contexts added by weakening. + The term~$t$ is closed. Uniform substitution and weakening preserve + \CutCS{} inferences and do not increase the depth of their cut + !!{formula}s, so the substitution and weakening arguments also apply + to these proofs with cuts of lower rank. Now consider the !!{proof}~$\pi_2$. It ends in $\lforall[x][!B(x)], \Gamma \Sequent \Delta$. Moving upward from the end-sequent @@ -239,9 +249,7 @@ None of them are active in a rule other than \LeftR{\lforall} (only active !!{formula}s of \LeftR{\lforall} get marked). Delete all marked occurrences of $\lforall[x][!B(x)]$ in $\pi_2$. - If this is a correct !!{proof}, the marked occurrences of - $\lforall[x][!B(x)]$ were never active; they all came directly from - axioms. The !!{proof} ends in~$\Gamma \Sequent \Delta$ and we can + If this is a correct !!{proof}, it ends in~$\Gamma \Sequent \Delta$ and we can replace $\pi$ by it. We have a removed a cut of maximal rank. Otherwise, what we have is not a correct proof because we have @@ -269,16 +277,25 @@ \DisplayProof \] and add $\Gamma$ to the left and $\Delta$ to the right of every - sequent below it. Repeat until all \LeftR{\lforall} ``inferences'' + sequent below it. At each binary rule, also weaken its companion + premise proof by the same contexts, so that the shared contexts + still agree; rename eigenvariables away from added contexts first. + Repeat until all \LeftR{\lforall} ``inferences'' with a marked $!B(t)$ in the premise have been replaced by a \CutCS{} inference on some~$!B(t)$. The end-sequent of the resulting !!{proof} (and it now is a correct !!{proof}) is of the form $\Gamma, \dots, \Gamma \Sequent \Delta, \dots, \Delta$. Apply - admissibility of contraction to turn it into !!a{proof} of~$\Gamma + admissibility of contraction (its proof carries over to !!{proof}s in + $\Log{G3c} + \CutCS$, without introducing cuts of higher rank) to turn it into !!a{proof} of~$\Gamma \Sequent \Delta$ and replace $\pi$ with it. We have replaced one cut on $\lforall[x][!B(x)]$ with (possibly many) cuts on $!B(t)$, but - these are all of lower rank. Any cuts already occurring in $\pi_1$ or - $\pi_2$ remain present, but they are also all of lower rank. + these are all of lower rank. Any surviving copies of cuts already occurring in $\pi_1$ or + $\pi_2$ are also all of lower rank. + \item $!A \ident \lexists[x][!B(x)]$. Dual to the previous case: + apply \olref{lem:inv-G3c-cut} to~$\pi_2$, mark the occurrences + of~$\lexists[x][!B(x)]$ in~$\pi_1$ from which the cut formula + descends, and replace the \RightR{\lexists} inferences with a marked + $!B(t)$ in the premise by cuts on~$!B(t)$, which are of lower rank. \end{enumerate} \end{proof} diff --git a/content/proof-theory/cut-elimination/ce-topmost.tex b/content/proof-theory/cut-elimination/ce-topmost.tex index e6dfbd34..dcd93379 100644 --- a/content/proof-theory/cut-elimination/ce-topmost.tex +++ b/content/proof-theory/cut-elimination/ce-topmost.tex @@ -67,7 +67,10 @@ and a cut !!{height} $< \cheight{\pi}$, or has cut rank~$< \cutrank{\pi}$. The case where $\cheight{\pi} = 0$ (both premises are axioms) are covered by cases~A and~B. The cases where $\cheight{\pi} > -0$ are covered by cases C--D. +0$ are covered by cases C--E. + +The first versions of cases A and B assume that the axioms are atomic +identity axioms; the alternative versions below also cover falsity axioms. \paragraph{Case A:} Some $!B$ occurs in both $\Gamma$ and~$\Delta$. @@ -104,7 +107,7 @@ \Delta$ and $\Delta = \Delta', !A$. In the first case, $\pi_2$ is !!a{proof} of $!A, !A, \Gamma' \Sequent \Delta$ and by admissibility of \LeftR{\Contraction} (\olref[seq][inv]{prop:G3c-cont-adm}) there is -!!a{proof} of $\Gamma \Sequent \Delta$. In the second case, $\pi_2$ is +!!a{proof} of $\Gamma \Sequent \Delta$. In the second case, $\pi_1$ is !!a{proof} of $\Gamma \Sequent \Delta', !A, !A$ and by admissibility of \RightR{\Contraction} we get !!a{proof} of $\Gamma \Sequent \Delta$. @@ -164,7 +167,7 @@ \RightLabel{\CutCS} \BinaryInf$\Gamma, \Pi \fCenter \Delta', !D, \Lambda$ \RightLabel{$R$} -\UnaryInf$\Gamma, \fCenter \Delta', !D, !D$ +\UnaryInf$\Gamma \fCenter \Delta', !D, !D$ \DisplayProof \] We use !!{height}-preserving weakening to obtain $\pi_1'$ and $\pi_3'$ @@ -257,7 +260,7 @@ \UnaryInf$!A, \lexists[x][!B(x)], \Gamma' \fCenter \Delta$ \RightSubproofLabel{$\pi_2$} \RightLabel{\CutCS} -\BinaryInf$\Gamma' \fCenter \Delta$ +\BinaryInf$\lexists[x][!B(x)], \Gamma' \fCenter \Delta$ \DisplayProof \] We again apply the inductive hypothesis to @@ -320,7 +323,7 @@ \[ \AxiomC{} \RightLabel{$\pi_1''$} -\Deduce$\Gamma \fCenter \Delta, !B \land !C, !C, !A$ +\Deduce$\Gamma \fCenter \Delta', !B \land !C, !C, !A$ \AxiomC{} \RightLabel{$\pi_4'$} \Deduce$!A, \Gamma \fCenter \Delta', !B \land !C, !C$ @@ -349,7 +352,7 @@ \RightLabel{$\pi_6$} \Deduce$\Gamma \fCenter \Delta', !B \land !C, !C$ \RightLabel{\RightR{\land}} -\BinaryInf$\Gamma \fCenter \Delta, !B \land !C, !B \land !C$ +\BinaryInf$\Gamma \fCenter \Delta', !B \land !C, !B \land !C$ \DisplayProof \] To get !!a{proof} of $\Gamma \Sequent \Delta$, i.e., $\Gamma \fCenter @@ -362,7 +365,8 @@ one for each possible !!{main operator} of~$!A$. In each case, we turn a \CutCS{} with cut !!{formula}~$!A$ into one or more -cuts on sub-!!{formula}s of~$!A$, namely on the active !!{formula}s of +cuts on proper sub-!!{formula}s of~$!A$ or substitution instances of +its quantified matrix, all of smaller depth, namely on the active !!{formula}s of the inferences of which~$!A$ is the principal !!{formula}. These cases are therefore often referred to as ``reduction'' or ``conversion'' of the cut inference. @@ -481,8 +485,8 @@ \RightLabel{$\pi_1'$} \Deduce$!B, \Gamma \fCenter \Delta, !C$ \AxiomC{} -\RightLabel{$\pi_2''$} -\Deduce$!C, \Gamma \fCenter \Delta$ +\RightLabel{$\pi_2''[!B \Sequent {}]$} +\Deduce$!C, !B, \Gamma \fCenter \Delta$ \RightLabel{\CutCS} \BinaryInf$!B, \Gamma \fCenter \Delta$ \DisplayProof @@ -545,8 +549,10 @@ assume the !!{proof}~$\pi$ is regular, so $c$~is the eigenvariable of only the following~$\RightR{\lforall}$ inference and only occurs above it, i.e., only occurs in~$\pi_1'$ and is not an eigenvariable of an -inference in~$\pi_1'$. Since $c$ does not occur in~$\pi_2$, it cannot -occur in~$t$. By \olref[seq][qua]{lem:subst-regular}, the +inference in~$\pi_1'$. If $x$ is not free in~$!B(x)$, choose $t$ to be a fresh constant; +this does not change~$!B(t)$. Rename any eigenvariables of~$\pi_1'$ +that occur in~$t$ to fresh constants, without changing the end-sequent +or height. By \olref[seq][qua]{lem:subst-regular}, the !!{proof}~$\Subst{\pi_1'}{t}{c}$ is !!a{proof} of $\Gamma \Sequent \Delta, !B(t)$. We now apply the inductive hypothesis to the !!{proof} \[ @@ -574,7 +580,7 @@ \end{prob} \begin{prob} -Verify the sub-case of case~D in the proof of \olref{lem:cut-adm-G3c} +Verify the sub-case of case~C in the proof of \olref{lem:cut-adm-G3c} where $!A$ is not principal in the last inference of~$\pi_1$, which ends in~$\LeftR{\lforall}$. \end{prob} @@ -604,19 +610,20 @@ \RightLabel{$\pi_1'$} \Deduce$!B, \Gamma \fCenter \Delta, !C$ \AxiomC{} -\RightLabel{$\pi_2''$} -\Deduce$!C, \Gamma \fCenter \Delta$ +\RightLabel{$\pi_2''[!B \Sequent {}]$} +\Deduce$!C, !B, \Gamma \fCenter \Delta$ \RightLabel{\CutCS} \BinaryInf$!B, \Gamma \fCenter \Delta$ \RightSubproofLabel{$\pi_1''$} \RightLabel{\CutCS} -\BinaryInf$!B, \Gamma \fCenter \Delta$ +\BinaryInf$\Gamma \fCenter \Delta$ \DisplayProof \] The top \CutCS{} between $\pi_1'$ and $\pi_2''$ has both lower cut rank and lower cut !!{height} than~$\pi$. But the -!!{proof}~$\pi_1''$---the result of applying the inductive -hypothesis---no longer has lower cut !!{height} than~$\pi$. Since the +!!{proof} obtained by eliminating the upper cut may have greater +!!{height}, so the lower cut using it need not have lower cut +!!{height} than~$\pi$. Since the cut !!{formula} of the lower \CutCS{} is $!B$, its cut \emph{rank}, however, is lower than the cut rank of~$\pi$. diff --git a/content/proof-theory/cut-elimination/interpolation.tex b/content/proof-theory/cut-elimination/interpolation.tex index 7d72b7a6..3c25dec2 100644 --- a/content/proof-theory/cut-elimination/interpolation.tex +++ b/content/proof-theory/cut-elimination/interpolation.tex @@ -11,7 +11,7 @@ \olsection{Maehara's Lemma and Craig's Interpolation Theorem} The interpolation theorem, due to William Craig, states that if $!A -\Entails !B$ then there is !!a{sentence}~$!C$ (the \emph{interpolant}) +\Entails !B$ then there is !!a{formula}~$!C$ (the \emph{interpolant}) such that $!A \Entails !C$ and $!C \Entails !B$. Importantly, the interpolant~$!C$ can be chosen so that the !!{constant}s and !!{predicate}s occurring in~$!C$ all occur in both~$!A$ and~$!B$. (We @@ -71,8 +71,8 @@ $n=\pheight{\pi}$. If $n=0$, then $\maeh{\Gamma_1}{\Gamma_2} \Sequent - \maeh{\Delta_1}{\Delta_2}$ is an axiom, and some atomic - !!{formula}~$!A$ occurs in both $\Gamma_1, \Gamma_2$ and $\Delta_1, + \maeh{\Delta_1}{\Delta_2}$ is an axiom. First suppose it is an + atomic identity axiom, so some atomic !!{formula}~$!A$ occurs in both $\Gamma_1, \Gamma_2$ and $\Delta_1, \Delta_2$. There are four cases depending on whether $!A$~belongs to the first part or the second on the left, and whether it belongs to the first or second part on the right. @@ -81,15 +81,16 @@ that both $\Gamma_1 \Sequent \Delta_1, !C$ and $!C, \Gamma_2 \Sequent \Delta_2$ are !!{provable}. The first is already an axiom regardless of how we pick~$!C$ since $!A$ occurs on both the left - and right. Our only option to guarantee that $!C, \Gamma_2 - \Sequent \Delta_2$ is !!{provable} is to let $!C \ident \lfalse$. + and right. One choice guaranteeing that $!C, \Gamma_2 + \Sequent \Delta_2$ is !!{provable} is $!C \ident \lfalse$. \item $!A \in \Gamma_1$ and $!A \in \Delta_2$. Then $\Gamma_1 \Sequent \Delta_1, !A$ and $!A, \Gamma_2 \Sequent \Delta_2$ are both axioms, so we can pick $!C \ident !A$. \item $!A \in \Gamma_2$ and $!A \in \Delta_1$. Then $!A, \Gamma_1 \Sequent \Delta_1$ and $\Gamma_2 \Sequent \Delta_2, !A$ would be - axioms, but they have~$!A$ on the wrong sides. So $!A$ isn't the - interpolant. However, using $\RightR{\lnot}$ and $\LeftR{\lnot}$ + axioms, but they have~$!A$ on the wrong sides. These axioms do not + directly supply the two sequents required for $!A$ to be an + interpolant. Instead, using $\RightR{\lnot}$ and $\LeftR{\lnot}$ we can !!{prove} $\Gamma_1 \Sequent \Delta_1, \lnot!A$ and $\lnot !A, \Gamma_2 \Sequent \Delta_2$. @@ -134,8 +135,9 @@ first part we assigned the active !!{formula}~$!A$ also to the first part the premise. This is a choice we get to make. The inductive hypothesis would also apply if we assigned the active - formula to the other part, but then we would not be able to find - an interpolant (exercise: try it). + formula to the other part, but then the interpolant supplied by + the induction hypothesis would not directly give the two + sequents needed below (exercise: try this construction). Consider the first situation first, where $\lnot !A$~belongs to the first part. By inductive hypothesis, there is an @@ -351,8 +353,9 @@ of $\Gamma_1 \Sequent \Delta_1, !A(c), !C_1$ and $!C_1, \Gamma_2 \Sequent \Delta_2$. We can apply $\RightR{\lforall}$ to the first to obtain $\Gamma_1 \Sequent \Delta_1, \lforall[x][!A(x)], !C_1$. - (The eigenvariable condition is satisfied, since it was already - satisfied in the \RightR{\lforall} rule at the end of~$\pi$.) Thus + (The eigenvariable condition is satisfied: the original rule + excludes $c$ from its conclusion, and the language-intersection + argument below also excludes $c$ from the added context $!C_1$.) Thus $!C_1$ would be an interpolant if the condition that $\Lang L(!C_1) \subseteq \Lang L(\Gamma_1, \Delta_1, \lforall[x][!A(x)]) \cap \Lang L(\Gamma_2, \Delta_2)$ is satisfied. By the inductive @@ -401,7 +404,8 @@ L(!C_1)$ and $b \notin \Lang L(\Gamma_1, \Delta_1, \lexists[x][!A(x)]) \cap \Lang L(\Gamma_2, \Delta_2)$? First of all, by replacing all occurrences of~$b$ in~$!C_1$ by - !!a{variable}~$y$ we can write $!C_1 \ident \Subst{!C_1'}{b}{y}$ + !!a{variable}~$y$ that occurs neither free nor bound in~$!C_1$, + we can write $!C_1 \ident \Subst{!C_1'}{b}{y}$ where $!C_1'$~does not contain~$b$. Furthermore, either $b \notin \Lang L(\Gamma_1, \Delta_1, \lexists[x][!A(x)])$ or $b \notin \Lang L(\Gamma_2, \Delta_2)$. We can take $!C \ident @@ -515,27 +519,35 @@ \begin{proof} Suppose $\Gamma$ implicitly defines~$R$. Let $R'$, $\Gamma'$ be as - above and $\Lang L' = \Lang L(\Gamma') = \Lang L \setminus \{R\} - \cup \{R'\}$. By hypothesis, we have + above and let $\Lang L' = (\Lang L \setminus \{R\}) + \cup \{R'\}$ be the renamed ambient language, so that + $\Lang L(\Gamma') \subseteq \Lang L'$. By hypothesis, we have \begin{align*} \Gamma, \Gamma' & \Sequent \lforall[x_1][\dots\lforall[x_n][(R(x_1,\dots,x_n) \liff R'(x_1, \dots, x_n))]] - \intertext{Let $c_1$, \dots,~$c_n$ be !!{constant}s not occurring in~$\Gamma$. By the invertibility lemma we have} + \intertext{Let $c_1$, \dots,~$c_n$ be pairwise distinct !!{constant}s + not occurring in~$\Gamma$. By the invertibility lemma we have} \Gamma, \Gamma', R(c_1,\dots,c_n) & \Sequent R'(c_1, \dots, c_n) \intertext{Apply Maehara's Lemma to} \maeh{\Gamma, R(c_1,\dots,c_n)}{\Gamma'} & \Sequent \maeh{\ }{R'(c_1, \dots, c_n)} - \intertext{to find an~$!A \ident !A(x_1, \dots, x_n)$ such that} + \intertext{to find an interpolant, which we write as $!A(c_1,\dots,c_n)$. + Here $!A(x_1,\dots,x_n)$ is obtained by simultaneously replacing the + distinguished constants $c_i$ by variables $x_i$, first renaming + bound variables to avoid capture. Then} \Gamma, R(c_1,\dots,c_n) & \Sequent !A(c_1, \dots, c_n) \\ !A(c_1, \dots, c_n), \Gamma' & \Sequent R'(c_1, \dots, c_n) - \intertext{have !!{proof}s. Since $\Lang L(!A) = \Lang L_1 \cap - \Lang L_2 = \Lang L(\Gamma) \setminus \{R\}$, $!A$~does not contain~$R$. + \intertext{have !!{proof}s. The language of the interpolant $!A(c_1,\dots,c_n)$ is contained in + $\bigl(\Lang L(\Gamma) \setminus \{R\}\bigr) + \cup \{c_1,\dots,c_n\}$. In particular, $!A$~contains neither $R$ nor $R'$. Replace $R'$ everywhere by~$R$ in the !!{proof} of the second sequent to get !!a{proof} of} !A(c_1, \dots, c_n), \Gamma & \Sequent R(c_1, \dots, c_n) \end{align*} - Apply \RightR{\lif} and \RightR{\lforall} to get !!a{proof} of + Apply \RightR{\lif} to each direction, combine the two implications + using \RightR{\land} (with the usual definition of $\liff$), and + then apply \RightR{\lforall} successively to get !!a{proof} of \[ \Gamma \Sequent \lforall[x_1][\dots\lforall[x_n][(R(x_1,\dots,x_n) \liff !A(x_1, \dots, x_n))]]. \] @@ -545,9 +557,10 @@ A third result which is equivalent to interpolation (and, like it, can be proved using Maehara's Lemma) is the following theorem: If two -consistent theories~$\Gamma_1$, $\Gamma_2$ contain a complete theory -$\Gamma$ in the language~$\Lang L(\Gamma) \subseteq \Lang L(\Gamma_1) -\cap \Lang L(\Gamma_2)$, then $\Gamma_1 \cup \Gamma_2$ is consistent. +consistent theories~$\Gamma_1$, $\Gamma_2$ contain a theory +$\Gamma$ that is complete with respect to every !!{sentence} in the +full common language $\Lang L(\Gamma_1) \cap \Lang L(\Gamma_2)$, +then $\Gamma_1 \cup \Gamma_2$ is consistent. Recall that a complete theory is one such that for every !!{sentence}~$!A$ in its language either $\Gamma \Proves !A$ or @@ -560,7 +573,7 @@ completeness of~$\Gamma$, $\Gamma \Entails \lnot !A$, and since $\Gamma \subseteq \Gamma_1$, $\Gamma_1 \Entails \lnot !A$, making $\Gamma_1$ inconsistent. So $\Gamma \Entails !A$ and since $\Gamma -\subseteq \Gamma_2$, $\Gamma_2 \Entails !A$. So $\Gamma \Entails/ +\subseteq \Gamma_2$, $\Gamma_2 \Entails !A$. So $\Gamma_2 \Entails/ \lnot !A$, or $\Gamma_2$ would be inconsistent. The non-existence of !!a{sentence}~$!A$ in the joint diff --git a/content/proof-theory/cut-elimination/introduction.tex b/content/proof-theory/cut-elimination/introduction.tex index 37d9ad67..a6e0ffd9 100644 --- a/content/proof-theory/cut-elimination/introduction.tex +++ b/content/proof-theory/cut-elimination/introduction.tex @@ -95,7 +95,7 @@ \[ \Axiom$\Gamma \fCenter \Delta, !A$ \Axiom$!A, \Gamma \fCenter \Delta$ -\RightLabel{\Cut} +\RightLabel{\CutCS} \BinaryInf$\Gamma \fCenter \Delta$ \DisplayProof \] diff --git a/content/proof-theory/cut-elimination/intuitionistic.tex b/content/proof-theory/cut-elimination/intuitionistic.tex index c2318f14..ff7cd630 100644 --- a/content/proof-theory/cut-elimination/intuitionistic.tex +++ b/content/proof-theory/cut-elimination/intuitionistic.tex @@ -1,3 +1,8 @@ +Here the retained-principal \LeftR{\lif} rule is used as a derived +rule of~\Log{G3c}: weaken its second premise with $!B \lif !C$, apply +the ordinary \LeftR{\lif} rule, and contract the two copies of +$!B \lif !C$ in the conclusion. + If $!A \ident (!B \lif !C)$ then $\pi$ ends in \[ \AxiomC{} @@ -50,8 +55,7 @@ \] Both its cut rank and cut !!{height} are less than the cut rank and !!{height} of~$\pi$, so the induction hypothesis yields a -\Log{G3c}-!!{proof}~$\pi_2'''$ of $!B, \Gamma, \Pi, \Pi \fCenter \Delta, \Lambda, -\Lambda$. Now apply the inductive hypothesis to the !!{proof} ending +\Log{G3c}-!!{proof}~$\pi_2'''$ of $!B, \Gamma, \Pi \fCenter \Delta, \Lambda$. Now apply the inductive hypothesis to the !!{proof} ending in \Cut, \[ \AxiomC{} @@ -59,13 +63,12 @@ \Deduce$\Gamma, \Pi \fCenter \Delta, \Lambda, !B$ \AxiomC{} \RightLabel{$\pi_2'''$} -\Deduce$!B, \Gamma, \Pi, \Pi \fCenter \Delta, \Lambda, -\Lambda$ +\Deduce$!B, \Gamma, \Pi \fCenter \Delta, \Lambda$ \RightLabel{\Cut} -\BinaryInf$!B, \Gamma, \Pi \fCenter \Delta, \Lambda$ +\BinaryInf$\Gamma, \Gamma, \Pi, \Pi \fCenter \Delta, \Delta, \Lambda, \Lambda$ \DisplayProof \] (it has cut rank $< \cutr{\pi}$) to obtain !!a{proof} of $\Gamma, -\Gamma, \Pi, \Pi, \Pi \fCenter \Delta, \Lambda, \Lambda, \Lambda$. We +\Gamma, \Pi, \Pi \fCenter \Delta, \Delta, \Lambda, \Lambda$. We obtain the !!{proof} $\pi'$ of $\Gamma, \Pi \fCenter \Delta, \Lambda$ by applying \olref[seq][inv]{prop:G3c-cont-adm}. \ No newline at end of file diff --git a/content/proof-theory/cut-elimination/midsequent.tex b/content/proof-theory/cut-elimination/midsequent.tex index 7fa3267a..d40b0ba5 100644 --- a/content/proof-theory/cut-elimination/midsequent.tex +++ b/content/proof-theory/cut-elimination/midsequent.tex @@ -19,7 +19,7 @@ quantifier inferences. (!!^a{formula}~$!A$ is \emph{prenex} (or in \emph{prenex form}) if it is of the form \[\mathsf{Q}_1x_1\dots\mathsf{Q}_nx_n\,!B(x_1,\dots,x_n)\] where each -$\mathsf{Q}_i$ is either $\lforall$ or~$\lexists$.) An important +$\mathsf{Q}_i$ is either $\lforall$ or~$\lexists$, and $!B$ is quantifier-free.) An important consequence of the midsequent theorem is Herbrand's theorem. Its general case is a little hard to describe, but very generally it takes the form: for every !!{provable} !!{sentence}~$!A$ of first-order @@ -45,10 +45,13 @@ !!{formula}~$\lexists[x][!B(x)]$. The converse, i.e., that if $\lexists[x][!B(x)]$ has a Herbrand disjunction, then it is provable, is easy. In fact, the Herbrand disjunction entails $\lexists[x][!B(x)]$. -E.g., here is !!a{proof} in~$\Log{G3c}$ for the case where $n=2$: +E.g., here is !!a{proof} in~$\Log{G3c}$ for the case where $n=2$, +using \olref[seq][ex]{prop:G3c-axioms} for the two top sub-!!{proof}s: \[ -\Axiom$!B(t_1) \fCenter \lexists[x][!B(x)], !B(t_1), !B(t_2)$ -\Axiom$!B(t_2) \fCenter \lexists[x][!B(x)], !B(t_1), !B(t_2)$ +\AxiomC{} +\Deduce$!B(t_1) \fCenter \lexists[x][!B(x)], !B(t_1), !B(t_2)$ +\AxiomC{} +\Deduce$!B(t_2) \fCenter \lexists[x][!B(x)], !B(t_1), !B(t_2)$ \RightLabel{\LeftR{\lor}} \BinaryInf$!B(t_1) \lor !B(t_2) \fCenter \lexists[x][!B(x)], !B(t_1), !B(t_2)$ \RightLabel{\RightR{\lexists}} @@ -72,8 +75,8 @@ \DisplayProof \] If these are all the $\RightR{\lexists}$ inferences in~$\pi$ with -$\lexists[x][!B(x)]$ active, then there are no other quantifier -inferences in~$\pi_1'$. That's because $!B(x)$ contains no other +$\lexists[x][!B(x)]$ principal, then there are no other quantifier +inferences in~$\pi_1$. That's because $!B(x)$ contains no other quantifiers, and the end-sequent doesn't contain any !!{formula}s on the left. In other words, $ \fCenter \lexists[x][!B(x)], !B(t_1), \dots, !B(t_n)$ is the mid-sequent of~$\pi$. Moreover, since there are @@ -103,9 +106,10 @@ number of propositional inferences below it, and the order~$o(\pi)$ of $\pi$ as the sum of the orders of all its quantifier inferences. If $o(\pi) = 0$, then no quantifier inference has a propositional - inference below it, and we are done: Since all quantifier inferences - have one premise, there is a single topmost quantifier inference. - Its premise is the midsequent. + inference below it, and we are done. If there is no quantifier + inference, the end-sequent is a midsequent. Otherwise, since all + quantifier inferences have one premise, there is a single topmost + quantifier inference, whose premise is the midsequent. If $o(\pi) > 0$, pick a bottom-most quantifier inference with order $>0$. Since it has order $>0$, there must be a propositional @@ -149,7 +153,7 @@ \RightLabel{$\pi_2'$} \Deduce$\Gamma' \fCenter \Delta', \lforall[x][!A(x)], !A(c), !B$ \AxiomC{} -\RightLabel{$\pi_3$} +\RightLabel{$\pi_3'$} \Deduce$!C, \Gamma' \fCenter \Delta', \lforall[x][!A(x)], !A(c)$ \RightLabel{\LeftR{\lif}} \BinaryInf$!B \lif !C, \Gamma' \fCenter \Delta', \lforall[x][!A(x)], !A(c)$ @@ -158,7 +162,8 @@ \DisplayProof \] where $\pi_2'$ is obtained from~$\pi_2$ by weakening with~$!A(c)$ on -the right. (This does not add any inferences, in particular, no +the right, and $\pi_3'$ is obtained from~$\pi_3$ by weakening with +$\lforall[x][!A(x)]$ on the right. (This does not add any inferences, in particular, no quantifier inferences which might affect the order. It also does not violate any eigenvariable conditions in~$\pi_2$, since no constants in~$!A(c)$ are used as eigenvariables in~$\pi_2$.) The eigenvariable @@ -169,11 +174,11 @@ obtain !!a{proof}~$\pi_1''$ of $!B \lif !C, \Gamma' \fCenter \Delta', \lforall[x][!A(x)]$. The proof of the admissibility of $\RightR{\Contraction}$ for $\lforall[x][!A(x)]$ and the proof of -invertibility of $\RightR{\lforall}$ used in that proof did not change +invertibility of $\RightR{\lforall}$ used in that proof did not increase the order of any inference: it, at most, deleted inferences. Thus, there are no more quantifier inferences in~$\pi_1''$ than in~$\pi_1$, -and each quantifier inference in~$\pi_1''$ has the same number of -proposional inferences below it as its corresponding inference +and each quantifier inference in~$\pi_1''$ has no more +proposional inferences below it than its corresponding inference in~$\pi_1$---with the exception of the last \RightR{\lforall}: it had a \LeftR{\lif} below it in~$\pi$, which we have moved above it in~$\pi_1''$. Replace $\pi_1$ in $\pi$ by $\pi_1''$. The resulting From 5f5f20759c697728768095f945d0c5ff34a9502d Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:49 +0100 Subject: [PATCH 2/3] proof-theory/proof-search: corrections (24 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit completeness.tex: - l. 13: Says which sequents the section treats: finite, equality-free, of sentences. - l. 23: Theta and Xi are defined as unions of branch contexts with multiplicity removed. Each is a set of formulas, not a single formula. - l. 26: The aborted case explicitly has a finite branch whose final atomic leaf has no successor. Restrict the successor and atomic-persistence assertions to nonterminal positions; the infinite case still has a successor at every index. - l. 29, 32, 93: A terminal position has no successor. - l. 34: The failure-branch succedent is consistently named Lambda_n; Delta_n is undefined in the associated-constant sentence. - l. 61, 64: The function and predicate interpretation clauses explicitly declare arity m. Their function argument list, predicate-domain Cartesian power, and defining atom must all use m. - l. 107: Atomic occurrences persist with their original indices, so the minimum over all indices need never increase. The algorithm actually selects the minimum non-atomic index and allocates new indices above the current maximum. - l. 122, 130, 141: With k the current maximum as in the algorithm, newly created formulas get k+1 and k+2 for conjunction-left, k+1 on each separate conjunction-right branch, and k+1 for the existential witness. introduction.tex: - l. 12: ⊤ and ↔ have no rules in G3c: they are expanded first. - l. 103: The actual G3c rules instantiate only closed terms and have no identity rules; the countermodel is a variable-free term model. search-algorithm.tex: - l. 13: The algorithm is for finite sequents of equality-free sentences. - l. 20: Atomic formulas have no backward logical reduction and are only checked for closure. A branch that has already closed at an axiom also need not decompose its remaining compounds. tableaux.tex: - l. 120: An open branch may have no ordinary eligible formula while retaining a reusable true-universal or false-existential formula. The algorithm cannot unconditionally select a nonexistent first formula. - l. 138: In a finite function-free saturated branch every eligible instance may already occur, so no first term meeting the stated novelty condition exists. A vacuous matrix can also exhaust novel instances despite infinitely many terms. - l. 151: The conversion is from closed tableaux; failed open branches instead support the preceding countermodel construction. - l. 151: A tableau may close using a previously expanded compound formula that a naive G3 sequent label has deleted. Accumulated branch contexts retain that historical formula. - l. 172, 175, 180, 185: A,B,C are arbitrary formula metavariables, and no atomicity hypothesis is given. G3c identity axioms require the repeated formula to be atomic. Co-Authored-By: Claude Opus 5.5 --- .../proof-search/completeness.tex | 52 ++++++++------- .../proof-search/introduction.tex | 9 ++- .../proof-search/search-algorithm.tex | 9 +-- .../proof-theory/proof-search/tableaux.tex | 66 +++++++++++-------- 4 files changed, 80 insertions(+), 56 deletions(-) diff --git a/content/proof-theory/proof-search/completeness.tex b/content/proof-theory/proof-search/completeness.tex index 08c152b6..3c4e5c8c 100644 --- a/content/proof-theory/proof-search/completeness.tex +++ b/content/proof-theory/proof-search/completeness.tex @@ -10,7 +10,9 @@ \olsection{Completeness} -We now show that the proof search algorithm is fool-proof, i.e., if it +Throughout this section, $\Gamma\Sequent\Delta$ is a finite sequent +of equality-free first-order sentences. We now show that the proof +search algorithm is fool-proof, i.e., if it aborts or never halts, there is no !!{proof} of the starting sequent~$\Gamma \Sequent \Delta$. To do this, we define !!a{structure}~$\Struct M$ such that for all $!A \in \Gamma$, @@ -20,18 +22,20 @@ is not valid. Since \Log{G3c} is sound, $\Gamma \Sequent \Delta$ has no !!{proof} -We define $\Struct{M}$ from a pair $\Theta, \Xi$ of !!{formula}s and a +We define $\Struct{M}$ from a pair $\Theta, \Xi$ of sets of !!{formula}s and a set~$C$ of !!{constant}s. We obtain $\Theta, \Xi$ and~$C$ from a \emph{failure branch} of the failed (aborted or non-terminating) run -of the proof search. A failure branch is a sequence $\Pi_n \Sequent +of the proof search. A failure branch is a finite or infinite sequence $\Pi_n \Sequent \Lambda_n$ of sequents and sets of !!{constant}s~$C_n$ such that $\Pi_0 \Sequent \Lambda_0$ is the end-sequent $\Gamma \Sequent -\Delta$, and $\Pi_{n+1} \Sequent \Lambda_{n+1}$ is a premise of $\Pi_n +\Delta$, and, at each nonterminal position, +$\Pi_{n+1} \Sequent \Lambda_{n+1}$ is a premise of $\Pi_n \Sequent \Lambda_n$ generated at stage~$n+1$ for which the algorithm does not find !!a{proof}. Such a premise must obviously exist for -each~$n$, since otherwise the algorithm would have found !!a{proof}. +each nonterminal position, since otherwise that search subtree +would already have closed. We let $C_n$ be the set of !!{constant}s associated with~$\Pi_n -\Sequent \Delta_n$. +\Sequent \Lambda_n$. If the algorithm aborts at a top-most sequent consisting only of atomic !!{formula}s, the branch ending in that sequent is a failure @@ -58,10 +62,10 @@ \item If $c \in \Domain{M}$, $\Assign{c}{M} = c$. \item If $f$ is an $m$-place !!{function} in $\Gamma \Sequent \Delta$, and $t_1$, \dots, $t_m \in \Domain{M}$, then $\Assign{f}{M}(t_1, \dots, t_m) = -f(t_1, \dots, t_n)$. +f(t_1, \dots, t_m)$. \item If $R$ is an $m$-place !!{predicate} in $\Gamma \Sequent \Delta$, then $\Assign{R}{M} = \Setabs{\tuple{t_1, \dots, t_m} \in -\Domain{M}^n}{R(t_1, \dots, t_n) \in \Theta}$. +\Domain{M}^m}{R(t_1, \dots, t_m) \in \Theta}$. \end{enumerate} $\Struct{M}$ is a \emph{term model} in that its domain is a set of terms, and the !!{constant}s and !!{function}s are interpreted so as @@ -90,7 +94,7 @@ \Theta$ by definition of~$\Struct{M}$. Together we have: if $!A \in \Theta$, then $\Sat{M}{!A}$. -If $!A$ is atomic and $!A \in \Pi_n$ then $!A \in \Pi_{n+1}$ and if +At a nonterminal position, if $!A$ is atomic and $!A \in \Pi_n$ then $!A \in \Pi_{n+1}$ and if $!A \in \Lambda_n$ then $!A \in \Lambda_{n+1}$. (This follows from the way the proof search algorithm generates successor sequents.) Hence, if $!A \in \Theta \cap \Xi$ then for some~$n$, $!A \in \Pi_n \cap @@ -104,22 +108,24 @@ of lower !!{depth} than~$!A$. We prove (1) and (2) for $!A$ by distinguishing cases. -First note that when $!A^i$ occurs in $\Pi_n \Sequent \Lambda_n$ then -$!A^i$ also occurs in $\Pi_{n+1} \Sequent \Lambda_{n+1}$ unless $i$ is -the smallest index in $\Pi_n \Sequent \Lambda_n$. Since the smallest -index increases in topmost sequents added at each stage, eventually we -reach $\Pi_n \Sequent \Lambda_n$ in which $!A^i$ occurs, and $i$ is -the smallest index. At stage $n+1$ the algorithm reduces~$!A^i$. In -other words, if $!A \in \Theta$, then for some $n$, $\Pi_n = \Pi_n', -!A^i$ and $i$ is the smallest index. And if $!A \in \Xi$, then for -some $n$, $\Lambda_n = \Lambda_n', !A^i$ and $i$~is the smallest -index. +Consider a non-atomic occurrence $!A^i$ on the failure branch. +Until it is selected, it persists in each successor sequent. The +algorithm selects the least index among non-atomic occurrences; +atomic occurrences with smaller indices are ignored. Each reduction +removes its selected occurrence or reindexes its retained copy, and +all new indices exceed the current maximum. Thus only finitely many +eligible occurrences can precede~$i$, and no new one can precede it. +Consequently $!A^i$ is eventually reduced. A finite failure branch +cannot end while a non-atomic occurrence remains. In particular, +every non-atomic formula in~$\Theta$ or~$\Xi$ is selected on the +corresponding side at some stage. In the cases below, let $k$ denote +the maximum index just before that reduction. \begin{enumerate} \item $!A \in \Theta$ and $!A \ident !B \land !C$. Then for some $n$, $\Pi_n = \Pi_n', (!B \land !C)^i$. $\Pi_{n+1} \Sequent \Lambda_{n+1}$ is the corresponding premise of~\LeftR{\land}, i.e., - $\Pi_{n+1} = \Pi_n', !B^k, !C^{k+1}$. Consequently, $!B, !C \in + $\Pi_{n+1} = \Pi_n', !B^{k+1}, !C^{k+2}$. Consequently, $!B, !C \in \Theta$. By inductive hypothesis, $\Sat{M}{!B}$ and $\Sat{M}{!C}$. By definition of $\Sat{M}{}$, we have $\Sat{M}{!B \land !C}$. @@ -127,8 +133,8 @@ $\Lambda_n = \Lambda_n', !B \land !C$. $\Pi_{n+1} \Sequent \Lambda_{n+1}$ is one of the two premises of~\RightR{\land} with conclusion $\Pi_n \Sequent \Lambda'_n, !B \land !C$, i.e., - $\Lambda_{n+1} = \Lambda_n', !B^k$ or $\Lambda_{n+1} = \Lambda_n', - !C^k$. Consequently, either $!B \in \Xi$ or $!C \in \Xi$. By + $\Lambda_{n+1} = \Lambda_n', !B^{k+1}$ or $\Lambda_{n+1} = \Lambda_n', + !C^{k+1}$. Consequently, either $!B \in \Xi$ or $!C \in \Xi$. By inductive hypothesis, either $\Sat/{M}{!B}$ or $\Sat/{M}{!C}$. By definition of $\Sat{M}{}$, we have $\Sat/{M}{!B \land !C}$. @@ -138,7 +144,7 @@ \item $!A \in \Theta$ and $!A \ident \lexists[x][!B(x)]$. Then for some $n$, $\Pi_n = \Pi_n', \lexists[x][!B(x)]^i$. $\Pi_{n+1} \Sequent \Lambda_{n+1}$ is the corresponding premise - of~\LeftR{\lexists}, i.e., $\Pi_{n+1} = \Pi_n', !B(c)^k$ for + of~\LeftR{\lexists}, i.e., $\Pi_{n+1} = \Pi_n', !B(c)^{k+1}$ for some~$c$. Consequently, $!B(c) \in \Theta$ and~$c \in C$. By inductive hypothesis, $\Sat{M}{!B(c)}$. By definition of $\Sat{M}{}$, we have $\Sat{M}{\lexists[x][!B(x)]}$. diff --git a/content/proof-theory/proof-search/introduction.tex b/content/proof-theory/proof-search/introduction.tex index 01be46d7..b64b8c3e 100644 --- a/content/proof-theory/proof-search/introduction.tex +++ b/content/proof-theory/proof-search/introduction.tex @@ -10,6 +10,11 @@ \olsection{Introduction} +For proof search, expand $\ltrue$ as $\lnot\lfalse$ and +$!A\liff!B$ as $(!A\lif!B)\land(!B\lif!A)$ recursively before +applying the algorithm or its complexity measures. These expansions +preserve truth, so countermodels also falsify the original input. + The axioms and inference rules of !!{proof} systems like \Log{G3c} or \Log{N1i} define what trees of sequents or !!{formula}s count as correct !!{proof}s. Given such a tree of sequents or !!{formula}s @@ -100,8 +105,8 @@ The key idea to showing that a proof search algorithm is fool-proof is to show that if the algorithm fails, we can show from the way it fails that the sequent can't possibly have !!a{proof}. And the way to show -that is to show that it is not valid. In classical first-order logic, -valid sequents $\Gamma \Sequent \Delta$ are those where every +that is to show that it is not valid. In this chapter we work with finite sequents of equality-free +first-order sentences. For these, valid sequents $\Gamma \Sequent \Delta$ are those where every !!{structure} makes at least one !!{formula} in $\Gamma$ is false or at least one !!{formula} in~$\Delta$ is true. \Log{G3c} is \emph{sound}, i.e., it !!{prove}s only valid sequents. This is diff --git a/content/proof-theory/proof-search/search-algorithm.tex b/content/proof-theory/proof-search/search-algorithm.tex index d3fcac59..e2021798 100644 --- a/content/proof-theory/proof-search/search-algorithm.tex +++ b/content/proof-theory/proof-search/search-algorithm.tex @@ -10,16 +10,17 @@ \olsection{Search Algorithm for \Log{G3c}} -We describe a search algorithm for \Log{G3c}. It is not the only +We describe a search algorithm for \Log{G3c} on finite sequents of +equality-free first-order sentences. It is not the only possible one, and not even the most efficient one. But it is correct: if a sequent $\Gamma \Sequent \Delta$ has !!a{proof}, it will eventually halt and find !!a{proof}. It is also fool-proof: if it halts without having found !!a{proof}, or never halts, then $\Gamma \Sequent \Delta$ is not valid to begin with. -A key necessary feature of the algorithm is that it ensures that every -!!{formula} in $\Gamma \Sequent \Delta$, or in a sequent produced in -the proof search, is ``reduced,'' i.e., it is treated as the principal +A key necessary feature of the algorithm is that every eligible +non-atomic formula occurrence on a continuing open search branch is +eventually ``reduced,'' i.e., it is treated as the principal formula of an inference rule applied backwards, and that this happens as often as necessary. We call this feature \emph{fairness}. diff --git a/content/proof-theory/proof-search/tableaux.tex b/content/proof-theory/proof-search/tableaux.tex index 9bc24a0e..8eacd1cc 100644 --- a/content/proof-theory/proof-search/tableaux.tex +++ b/content/proof-theory/proof-search/tableaux.tex @@ -117,10 +117,13 @@ Proof search is easy in tableaux. We generate a tableau in stages. At stage $0$, simply write down the starting !!{formula}s at the top. At -stage $n+1$, do the following for each leaf node: Find the first -(top-most) non-atomic signed formula not yet checked off that is not of the form $\sFmla{\True}{\lforall}$ or $\sFmla{\False}{\lexists}$. Apply the branch -extension rule to that formula. Once the rule has been applied in -every branch that includes the signed formula in question, check it +stage $n+1$, do the following for each open leaf node: If there is +a non-atomic signed formula not yet expanded on that branch, other than +$\sFmla{\True}{\lforall}$ or $\sFmla{\False}{\lexists}$, choose the +first (top-most) one and apply its branch extension rule. Record that +expansion on the branch. If there is none, skip this step and proceed +to the reusable quantifiers below. Once the rule has been applied on +every open branch below the signed occurrence, check the occurrence off. (The example above is generated using this algorithm.) Signed !!{formula}s of the form $\sFmla{\True}{\lforall}$ and @@ -135,7 +138,9 @@ c_0$ if no !!{constant} occurs) and the !!{function}s occurring in the starting !!{formula}s, and such that the corresponding signed !!{formula} $\sFmla{\True}{!B(t)}$ or~$\sFmla{\False}{!B(t)}$ does not -already occur on the branch. +already occur on the branch. If no such term exists, add no node +for that formula at this stage; reconsider it at later stages when +new constants or instances may be available. If this proof search does not produce a closed tableau, it either contains a finite open branch where all non-atomic !!{formula}s are @@ -148,41 +153,48 @@ \Setabs{!A}{\sFmla{\True}{!A} \text{ on the branch}}$ and $\Xi = \Setabs{!A}{\sFmla{\False}{!A} \text{ on the branch}}$.) -Tableaux generated by this proof search method can easily be -translated into \Log{G3c} proofs by assigning a sequent to every node. -If the starting formulas correspond to a sequent $\Gamma \Sequent -\Delta$, label each of the starting formulas by $\Gamma \Sequent -\Delta$. If a branch is extended by applying a branch extension rule -to a signed !!{formula} $\sFmla{\True}{!A}$, then the leaf is -labelled $!A, \Pi \Sequent \Lambda$, and if it is applied to a signed -!!{formula} $\sFmla{\False}{!A}$, the leaf is labelled $\Pi \Sequent -\Lambda, !A$. Where the tableau applies a \TRule{\True}{\star} rule, -apply the \LeftR{\star} rule to the sequent (with $!A$ principal); -where it applies a \TRule{\False}{\star} rule, apply the \RightR{\star} -rule. The premises of the rule are the sequents that label the -corresponding nodes added to the tableau. Once a tableau closes with -$\sFmla{\True}{!A}$ and $\sFmla{\False}{!A}$, the label of the final -leaf node will be a sequent of the form $!A, \Pi \Sequent \Lambda, -!A$. Some successive nodes in the tableau will be assigned the same -sequent; delete duplicates. For instance, the tableau above translates -into the !!{proof}: +Closed tableaux generated by this proof search method can easily be +translated into \Log{G3c} proofs by retaining the accumulated +branch formulas in sequent contexts: true formulas go on the left, +false formulas on the right. Treat the consecutive nodes created by +one expansion as a single block. Keep an expanded principal formula +in the context, since a later tableau closure may still refer to it. + +Work upward from closed branches. A branch closed by +$\sFmla{\True}{\lfalse}$ gives a bottom-left axiom. An opposite-signed +pair gives a sequent $!A,\Pi\Sequent\Lambda,!A$; this is an identity +axiom when $!A$ is atomic and otherwise has the generalized identity +proof of \olref[seq][ex]{prop:G3c-axioms}. +For each expansion block, use the corresponding \LeftR{\star} or +\RightR{\star} rule with the retained branch context. Where retaining +the principal formula creates an extra copy in the conclusion, +remove it by admissible contraction. The universal-left and +existential-right rules already retain their principal formulas. +This yields a proof of the starting sequent. +For the example above, the same rule pattern gives the following +proof; its four top sequents use generalized identity when the +schematic formulas are not atomic: \begin{maxwidth} $ -\Axiom$!A \fCenter !A, !B$ +\AxiomC{} +\Deduce$!A \fCenter !A, !B$ \RightLabel{\RightR{\lor}} \UnaryInf$!A \fCenter !A \lor !B$ -\Axiom$!A \fCenter !A, !C$ +\AxiomC{} +\Deduce$!A \fCenter !A, !C$ \RightLabel{\RightR{\lor}} \UnaryInf$!A \fCenter !A \lor !C$ \RightLabel{\RightR{\land}} \BinaryInf$!A \fCenter (!A \lor !B) \land (!A \lor !C)$ -\Axiom$!B, !C \fCenter !A, !B$ +\AxiomC{} +\Deduce$!B, !C \fCenter !A, !B$ \RightLabel{\RightR{\lor}} \UnaryInf$!B, !C \fCenter !A \lor !B$ \RightLabel{\LeftR{\land}} \UnaryInf$!B \land !C \fCenter !A \lor !B$ -\Axiom$!B, !C \fCenter !A, !C$ +\AxiomC{} +\Deduce$!B, !C \fCenter !A, !C$ \RightLabel{\RightR{\lor}} \UnaryInf$!B, !C \fCenter !A \lor !C$ \RightLabel{\LeftR{\land}} From fafe8078de50b5280846357d16c578a1144b6c74 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:50 +0100 Subject: [PATCH 3/3] proof-theory/sequent-calculus: corrections (63 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit admissible-derivable.tex: - l. 115: With all Gamma true and all Delta false, the two premises require not(A and B) and (A or B), hence exactly one of A,B is true: this falsifies A iff B. Thus these premises yield the biconditional on the left, not on the right. - l. 124: The book explicitly defines schematic proofs in proof-examples.tex 116–130 as having formula-independent structure and height, and distinguishes arbitrary-identity expansions in G3c from such schematic proofs. - l. 139: An arbitrary added formula A may contain an internal eigenconstant. Adding it to that quantifier inference conclusion would violate freshness, although pi was regular. - l. 141: The displayed object is Gamma=>Delta,A, a sequent. Rules-proofs.tex:110–112 names the concluding node of a sequent proof its end-sequent; it is not an end-formula. - l. 212: The G3c table has both atomic-identity and bottom-left axioms. Adding a succedent formula preserves either type, so the base case is correct only after including bottom in Gamma as the second alternative. interpretation-rules.tex: - l. 14: The sequent definition allows arbitrary formulas, including P(x); the earlier FOL semantics evaluates such formulas under an assignment. - l. 27: The source calls all G3c rules truth-preserving under one structure. Universal-right is a counterexample: in a two-element structure with P true only of the interpretation of fresh a, =>P(a) is true while =>forall x P(x) is false. - l. 68: The G3c table supplies paired rules for negation, conjunction, disjunction, implication and the two quantifiers, but falsity has only the falsity-left axiom and no right introduction. - l. 79: The version G1i of the rule for → on the left also drops the side formulas of the succedent in the first premise. - l. 87: The sequent-truth definition at lines 13–15 says false antecedent or true succedent. With P true and Q false, P=>Q is false although the reversed source condition holds. Adding a right formula preserves the correctly stated witness. - l. 94: The necessity assertion is overbroad for an arbitrary formula A. With A=falsity, the falsity axiom, right negation and one right-disjunction step prove excluded middle without contraction. - l. 116: Read the whole structural-rule motivation. In the full calculus a proof can end in a redundant contraction, and a compound A can be principal on the left. introduction.tex: - l. 52: The formulas may have free variables: truth is under one fixed assignment. - l. 60: The preceding sentences explicitly fix Gamma and Delta as multisets, whose order is irrelevant; the following multiplicity equation defines their additive multiset union. Calling these two objects sequences contradicts that declared object type. - l. 90, 92: Thus unexpanded top or Iff defeats the unqualified completeness/search claims. State the common abbreviation convention once in the first sequent chapter, which the proof-theory driver imports before natural deduction and normalization. - l. 92: Read the displayed rules and rules-proofs.tex:50–62: instantiations must be closed, and no identity rules exist. Thus the broader assertion for arbitrary first-order formulas fails for forall x P(x)=>P(y), and the identity-valid =>c=c is underivable. invertibility.tex: - l. 24: The h_i are not introduced or quantified in this clause. Removing them gives the exact unbounded notion; the next clause independently specifies uniform height preservation. - l. 26: The preceding rule has n premises. Height-preserving inversion must quantify independently over every proof-height bound h, not only the integer equal to the premise count. - l. 74: For the n=0 conjunction-inversion case, bottom-left axioms need not have a shared atomic formula. A conjunction is not bottom, so the bottom remains in Gamma when the conjunction is replaced by its two conjuncts. - l. 118: The induction hypothesis is precisely conjunction-left inversion: replace the selected A and B conjunction in each premise by two antecedent occurrences A,B. The following proof diagram at lines 124 and 127 already gives these decomposed contexts. - l. 172: The cited substitution lemma requires that a is not an eigenconstant of pi_1 and that the inserted constant c is not one either. Regularity of pi_1 alone supplies neither restriction in vacuous cases. - l. 233: The G3c table contains bottom-left axioms as well as atomic identities. Right contraction preserves the bottom in Gamma; left contraction either leaves that context bottom or leaves one copy when the contracted formula itself is bottom. - l. 338: The substitution of a for c in the contracted universal proof requires c not to be an eigenconstant and the inserted a not to be one. proof-examples.tex: - l. 15: Rules-proofs.tex:30–36 defines the conclusion occurrence as principal and premise occurrences as active. Both backward-search descriptions select a conclusion occurrence, so both must say principal. - l. 26: The end-sequent at line 18 has antecedent {(C and D)->E}. Right implication introduces C->(D->E) on the right and preserves this antecedent; the subsequent diagram already uses the correct Gamma. - l. 33: The formula meant is the principal one. - l. 65: The two premises have (C and D) on the right of the first and E on the left of the second; the binary conclusion introduces (C and D)->E on the left. This matches left implication at lines 42–45, not unary right implication. - l. 107: The premise at line 105 is E=>E. Left weakening adds C on the left and leaves the right-hand E unchanged; the following weakening and left-implication steps also require E as the succedent. - l. 124: The sequents with ⊥ on the left are axioms of G3c too. - l. 127: Set D=E=P atomic and C a compound formula. Every top sequent in the fragment at lines 60–64 is then an atomic identity axiom through P, although C is not atomic. Thus atomicity of all three is sufficient, not necessary. - l. 132: The preceding fully schematic G1c proof was completed at lines 91–122. - l. 142: The recursive right-hand side is depth(B)+1, so the quantified immediate subformula must be B, not the formula A being defined. The proof at lines 170–173 repeats the wrong matrix A(x); it is corrected to B(x). - l. 150: Contraction has the same formula above and below; in G3c universal-left and existential-right the principal formula is retained in the premise. - l. 171: The formula quantified is B(x). - l. 217, 219: Both right-conjunction premises have two occurrences of the antecedent conjunction. The rule shares that entire context. Left contraction then removes one antecedent occurrence and cannot change the succedent. - l. 263: Classical shared-context implication-left has first premise Gamma=>Delta,A; the printed intuitionistic rule has Gamma=>A. - l. 263: Neither of the displayed negation proofs contains Delta. The first extension uses only single-succedent sequents, but its unnamed premise subproof pi_1 also needs that restriction. The second extension explicitly creates the two-formula succedent B,not B. - l. 271: The figure fails to be a proof only if x occurs free in B(x). - l. 282: Read the alternate universal proof and the freshness definition in rules-proofs.tex:61–63. If x is free in B(x), c occurs in the conclusion antecedent B(c), violating freshness. - l. 302: The desired second induction sequent is B,C,Gamma=>Delta,C. Taking D=C requires antecedent context Pi=B,Gamma and succedent context Lambda=Delta, as the next displayed proof confirms. - l. 322: This G3c induction case introduces an unnamed fresh constant and immediately invokes B(c), then refers to the way c was chosen. Naming that chosen constant c supplies the omitted symbol and matches the displayed eigenvariable throughout. quantifiers.tex: - l. 32: Rules-proofs.tex:50–56 requires closed instantiating terms. Substituting a free variable x for c can both invalidate a closed-term quantifier inference and capture an occurrence under a quantifier. - l. 80, 92: Both diagrams occur under the explicit left-universal case at line 74; their conclusions introduce the quantified formula on the left and retain the succedent. Thus both printed right-universal labels are wrong. - l. 104: The final argument interleaves two clauses. Since c is not an eigenconstant and t contains none, all eigenconstants remain the same and no eigenconstant is introduced below its own inference. Restoring the clause order states exactly that argument. - l. 123: The induction is strong induction. - l. 126, 139: The induction parameter at line 122 counts dirty inferences. Choosing an already clean highest inference need not lower it. - l. 153: Two formerly dirty inferences may share c solely with each other; renaming one makes both clean. The procedure therefore lowers the dirty count by at least one, not exactly one. rules-G1i.tex: - l. 111: The caption removes the bare bottom=>empty axiom and right weakening, but retains primitive right negation with an empty-succedent premise. - l. 111: The table at line 12 has the bare falsity axiom bottom=>, whereas the caption names a contextual G3 axiom absent from this table. The existing removal of right weakening is retained. rules-G3i.tex: - l. 42, 44: Read the complete G3i table and its single-conclusion context restriction. Every other right logical rule has one conclusion formula. - l. 47, 49: In G3i the succedent has one formula. - l. 89: This is the G3i table, so the G1 names are copied from the wrong caption. Merely deleting falsity axioms leaves not P,P=>Q derivable by the displayed left-negation rule. rules-mG3i.tex: - l. 64: The multiple-conclusion intuitionistic table adds the arbitrary succedent context in the conclusions of right negation and implication, but omits it from right forall. - l. 81: The displayed system is mG3i, with no mG1i or mG1m definition in the chapter. Deleting only falsity axioms retains explosion via primitive left negation. rules-proofs.tex: - l. 130: The immediately following recursion gives a single axiom height 0 and adds 1 per inference (lines 138–143). - l. 156: Multiset equality permits permutation of the antecedent, not replacement of the succedent E by D. The preceding instantiation takes C=E and Delta empty, so both displayed succedents must be E. translations.tex: - l. 33: G1c permits every identity A=>A, while G3c requires atomic identities and uses identity expansion for the others. Both rule tables and the cited proposition state these facts. - l. 43: For G1c universal-left/existential-right, weaken in the quantified principal formula retained by G3c and then apply its rule. All are instances of the already established admissible weakening theorem. - l. 78: Compare the two quantifier tables: G3c universal-left and existential-right retain the principal formula in their premises, whereas G1c does not. These are additional cases beyond the two propositional simulations already displayed. - l. 98: The quantifier rules that keep the principal formula were not treated. Co-Authored-By: Claude Opus 5.5 --- .../sequent-calculus/admissible-derivable.tex | 13 +++-- .../sequent-calculus/interpretation-rules.tex | 39 ++++++++------ .../sequent-calculus/introduction.tex | 13 +++-- .../sequent-calculus/invertibility.tex | 23 ++++---- .../sequent-calculus/proof-examples.tex | 54 ++++++++++--------- .../sequent-calculus/quantifiers.tex | 18 +++---- .../sequent-calculus/rules-G1i.tex | 6 +-- .../sequent-calculus/rules-G3i.tex | 14 ++--- .../sequent-calculus/rules-mG3i.tex | 11 ++-- .../sequent-calculus/rules-proofs.tex | 6 +-- .../sequent-calculus/translations.tex | 21 +++++--- 11 files changed, 124 insertions(+), 94 deletions(-) diff --git a/content/proof-theory/sequent-calculus/admissible-derivable.tex b/content/proof-theory/sequent-calculus/admissible-derivable.tex index dc60dd8d..da32e95e 100644 --- a/content/proof-theory/sequent-calculus/admissible-derivable.tex +++ b/content/proof-theory/sequent-calculus/admissible-derivable.tex @@ -112,7 +112,7 @@ \item \Axiom$\Gamma, !A, !B \fCenter \Delta$ \Axiom$\Gamma \fCenter \Delta, !A, !B$ \RightLabel{\LeftR{\liff}} -\BinaryInf$\Gamma \fCenter \Delta, !A \liff !B$ +\BinaryInf$!A \liff !B, \Gamma \fCenter \Delta$ \DisplayProof \item \Axiom$!A, \Gamma \fCenter \Delta, !B$ @@ -121,7 +121,8 @@ \BinaryInf$\Gamma \fCenter \Delta, !A \liff !B$ \DisplayProof \end{enumerate} -are derivable in (a)~\Log{G1c} and (b)~\Log{G3c}. +are derivable in~\Log{G1c}. In~\Log{G3c}, show that the right +rule is derivable and that both rules are admissible. \end{prob} @@ -136,9 +137,10 @@ is admissible in~\Log{G3c}. The idea of the proof is simple: suppose there is !!a{proof}~$\pi$ of the premise $\Gamma \Sequent \Delta$ in~\Log{G3c}. -Add the !!{formula}~$!A$ to the succedent of every sequent +First rename the eigenvariables of~$\pi$ so that none occurs in~$!A$, +without changing its height. Add the !!{formula}~$!A$ to the succedent of every sequent in~$\pi$. Axioms remain axioms; correct inferences are still correct -inferences. The end-!!{formula} of the new !!{proof} is $\Gamma \Sequent +inferences. The end-sequent of the new !!{proof} is $\Gamma \Sequent \Delta, !A$. The rule $\RightR{\Weakening}$ is, however, not derivable @@ -209,7 +211,8 @@ is a \Log{G3c}-!!{proof} $\pi'$ of $\Gamma \Sequent \Delta, !A$ with $\pheight{\pi'} = n$. We prove this by induction on~$n$. If $n=0$, then $\pi$ is just the axiom $\Gamma \Sequent \Delta$ (i.e., some - atomic $!C$ occurs in both $\Gamma$ and~$\Delta$), and so is $\Gamma + atomic $!C$ occurs in both $\Gamma$ and~$\Delta$, or $\lfalse$ occurs + in~$\Gamma$), and so is $\Gamma \Sequent \Delta, !A$. If $n = \pheight{\pi} >0$, the !!{proof}~$\pi$ has a last inference. We distinguish cases according to which rule was used. We give just one example: suppose the last inference was diff --git a/content/proof-theory/sequent-calculus/interpretation-rules.tex b/content/proof-theory/sequent-calculus/interpretation-rules.tex index 41861909..2eda55ba 100644 --- a/content/proof-theory/sequent-calculus/interpretation-rules.tex +++ b/content/proof-theory/sequent-calculus/interpretation-rules.tex @@ -11,7 +11,8 @@ \olsection{Interpretation of Rules} Recall the interpretation of a sequent: A sequent $\Gamma \Sequent -\Delta$ is true in !!a{structure}~$\Struct{M}$ if either at least one +\Delta$ is true in !!a{structure}~$\Struct{M}$ under a fixed variable +assignment if either at least one $!A \in \Gamma$ is false or at least one~$!A \in \Delta$ is true. We can read the logical rules of~\Log{G3c} as codifying the truth conditions for their principal !!{formula}s. Consider \RightR{\lif}. @@ -24,9 +25,11 @@ \lif !B$ is false if $!A$~is true and $!B$~is false. So $!A \lif !B \Sequent \ $ is true iff both $\ \Sequent !A$ and $!B \Sequent \ $ are true. The conclusion of \LeftR{\lif} is equivalent to the -conjunction of its premises. This pattern ensures that the rules -of~\Log{G3c} are sound (if all premises are true, the conclusion is -true). They also ensure completeness. +conjunction of its premises. This pattern ensures that the propositional rules +of~\Log{G3c} preserve truth in each fixed interpretation, and hence +are sound. The quantifier rules preserve validity, using their +eigenvariable conditions. The decomposition of truth conditions is +also used to prove completeness. In fact, the truth conditions for any truth-functional connective can be described in this way as a set of sequents. This follows from the @@ -65,8 +68,9 @@ rule.) \end{prob} -In \Log{G3c}, each connective and quantifier has exactly two rules: a -left rule and a right rule. In \Log{G1c}, however, there are two +In \Log{G3c}, each nonconstant primitive connective and each quantifier +has exactly two rules: a left rule and a right rule. Falsity is instead +governed by its axiom. In \Log{G1c}, however, there are two \LeftR{\land} and two \RightR{\lor} rules. The reason is that Gentzen's original system~\Log{LK}, on which \Log{G1c} is modeled, had a variant~\Log{LJ} for an important non-classical logic, viz., @@ -76,24 +80,25 @@ impossible to use the \RightR{\lor} rule of~\Log{G3c}, as its premise contains both $!A$ and~$!B$ in the succedent. Gentzen thus used a pair of \RightR{\lor} rules for \Log{LJ}, and used the same for~\Log{LK}. -The intuitionistic version~\Log{G1i} similarly is just~\Log{G1c} with -all succedents restricted to at most one !!{formula}. (\Log{G3c} also +The intuitionistic version~\Log{G1i} similarly restricts all succedents +to at most one !!{formula}, and changes the first premise of +$\LeftR{\lif}$ to $\Gamma \Sequent !A$, without the side succedent. (\Log{G3c} also has an intuitionistic version, but it some of its rules differ from the corresponding rules in~\Log{G3c}. For instance, it, too, uses a pair of \RightR{\lor} rules.) That the structural rules of~\Log{G1c} are sound is easy to see. For instance, if $\Gamma \Sequent \Delta$ contains a false !!{formula} on -the right or a true !!{formula} on the left, so does $\Gamma \Sequent +the left or a true !!{formula} on the right, so does $\Gamma \Sequent \Delta, !A$: the same one, whether $!A$ is true or false is irrelevant. So if the premise of~\RightR{\Weakening} is true, so is its conclusion. Note that here the converse is not true. The conclusion may be true because $!A$ is true, and then the premise is not guaranteed to be true. -Why have structural rules at all? Contraction (\RightR{\Contraction}, -\LeftR{\Contraction}) is needed for instance to !!{prove} $\ \Sequent !A -\lor \lnot !A$. If you start with $!A \Sequent !A$ you first get +Why have structural rules at all? For a predicate atom~$!A$, +contraction (\RightR{\Contraction}, \LeftR{\Contraction}) is needed +for instance to !!{prove} $\ \Sequent !A \lor \lnot !A$. If you start with $!A \Sequent !A$ you first get $\Sequent !A, \lnot !A$ by~\RightR{\lnot}. Then you can use the two versions of \RightR{\lor} in succession, once to get $!A \lor \lnot !A$ from $\lnot !A$, and once to get $!A \lor \lnot !A$ from~$!A$. @@ -113,11 +118,11 @@ \DisplayProof \] There are in fact valid sequents which you could not !!{prove} -in~\Log{G1c} without weakening or contraction. For instance, -!!a{proof} of the sequent $!A \Sequent !B \lif !A$ in~\Log{G1c} has to -end in \RightR{\lif} (since only $!B \lif !A$ can be principal), and -that requires $!B, !A \Sequent !A$ as a premise. This, in turn, -requires \LeftR{\Weakening} to get it from the axiom $!A \Sequent !A$: +in~\Log{G1c} without weakening or contraction. For instance, take $!A$ and~$!B$ to be distinct atomic !!{formula}s. +A proof of $!A \Sequent !B \lif !A$ using only axioms and logical rules +would have to end in \RightR{\lif}, with $!B, !A \Sequent !A$ as a +premise. This premise is neither an axiom nor the conclusion of a +logical rule. With \LeftR{\Weakening}, we obtain the following proof: \[ \Axiom$!A \fCenter !A$ \RightLabel{\LeftR{\Weakening}} diff --git a/content/proof-theory/sequent-calculus/introduction.tex b/content/proof-theory/sequent-calculus/introduction.tex index 7c358b19..038bd98c 100644 --- a/content/proof-theory/sequent-calculus/introduction.tex +++ b/content/proof-theory/sequent-calculus/introduction.tex @@ -49,7 +49,8 @@ the empty conjunction to be~$\ltrue$) and $!D$~be the disjunction of the !!{formula}s in~$\Delta$ (taking the empty disjunction to be~$\lfalse$). Then the sequent $\Gamma \Sequent \Delta$ is true (in -some structure~$\Struct{M}$) iff $!G \lif !D$ is true. In classical +some structure~$\Struct{M}$ under a fixed variable assignment) iff +$!G \lif !D$ is true. In classical logic, this amounts to the same as saying that either one of the !!{formula}s in~$\Gamma$ is false, or one of the !!{formula}s in~$\Delta$ is true. @@ -57,7 +58,7 @@ If $\Gamma$ is a multiset of !!{formula}s, we write $\Gamma, !A$ (or $!A, \Gamma$) for the result of adding $!A$ to~$\Gamma$. If $\Delta$ is also a multiset of !!{formula}s, then $\Gamma, \Delta$ is the -multiset union of the two sequences---if $\Gamma$ contains $!A$ with +multiset union of the two multisets---if $\Gamma$ contains $!A$ with \emph{multiplicity}~n (i.e., it contains $n$ copies of~$!A$) and $\Delta$ with multiplicity~$m$, then $\Gamma, \Delta$ contains $!A$ with multiplicity~$n+m$. If the multiset on one side of a sequent is @@ -88,8 +89,14 @@ called ``contraction'' (\LeftR{\Contraction}, \RightR{\Contraction}) and ``weakening'' (\LeftR{\Weakening}, \RightR{\Weakening}). +For the proof-theory calculi, $\ltrue$ abbreviates $\lnot\lfalse$ +and $!A\liff!B$ abbreviates $(!A\lif!B)\land(!B\lif!A)$. +Expand these recursively before applying rules or computing syntactic +measures or subformulas. + The systems \Log{G1c} and \Log{G3c} happen to be sound and complete -for classical logic. In other words, every sequent !!{provable} in +for classical first-order logic without identity, restricted to sequents +of !!{sentence}s. In other words, every such sequent !!{provable} in these systems is true in every !!{structure}, and every sequent that is true in every !!{structure} has !!a{proof}. So the question \emph{whether} a sequent has !!a{proof} can also be answered by other diff --git a/content/proof-theory/sequent-calculus/invertibility.tex b/content/proof-theory/sequent-calculus/invertibility.tex index 867eedbf..bc58dc17 100644 --- a/content/proof-theory/sequent-calculus/invertibility.tex +++ b/content/proof-theory/sequent-calculus/invertibility.tex @@ -21,9 +21,9 @@ \DisplayProof \] is \emph{invertible} in a system if, whenever $\Proves S$ then -$\Proves[h_i] S_i$ for $i = 1$, \dots,~$n$. It is +$\Proves S_i$ for $i = 1$, \dots,~$n$. It is \emph{!!{height}-preserving invertible} (or \emph{!!{hp}-invertible}) -in a system if, whenever $\Proves_n S$ then $\Proves[n] S_i$ for $i = +in a system if, for every $h$, whenever $\Proves[h] S$ then $\Proves[h] S_i$ for $i = 1$, \dots,~$n$. \end{defn} @@ -71,7 +71,9 @@ \pheight{\pi}$. We do this by induction on $n = \pheight{\pi}$. If $n = 0$, $\pi$ consists of just an axiom: $!A \land !B, \Gamma -\Sequent \Delta$. In \Log{G3c}, axioms are of the form $!C, \Gamma +\Sequent \Delta$. If $\lfalse$ occurs in~$\Gamma$, the sequent $!A, !B, \Gamma +\Sequent \Delta$ is again a bottom-left axiom. Otherwise the axiom is +of the form $!C, \Gamma \Sequent \Delta, !C$ with $!C$ atomic. In other words, $!C$ can't be $!A \land !B$. If $!A \land !B, \Gamma \Sequent \Delta$ is an axiom, then some atomic $!C$ must be !!a{element} of both $\Gamma$ @@ -115,7 +117,7 @@ Here $!C \lif !D$ on the left is principal, and the context on the left is $!A \land !B, \Gamma'$ (i.e., $\Gamma = \Gamma', !C \lif !D$). The inductive hypothesis yields !!{proof}s $\pi_1'$ and $\pi_2'$ of -$!A \land !B, \Gamma' \Sequent \Delta, !C$ and $!A \land !B, \Gamma', +$!A, !B, \Gamma' \Sequent \Delta, !C$ and $!A, !B, \Gamma', !D \Sequent \Delta$, respectively. These two sequents can again serve as premises for the \LeftR{\lif} rule to get~$\pi'$: \[ @@ -169,7 +171,7 @@ ending in it has $\pheight{\pi_1} < \pheight{\pi}$. Moreover, the eigenvariable condition gives us that $a$ does not occur in $\Gamma$, $\Delta$, or $\lforall[x][!A(x)]$. Since we may assume that - $\pi_1$ is regular, $\Subst{\pi_1}{c}{a}$ is !!a{proof} of the same + $\pi_1$ is regular and that its eigenvariables are distinct from $a$ and~$c$, $\Subst{\pi_1}{c}{a}$ is !!a{proof} of the same !!{height} of $\Gamma \Sequent \Delta, !A(c)$ by \olref[qua]{lem:subst-regular}. @@ -230,10 +232,11 @@ If $n=0$, $\pi$ is just an axiom. But if $\Gamma \Sequent \Delta, !A, !A$ is an axiom of~\Log{G3c}, so is $\Gamma \Sequent \Delta, !A$: -either some atomic~$!C$ is !!a{element} of both $\Gamma$ and~$\Delta$, -or $!A$ is atomic and !!a{element} of~$\Gamma$. The same reasoning -applies if the end-sequent is $!A, !A, \Gamma \Sequent -\Delta$. +either $\lfalse$ occurs in~$\Gamma$, some atomic~$!C$ is !!a{element} +of both $\Gamma$ and~$\Delta$, or $!A$ is atomic and !!a{element} +of~$\Gamma$. The same reasoning applies if the end-sequent is +$!A, !A, \Gamma \Sequent \Delta$: contracting two left occurrences +of~$\lfalse$ still leaves a bottom-left axiom. If $n>0$, $\pi$ ends in some rule~$R$. If $!A$ is not principal in this last inference, we can obtain !!a{proof}~$\pi'$ as in the proof @@ -335,7 +338,7 @@ By \olref{lem:invert-quant}, there is !!a{proof}~$\pi_1'$ with !!{height} $\le \pheight{\pi_1}$ of $\Gamma \fCenter \Delta, !B(c), !B(a)$ for any~$c$ not occuring in $\Gamma \fCenter \Delta, -\lforall[x][!B(x)], !B(a)$. We may assume that $\pi_1'$ is regular; so +\lforall[x][!B(x)], !B(a)$. We may assume that $\pi_1'$ is regular and has no eigenvariable equal to $a$ or~$c$; so by \olref[qua]{lem:subst-regular} the !!{proof} $\Subst{\pi_1'}{a}{c}$ is !!a{proof} of $\Gamma \fCenter \Delta, !B(a), !B(a)$ also of !!{height} $\le \pheight{\pi_1}$. Now the inductive diff --git a/content/proof-theory/sequent-calculus/proof-examples.tex b/content/proof-theory/sequent-calculus/proof-examples.tex index 5229ee7b..ee2d8f31 100644 --- a/content/proof-theory/sequent-calculus/proof-examples.tex +++ b/content/proof-theory/sequent-calculus/proof-examples.tex @@ -12,7 +12,7 @@ To give !!{proof}s of sequents it is typically convenient to work your way upwards from the end-sequent by selecting !!a{formula} in it as -the active !!{formula} and writing the premises of the corresponding +the principal !!{formula} and writing the premises of the corresponding rule on top of the sequent, then repeating the process until it leads to axioms. For instance, suppose we want to prove the sequent \[(!C \land !D) \lif !E \Sequent !C \lif (!D \lif !E)\] @@ -23,14 +23,14 @@ \RightLabel{\RightR{\lif}} \UnaryInf$ \Gamma \fCenter \Delta, !A \lif !B $ \DisplayProof\] -suggests we should take $\Gamma = \{!C \lif (!D \lif !E)\}$, $\Delta = +suggests we should take $\Gamma = \{(!C \land !D) \lif !E\}$, $\Delta = \emptyset$, $!A \ident !C$ and $!B \ident !D \lif !E$. So the last inference of a proof could be \[\Axiom$ !C, (!C \land !D) \lif !E \fCenter !D \lif !E$ \RightLabel{\RightR{\lif}} \UnaryInf$(!C \land !D) \lif !E \fCenter !C \lif (!D \lif !E)$ \DisplayProof\] -If we repeat this idea, focusing on $!D \lif !E$ as active formula, we +If we repeat this idea, focusing on $!D \lif !E$ as principal formula, we generate \[\Axiom$ !D, !C, (!C \land !D) \lif !E \fCenter !E$ \RightLabel{\RightR{\lif}} @@ -62,7 +62,7 @@ \RightLabel{\RightR{\land}} \BinaryInf$!D, !C \fCenter !E, !C \land !D$ \Axiom$!D, !C, !E \fCenter !E$ -\RightLabel{\RightR{\lif}} +\RightLabel{\LeftR{\lif}} \BinaryInf$ !D, !C, (!C \land !D) \lif !E \fCenter !E$ \RightLabel{\RightR{\lif}} \UnaryInf$!C, (!C \land !D) \lif !E \fCenter !D \lif !E$ @@ -104,7 +104,7 @@ \BinaryInf$!D, !C \fCenter !E, !C \land !D$ \Axiom$!E \fCenter !E$ \RightLabel{\LeftR{\Weakening}} -\UnaryInf$!C, !E \fCenter !C$ +\UnaryInf$!C, !E \fCenter !E$ \RightLabel{\LeftR{\Weakening}} \UnaryInf$!D, !C, !E \fCenter !E$ \RightLabel{\LeftR{\lif}} @@ -121,15 +121,16 @@ result will still be a !!{proof} in~\Log{G1c}. The proof in \Log{G1c} is \emph{schematic}. -In \Log{G3c}, axioms are sequents of the form $!A, \Gamma \Sequent -\Delta, !A$ where $!A$ must be atomic. So although $!D, !C \Sequent +In \Log{G3c}, the identity axioms are sequents of the form $!A, \Gamma \Sequent +\Delta, !A$ where $!A$ must be atomic (the other axioms are the sequents +$\lfalse, \Gamma \Sequent \Delta$). So although $!D, !C \Sequent !E, !C$ looks like an axiom of \Log{G3c} ($\Gamma = \{!D\}$; $\Delta = -\{!E\}$), it is only \emph{really} an axiom if $!C$ in fact is atomic. -Our proof fragment is only a complete proof in \Log{G3c} if $!C$, +\{!E\}$), it is certainly an axiom if $!C$ in fact is atomic. +Our proof fragment is a complete proof in \Log{G3c} if $!C$, $!D$, and $!E$ are atomic !!{formula}s. Although we haven't, strictly speaking, shown that -\[\Log{G1c} \Proves (!C \land !D) \lif !E \fCenter !C \lif (!D \lif +\[\Log{G3c} \Proves (!C \land !D) \lif !E \fCenter !C \lif (!D \lif !E),\] in practice this is all we need to do (and can do). That's because every sequent of the form $!A, \Gamma \Sequent \Delta, !A$ is provable in \Log{G3c}, even if $!A$ itself is not atomic. We can show @@ -139,17 +140,17 @@ The \emph{depth}~$\depth{!A}$ of !!a{formula} is defined as follows: \begin{enumerate} \item If $!A$ is atomic, $\depth{!A} = 0$. - \item If $!A \ident \lnot !B$, $!A \ident \lforall[x][A]$, or - $!A \ident \lexists[x][A]$, then $\depth{!A} = \depth{!B} + 1$. + \item If $!A \ident \lnot !B$, $!A \ident \lforall[x][!B]$, or + $!A \ident \lexists[x][!B]$, then $\depth{!A} = \depth{!B} + 1$. \item If $!A \ident (!B \land !C)$, $(!B \lor !C)$, or $(!B \lif !C)$, then $\depth{!A} = \max(\depth{!B},\depth{!C}) + 1$. \end{enumerate} \end{defn} It is not hard to prove that $\depth{A(x)} = \depth{A(t)}$ for any -term~$t$. The important fact for us is that in any rule, the depth of -the principal !!{formula} is always greater than the depth of the -active !!{formula}s. For instance, we have: +term~$t$. The important fact for us is that in any logical rule, the depth of +the principal !!{formula} is greater than the depth of the +active !!{formula}s other than retained copies of the principal !!{formula}. For instance, we have: \begin{align*} \depth{P(x)} = \depth{P(a)} & = 0,\\ \depth{\lforall[x][P(x)]} & = 1,\\ @@ -168,7 +169,7 @@ atomic and $!A \Sequent !A$ already is a !!{proof} in~\Log{G1c} of the required form. If $\depth{!A} > 0$, $!A$ is constructed from !!{formula}s of lower depth, e.g, $!A \ident \lnot !B$, $!A \ident - (!B \land !C)$, or $!A \ident \lforall[x][A(x)]$. The inductive + (!B \land !C)$, or $!A \ident \lforall[x][!B(x)]$. The inductive hypothesis is that for all $!D$ with $\depth{!D} < \depth{!A}$, $\Log{G1c} \Proves !D \Sequent !D$ from atomic axioms. @@ -214,9 +215,9 @@ \RightLabel{\LeftR{\land}} \UnaryInf$!B \land !C, !B \land !C \fCenter !C$ \RightLabel{\RightR{\land}} - \BinaryInf$!B \land !C \fCenter !B \land !C$ + \BinaryInf$!B \land !C, !B \land !C \fCenter !B \land !C$ \RightLabel{\LeftR{\Contraction}} - \UnaryInf$!B \land !C \fCenter !B$ + \UnaryInf$!B \land !C \fCenter !B \land !C$ \DisplayProof \] @@ -260,15 +261,16 @@ \] in the case where $!A \ident \lnot !B$. However, there are sequent systems in which this wouldn't have worked. The intuitionistic -sequent calculus \Log{G1i} is like \Log{G1c}, except it restricts all -sequents to at most one !!{formula} on the right side of a sequent. If -$\Delta = \emptyset$, then the first !!{proof} would also be -!!a{proof} in~\Log{G1i}, but the second would not be, since +sequent calculus \Log{G1i} restricts all sequents to at most one +!!{formula} on the right. It also changes the first premise of +$\LeftR{\lif}$ to $\Gamma \Sequent !A$, without the side succedent. If +the sub-!!{proof}~$\pi_1$ has at most one !!{formula} in every succedent, +then the first !!{proof} would also be !!a{proof} in~\Log{G1i}, but the second would not be, since one sequent contains both $!B$ and~$\lnot !B$ on the right. Note that even in \Log{G1c} we could not have used an alternate order of rules in the case where $!A \ident \lforall[x][!B(x)]$. The -following is \emph{not} !!a{proof} +following is \emph{not} !!a{proof} when $x$ occurs free in~$!B(x)$ \[ \AxiomC{} \RightLabel{$\pi_1$} @@ -279,7 +281,7 @@ \UnaryInf$\lforall[x][!B(x)] \fCenter \lforall[x][!B(x)]$ \DisplayProof \] -since the eigenvariable condition on~$\RightR{\lforall}$ is violated. +since then the eigenvariable condition on~$\RightR{\lforall}$ is violated. \begin{prop}\ollabel{prop:G3c-axioms} Any sequent of the form $!A, \Gamma @@ -299,7 +301,7 @@ is the case for $!A \ident (!B \land !C)$. We use the inductive hypothesis twice: once for $!D = !B$, $\Pi = !C, \Gamma$, and $\Lambda = \Delta$ to get !!a{proof}~$\pi_1$ of $!B, !C, \Gamma \Sequent -\Delta, !B$, and once for $!D = !C$, $\Pi = !B, \Lambda$, and $\Lambda +\Delta, !B$, and once for $!D = !C$, $\Pi = !B, \Gamma$, and $\Lambda = \Delta$ to get !!a{proof}~$\pi_2$ of $!B, !C, \Gamma \Sequent \Delta, !C$. Here is the !!{proof} of~$!B \land !C, \Gamma \Sequent \Delta, !B \land !C$: @@ -319,7 +321,7 @@ \DisplayProof \] -For $!A \ident \lforall[x][!B(x)]$, pick !!a{constant} not +For $!A \ident \lforall[x][!B(x)]$, pick !!a{constant}~$c$ not in~$\lforall[x][!B(x)]$, $\Gamma$, or~$\Delta$. Apply the inductive hypothesis for $!D = !B(c)$, $\Pi = \lforall[x][!B(x)], \Gamma$ and $\Lambda = \Delta$. This gives !!a{proof}~$\pi_1$ of $!B(c), diff --git a/content/proof-theory/sequent-calculus/quantifiers.tex b/content/proof-theory/sequent-calculus/quantifiers.tex index ae8b481c..5180ad01 100644 --- a/content/proof-theory/sequent-calculus/quantifiers.tex +++ b/content/proof-theory/sequent-calculus/quantifiers.tex @@ -29,7 +29,7 @@ \begin{lem}\ollabel{lem:subst-regular} If $\pi$ is regular, ends in $\Gamma \Sequent \Delta$, $c$ is !!a{constant} not used as an -eigenvariable in~$\pi$, and $t$~is a term not containing any +eigenvariable in~$\pi$, and $t$~is a closed term not containing any eigenvariables of~$\pi$, then $\Subst{\pi}{t}{c}$ resulting from~$\pi$ by replacing every occurrence of~$c$ by~$t$ is a regular !!{proof}. The end-sequent of $\Subst{\pi}{t}{c}$ is $\Subst{\Gamma}{t}{c} @@ -77,7 +77,7 @@ \AxiomC{} \RightLabel{$\pi'$} \Deduce$!A(s(c),c), \lforall[x][!A(x,c)], \Gamma(c) \fCenter \Delta'(c)$ - \RightLabel{\RightR{\lforall}} + \RightLabel{\LeftR{\lforall}} \UnaryInf$\lforall[x][!A(x,c)], \Gamma(c) \fCenter \Delta'(c)$ \DisplayProof \] @@ -89,7 +89,7 @@ \AxiomC{} \RightLabel{$\Subst{\pi'}{t}{c}$} \Deduce$!A(s(t),t), \lforall[x][!A(x,t)], \Gamma(t) \fCenter \Delta'(t)$ - \RightLabel{\RightR{\lforall}} + \RightLabel{\LeftR{\lforall}} \UnaryInf$\lforall[x][!A(x,t)], \Gamma(t) \fCenter \Delta'(t)$ \DisplayProof \] @@ -101,8 +101,8 @@ (or two regular !!{proof}s in the case of two-premise rules). The new sequent differs from the end-sequent of $\pi$ only in that $c$ was replaced by the term~$t$. Moreover, the eigenvariables of $\pi$ - and Since $t$ was assumed not to contain an eigenvariable of~$\pi$ - and $\Subst{\pi}{t}{c}$ are the same, the new end-sequent does not + and $\Subst{\pi}{t}{c}$ are the same. Since $t$ was assumed not to + contain an eigenvariable of~$\pi$, the new end-sequent does not contain an eigenvariable of $\Subst{\pi}{t}{c}$. Consequently, $\Subst{\pi}{t}{c}$ is regular. \end{proof} @@ -120,10 +120,10 @@ another inference nor does it occur anywhere in~$\pi$ except the immediate sub-!!{proof} of the inference, and \emph{dirty} otherwise. Let $n$ be the number of dirty eigenvariable inferences in~$\pi$. We -show, by induction on~$n$, that $\pi$~can be transformed into the +show, by strong induction on~$n$, that $\pi$~can be transformed into the required regular !!{proof}~$\pi'$. If $n=0$, all eigenvariable inferences in~$\pi$ are clean, so and $\pi$ is regular, and there is -nothing to prove. Otherwise, pick a highest eigenvariable inference, +nothing to prove. Otherwise, pick a highest dirty eigenvariable inference, say \RightR{\lforall}. The sub-!!{proof}~$\pi_1$ of~$\pi$ ending in it is of the form \[ @@ -136,7 +136,7 @@ \] Note that as $c$ is an eigenvariable, it does not occur in~$\Gamma$, $\Delta$, or $\lforall[x][!A(x)]$. The proof $\pi_2$ is regular, since -it contains no eigenvariable inferences at all. Let $a$ be +all its eigenvariable inferences are clean in~$\pi$. Let $a$ be !!a{constant} not occuring in~$\pi$. By \olref{lem:subst-regular}, $\Subst{\pi_2}{a}{c}$ is a regular proof of $\Gamma \fCenter \Delta, !A(a)$, to which we can apply~$\RightR{\lforall}$. If we replace $\pi_1$ in~$\pi$ by the proof $\pi_1'$, @@ -150,7 +150,7 @@ \] we have replaced a dirty eigenvariable inference by a clean one, and the only difference is the replacement of the eigenvariable $c$ -by~$a$. The resulting proof has $n-1$ dirty eigenvariable inferences, +by~$a$. The resulting proof has at most $n-1$ dirty eigenvariable inferences, and the result follows from the inductive hypothesis. \end{proof} diff --git a/content/proof-theory/sequent-calculus/rules-G1i.tex b/content/proof-theory/sequent-calculus/rules-G1i.tex index 1d799abf..53d4fa3d 100644 --- a/content/proof-theory/sequent-calculus/rules-G1i.tex +++ b/content/proof-theory/sequent-calculus/rules-G1i.tex @@ -108,9 +108,9 @@ $\RightR{\forall}$ and $\LeftR{\exists}$, the !!{constant}~$a$ must not occur in the conclusion sequent. $\Gamma$ is a multisets of !!{formula}s, and $\Delta$ may be empty or contain a single -!!{formula}. There is no \RightR{\Contraction} rule. \Log{G1m} is -\Log{G1i} without~\RightR{\Weakening} and without axioms $\lfalse, -\Gamma \Sequent \Delta$.} +!!{formula}. There is no \RightR{\Contraction} rule. For \Log{G1m}, use nonempty succedents and read $\lnot !A$ +as $!A\lif\lfalse$, omitting both primitive negation rules. +Its remaining rules are those of \Log{G1i} without~\RightR{\Weakening} and without the axiom $\lfalse \Sequent \quad$.} \ollabel{tab:G1i} \end{table} diff --git a/content/proof-theory/sequent-calculus/rules-G3i.tex b/content/proof-theory/sequent-calculus/rules-G3i.tex index c7d950c1..b67b4c3e 100644 --- a/content/proof-theory/sequent-calculus/rules-G3i.tex +++ b/content/proof-theory/sequent-calculus/rules-G3i.tex @@ -39,14 +39,14 @@ \DisplayProof & \begin{tabular}[t]{@{}r@{}} -\Axiom$\Gamma \fCenter \Delta, !A$ +\Axiom$\Gamma \fCenter !A$ \RightLabel{\RightR{\lor}} -\UnaryInf$ \Gamma \fCenter \Delta, !A \lor !B$ +\UnaryInf$ \Gamma \fCenter !A \lor !B$ \DisplayProof \\[3ex] -\Axiom$ \Gamma \fCenter \Delta, !B$ +\Axiom$ \Gamma \fCenter !B$ \RightLabel{\RightR{\lor}} -\UnaryInf$ \Gamma \fCenter \Delta, !A \lor !B$ +\UnaryInf$ \Gamma \fCenter !A \lor !B$ \DisplayProof\\[3ex] \end{tabular} \\[4ex] @@ -86,8 +86,10 @@ not occur in the conclusion sequent. $\Gamma$ is a multisets of !!{formula}s, and $\Delta$ may be empty or contain a single !!{formula}. In axioms, the !!{formula}~$!C$ must be atomic. -\Log{G1m} is \Log{G1i} without axioms $\lfalse, \Gamma \Sequent -\Delta$.} +The minimal calculus \Log{G3m} uses the nonempty-succedent +fragment of \Log{G3i}, treats $\lnot !A$ as $!A\lif\lfalse$, +and omits the primitive negation rules and the falsity axioms +$\lfalse,\Gamma\Sequent\Delta$.} \ollabel{tab:G3i} \end{table} diff --git a/content/proof-theory/sequent-calculus/rules-mG3i.tex b/content/proof-theory/sequent-calculus/rules-mG3i.tex index a6ad463a..d85242c4 100644 --- a/content/proof-theory/sequent-calculus/rules-mG3i.tex +++ b/content/proof-theory/sequent-calculus/rules-mG3i.tex @@ -61,7 +61,7 @@ & \Axiom$ \Gamma \fCenter !A(a) $ \RightLabel{\RightR{\lforall}} -\UnaryInf$ \Gamma \fCenter \lforall[x][!A(x)]$ +\UnaryInf$ \Gamma \fCenter \Delta, \lforall[x][!A(x)]$ \DisplayProof \\[4ex] \Axiom$ !A(a), \Gamma \fCenter \Delta $ @@ -78,10 +78,11 @@ logic. In $\RightR{\forall}$ and $\LeftR{\exists}$, the !!{constant}~$a$ must not occur in the conclusion sequent. $\Gamma$~and $\Delta$ are multisets of !!{formula}s. In axioms, the -!!{formula}~$!C$ must be atomic. \Log{mG1m} is -\Log{mG1i} without axioms $\lfalse, -\Gamma \Sequent \Delta$.} -\ollabel{tab:G3c} +!!{formula}~$!C$ must be atomic. The minimal calculus \Log{mG3m} uses the fragment of +\Log{mG3i} with nonempty succedent multisets, treats $\lnot !A$ +as $!A\lif\lfalse$, and omits the primitive negation rules and +the falsity axioms $\lfalse,\Gamma\Sequent\Delta$.} +\ollabel{tab:mG3i} \end{table} \end{document} \ No newline at end of file diff --git a/content/proof-theory/sequent-calculus/rules-proofs.tex b/content/proof-theory/sequent-calculus/rules-proofs.tex index 7dffa212..0568b61a 100644 --- a/content/proof-theory/sequent-calculus/rules-proofs.tex +++ b/content/proof-theory/sequent-calculus/rules-proofs.tex @@ -127,8 +127,8 @@ It is often necessary to measure the complexity of !!{proof}s as a natural number. We could simply count the number of sequents in !!a{proof}, but often a more useful measure is the !!{height} of -!!a{proof}: it is the maximal number of sequents between the -end-sequent and an initial sequent. We can also give an inductive +!!a{proof}: it is the maximal number of inference steps from the +end-sequent to an initial sequent. We can also give an inductive definition. \begin{defn} @@ -153,7 +153,7 @@ we take $!C \ident !E$, $\Gamma = \{!D\}$ and $\Delta = \emptyset$ in $!C, \Gamma \Sequent \Delta, !C$ we get exactly the sequent $!D, !E \Sequent !E$. (Remember that we are dealing with multi\emph{sets} and -so $!D, !E \Sequent !E$ and $!E, !D \Sequent !D$ are the same +so $!D, !E \Sequent !E$ and $!E, !D \Sequent !E$ are the same sequent.) Since $!D, !E \Sequent !D$ is an instance of an axiom of~\Log{G3c}, it diff --git a/content/proof-theory/sequent-calculus/translations.tex b/content/proof-theory/sequent-calculus/translations.tex index 2b2a98ac..8d624dd0 100644 --- a/content/proof-theory/sequent-calculus/translations.tex +++ b/content/proof-theory/sequent-calculus/translations.tex @@ -30,7 +30,7 @@ If $n = 0$, then $\pi$ is an axiom. The axiom $\lfalse \Sequent \quad$ is also an axiom in~\Log{G3c} (take the context $\Gamma, - \Delta$ to be empty). In \Log{G3c}, axioms $!A \Sequent !A$ with + \Delta$ to be empty). In \Log{G1c}, axioms $!A \Sequent !A$ with arbitrary, not just atomic~$!A$ are allowed. But we proved in \olref[ex]{prop:G3c-axioms} that all such sequents are !!{provable} in~\Log{G3c}. @@ -40,10 +40,12 @@ in~\Log{G3c}, i.e., that the immediate sub-!!{proof}s have translations in~\Log{G3c}. If the rule~$R$ is also a rule in \Log{G3c}, we apply it to the translated !!{proof}s of the premises. - For those rules that are no also rules of~\Log{G3c}, we have already - shown that they are at least admissible. So, if rule~$R$ was - $\LeftR{\land}$ or $\RightR{\lor}$, apply - \olref[adm]{prop:lor-G3-adm}. If it was a weakening rule, apply + For rules that are not also rules of~\Log{G3c}, we use admissible + weakening. If rule~$R$ was $\LeftR{\land}$ or $\RightR{\lor}$, first + add the missing active conjunct or disjunct by + \olref[adm]{prop:weak-G3c-adm}, then apply the \Log{G3c} rule. + For $\LeftR{\lforall}$ or $\RightR{\lexists}$, first add the retained + principal !!{formula} by weakening, then apply the \Log{G3c} rule. If it was a weakening rule, apply \olref[adm]{prop:weak-G3c-adm}. If it was a contraction rule, apply \olref[inv]{prop:G3c-cont-adm}. \end{proof} @@ -75,8 +77,9 @@ If $\pi$ ends in a rule~$R$, the inductive hypothesis yields !!{proof}s in \Log{G1c} of the premises, and we can apply the same rule~$R$ to those !!{proof}s. The exceptions are the rules - \LeftR{\land} and \RightR{\lor}, which differ between \Log{G1c} - and~\Log{G3c}. The \Log{G3c} versions are derivable in \Log{G1c} as follows: + \LeftR{\land}, \RightR{\lor}, \LeftR{\lforall}, and \RightR{\lexists}, + which differ between \Log{G1c} and~\Log{G3c}. The first two + \Log{G3c} rules are derivable in \Log{G1c} as follows: \[ \Axiom$!A, !B, \Gamma \fCenter \Delta$ \RightLabel{\LeftR{\land}} @@ -96,6 +99,10 @@ \UnaryInf$\Gamma \fCenter \Delta, !A \lor !B$ \DisplayProof \] + For \LeftR{\lforall} and \RightR{\lexists}, apply the \Log{G1c} rule + with the retained principal !!{formula} as part of the context. + This produces two copies of that !!{formula}; one application of + the corresponding contraction rule yields the required conclusion. \end{proof} \end{document} \ No newline at end of file