Source and provenance

All fifteen authority files and all 1,974 lines are shown exactly and packaged byte-for-byte. Four printed anomalies at seven anchors remain unchanged and are disclosed rather than silently corrected. Open the exact accepted projected chapter transcript (SHA-256 f339a160535ba9a2f38803b95e4365b6c61e3d889b3392cb9307528e16b61de0). Technical source commit: 9620cc73f9c8e0ad003c514a5d3748f29611c4c0. AI production model: OpenAI Codex gpt-5.6-sol, Ultra. Source authorship remains with the credited Open Logic Project contributors.

content/first-order-logic/sequent-calculus/sequent-calculus.tex

56 lines; SHA-256 8cbb6df83670a2586d10ef405c78ed4f75102f8d63903eef93e7ac2b8ea3b603. Open the byte-exact preserved source file.

  1. % Part: first-order-logic
  2. % Chapter: sequent-calculus
  3. \documentclass[../../../include/open-logic-chapter]{subfiles}
  4. \begin{document}
  5. \iftag{FOL}
  6. {\olchapter{fol}{seq}{The Sequent Calculus}}
  7. {\olchapter{pl}{seq}{The Sequent Calculus}}
  8. \begin{editorial}
  9. This chapter presents Gentzen's standard sequent calculus LK for
  10. classical first-order logic. It could use more examples and
  11. exercises. To include or exclude material relevant to the sequent
  12. calculus as a proof system, use the ``prfLK'' tag.
  13. \end{editorial}
  14. \olimport{rules-and-proofs}
  15. \olimport{propositional-rules}
  16. \iftag{FOL}{%
  17. \olimport{quantifier-rules}
  18. }{}
  19. \olimport{structural-rules}
  20. \olimport{derivations}
  21. \olimport{proving-things}
  22. \iftag{FOL}{%
  23. \olimport{proving-things-quant}
  24. }{}
  25. \olimport{proof-theoretic-notions}
  26. \olimport{provability-consistency}
  27. \olimport{provability-propositional}
  28. \iftag{FOL}{%
  29. \olimport{provability-quantifiers}
  30. }{}
  31. \olimport{soundness}
  32. \iftag{FOL}{%
  33. \olimport{identity}
  34. \olimport{soundness-identity}
  35. }{}
  36. \OLEndChapterHook
  37. \end{document}

content/first-order-logic/sequent-calculus/rules-and-proofs.tex

74 lines; SHA-256 a598b850cb425035d0c7a01b88bb491502c840fc76c2bd3dbe7e2dda5487d706. Open the byte-exact preserved source file.

  1. % Part: first-order-logic
  2. % Chapter: sequent-calculus
  3. % Section: rules-and-proofs
  4. \documentclass[../../../include/open-logic-section]{subfiles}
  5. \begin{document}
  6. \iftag{FOL}
  7. {\olfileid{fol}{seq}{rul}}
  8. {\olfileid{pl}{seq}{rul}}
  9. \olsection{Rules and \usetoken{P}{derivation}}
  10. For the following, let $\Gamma, \Delta, \Pi, \Lambda$ represent finite
  11. sequences of !!{sentence}s.
  12. \begin{defn}[Sequent]
  13. A \emph{sequent} is an expression of the form
  14. \[
  15. \Gamma \Sequent \Delta
  16. \]
  17. where $\Gamma$ and $\Delta$ are finite (possibly empty) sequences of
  18. !!{sentence}s of the language $\Lang L$. $\Gamma$ is called the
  19. \emph{antecedent}, while $\Delta$ is the \emph{succedent}.
  20. \end{defn}
  21. \begin{explain}
  22. The intuitive idea behind a sequent is: if all of the !!{sentence}s in
  23. the antecedent hold, then at least one of the !!{sentence}s in the
  24. succedent holds. That is, if $\Gamma = \tuple{!A_1, \dots, !A_m}$ and
  25. $\Delta = \tuple{!B_1, \dots, !B_n}$, then $\Gamma \Sequent \Delta$
  26. holds iff
  27. \[
  28. (!A_1 \land \cdots \land !A_m) \lif (!B_1 \lor \cdots \lor
  29. !B_n)
  30. \]
  31. holds. There are two special cases: where $\Gamma$ is empty and when
  32. $\Delta$~is empty. When $\Gamma$ is empty, i.e., $m = 0$, $\quad
  33. \Sequent \Delta$ holds iff $!B_1 \lor \dots \lor !B_n$ holds. When
  34. $\Delta$ is empty, i.e., $n = 0$, $\Gamma \Sequent \quad$ holds iff
  35. $\lnot(!A_1 \land \dots \land !A_m)$ does. We say a sequent is valid
  36. iff the corresponding !!{sentence} is valid.
  37. \end{explain}
  38. If $\Gamma$ is a sequence of !!{sentence}s, we write $\Gamma, !A$ for
  39. the result of appending $!A$ to the right end of~$\Gamma$ (and $!A,
  40. \Gamma$ for the result of appending $!A$ to the left end
  41. of~$\Gamma$). If $\Delta$ is a sequence of !!{sentence}s also, then $\Gamma,
  42. \Delta$ is the concatenation of the two sequences.
  43. \begin{defn}[Initial Sequent]
  44. An \emph{initial sequent} is a sequent
  45. \iftag{prvFalse,prvTrue}{of one of the following forms:
  46. \begin{enumerate}
  47. \item $!A \Sequent !A$
  48. \tagitem{prvTrue}{$\quad \Sequent \ltrue$}{}
  49. \tagitem{prvFalse}{$\lfalse \Sequent \quad$}{}
  50. \end{enumerate}}
  51. {of the form $!A \Sequent !A$} for any !!{sentence} $!A$ in the language.
  52. \end{defn}
  53. !!^{derivation}s in the sequent calculus are certain trees of
  54. sequents, where the topmost sequents are initial sequents, and if a
  55. sequent stands below one or two other sequents, it must follow
  56. correctly by a rule of inference. The rules for $\Log{LK}$ are
  57. divided into two main types: \emph{logical} rules and
  58. \emph{structural} rules. The logical rules are named for the !!{main
  59. operator} of the !!{sentence} containing $!A$ and/or $!B$ in the
  60. lower sequent. Each one comes in two versions, one for inferring a
  61. sequent with the !!{sentence} containing the !!{operator} on the left,
  62. and one with the !!{sentence} on the right.
  63. \end{document}

content/first-order-logic/sequent-calculus/propositional-rules.tex

88 lines; SHA-256 2a030e59a3a3156f61ff949e10a8a1470a0be80a419851fc56821aa458092ade. Open the byte-exact preserved source file.

  1. % Part: first-order-logic
  2. % Chapter: sequent-calculus
  3. % Section: propositional-rules
  4. \documentclass[../../../include/open-logic-section]{subfiles}
  5. \begin{document}
  6. \iftag{FOL}
  7. {\olfileid{fol}{seq}{prl}}
  8. {\olfileid{pl}{seq}{prl}}
  9. \olsection{Propositional Rules}
  10. \subsection{Rules for $\lnot$}
  11. \begin{defish}
  12. \Axiom$ \Gamma \fCenter \Delta, !A $
  13. \RightLabel{\LeftR{\lnot}}
  14. \UnaryInf$ \lnot !A, \Gamma \fCenter \Delta$
  15. \DisplayProof
  16. \hfill
  17. \Axiom$!A, \Gamma \fCenter \Delta$
  18. \RightLabel{\RightR{\lnot}}
  19. \UnaryInf$ \Gamma \fCenter \Delta, \lnot !A $
  20. \DisplayProof
  21. \end{defish}
  22. \subsection{Rules for $\land$}
  23. \begin{defish}\noindent
  24. \begin{tabular}{l}
  25. \Axiom$ !A, \Gamma \fCenter \Delta$
  26. \RightLabel{\LeftR{\land}}
  27. \UnaryInf$ !A \land !B, \Gamma \fCenter \Delta$
  28. \DisplayProof
  29. \\[3ex]
  30. \Axiom$!B, \Gamma \fCenter \Delta$
  31. \RightLabel{\LeftR{\land}}
  32. \UnaryInf$!A \land !B, \Gamma \fCenter \Delta$
  33. \DisplayProof
  34. \end{tabular}
  35. \hfill
  36. \Axiom$\Gamma \fCenter \Delta, !A$
  37. \Axiom$ \Gamma \fCenter \Delta, !B$
  38. \RightLabel{\RightR{\land}}
  39. \BinaryInf$ \Gamma \fCenter \Delta, !A \land !B $
  40. \DisplayProof
  41. \end{defish}
  42. \subsection{Rules for $\lor$}
  43. \begin{defish}
  44. \Axiom$!A, \Gamma \fCenter \Delta$
  45. \Axiom$!B, \Gamma \fCenter \Delta$
  46. \RightLabel{\LeftR{\lor}}
  47. \BinaryInf$!A \lor !B, \Gamma \fCenter \Delta$
  48. \DisplayProof
  49. \hfill
  50. \begin{tabular}{r}
  51. \Axiom$\Gamma \fCenter \Delta, !A$
  52. \RightLabel{\RightR{\lor}}
  53. \UnaryInf$ \Gamma \fCenter \Delta, !A \lor !B$
  54. \DisplayProof
  55. \\[3ex]
  56. \Axiom$ \Gamma \fCenter \Delta, !B$
  57. \RightLabel{\RightR{\lor}}
  58. \UnaryInf$ \Gamma \fCenter \Delta, !A \lor !B$
  59. \DisplayProof
  60. \end{tabular}
  61. \end{defish}
  62. \subsection{Rules for $\lif$}
  63. \begin{defish}
  64. \Axiom$ \Gamma \fCenter \Delta, !A$
  65. \Axiom$ !B, \Pi \fCenter \Lambda$
  66. \RightLabel{\LeftR{\lif}}
  67. \BinaryInf$ !A \lif !B, \Gamma, \Pi \fCenter \Delta, \Lambda$
  68. \DisplayProof
  69. \hfill
  70. \Axiom$ !A, \Gamma \fCenter \Delta, !B$
  71. \RightLabel{\RightR{\lif}}
  72. \UnaryInf$ \Gamma \fCenter \Delta, !A \lif !B $
  73. \DisplayProof
  74. \end{defish}
  75. \end{document}

content/first-order-logic/sequent-calculus/quantifier-rules.tex

104 lines; SHA-256 254abc98503c7370e046c43f8fec7cf7b5e9909be2959b0f1c513bb278d85b78. Open the byte-exact preserved source file.

  1. % Part: first-order-logic
  2. % Chapter: sequent-calculus
  3. % Section: quantifier-rules
  4. \documentclass[../../../include/open-logic-section]{subfiles}
  5. \begin{document}
  6. \olfileid{fol}{seq}{qrl}
  7. \olsection{Quantifier Rules}
  8. \subsection{Rules for $\lforall$}
  9. \begin{defish}
  10. \Axiom$ !A(t), \Gamma \fCenter \Delta$
  11. \RightLabel{\LeftR{\lforall}}
  12. \UnaryInf$ \lforall[x][!A(x)],\Gamma \fCenter \Delta$
  13. \DisplayProof
  14. \hfill
  15. \Axiom$ \Gamma \fCenter \Delta, !A(a) $
  16. \RightLabel{\RightR{\lforall}}
  17. \UnaryInf$ \Gamma \fCenter \Delta, \lforall[x][!A(x)]$
  18. \DisplayProof
  19. \end{defish}
  20. In \LeftR{\lforall}, $t$ is a closed term (i.e., one without
  21. variables). In \RightR{\lforall}, $a$~is !!a{constant} which must not
  22. occur anywhere in the lower sequent of the \RightR{\lforall} rule. We
  23. call $a$ the \emph{eigenvariable} of the \RightR{\forall}
  24. inference.\footnote{We use the term ``eigenvariable'' even though $a$
  25. in the above rule is !!a{constant}. This has historical reasons.}
  26. \subsection{Rules for $\lexists$}
  27. \begin{defish}
  28. \Axiom$ !A(a), \Gamma \fCenter \Delta $
  29. \RightLabel{\LeftR{\lexists}}
  30. \UnaryInf$ \lexists[x][!A(x)], \Gamma \fCenter \Delta$
  31. \DisplayProof
  32. \hfill
  33. \Axiom$ \Gamma \fCenter \Delta, !A(t) $
  34. \RightLabel{\RightR{\lexists}}
  35. \UnaryInf$ \Gamma \fCenter \Delta, \lexists[x][!A(x)]$
  36. \DisplayProof
  37. \end{defish}
  38. Again, $t$~is a closed term, and $a$~is !!a{constant} which does not
  39. occur in the lower sequent of the \LeftR{\lexists} rule. We call $a$
  40. the \emph{eigenvariable} of the \LeftR{\lexists} inference.
  41. The condition that an eigenvariable not occur in the lower sequent of
  42. the \RightR{\lforall} or \LeftR{\lexists} inference is called the
  43. \emph{eigenvariable condition}.
  44. \begin{explain}
  45. Recall the convention that when $!A$ is !!a{formula} with the
  46. !!{variable}~$x$ free, we indicate this by writing~$!A(x)$. In the
  47. same context, $!A(t)$ then is short for~$\Subst{!A}{t}{x}$. So we
  48. could also write the \RightR{\lexists} rule as:
  49. \begin{prooftree}
  50. \Axiom$\Gamma \fCenter \Delta, \Subst{!A}{t}{x}$
  51. \RightLabel{\RightR{\lexists}}
  52. \UnaryInf$\Gamma \fCenter \Delta, \lexists[x][!A]$
  53. \end{prooftree}
  54. Note that $t$ may already occur in~$!A$, e.g., $!A$~might
  55. be~$\Atom{\Obj P}{t,x}$. Thus, inferring $\Gamma \Sequent \Delta,
  56. \lexists[x][\Atom{\Obj P}{t,x}]$ from~$\Gamma \Sequent \Delta,
  57. \Atom{\Obj P}{t,t}$ is a correct application
  58. of~\RightR{\lexists}---you may ``replace'' one or more, and not
  59. necessarily all, occurrences of~$t$ in the premise by the bound
  60. !!{variable}~$x$. However, the eigenvariable conditions in
  61. \RightR{\lforall} and~\LeftR{\lexists} require that the
  62. !!{constant}~$a$ does not occur in~$!A$. So, you cannot correctly
  63. infer $\Gamma \Sequent \Delta, \lforall[x][\Atom{\Obj P}{a,x}]$ from
  64. $\Gamma \Sequent \Delta, \Atom{\Obj P}{a,a}$ using~$\RightR{\lforall}$.
  65. \end{explain}
  66. \begin{explain}
  67. In \RightR{\lexists} and \LeftR{\lforall} there are no restrictions on
  68. the term~$t$. On the other hand, in the \LeftR{\lexists} and
  69. \RightR{\lforall} rules, the eigenvariable condition requires that the
  70. !!{constant}~$a$ does not occur anywhere outside of~$!A(a)$ in the
  71. upper sequent. It is necessary to ensure that the system is sound,
  72. i.e., only !!{derive}s sequents that are valid. Without this
  73. condition, the following would be allowed:
  74. \begin{prooftree}
  75. \Axiom$!A(a) \fCenter !A(a)$
  76. \RightLabel{*\LeftR{\lexists}}
  77. \UnaryInf$\lexists[x][!A(x)] \fCenter !A(a)$
  78. \RightLabel{\RightR{\lforall}}
  79. \UnaryInf$\lexists[x][!A(x)] \fCenter \lforall[x][!A(x)]$
  80. \DisplayProof\bottomAlignProof
  81. \qquad
  82. \Axiom$!A(a) \fCenter !A(a)$
  83. \RightLabel{*\RightR{\lforall}}
  84. \UnaryInf$!A(a) \fCenter \lforall[x][!A(x)]$
  85. \RightLabel{\LeftR{\lexists}}
  86. \UnaryInf$\lexists[x][!A(x)] \fCenter \lforall[x][!A(x)]$
  87. \end{prooftree}
  88. However, $\lexists[x][!A(x)] \Sequent \lforall[x][!A(x)]$ is not valid.
  89. \end{explain}
  90. \end{document}

content/first-order-logic/sequent-calculus/structural-rules.tex

80 lines; SHA-256 ea1ca77eca03ec566cc900b2399e95002b4cfc07eb3549a3f19da9ee23a09793. Open the byte-exact preserved source file.

  1. % Part: first-order-logic
  2. % Chapter: sequent-calculus
  3. % Section: structural-rules
  4. \documentclass[../../../include/open-logic-section]{subfiles}
  5. \begin{document}
  6. \iftag{FOL}
  7. {\olfileid{fol}{seq}{srl}}
  8. {\olfileid{pl}{seq}{srl}}
  9. \olsection{Structural Rules}
  10. We also need a few rules that allow us to rearrange !!{sentence}s in
  11. the left and right side of a sequent. Since the logical rules require
  12. that the !!{sentence}s in the premise which the rule acts upon stand
  13. either to the far left or to the far right, we need an ``exchange''
  14. rule that allows us to move !!{sentence}s to the right position. It's
  15. also important sometimes to be able to combine two identical
  16. !!{sentence}s into one, and to add !!a{sentence} on either side.
  17. \subsection{Weakening}
  18. \begin{defish}
  19. \Axiom$ \Gamma \fCenter \Delta $
  20. \RightLabel{\LeftR{\Weakening}}
  21. \UnaryInf$ !A, \Gamma \fCenter \Delta$
  22. \DisplayProof
  23. \hfill
  24. \Axiom$ \Gamma \fCenter \Delta$
  25. \RightLabel{\RightR{\Weakening}}
  26. \UnaryInf$ \Gamma \fCenter \Delta, !A$
  27. \DisplayProof
  28. \end{defish}
  29. \subsection{Contraction}
  30. \begin{defish}
  31. \Axiom$ !A, !A, \Gamma \fCenter \Delta $
  32. \RightLabel{\LeftR{\Contraction}}
  33. \UnaryInf$ !A, \Gamma \fCenter \Delta$
  34. \DisplayProof
  35. \hfill
  36. \Axiom$ \Gamma \fCenter \Delta, !A, !A$
  37. \RightLabel{\RightR{\Contraction}}
  38. \UnaryInf$ \Gamma \fCenter \Delta, !A$
  39. \DisplayProof
  40. \end{defish}
  41. \subsection{Exchange}
  42. \begin{defish}
  43. \Axiom$ \Gamma, !A, !B, \Pi \fCenter \Delta $
  44. \RightLabel{\LeftR{\Exchange}}
  45. \UnaryInf$ \Gamma, !B, !A, \Pi \fCenter \Delta$
  46. \DisplayProof
  47. \hfill
  48. \Axiom$ \Gamma \fCenter \Delta, !A, !B, \Lambda$
  49. \RightLabel{\RightR{\Exchange}}
  50. \UnaryInf$ \Gamma \fCenter \Delta, !B, !A, \Lambda$
  51. \DisplayProof
  52. \end{defish}
  53. A series of weakening, contraction, and exchange inferences will often
  54. be indicated by double inference lines.
  55. The following rule, called ``cut,'' is not strictly speaking
  56. necessary, but makes it a lot easier to reuse and combine !!{derivation}s.
  57. \begin{defish}
  58. \[
  59. \Axiom$ \Gamma \fCenter \Delta, !A$
  60. \Axiom$ !A, \Pi \fCenter \Lambda $
  61. \RightLabel{\Cut}
  62. \BinaryInf$ \Gamma, \Pi \fCenter \Delta, \Lambda$
  63. \DisplayProof
  64. \]
  65. \end{defish}
  66. \end{document}

content/first-order-logic/sequent-calculus/derivations.tex

121 lines; SHA-256 0d47d6984b609f00edfec9acc49c85d33ac001609f10e5e501cbd96f3a5f63dd. Open the byte-exact preserved source file.

  1. % Part: first-order-logic
  2. % Chapter: sequent-calculus
  3. % Section: derivations
  4. \documentclass[../../../include/open-logic-section]{subfiles}
  5. \begin{document}
  6. \iftag{FOL}
  7. {\olfileid{fol}{seq}{der}}
  8. {\olfileid{pl}{seq}{der}}
  9. \olsection{\usetoken{P}{derivation}}
  10. \begin{explain}
  11. We've said what an initial sequent looks like, and we've given the
  12. rules of inference. !!^{derivation}s in the sequent calculus are
  13. inductively generated from these: each !!{derivation} either is an
  14. initial sequent on its own, or consists of one or two !!{derivation}s
  15. followed by an inference.
  16. \end{explain}
  17. \begin{defn}[$\Log{LK}$ !!{derivation}]
  18. An \emph{$\Log{LK}$-!!{derivation}} of a sequent~$S$ is a finite tree
  19. of sequents satisfying the following conditions:
  20. \begin{enumerate}
  21. \item The topmost sequents of the tree are initial sequents.
  22. \item The bottommost sequent of the tree is~$S$.
  23. \item Every sequent in the tree except $S$ is a premise of a correct
  24. application of an inference rule whose conclusion stands directly
  25. below that sequent in the tree.
  26. \end{enumerate}
  27. We then say that $S$ is the \emph{end-sequent} of the !!{derivation} and
  28. that $S$ is \emph{!!{derivable} in $\Log{LK}$} (or $\Log{LK}$-!!{derivable}).
  29. \end{defn}
  30. \begin{ex}
  31. Every initial sequent, e.g., $!C \Sequent !C$ is !!a{derivation}. We
  32. can obtain a new !!{derivation} from this by applying, say, the
  33. $\LeftR{\Weakening}$ rule,
  34. \begin{prooftree}
  35. \Axiom$ \Gamma \fCenter \Delta $
  36. \RightLabel{\LeftR{\Weakening}}
  37. \UnaryInf$ !A, \Gamma \fCenter \Delta$
  38. \end{prooftree}
  39. The rule, however, is meant to be general: we can replace the $!A$ in
  40. the rule with any !!{sentence}, e.g., also with~$!D$. If the premise
  41. matches our initial sequent $!C \Sequent !C$, that means that both
  42. $\Gamma$ and $\Delta$ are just~$!C$, and the conclusion would then be
  43. $!D, !C \Sequent !C$. So, the following is !!a{derivation}:
  44. \begin{prooftree}
  45. \Axiom$ !C \fCenter !C $
  46. \RightLabel{\LeftR{\Weakening}}
  47. \UnaryInf$ !D, !C \fCenter !C$
  48. \end{prooftree}
  49. We can now apply another rule, say $\LeftR{\Exchange}$, which allows
  50. us to switch two !!{sentence}s on the left. So, the following is also
  51. a correct !!{derivation}:
  52. \begin{prooftree}
  53. \Axiom$ !C \fCenter !C $
  54. \RightLabel{\LeftR{\Weakening}}
  55. \UnaryInf$ !D, !C \fCenter !C$
  56. \RightLabel{\LeftR{\Exchange}}
  57. \UnaryInf$ !C, !D \fCenter !C$
  58. \end{prooftree}
  59. In this application of the rule, which was given as
  60. \begin{prooftree}
  61. \Axiom$ \Gamma, !A, !B, \Pi \fCenter \Delta $
  62. \RightLabel{\LeftR{\Exchange}}
  63. \UnaryInf$ \Gamma, !B, !A, \Pi \fCenter \Delta,$
  64. \end{prooftree}
  65. both $\Gamma$ and $\Pi$ were empty, $\Delta$ is $!C$, and the roles of
  66. $!A$ and $!B$ are played by $!D$ and~$!C$, respectively. In much the
  67. same way, we also see that
  68. \begin{prooftree}
  69. \Axiom$ !D \fCenter !D $
  70. \RightLabel{\LeftR{\Weakening}}
  71. \UnaryInf$ !C, !D \fCenter !D$
  72. \end{prooftree}
  73. is !!a{derivation}. Now we can take these two !!{derivation}s, and combine
  74. them using $\RightR{\land}$. That rule was
  75. \begin{prooftree}
  76. \Axiom$\Gamma \fCenter \Delta, !A$
  77. \Axiom$ \Gamma \fCenter \Delta, !B$
  78. \RightLabel{\RightR{\land}}
  79. \BinaryInf$ \Gamma \fCenter \Delta, !A \land !B $
  80. \end{prooftree}
  81. In our case, the premises must match the last sequents of the
  82. !!{derivation}s ending in the premises. That means that $\Gamma$ is
  83. $!C, !D$, $\Delta$ is empty, $!A$ is $!C$ and $!B$ is $!D$. So the
  84. conclusion, if the inference should be correct, is $!C, !D \Sequent !C
  85. \land !D$.
  86. \begin{prooftree}
  87. \Axiom$ !C \fCenter !C $
  88. \RightLabel{\LeftR{\Weakening}}
  89. \UnaryInf$ !D, !C \fCenter !C$
  90. \RightLabel{\LeftR{\Exchange}}
  91. \UnaryInf$ !C, !D \fCenter !C$
  92. \Axiom$ !D \fCenter !D $
  93. \RightLabel{\LeftR{\Weakening}}
  94. \UnaryInf$ !C, !D \fCenter !D$
  95. \RightLabel{\RightR{\land}}
  96. \BinaryInf$ !C, !D \fCenter !C \land !D $
  97. \end{prooftree}
  98. Of course, we can also reverse the premises, then $!A$
  99. would be $!D$ and $!B$ would be~$!C$.
  100. \begin{prooftree}
  101. \Axiom$ !D \fCenter !D $
  102. \RightLabel{\LeftR{\Weakening}}
  103. \UnaryInf$ !C, !D \fCenter !D$
  104. \Axiom$ !C \fCenter !C $
  105. \RightLabel{\LeftR{\Weakening}}
  106. \UnaryInf$ !D, !C \fCenter !C$
  107. \RightLabel{\LeftR{\Exchange}}
  108. \UnaryInf$ !C, !D \fCenter !C$
  109. \RightLabel{\RightR{\land}}
  110. \BinaryInf$ !C, !D \fCenter !D \land !C $
  111. \end{prooftree}
  112. \end{ex}
  113. \end{document}

content/first-order-logic/sequent-calculus/proving-things.tex

342 lines; SHA-256 73fa9c16dcbd072ac535c251fa02fc78640b82381d57162817043a6ad578b18e. Open the byte-exact preserved source file.

  1. % Part: first-order-logic
  2. % Chapter: sequent-calculus
  3. % Section: proving-things
  4. \documentclass[../../../include/open-logic-section]{subfiles}
  5. \begin{document}
  6. \iftag{FOL}
  7. {\olfileid{fol}{seq}{pro}}
  8. {\olfileid{pl}{seq}{pro}}
  9. \olsection{Examples of \usetoken{P}{derivation}}
  10. \begin{ex}
  11. Give an $\Log{LK}$-!!{derivation} for the sequent $!A \land !B \Sequent !A$.
  12. We begin by writing the desired end-sequent at the bottom of the
  13. !!{derivation}.
  14. \begin{prooftree}
  15. \AxiomC{}
  16. \UnaryInf$!A\land !B \fCenter !A$
  17. \end{prooftree}
  18. Next, we need to figure out what kind of inference could have a lower
  19. sequent of this form. This could be a structural rule, but it is a
  20. good idea to start by looking for a logical rule. The only logical
  21. connective occurring in the lower sequent is $\land$,
  22. so we're looking for an $\land$ rule, and since the $\land$ symbol
  23. occurs in the antecedent, we're looking at the \LeftR{\land}
  24. rule.
  25. \begin{prooftree}
  26. \AxiomC{}
  27. \RightLabel{\LeftR{\land}}
  28. \UnaryInf$!A\land !B \fCenter !A$
  29. \end{prooftree}
  30. There are two options for what could have been the upper sequent of
  31. the \LeftR{\land} inference: we could have an upper sequent of $!A
  32. \Sequent !A$, or of $!B \Sequent !A$. Clearly, $!A \Sequent !A$ is an
  33. initial sequent (which is a good thing), while $!B \Sequent !A$ is not
  34. derivable in general. We fill in the upper sequent:
  35. \begin{prooftree}
  36. \Axiom$!A \fCenter !A$
  37. \RightLabel{\LeftR{\land}}
  38. \UnaryInf$!A\land !B \fCenter !A$
  39. \end{prooftree}
  40. We now have a correct $\Log{LK}$-!!{derivation} of the sequent $!A
  41. \land !B \Sequent !A$.
  42. \end{ex}
  43. \begin{ex}
  44. Give an $\Log{LK}$-!!{derivation} for the sequent $\lnot !A \lor !B
  45. \Sequent !A \lif !B$.
  46. Begin by writing the desired end-sequent at the bottom of the !!{derivation}.
  47. \begin{prooftree}
  48. \AxiomC{}
  49. \UnaryInf$\lnot !A \lor !B \fCenter !A \lif !B$
  50. \end{prooftree}
  51. To find a logical rule that could give us this end-sequent, we look at
  52. the logical connectives in the end-sequent: $\lnot$, $\lor$, and
  53. $\lif$. We only care at the moment about $\lor$ and $\lif$ because
  54. they are !!{main operator}s of !!{sentence}s in the end-sequent,
  55. while $\lnot$ is inside the scope of another connective, so we will
  56. take care of it later. Our options for logical rules for the final
  57. inference are therefore the \LeftR{\lor} rule and the \RightR{\lif}
  58. rule. We could pick either rule, really, but let's pick the \RightR{\lif}
  59. rule (if for no reason other than it allows us to put off
  60. splitting into two branches). According to the form of \RightR{\lif}
  61. inferences which can yield the lower sequent, this must look like:
  62. \begin{prooftree}
  63. \AxiomC{}
  64. \UnaryInf$ !A, \lnot !A \lor !B \fCenter !B $
  65. \RightLabel{\RightR{\lif}} \UnaryInf$ \lnot !A \lor !B \fCenter !A \lif !B $
  66. \end{prooftree}
  67. If we move $\lnot !A \lor !B$ to the outside of the antecedent, we can
  68. apply the \LeftR{\lor} rule. According to the schema, this must split
  69. into two upper sequents as follows:
  70. \begin{prooftree}
  71. \AxiomC{}
  72. \UnaryInf$\lnot !A, !A \fCenter !B$
  73. \AxiomC{}
  74. \UnaryInf$!B, !A \fCenter !B$
  75. \RightLabel{\LeftR{\lor}}
  76. \BinaryInf$ \lnot !A \lor !B, !A \fCenter !B $
  77. \RightLabel{\RightR{\Exchange}}
  78. \UnaryInf$ !A, \lnot !A \lor !B \fCenter !B $
  79. \RightLabel{\RightR{\lif}}
  80. \UnaryInf$ \lnot !A \lor !B \fCenter !A \lif !B $
  81. \end{prooftree}
  82. Remember that we are trying to wind our way up to initial sequents; we
  83. seem to be pretty close!{} The right branch is just one weakening and
  84. one exchange away from an initial sequent and then it is done:
  85. \begin{prooftree}
  86. \AxiomC{}
  87. \UnaryInf$\lnot !A, !A \fCenter !B$
  88. \Axiom$!B \fCenter !B$
  89. \RightLabel{\LeftR{\Weakening}}
  90. \UnaryInf$!A, !B \fCenter !B$
  91. \RightLabel{\LeftR{\Exchange}}
  92. \UnaryInf$!B, !A \fCenter !B$
  93. \RightLabel{\LeftR{\lor}}
  94. \BinaryInf$\lnot !A \lor !B, !A \fCenter !B $
  95. \RightLabel{\RightR{\Exchange}}
  96. \UnaryInf$ !A, \lnot !A \lor !B \fCenter !B $
  97. \RightLabel{\RightR{\lif}}
  98. \UnaryInf$ \lnot !A \lor !B \fCenter !A \lif !B $
  99. \end{prooftree}
  100. Now looking at the left branch, the only logical connective in any
  101. !!{sentence} is the $\lnot$ symbol in the antecedent !!{sentence}s, so
  102. we're looking at an instance of the \LeftR{\lnot} rule.
  103. \begin{prooftree}
  104. \AxiomC{}
  105. \UnaryInf$ !A \fCenter !B, !A$
  106. \RightLabel{\LeftR{\lnot}}
  107. \UnaryInf$\lnot !A, !A \fCenter !B$
  108. \Axiom$!B \fCenter !B$
  109. \RightLabel{\LeftR{\Weakening}}
  110. \UnaryInf$!A, !B \fCenter !B$
  111. \RightLabel{\LeftR{\Exchange}}
  112. \UnaryInf$!B, !A \fCenter !B$
  113. \RightLabel{\LeftR{\lor}}
  114. \BinaryInf$\lnot !A \lor !B, !A \fCenter !B $
  115. \RightLabel{\RightR{\Exchange}}
  116. \UnaryInf$ !A, \lnot !A \lor !B \fCenter !B $
  117. \RightLabel{\RightR{\lif}}
  118. \UnaryInf$ \lnot !A \lor !B \fCenter !A \lif !B $
  119. \end{prooftree}
  120. Similarly to how we finished off the right branch, we are just one
  121. weakening and one exchange away from finishing off this left branch as well.
  122. \begin{prooftree}
  123. \Axiom$!A \fCenter !A$
  124. \RightLabel{\RightR{\Weakening}}
  125. \UnaryInf$ !A \fCenter !A, !B$
  126. \RightLabel{\RightR{\Exchange}}
  127. \UnaryInf$ !A \fCenter !B, !A$
  128. \RightLabel{\LeftR{\lnot}}
  129. \UnaryInf$\lnot !A, !A \fCenter !B$
  130. \Axiom$!B \fCenter !B$
  131. \RightLabel{\LeftR{\Weakening}}
  132. \UnaryInf$!A, !B \fCenter !B$
  133. \RightLabel{\LeftR{\Exchange}}
  134. \UnaryInf$!B, !A \fCenter !B$
  135. \RightLabel{\LeftR{\lor}}
  136. \BinaryInf$\lnot !A \lor !B, !A \fCenter !B $
  137. \RightLabel{\RightR{\Exchange}}
  138. \UnaryInf$ !A, \lnot !A \lor !B \fCenter !B $
  139. \RightLabel{\RightR{\lif}}
  140. \UnaryInf$ \lnot !A \lor !B \fCenter !A \lif !B $
  141. \end{prooftree}
  142. \end{ex}
  143. \begin{ex}
  144. Give an $\Log{LK}$-!!{derivation} of the sequent $\lnot !A \lor \lnot !B
  145. \Sequent \lnot (!A \land !B)$
  146. Using the techniques from above, we start by writing the desired
  147. end-sequent at the bottom.
  148. \begin{prooftree}
  149. \AxiomC{}
  150. \UnaryInf$ \lnot !A \lor \lnot !B \fCenter \lnot (!A \land !B) $
  151. \end{prooftree}
  152. The available main connectives of !!{sentence}s in the end-sequent are
  153. the $\lor$ symbol and the $\lnot$ symbol. It would work to apply
  154. either the \LeftR{\lor} or the \RightR{\lnot} rule here, but we start
  155. with the \RightR{\lnot} rule because it avoids splitting up into two
  156. branches for a moment:
  157. \begin{prooftree}
  158. \AxiomC{}
  159. \UnaryInf$!A \land !B, \lnot !A \lor \lnot !B \fCenter $
  160. \RightLabel{\RightR{\lnot}}
  161. \UnaryInf$\lnot !A \lor \lnot !B \fCenter \lnot (!A \land !B)$
  162. \end{prooftree}
  163. Now we have a choice of whether to look at the \LeftR{\land} or the
  164. \LeftR{\lor} rule. Let's see what happens when we apply the \LeftR{\land}
  165. rule: we have a choice to start with either the sequent $!A,
  166. \lnot !A \lor !B \Sequent \quad$ or the sequent $!B, \lnot !A
  167. \lor !B \Sequent \quad$. Since the !!{derivation} is symmetric with
  168. regards to $!A$ and $!B$, let's go with the former:
  169. \begin{prooftree}
  170. \AxiomC{}
  171. \UnaryInf$!A, \lnot !A \lor \lnot !B \fCenter $
  172. \RightLabel{\LeftR{\land}}
  173. \UnaryInf$!A \land !B, \lnot !A \lor \lnot !B \fCenter $
  174. \RightLabel{\RightR{\lnot}}
  175. \UnaryInf$\lnot !A \lor \lnot !B \fCenter \lnot (!A \land !B)$
  176. \end{prooftree}
  177. Continuing to fill in the !!{derivation}, we see that we run into a problem:
  178. \begin{prooftree}
  179. \Axiom$!A \fCenter !A$
  180. \RightLabel{\LeftR{\lnot}}
  181. \UnaryInf$ \lnot !A, !A \fCenter$
  182. \AxiomC{}
  183. \RightLabel{?}
  184. \UnaryInf$!A \fCenter !B$
  185. \RightLabel{\LeftR{\lnot}}
  186. \UnaryInf$ \lnot !B, !A \fCenter$
  187. \RightLabel{\LeftR{\lor}}
  188. \BinaryInf$\lnot !A \lor \lnot !B, !A \fCenter $
  189. \RightLabel{\LeftR{\Exchange}}
  190. \UnaryInf$!A, \lnot !A \lor \lnot !B \fCenter $
  191. \RightLabel{\LeftR{\land}}
  192. \UnaryInf$!A \land !B, \lnot !A \lor \lnot !B \fCenter $
  193. \RightLabel{\RightR{\lnot}}
  194. \UnaryInf$\lnot !A \lor \lnot !B \fCenter \lnot (!A \land !B)$
  195. \end{prooftree}
  196. The top of the right branch cannot be reduced any further, and it
  197. cannot be brought by way of structural inferences to an initial
  198. sequent, so this is not the right path to take. So clearly, it was a
  199. mistake to apply the \LeftR{\land} rule above. Going back to what we
  200. had before and carrying out the \LeftR{\lor} rule instead, we get
  201. \begin{prooftree}
  202. \AxiomC{}
  203. \UnaryInf$\lnot !A, !A \land !B \fCenter $
  204. \AxiomC{}
  205. \UnaryInf$\lnot !B, !A \land !B \fCenter $
  206. \RightLabel{\LeftR{\lor}}
  207. \BinaryInf$\lnot !A \lor \lnot !B, !A \land !B \fCenter $
  208. \RightLabel{\LeftR{\Exchange}}
  209. \UnaryInf$!A \land !B, \lnot !A \lor \lnot !B \fCenter $
  210. \RightLabel{\RightR{\lnot}}
  211. \UnaryInf$\lnot !A \lor \lnot !B \fCenter \lnot (!A \land !B)$
  212. \end{prooftree}
  213. Completing each branch as we've done before, we get
  214. \begin{prooftree}
  215. \Axiom$ !A \fCenter!A$
  216. \RightLabel{\LeftR{\land}}
  217. \UnaryInf$!A \land !B \fCenter !A$
  218. \RightLabel{\LeftR{\lnot}}
  219. \UnaryInf$\lnot !A, !A \land !B \fCenter $
  220. \Axiom$ !B \fCenter !B$
  221. \RightLabel{\LeftR{\land}}
  222. \UnaryInf$!A \land !B \fCenter !B$
  223. \RightLabel{\LeftR{\lnot}}
  224. \UnaryInf$\lnot !B, !A \land !B \fCenter $
  225. \RightLabel{\LeftR{\lor}}
  226. \BinaryInf$\lnot !A \lor \lnot !B, !A \land !B \fCenter $
  227. \RightLabel{\LeftR{\Exchange}}
  228. \UnaryInf$!A \land !B, \lnot !A \lor \lnot !B \fCenter $
  229. \RightLabel{\RightR{\lnot}}
  230. \UnaryInf$\lnot !A \lor \lnot !B \fCenter \lnot (!A \land !B)$
  231. \end{prooftree}
  232. (We could have carried out the $\land$ rules lower than the $\lnot$
  233. rules in these steps and still obtained a correct !!{derivation}).
  234. \end{ex}
  235. \begin{ex}
  236. So far we haven't used the contraction rule, but it is sometimes
  237. required. Here's an example where that happens. Suppose we want to
  238. prove $\quad \Sequent !A \lor \lnot !A$. Applying $\RightR{\lor}$
  239. backwards would give us one of these two !!{derivation}s:
  240. \begin{prooftree}
  241. \AxiomC{}
  242. \UnaryInf$ \fCenter !A$
  243. \RightLabel{\RightR{\lor}}
  244. \UnaryInf$ \fCenter !A \lor \lnot !A$
  245. \DisplayProof\qquad\bottomAlignProof
  246. \AxiomC{}
  247. \UnaryInf$!A \fCenter $
  248. \RightLabel{\RightR{\lnot}}
  249. \UnaryInf$ \fCenter \lnot !A$
  250. \RightLabel{\RightR{\lor}}
  251. \UnaryInf$ \fCenter !A \lor \lnot !A$
  252. \end{prooftree}
  253. Neither of these of course ends in an initial sequent. The trick is
  254. to realize that the contraction rule allows us to combine two copies
  255. of !!a{sentence} into one---and when we're searching for a proof,
  256. i.e., going from bottom to top, we can keep a copy of $!A \lor \lnot
  257. !A$ in the premise, e.g.,
  258. \begin{prooftree}
  259. \AxiomC{}
  260. \UnaryInf$ \fCenter !A \lor \lnot !A, !A$
  261. \RightLabel{\RightR{\lor}}
  262. \UnaryInf$ \fCenter !A \lor \lnot !A, !A \lor \lnot !A$
  263. \RightLabel{\RightR{\Contraction}}
  264. \UnaryInf$ \fCenter !A \lor \lnot !A$
  265. \end{prooftree}
  266. Now we can apply $\RightR{\lor}$ a second time, and also get~$\lnot
  267. !A$, which leads to a complete !!{derivation}.
  268. \begin{prooftree}
  269. \Axiom$!A \fCenter !A$
  270. \RightLabel{\RightR{\lnot}}
  271. \UnaryInf$\fCenter !A, \lnot !A$
  272. \RightLabel{\RightR{\lor}}
  273. \UnaryInf$\fCenter !A, !A \lor \lnot !A$
  274. \RightLabel{\RightR{\Exchange}}
  275. \UnaryInf$ \fCenter !A \lor \lnot !A, !A$
  276. \RightLabel{\RightR{\lor}}
  277. \UnaryInf$ \fCenter !A \lor \lnot !A, !A \lor \lnot !A$
  278. \RightLabel{\RightR{\Contraction}}
  279. \UnaryInf$ \fCenter !A \lor \lnot !A$
  280. \end{prooftree}
  281. \end{ex}
  282. \begin{prob}
  283. Give !!{derivation}s of the following sequents:
  284. \begin{enumerate}
  285. \item $!A \land (!B \land !C) \Sequent (!A \land !B) \land !C$.
  286. \item $!A \lor (!B \lor !C) \Sequent (!A \lor !B) \lor !C$.
  287. \item $!A \lif (!B \lif !C) \Sequent !B \lif (!A \lif !C)$.
  288. \item $!A \Sequent \lnot\lnot !A$.
  289. \end{enumerate}
  290. \end{prob}
  291. \begin{prob}
  292. Give !!{derivation}s of the following sequents:
  293. \begin{enumerate}
  294. \item $(!A \lor !B) \lif !C \Sequent !A \lif !C$.
  295. \item $(!A \lif !C) \land (!B \lif !C) \Sequent (!A \lor !B) \lif !C$.
  296. \item $\Sequent \lnot(!A \land \lnot !A)$.
  297. \item $!B \lif !A \Sequent \lnot !A \lif \lnot !B$.
  298. \item $\Sequent (!A \lif \lnot !A) \lif \lnot !A$.
  299. \item $\Sequent \lnot(!A \lif !B) \lif \lnot !B$.
  300. \item $!A \lif !C \Sequent \lnot (!A \land \lnot !C)$.
  301. \item $!A \land \lnot !C \Sequent \lnot (!A \lif !C)$.
  302. \item $!A \lor !B, \lnot !B \Sequent !A$.
  303. \item $\lnot !A \lor \lnot !B \Sequent \lnot(!A \land !B)$.
  304. \item $\Sequent (\lnot !A \land \lnot !B) \lif\lnot(!A \lor !B)$.
  305. \item $\Sequent \lnot(!A \lor !B) \lif (\lnot !A \land \lnot !B)$.
  306. \end{enumerate}
  307. \end{prob}
  308. \begin{prob}
  309. Give !!{derivation}s of the following sequents:
  310. \begin{enumerate}
  311. \item $\lnot(!A \lif !B) \Sequent !A$.
  312. \item $\lnot(!A \land !B) \Sequent \lnot !A \lor \lnot !B$.
  313. \item $!A \lif !B \Sequent \lnot !A \lor !B$.
  314. \item $\Sequent \lnot \lnot !A \lif !A$.
  315. \item $!A \lif !B, \lnot !A \lif !B \Sequent !B$.
  316. \item $(!A \land !B) \lif !C \Sequent (!A \lif !C) \lor (!B \lif !C)$.
  317. \item $(!A \lif !B) \lif !A \Sequent !A$.
  318. \item $\Sequent (!A \lif !B) \lor (!B \lif !C)$.
  319. \end{enumerate}
  320. (These all require the $\RightR{\Contraction}$~rule.)
  321. \end{prob}
  322. \end{document}

content/first-order-logic/sequent-calculus/proving-things-quant.tex

110 lines; SHA-256 9c249f76aa00ddc5b64b68179b052d7df7e7ffa69be413de20796d98bd80389d. Open the byte-exact preserved source file.

  1. % Part: first-order-logic
  2. % Chapter: sequent-calculus
  3. % Section: proving-things-quant
  4. \documentclass[../../../include/open-logic-section]{subfiles}
  5. \begin{document}
  6. \olfileid{fol}{seq}{prq}
  7. \olsection{\usetoken{P}{derivation} with Quantifiers}
  8. \begin{ex}
  9. Give an $\Log{LK}$-!!{derivation} of the sequent $\lexists[x][\lnot !A(x)]
  10. \Sequent \lnot \lforall[x][!A(x)]$.
  11. When dealing with quantifiers, we have to make sure not to violate the
  12. eigenvariable condition, and sometimes this requires us to play around
  13. with the order of carrying out certain inferences. In general, it
  14. helps to try and take care of rules subject to the eigenvariable
  15. condition first (they will be lower down in the finished proof). Also,
  16. it is a good idea to try and look ahead and try to guess what the
  17. initial sequent might look like. In our case, it will have to be
  18. something like $!A(a) \Sequent !A(a)$. That means that when we are
  19. ``reversing'' the quantifier rules, we will have to pick the same
  20. term---what we will call $a$---for both the $\lforall$ and the
  21. $\lexists$ rule. If we picked different terms for each rule, we would
  22. end up with something like $!A(a) \Sequent !A(b)$, which, of course,
  23. is not derivable.
  24. Starting as usual, we write
  25. \begin{prooftree}
  26. \AxiomC{}
  27. \UnaryInf$\lexists[x][\lnot !A(x)] \fCenter \lnot \lforall[x][!A(x)]$
  28. \end{prooftree}
  29. We could either carry out the \LeftR{\exists} rule or the \RightR{\lnot}
  30. rule. Since the \LeftR{\exists} rule is subject to the eigenvariable
  31. condition, it's a good idea to take care of it sooner rather than
  32. later, so we'll do that one first.
  33. \begin{prooftree}
  34. \AxiomC{}
  35. \UnaryInf$ \lnot !A(a) \fCenter \lnot \lforall[x][!A(x)]$
  36. \RightLabel{\LeftR{\lexists}}
  37. \UnaryInf$ \lexists[x][\lnot !A(x)] \fCenter \lnot \lforall[x][!A(x)]$
  38. \end{prooftree}
  39. Applying the \LeftR{\lnot} and \RightR{\lnot} rules backwards, we get
  40. \begin{prooftree}
  41. \AxiomC{}
  42. \UnaryInf$\lforall[x][!A(x)] \fCenter !A(a)$
  43. \RightLabel{\LeftR{\lnot}}
  44. \UnaryInf$\lnot !A(a), \lforall[x][!A(x)] \fCenter $
  45. \RightLabel{\LeftR{\Exchange}}
  46. \UnaryInf$\lforall[x][!A(x)], \lnot !A(a) \fCenter $
  47. \RightLabel{\RightR{\lnot}}
  48. \UnaryInf$ \lnot !A(a) \fCenter \lnot \lforall[x] !A(x)$
  49. \RightLabel{\LeftR{\lexists}}
  50. \UnaryInf$ \lexists[x] \lnot !A(x) \fCenter \lnot \lforall[x] !A(x)$
  51. \end{prooftree}
  52. At this point, our only option is to carry out the \LeftR{\forall}
  53. rule. Since this rule is not subject to the eigenvariable restriction,
  54. we're in the clear. Remember, we want to try and obtain an initial
  55. sequent (of the form $!A(a) \Sequent !A(a)$), so we should choose $a$
  56. as our argument for $!A$ when we apply the rule.
  57. \begin{prooftree}
  58. \Axiom$!A(a) \fCenter !A(a)$
  59. \RightLabel{\LeftR{\lforall}}
  60. \UnaryInf$\lforall[x][!A(x)] \fCenter !A(a)$
  61. \RightLabel{\LeftR{\lnot}}
  62. \UnaryInf$\lnot !A(a), \lforall[x][!A(x)] \fCenter $
  63. \RightLabel{\LeftR{\Exchange}}
  64. \UnaryInf$\lforall[x][!A(x)], \lnot !A(a) \fCenter $
  65. \RightLabel{\RightR{\lnot}}
  66. \UnaryInf$ \lnot !A(a) \fCenter \lnot \lforall[x][!A(x)]$
  67. \RightLabel{\LeftR{\lexists}}
  68. \UnaryInf$ \lexists[x][ \lnot !A(x)] \fCenter \lnot \lforall[x][!A(x)]$
  69. \end{prooftree}
  70. It is important, especially when dealing with quantifiers, to double
  71. check at this point that the eigenvariable condition has not been
  72. violated. Since the only rule we applied that is subject to the
  73. eigenvariable condition was \LeftR{\exists}, and the eigenvariable~$a$
  74. does not occur in its lower sequent (the end-sequent), this is a
  75. correct !!{derivation}.
  76. \end{ex}
  77. \begin{prob}
  78. Give !!{derivation}s of the following sequents:
  79. \begin{enumerate}
  80. \item $\Sequent (\lforall[x][!A(x)] \land \lforall[y][!B(y)]) \lif
  81. \lforall[z][(!A(z) \land !B(z))]$.
  82. \item $\Sequent (\lexists[x][!A(x)] \lor \lexists[y][!B(y)]) \lif
  83. \lexists[z][(!A(z) \lor !B(z))]$.
  84. \item $\lforall[x][(!A(x) \lif !B)] \Sequent \lexists[y][!A(y)] \lif !B$.
  85. \item $\lforall[x][\lnot !A(x)] \Sequent \lnot\lexists[x][!A(x)]$.
  86. \item $\Sequent \lnot\lexists[x][!A(x)] \lif \lforall[x][\lnot !A(x)]$.
  87. \item $\Sequent \lnot\lexists[x][\lforall[y][((!A(x,y) \lif \lnot
  88. !A(y,y)) \land (\lnot !A(y,y) \lif !A(x,y)))]]$.
  89. \end{enumerate}
  90. \end{prob}
  91. \begin{prob}
  92. Give !!{derivation}s of the following sequents:
  93. \begin{enumerate}
  94. \item $\Sequent \lnot\lforall[x][!A(x)] \lif \lexists[x][\lnot!A(x)]$.
  95. \item $(\lforall[x][!A(x)] \lif !B) \Sequent \lexists[y][(!A(y) \lif !B)]$.
  96. \item $\Sequent \lexists[x][(!A(x) \lif \lforall[y][!A(y)])]$.
  97. \end{enumerate}
  98. (These all require the $\RightR{\Contraction}$~rule.)
  99. \end{prob}
  100. \end{document}

content/first-order-logic/sequent-calculus/proof-theoretic-notions.tex

170 lines; SHA-256 aea2dd5d73394a3cd97b72ada3e7d21aac0113cc4d995b54196a5506b1fa5a81. Open the byte-exact preserved source file.

  1. % Part: first-order-logic
  2. % Chapter: sequent-calculus
  3. % Section: proof-theoretic-notions
  4. \documentclass[../../../include/open-logic-section]{subfiles}
  5. \begin{document}
  6. \begin{editorial}
  7. This section collects the definitions of the provability relation and
  8. consistency for natural deduction.
  9. \end{editorial}
  10. \iftag{FOL}
  11. {\olfileid{fol}{seq}{ptn}}
  12. {\olfileid{pl}{seq}{ptn}}
  13. \olsection{Proof-Theoretic Notions}
  14. \begin{explain}
  15. Just as we've defined a number of important semantic notions
  16. (validity, entailment, satisfiability), we now define corresponding
  17. \emph{proof-theoretic notions}. These are not defined by appeal to
  18. satisfaction of !!{sentence}s in !!{structure}s, but by appeal to the
  19. !!{derivability} or !!{nonderivability} of certain sequents. It was
  20. an important discovery that these notions coincide. That they do is
  21. the content of the \emph{soundness} and \emph{completeness theorem}.
  22. \end{explain}
  23. \begin{defn}[Theorems]
  24. !!^a{sentence}~$!A$ is a \emph{theorem} if there is !!a{derivation}
  25. in~$\Log{LK}$ of the sequent $\quad \Sequent !A$. We write $\Proves
  26. !A$ if $!A$ is a theorem and $\Proves/ !A$ if it is not.
  27. \end{defn}
  28. \begin{defn}[!!^{derivability}]
  29. !!^a{sentence}~$!A$ is \emph{!!{derivable} from} a set of
  30. !!{sentence}s~$\Gamma$, $\Gamma \Proves !A$, iff there is a
  31. finite subset~$\Gamma_0 \subseteq \Gamma$ and a sequence $\Gamma_0'$
  32. of the !!{sentence}s in~$\Gamma_0$ such that $\Log{LK}$ !!{derive}s
  33. $\Gamma_0' \Sequent !A$. If $!A$ is not !!{derivable} from $\Gamma$
  34. we write $\Gamma \Proves/ !A$.
  35. \end{defn}
  36. Because of the contraction, weakening, and exchange rules, the order
  37. and number of !!{sentence}s in~$\Gamma_0'$ does not matter: if a
  38. sequent $\Gamma_0' \Sequent !A$ is !!{derivable}, then so is
  39. $\Gamma_0'' \Sequent !A$ for any $\Gamma_0''$ that contains the same
  40. !!{sentence}s as~$\Gamma_0'$. For instance, if $\Gamma_0 = \{!B, !C\}$
  41. then both $\Gamma_0' = \tuple{!B, !B, !C}$ and $\Gamma_0'' =
  42. \tuple{!C, !C, !B}$ are sequences containing just the !!{sentence}s
  43. in~$\Gamma_0$. If a sequent containing one is !!{derivable}, so is the
  44. other, e.g.:
  45. \begin{prooftree}
  46. \AxiomC{}
  47. \Deduce$!B, !B, !C \fCenter !A$
  48. \RightLabel{\LeftR{\Contraction}}
  49. \UnaryInf$!B, !C \fCenter !A$
  50. \RightLabel{\LeftR{\Exchange}}
  51. \UnaryInf$!C, !B \fCenter !A$
  52. \RightLabel{\LeftR{\Weakening}}
  53. \UnaryInf$!C, !C, !B \fCenter !A$
  54. \end{prooftree}
  55. From now on we'll say that if $\Gamma_0$ is a finite set of
  56. !!{sentence}s then $\Gamma_0 \Sequent !A$ is any sequent where the
  57. antecedent is a sequence of !!{sentence}s in~$\Gamma_0$ and tacitly include
  58. contractions, exchanges, and weakenings if necessary.
  59. \begin{defn}[Consistency]
  60. A set of sentences~$\Gamma$ is \emph{inconsistent} iff there is a
  61. finite subset~$\Gamma_0 \subseteq \Gamma$ such that $\Log{LK}$
  62. !!{derive}s $\Gamma_0 \Sequent \quad$. If $\Gamma$ is not
  63. inconsistent, i.e., if for every finite $\Gamma_0 \subseteq \Gamma$,
  64. $\Log{LK}$ does not !!{derive} $\Gamma_0 \Sequent \quad$, we say it is
  65. \emph{consistent}.
  66. \end{defn}
  67. \begin{prop}[Reflexivity]
  68. \ollabel{prop:reflexivity}
  69. If $!A \in \Gamma$, then $\Gamma \Proves !A$.
  70. \end{prop}
  71. \begin{proof}
  72. The initial sequent $!A \Sequent !A$ is !!{derivable}, and $\{!A\}
  73. \subseteq \Gamma$.
  74. \end{proof}
  75. \begin{prop}[Monotonicity]
  76. \ollabel{prop:monotonicity}
  77. If $\Gamma \subseteq \Delta$ and $\Gamma \Proves !A$, then $\Delta
  78. \Proves !A$.
  79. \end{prop}
  80. \begin{proof}
  81. Suppose $\Gamma \Proves !A$, i.e., there is a finite $\Gamma_0
  82. \subseteq \Gamma$ such that $\Gamma_0 \Sequent !A$ is
  83. !!{derivable}. Since $\Gamma \subseteq \Delta$, then $\Gamma_0$ is
  84. also a finite subset of~$\Delta$. The !!{derivation} of $\Gamma_0
  85. \Sequent !A$ thus also shows $\Delta \Proves !A$.
  86. \end{proof}
  87. \begin{prop}[Transitivity]
  88. \ollabel{prop:transitivity}
  89. If $\Gamma \Proves !A$ and $\{!A\} \cup \Delta \Proves
  90. !B$, then $\Gamma \cup \Delta \Proves !B$.
  91. \end{prop}
  92. \begin{proof}
  93. If $\Gamma \Proves !A$, there is a finite $\Gamma_0 \subseteq \Gamma$
  94. and !!a{derivation}~$\pi_0$ of $\Gamma_0 \Sequent !A$. If $\{!A\}
  95. \cup \Delta \Proves !B$, then for some finite subset $\Delta_0
  96. \subseteq \Delta$, there is !!a{derivation}~$\pi_1$ of $!A, \Delta_0
  97. \Sequent !B$. Consider the following !!{derivation}:
  98. \begin{prooftree}
  99. \AxiomC{}
  100. \RightLabel{$\pi_0$}
  101. \Deduce$\Gamma_0 \fCenter !A$
  102. \AxiomC{}
  103. \RightLabel{$\pi_1$}
  104. \Deduce$!A, \Delta_0 \fCenter !B$
  105. \RightLabel{\Cut}
  106. \BinaryInf$\Gamma_0, \Delta_0 \fCenter !B$
  107. \end{prooftree}
  108. Since $\Gamma_0 \cup \Delta_0 \subseteq \Gamma \cup \Delta$, this
  109. shows $\Gamma \cup \Delta \Proves !B$.
  110. \end{proof}
  111. Note that this means that in particular if $\Gamma \Proves !A$ and $!A
  112. \Proves !B$, then $\Gamma \Proves !B$. It follows also that if $!A_1,
  113. \dots, !A_n \Proves !B$ and $\Gamma \Proves !A_i$ for each~$i$, then
  114. $\Gamma \Proves !B$.
  115. \begin{prop}
  116. \ollabel{prop:incons}
  117. $\Gamma$ is inconsistent iff $\Gamma \Proves {!A}$ for every
  118. sentence~$!A$.
  119. \end{prop}
  120. \begin{proof}
  121. Exercise.
  122. \end{proof}
  123. \begin{prob}
  124. Prove \olref[fol][seq][ptn]{prop:incons}
  125. \end{prob}
  126. \begin{prop}[Compactness]
  127. \ollabel{prop:proves-compact}
  128. \begin{enumerate}
  129. \item If $\Gamma \Proves !A$ then there is a finite subset $\Gamma_0
  130. \subseteq \Gamma$ such that $\Gamma_0 \Proves !A$.
  131. \item If every finite subset of~$\Gamma$ is
  132. consistent, then $\Gamma$ is consistent.
  133. \end{enumerate}
  134. \end{prop}
  135. \begin{proof}
  136. \begin{enumerate}
  137. \item If $\Gamma \Proves !A$, then there is a finite subset
  138. $\Gamma_0 \subseteq \Gamma$ such that the sequent $\Gamma_0
  139. \Sequent !A$ has !!a{derivation}. Consequently, $\Gamma_0
  140. \Proves !A$.
  141. \item If $\Gamma$ is inconsistent, there is a finite
  142. subset~$\Gamma_0 \subseteq \Gamma$ such that $\Log{LK}$
  143. !!{derive}s $\Gamma_0 \Sequent \quad$. But then $\Gamma_0$ is a
  144. finite subset of~$\Gamma$ that is inconsistent.
  145. \end{enumerate}
  146. \end{proof}
  147. \end{document}

content/first-order-logic/sequent-calculus/provability-consistency.tex

127 lines; SHA-256 3e784d39f38d393203a7623b34e8fcad64e3299c102ee2ef96a812b5e6c8c229. Open the byte-exact preserved source file.

  1. % Part: first-order-logic
  2. % Chapter: sequent-calculus
  3. % Section: provability-consistency
  4. \documentclass[../../../include/open-logic-section]{subfiles}
  5. \begin{document}
  6. \iftag{FOL}
  7. {\olfileid{fol}{seq}{prv}}
  8. {\olfileid{pl}{seq}{prv}}
  9. \olsection{\usetoken{S}{derivability} and Consistency}
  10. We will now establish a number of properties of the !!{derivability}
  11. relation. They are independently interesting, but each will play a
  12. role in the proof of the completeness theorem.
  13. \begin{prop}\ollabel{prop:provability-contr}
  14. If $\Gamma \Proves !A$ and $\Gamma \cup \{!A\}$ is
  15. inconsistent, then $\Gamma$ is inconsistent.
  16. \end{prop}
  17. \begin{proof}
  18. There are finite $\Gamma_0$ and $\Gamma_1 \subseteq \Gamma$ such that
  19. $\Log{LK}$ !!{derive}s $\Gamma_0 \Sequent !A$ and $!A, \Gamma_1
  20. \Sequent \quad$. Let the $\Log{LK}$-!!{derivation} of $\Gamma_0 \Sequent
  21. !A$ be~$\pi_0$ and the $\Log{LK}$-!!{derivation} of $\Gamma_1, !A
  22. \Sequent \quad$ be~$\pi_1$. We can then !!{derive}
  23. \begin{prooftree}
  24. \AxiomC{}
  25. \RightLabel{$\pi_0$}
  26. \Deduce$ \Gamma_0 \fCenter !A $
  27. \AxiomC{}
  28. \RightLabel{$\pi_1$}
  29. \Deduce$!A, \Gamma_1 \fCenter $
  30. \RightLabel{\Cut}
  31. \BinaryInf$ \Gamma_0,\Gamma_1 \fCenter $
  32. \end{prooftree}
  33. Since $\Gamma_0 \subseteq \Gamma$ and $\Gamma_1 \subseteq \Gamma$,
  34. $\Gamma_0 \cup \Gamma_1 \subseteq \Gamma$, hence $\Gamma$~is inconsistent.
  35. \end{proof}
  36. \begin{prop}
  37. \ollabel{prop:prov-incons}
  38. $\Gamma \Proves !A$ iff $\Gamma \cup \{\lnot !A\}$ is inconsistent.
  39. \end{prop}
  40. \begin{proof}
  41. First suppose $\Gamma \Proves !A$, i.e., there is
  42. !!a{derivation}~$\pi_0$ of $\Gamma \Sequent !A$. By adding a
  43. $\LeftR{\lnot}$ rule, we obtain !!a{derivation} of~$\lnot !A, \Gamma
  44. \Sequent \quad$, i.e., $\Gamma \cup \{\lnot !A\}$ is inconsistent.
  45. If $\Gamma \cup \{\lnot !A\}$ is inconsistent, there is
  46. !!a{derivation}~$\pi_1$ of $\lnot !A, \Gamma \Sequent \quad$. The
  47. following is !!a{derivation} of $\Gamma \Sequent !A$:
  48. \begin{prooftree}
  49. \Axiom$!A \fCenter !A$
  50. \RightLabel{\RightR{\lnot}}
  51. \UnaryInf$\fCenter !A, \lnot !A$
  52. \AxiomC{}
  53. \RightLabel{$\pi_1$}
  54. \Deduce$\lnot !A, \Gamma \fCenter$
  55. \RightLabel{\Cut}
  56. \BinaryInf$\Gamma \fCenter !A$
  57. \end{prooftree}
  58. \end{proof}
  59. \begin{prob}
  60. Prove that $\Gamma \Proves \lnot !A$ iff $\Gamma \cup \{!A\}$ is inconsistent.
  61. \end{prob}
  62. \begin{prop}\ollabel{prop:explicit-inc}
  63. If $\Gamma \Proves !A$ and $\lnot !A \in \Gamma$, then $\Gamma$ is
  64. inconsistent.
  65. \end{prop}
  66. \begin{proof}
  67. Suppose $\Gamma \Proves !A$ and $\lnot !A \in \Gamma$. Then there
  68. is !!a{derivation}~$\pi$ of a sequent $\Gamma_0 \Sequent !A$. The
  69. sequent $\lnot !A, \Gamma_0 \Sequent \quad$ is also !!{derivable}:
  70. \begin{prooftree}
  71. \AxiomC{}
  72. \RightLabel{$\pi$}
  73. \Deduce$\Gamma_0 \fCenter !A$
  74. \Axiom$!A \fCenter !A$
  75. \RightLabel{\LeftR{\lnot}}
  76. \UnaryInf$\lnot !A, !A \fCenter$
  77. \RightLabel{\LeftR{\Exchange}}
  78. \UnaryInf$!A, \lnot !A \fCenter$
  79. \RightLabel{\Cut}
  80. \BinaryInf$\Gamma_0, \lnot !A \fCenter$
  81. \end{prooftree}
  82. Since $\lnot !A \in \Gamma$ and $\Gamma_0 \subseteq \Gamma$, this
  83. shows that $\Gamma$ is inconsistent.
  84. \end{proof}
  85. \begin{prop}\ollabel{prop:provability-exhaustive}
  86. If $\Gamma \cup \{!A\}$ and $\Gamma \cup \{\lnot !A\}$ are both
  87. inconsistent, then $\Gamma$ is inconsistent.
  88. \end{prop}
  89. \begin{proof}
  90. There are finite sets $\Gamma_0 \subseteq \Gamma$ and $\Gamma_1
  91. \subseteq \Gamma$ and $\Log{LK}$-!!{derivation}s $\pi_0$ and $\pi_1$
  92. of $!A, \Gamma_0 \Sequent \quad$ and $\lnot !A, \Gamma_1 \Sequent
  93. \quad$, respectively. We can then !!{derive}
  94. \begin{prooftree}
  95. \AxiomC{}
  96. \RightLabel{$\pi_0$}
  97. \Deduce$ !A, \Gamma_0 \fCenter $
  98. \RightLabel{\RightR{\lnot}}
  99. \UnaryInf$ \Gamma_0 \fCenter \lnot !A$
  100. \AxiomC{}
  101. \RightLabel{$\pi_1$}
  102. \Deduce$\lnot !A, \Gamma_1 \fCenter $
  103. \RightLabel{\Cut}
  104. \BinaryInf$ \Gamma_0, \Gamma_1 \fCenter $
  105. \end{prooftree}
  106. Since $\Gamma_0 \subseteq \Gamma$ and $\Gamma_1 \subseteq \Gamma$,
  107. $\Gamma_0 \cup \Gamma_1 \subseteq \Gamma$. Hence $\Gamma$ is
  108. inconsistent.
  109. \end{proof}
  110. \end{document}

content/first-order-logic/sequent-calculus/provability-propositional.tex

138 lines; SHA-256 13dd017159225b5fc9bcaa38c927fda407264d59c1305ebfd49329a85f5b9fa8. Open the byte-exact preserved source file.

  1. % Part: first-order-logic
  2. % Chapter: sequent-calculus
  3. % Section: provability-propositional
  4. % verification of properties of provability needed for maximally
  5. % consistent sets in the completeness chapter.
  6. \documentclass[../../../include/open-logic-section]{subfiles}
  7. \begin{document}
  8. \iftag{FOL}
  9. {\olfileid{fol}{seq}{ppr}}
  10. {\olfileid{pl}{seq}{ppr}}
  11. \olsection{\usetoken{S}{derivability} and the Propositional Connectives}
  12. \begin{explain}
  13. We establish that the !!{derivability} relation~$\Proves$ of the
  14. sequent calculus is strong enough to establish some basic facts
  15. involving the propositional connectives, such as that $!A \land !B
  16. \Proves !A$ and $!A, !A \lif !B \Proves !B$ (modus ponens). These
  17. facts are needed for the proof of the completeness theorem.
  18. \end{explain}
  19. \begin{prop}\ollabel{prop:provability-land}
  20. \begin{enumerate}
  21. \item \ollabel{prop:provability-land-left} Both $!A \land !B \Proves
  22. !A$ and $!A \land !B \Proves !B$.
  23. \item \ollabel{prop:provability-land-right} $!A, !B \Proves !A \land
  24. !B$.
  25. \end{enumerate}
  26. \end{prop}
  27. \begin{proof}
  28. \begin{enumerate}
  29. \item Both sequents $!A \land !B \Sequent !A$ and $!A \land !B \Sequent
  30. !B$ are !!{derivable}:
  31. \begin{prooftree}
  32. \Axiom$!A \fCenter !A$
  33. \RightLabel{\LeftR{\land}}
  34. \UnaryInf$!A \land !B \fCenter !A$
  35. \DisplayProof\qquad\bottomAlignProof
  36. \Axiom$!B \fCenter !B$
  37. \RightLabel{\LeftR{\land}}
  38. \UnaryInf$!A \land !B \fCenter !B$
  39. \end{prooftree}
  40. \item Here is !!a{derivation} of the sequent $!A, !B \Sequent !A \land !B$:
  41. \begin{prooftree}
  42. \Axiom$!A \fCenter !A$
  43. \Axiom$!B \fCenter !B$
  44. \RightLabel{\RightR{\land}}
  45. \BinaryInf$!A, !B \fCenter !A \land !B$
  46. \end{prooftree}
  47. \end{enumerate}
  48. \end{proof}
  49. \begin{prop}\ollabel{prop:provability-lor}
  50. \begin{enumerate}
  51. \item $!A \lor !B, \lnot !A, \lnot !B$ is inconsistent.
  52. \item Both $!A \Proves !A \lor !B$ and $!B \Proves !A \lor !B$.
  53. \end{enumerate}
  54. \end{prop}
  55. \begin{proof}
  56. \begin{enumerate}
  57. \item We give !!a{derivation} of the sequent $!A \lor !B, \lnot !A,
  58. \lnot !B \Sequent$:
  59. \begin{prooftree}
  60. \Axiom$!A \fCenter !A$
  61. \RightLabel{\LeftR{\lnot}}
  62. \UnaryInf$\lnot !A, !A \fCenter$
  63. \doubleLine
  64. \UnaryInf$!A, \lnot !A, \lnot !B \fCenter$
  65. \Axiom$!B \fCenter !B$
  66. \RightLabel{\LeftR{\lnot}}
  67. \UnaryInf$\lnot !B, !B \fCenter$
  68. \doubleLine
  69. \UnaryInf$!B, \lnot !A, \lnot !B \fCenter$
  70. \RightLabel{\LeftR{\lor}}
  71. \BinaryInf$ !A \lor !B, \lnot !A, \lnot !B \fCenter $
  72. \end{prooftree}
  73. (Recall that double inference lines indicate several weakening,
  74. contraction, and exchange inferences.)
  75. \item Both sequents $!A \Sequent !A \lor !B$ and $!B \Sequent !A
  76. \lor !B$ have !!{derivation}s:
  77. \begin{prooftree}
  78. \Axiom$!A \fCenter !A$
  79. \RightLabel{\RightR{\lor}}
  80. \UnaryInf$!A \fCenter !A \lor !B$
  81. \DisplayProof\qquad\bottomAlignProof
  82. \Axiom$!B \fCenter !B$
  83. \RightLabel{\RightR{\lor}}
  84. \UnaryInf$!B \fCenter !A \lor !B$
  85. \end{prooftree}
  86. \end{enumerate}
  87. \end{proof}
  88. \begin{prop}\ollabel{prop:provability-lif}
  89. \begin{enumerate}
  90. \item \ollabel{prop:provability-lif-left} $!A, !A \lif !B \Proves !B$.
  91. \item \ollabel{prop:provability-lif-right}
  92. Both $\lnot !A \Proves !A \lif !B$ and $!B \Proves !A \lif !B$.
  93. \end{enumerate}
  94. \end{prop}
  95. \begin{proof}
  96. \begin{enumerate}
  97. \item The sequent $!A \lif !B, !A \Sequent !B$ is !!{derivable}:
  98. \begin{prooftree}
  99. \Axiom$!A \fCenter !A$
  100. \Axiom$!B \fCenter !B$
  101. \RightLabel{\LeftR{\lif}}
  102. \BinaryInf$!A \lif !B, !A \fCenter !B$
  103. \end{prooftree}
  104. \item Both sequents $\lnot !A \Sequent !A \lif !B$ and $!B
  105. \Sequent !A \lif !B$ are !!{derivable}:
  106. \begin{prooftree}
  107. \Axiom$!A \fCenter !A$
  108. \RightLabel{\LeftR{\lnot}}
  109. \UnaryInf$\lnot !A, !A \fCenter$
  110. \RightLabel{\LeftR{\Exchange}}
  111. \UnaryInf$!A, \lnot !A \fCenter$
  112. \RightLabel{\RightR{\Weakening}}
  113. \UnaryInf$!A, \lnot !A \fCenter !B$
  114. \RightLabel{\RightR{\lif}}
  115. \UnaryInf$\lnot !A \fCenter !A \lif !B$
  116. \DisplayProof\qquad\bottomAlignProof
  117. \Axiom$!B \fCenter !B$
  118. \RightLabel{\LeftR{\Weakening}}
  119. \UnaryInf$!A, !B \fCenter !B$
  120. \RightLabel{\RightR{\lif}}
  121. \UnaryInf$!B \fCenter !A \lif !B$
  122. \end{prooftree}
  123. \end{enumerate}
  124. \end{proof}
  125. \end{document}

content/first-order-logic/sequent-calculus/provability-quantifiers.tex

59 lines; SHA-256 eb63f32c87bbdbef776a65a4c1da758fd5671e47e3c4171f224d3214b31aa48f. Open the byte-exact preserved source file.

  1. % Part: first-order-logic
  2. % Chapter: sequent-calculus
  3. % Section: provability-quantifiers
  4. \documentclass[../../../include/open-logic-section]{subfiles}
  5. \begin{document}
  6. \olfileid{fol}{seq}{qpr}
  7. \olsection{\usetoken{S}{derivability} and the Quantifiers}
  8. \begin{explain}
  9. The completeness theorem also requires that the sequent calculus
  10. rules yield the facts about~$\Proves$ established in this
  11. section.
  12. \end{explain}
  13. \begin{thm}
  14. \ollabel{thm:strong-generalization} If $c$ is a constant not occurring
  15. in $\Gamma$ or $!A(x)$ and $\Gamma \Proves !A(c)$, then $\Gamma
  16. \Proves \lforall[x][!A(x)]$.
  17. \end{thm}
  18. \begin{proof}
  19. Let $\pi_0$ be an $\Log{LK}$-!!{derivation} of $\Gamma_0 \Sequent !A(c)$
  20. for some finite $\Gamma_0 \subseteq \Gamma$. By adding a
  21. $\RightR{\lforall}$ inference, we obtain !!a{derivation} of $\Gamma_0 \Sequent
  22. \lforall[x][!A(x)]$, since $c$ does not occur in $\Gamma$ or $!A(x)$
  23. and thus the eigenvariable condition is satisfied.
  24. \end{proof}
  25. \begin{prop}
  26. \ollabel{prop:provability-quantifiers}
  27. \begin{tagenumerate}{prvEx,prvAll}
  28. \tagitem{prvEx}{$!A(t) \Proves \lexists[x][!A(x)]$.}{}
  29. \tagitem{prvAll}{$\lforall[x][!A(x)] \Proves !A(t)$.}{}
  30. \end{tagenumerate}
  31. \end{prop}
  32. \begin{proof}
  33. \begin{tagenumerate}{prvEx,prvAll}
  34. \tagitem{prvEx}{The sequent $!A(t) \Sequent \lexists[x][!A(x)]$ is
  35. !!{derivable}:
  36. \begin{prooftree}
  37. \Axiom$!A(t) \fCenter !A(t)$
  38. \RightLabel{\RightR{\lexists}}
  39. \UnaryInf$!A(t) \fCenter \lexists[x][!A(x)]$
  40. \end{prooftree}}{}
  41. \tagitem{prvAll}{The sequent $\lforall[x][!A(x)] \Sequent !A(t)$ is
  42. !!{derivable}:
  43. \begin{prooftree}
  44. \Axiom$!A(t) \fCenter !A(t)$
  45. \RightLabel{\LeftR{\lforall}}
  46. \UnaryInf$\lforall[x][!A(x)] \fCenter !A(t)$
  47. \end{prooftree}}{}
  48. \end{tagenumerate}
  49. \end{proof}
  50. \end{document}

content/first-order-logic/sequent-calculus/soundness.tex

384 lines; SHA-256 d9f6180bee35f29553144b6eca5a1eb1916e0262dcdc8c30f50193a53d8001fa. Open the byte-exact preserved source file.

  1. % Part: first-order-logic
  2. % Chapter: sequent-calculus
  3. % Section: soundness.tex
  4. \documentclass[../../../include/open-logic-section]{subfiles}
  5. \begin{document}
  6. \iftag{FOL}
  7. {\olfileid{fol}{seq}{sou}}
  8. {\olfileid{pl}{seq}{sou}}
  9. \olsection{Soundness}
  10. \begin{explain}
  11. !!^a{derivation} system, such as the sequent calculus, is \emph{sound}
  12. if it cannot !!{derive} things that do not actually hold. Soundness is
  13. thus a kind of guaranteed safety property for !!{derivation} systems.
  14. Depending on which proof theoretic property is in question, we would
  15. like to know for instance, that
  16. \begin{enumerate}
  17. \item every !!{derivable}~$!A$ is \iftag{FOL}{valid}{a tautology};
  18. \item if !!a{sentence} is !!{derivable} from some others, it is also a
  19. consequence of them;
  20. \item if a set of !!{sentence}s is inconsistent, it is unsatisfiable.
  21. \end{enumerate}
  22. These are important properties of !!a{derivation} system. If any of
  23. them do not hold, the !!{derivation} system is deficient---it would
  24. !!{derive} too much. Consequently, establishing the soundness of a
  25. !!{derivation} system is of the utmost importance.
  26. Because all these proof-theoretic properties are defined via
  27. !!{derivability} in the sequent calculus of certain sequents, proving
  28. (1)--(3) above requires proving something about the semantic
  29. properties of !!{derivable} sequents. We will first define what it
  30. means for a sequent to be \emph{valid}, and then show that every
  31. !!{derivable} sequent is valid. (1)--(3) then follow as corollaries
  32. from this result.
  33. \end{explain}
  34. \begin{defn}
  35. \iftag{FOL}{!!^a{structure}~$\Struct
  36. M$}{!!^a{valuation}~$\pAssign{v}$} \emph{satisfies} a sequent
  37. $\Gamma \Sequent \Delta$ iff either
  38. $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!A}$ for some $!A \in \Gamma$ or
  39. $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!A}$ for some $!A \in \Delta$.
  40. A sequent is \emph{valid} iff every \iftag{FOL}{!!{structure}~$\Struct
  41. M$}{!!{valuation}~$\pAssign{v}$} satisfies it.
  42. \end{defn}
  43. \begin{thm}[Soundness]
  44. \ollabel{thm:sequent-soundness} If $\Log{LK}$ !!{derive}s $\Theta
  45. \Sequent \Xi$, then $\Theta \Sequent \Xi$ is valid.
  46. \end{thm}
  47. \begin{proof}
  48. Let $\pi$ be !!a{derivation} of $\Theta \Sequent \Xi$. We proceed by
  49. induction on the number of inferences~$n$ in~$\pi$.
  50. If the number of inferences is~$0$, then $\pi$ consists only of an
  51. initial sequent. Every initial sequent $!A \Sequent !A$ is obviously
  52. valid, since for every \iftag{FOL}{$\Struct M$}{$\pAssign{v}$}, either
  53. $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!A}$ or
  54. $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!A}$.
  55. If the number of inferences is greater than~0, we distinguish cases
  56. according to the type of the lowermost inference. By induction
  57. hypothesis, we can assume that the premises of that inference are
  58. valid, since the number of inferences in the !!{derivation} of any premise is
  59. smaller than~$n$.
  60. First, we consider the possible inferences with only one premise.
  61. \begin{enumerate}
  62. \item The last inference is a weakening. Then $\Theta \Sequent \Xi$
  63. is either $!A, \Gamma \Sequent \Delta$ (if the last inference is
  64. \LeftR{\Weakening}) or $\Gamma \Sequent \Delta, !A$ (if it's
  65. \RightR{\Weakening}), and the !!{derivation} ends in one of
  66. \begin{prooftree}
  67. \AxiomC{}
  68. \Deduce$\Gamma \fCenter \Delta$
  69. \RightLabel{\LeftR{\Weakening}}
  70. \UnaryInf$!A, \Gamma \fCenter \Delta$
  71. \DisplayProof\qquad\bottomAlignProof
  72. \AxiomC{}
  73. \Deduce$\Gamma \fCenter \Delta$
  74. \RightLabel{\RightR{\Weakening}}
  75. \UnaryInf$\Gamma \fCenter \Delta, !A$
  76. \end{prooftree}
  77. By induction hypothesis, $\Gamma \Sequent \Delta$ is valid, i.e.,
  78. for every
  79. \iftag{FOL}{!!{structure}~$\Struct{M}$}{!!{valuation}~$\pAssign{v}$},
  80. either there is some $!C \in \Gamma$ such that
  81. $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!C}$ or there is some $!C \in
  82. \Delta$ such that $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!C}$.
  83. If $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!C}$ for some $!C \in \Gamma$,
  84. then $!C \in \Theta$ as well since $\Theta = !A, \Gamma$, and so
  85. $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!C}$ for some $!C \in \Theta$.
  86. Similarly, if $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!C}$ for some $!C \in
  87. \Delta$, as $!C \in \Xi$, $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!C}$ for
  88. some $!C \in \Xi$. Consequently, $\Theta \Sequent \Xi$ is valid.
  89. \item The last inference is \LeftR{\lnot}: Then the premise of the
  90. last inference is $\Gamma \Sequent \Delta, !A$ and the conclusion is
  91. $\lnot !A, \Gamma \Sequent \Delta$, i.e., the !!{derivation} ends in
  92. \begin{prooftree}
  93. \AxiomC{}
  94. \Deduce$\Gamma \fCenter \Delta, !A$
  95. \RightLabel{\LeftR{\lnot}}
  96. \UnaryInf$\lnot !A, \Gamma \fCenter \Delta$
  97. \end{prooftree}
  98. and $\Theta = \lnot !A, \Gamma$ while $\Xi = \Delta$.
  99. The induction hypothesis tells us that $\Gamma \Sequent \Delta, !A$
  100. is valid, i.e., for every \iftag{FOL}{$\Struct{M}$}{$\pAssign{v}$},
  101. either (a) for some $!C \in \Gamma$,
  102. $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!C}$, or (b) for some $!C \in
  103. \Delta$, $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!C}$, or (c)
  104. $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!A}$. We want to show that $\Theta
  105. \Sequent \Xi$ is also valid. Let \iftag{FOL}{$\Struct{M}$ be
  106. !!a{structure}}{$\pAssign{v}$ be !!a{valuation}}. If (a) holds,
  107. then there is $!C \in \Gamma$ so that
  108. $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!C}$, but $!C \in \Theta$ as
  109. well. If (b) holds, there is $!C \in \Delta$ such that
  110. $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!C}$, but $!C \in \Xi$ as
  111. well. Finally, if $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!A}$, then
  112. $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{\lnot !A}$. Since $\lnot !A \in
  113. \Theta$, there is $!C \in \Theta$ such that
  114. $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!C}$. Consequently, $\Theta
  115. \Sequent \Xi$ is valid.
  116. \item The last inference is \RightR{\lnot}: Exercise.
  117. \item The last inference is \LeftR{\land}: There are two variants: $!A
  118. \land !B$ may be inferred on the left from $!A$ or from $!B$ on the
  119. left side of the premise. In the first case, the $\pi$ ends in
  120. \begin{prooftree}
  121. \AxiomC{}
  122. \Deduce$!A, \Gamma \fCenter \Delta$
  123. \RightLabel{\LeftR{\land}}
  124. \UnaryInf$!A \land !B, \Gamma \fCenter \Delta$
  125. \end{prooftree}
  126. and $\Theta = !A \land !B, \Gamma$ while $\Xi = \Delta$. Consider
  127. \iftag{FOL}{!!a{structure}~$\Struct
  128. M$}{!!a{valuation}~$\pAssign{v}$}. Since by induction hypothesis,
  129. $!A, \Gamma \Sequent \Delta$ is valid, (a)
  130. $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!A}$, (b)
  131. $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!C}$ for some $!C \in \Gamma$, or
  132. (c)~$\iftag{FOL}{\Sat{M}}{\pSat{v}}{!C}$ for some $!C \in \Delta$.
  133. In case (a), $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!A \land !B}$, so
  134. there is $!C \in \Theta$ (namely, $!A \land !B$) such that
  135. $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!C}$. In case (b), there is $!C
  136. \in \Gamma$ such that $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!C}$, and
  137. $!C \in \Theta$ as well. In case (c), there is $!C \in \Delta$ such
  138. that $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!C}$, and $!C \in \Xi$ as well
  139. since $\Xi = \Delta$. So in each case, \iftag{FOL}{$\Struct
  140. M$}{$\pAssign{v}$} satisfies $!A \land !B, \Gamma \Sequent
  141. \Delta$. Since \iftag{FOL}{$\Struct{M}$}{$\pAssign{v}$} was
  142. arbitrary, $\Gamma \Sequent \Delta$ is valid. The case where $!A
  143. \land !B$ is inferred from $!B$ is handled the same, changing $!A$
  144. to $!B$.
  145. \item The last inference is \RightR{\lor}: There are two variants: $!A
  146. \lor !B$ may be inferred on the right from $!A$ or from $!B$ on the
  147. right side of the premise. In the first case, $\pi$ ends in
  148. \begin{prooftree}
  149. \AxiomC{}
  150. \Deduce$\Gamma \fCenter \Delta, !A$
  151. \RightLabel{\RightR{\lor}}
  152. \UnaryInf$\Gamma \fCenter \Delta, !A \lor !B$
  153. \end{prooftree}
  154. Now $\Theta = \Gamma$ and $\Xi = \Delta, !A \lor !B$. Consider
  155. \iftag{FOL}{!!a{structure}~$\Struct{M}$}{!!a{valuation}~$\pAssign{v}$}.
  156. Since $\Gamma \Sequent \Delta, !A$ is valid, (a)
  157. $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!A}$, (b)
  158. $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!C}$ for some $!C \in \Gamma$, or
  159. (c)~$\iftag{FOL}{\Sat{M}}{\pSat{v}}{!C}$ for some $!C \in \Delta$.
  160. In case (a), $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!A \lor !B}$. In case
  161. (b), there is $!C \in \Gamma$ such that
  162. $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!C}$. In case (c), there is $!C
  163. \in \Delta$ such that $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!C}$. So in
  164. each case, \iftag{FOL}{$\Struct{M}$}{$\pAssign{v}$} satisfies
  165. $\Gamma \Sequent \Delta, !A \lor !B$, i.e., $\Theta \Sequent \Xi$.
  166. Since \iftag{FOL}{$\Struct{M}$}{$\pAssign{v}$} was arbitrary,
  167. $\Theta \Sequent \Xi$ is valid. The case where $!A \lor !B$ is
  168. inferred from $!B$ is handled the same, changing $!A$ to $!B$.
  169. \item The last inference is \RightR{\lif}: Then $\pi$ ends in
  170. \begin{prooftree}
  171. \AxiomC{}
  172. \Deduce$!A, \Gamma \fCenter \Delta, !B$
  173. \RightLabel{\RightR{\lif}}
  174. \UnaryInf$\Gamma \fCenter \Delta, !A \lif !B$
  175. \end{prooftree}
  176. Again, the induction hypothesis says that the premise is valid; we
  177. want to show that the conclusion is valid as well. Let
  178. \iftag{FOL}{$\Struct{M}$}{$\pAssign{v}$} be arbitrary. Since $!A,
  179. \Gamma \Sequent \Delta, !B$ is valid, at least one of the following
  180. cases obtains: (a) $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!A}$, (b)
  181. $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!B}$, (c)
  182. $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!C}$ for some~$~!C \in \Gamma$, or
  183. (d) $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!C}$ for some $!C \in \Delta$.
  184. In cases (a) and (b), $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!A \lif !B}$
  185. and so there is a $!C \in \Delta, !A \lif !B$ such that
  186. $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!C}$. In case (c), for some $!C \in
  187. \Gamma$, $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!C}$. In case (d), for
  188. some $!C \in \Delta$, $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!C}$. In each
  189. case, \iftag{FOL}{$\Struct{M}$}{$\pAssign{v}$} satisfies $\Gamma
  190. \Sequent \Delta, !A \lif !B$. Since
  191. \iftag{FOL}{$\Struct{M}$}{$\pAssign{v}$} was arbitrary, $\Gamma
  192. \Sequent \Delta, !A \lif !B$ is valid. \iftag{FOL}{%
  193. \item The last inference is \LeftR{\lforall}: Then there is
  194. !!a{formula}~$!A(x)$ and a closed term~$t$ such that $\pi$ ends in
  195. \begin{prooftree}
  196. \AxiomC{}
  197. \Deduce$!A(t), \Gamma \fCenter \Delta$
  198. \RightLabel{\LeftR{\lforall}}
  199. \UnaryInf$\lforall[x][!A(x)], \Gamma \fCenter \Delta$
  200. \end{prooftree}
  201. We want to show that the conclusion $\lforall[x][!A(x)], \Gamma
  202. \Sequent \Delta$ is valid. Consider !!a{structure}~$\Struct M$.
  203. Since the premise $!A(t), \Gamma \Sequent \Delta$ is valid, (a)
  204. $\Sat/{M}{!A(t)}$, (b) $\Sat/{M}{!C}$ for some $!C \in \Gamma$, or
  205. (c)~$\Sat{M}{!C}$ for some $!C \in \Delta$. In case (a), by
  206. \olref[syn][sem]{prop:quant-terms}, if
  207. $\Sat{M}{\lforall[x][!A(x)]}$, then $\Sat{M}{!A(t)}$. Since
  208. $\Sat/{M}{!A(t)}$, $\Sat/{M}{\lforall[x][!A(x)]}$ . In case (b) and
  209. (c), $\Struct{M}$ also satisfies $\lforall[x][!A(x)], \Gamma
  210. \Sequent \Delta$. Since $\Struct M$ was arbitrary,
  211. $\lforall[x][!A(x)], \Gamma \Sequent \Delta$ is valid.
  212. \item The last inference is \RightR{\lexists}: Exercise.
  213. \item The last inference is \RightR{\lforall}: Then there is
  214. !!a{formula}~$!A(x)$ and !!a{constant}~$a$ such that $\pi$ ends in
  215. \begin{prooftree}
  216. \AxiomC{}
  217. \Deduce$\Gamma \fCenter \Delta, !A(a)$
  218. \RightLabel{\RightR{\lforall}}
  219. \UnaryInf$\Gamma \fCenter \Delta, \lforall[x][!A(x)]$
  220. \end{prooftree}
  221. where the eigenvariable condition is satisfied, i.e., $a$ does not
  222. occur in $!A(x)$, $\Gamma$, or $\Delta$. By induction hypothesis,
  223. the premise of the last inference is valid. We have to show that
  224. the conclusion is valid as well, i.e., that for any
  225. !!{structure}~$\Struct M$, (a) $\Sat{M}{\lforall[x][!A(x)]}$, (b)
  226. $\Sat/{M}{!C}$ for some $!C \in \Gamma$, or (c)~$\Sat{M}{!C}$ for
  227. some $!C \in \Delta$.
  228. Suppose $\Struct{M}$ is an arbitrary !!{structure}. If (b) or (c)
  229. holds, we are done, so suppose neither holds: for all $!C \in
  230. \Gamma$, $\Sat{M}{!C}$, and for all $!C \in \Delta$,
  231. $\Sat/{M}{!C}$. We have to show that (a) holds, i.e.,
  232. $\Sat{M}{\lforall[x][!A(x)]}$. By
  233. \olref[syn][ass]{prop:sat-quant}, if suffices to show that
  234. $\Sat{M}{!A(x)}[s]$ for all variable assignments~$s$. So let $s$ be
  235. an arbitrary variable assignment. Consider the
  236. structure~$\Struct{M'}$ which is just like~$\Struct{M}$ except
  237. $\Assign{a}{M'} = s(x)$. By
  238. \olref[syn][ext]{cor:extensionality-sent}, for any $!C \in \Gamma$,
  239. $\Sat{M'}{!C}$ since $a$ does not occur in~$\Gamma$, and for any
  240. $!C \in \Delta$, $\Sat/{M'}{!C}$. But the premise is valid, so
  241. $\Sat{M'}{!A(a)}$. By \olref[syn][ass]{prop:sentence-sat-true},
  242. $\Sat{M'}{!A(a)}[s]$, since $!A(a)$ is a sentence. Now $\varAssign{s}{s}{x}$
  243. with $s(x) = \Value{a}{M'}[s]$, since we've defined $\Struct{M'}$ in
  244. just this way. So \olref[syn][ext]{prop:ext-formulas} applies, and
  245. we get $\Sat{M'}{!A(x)}[s]$. Since $a$ does not occur in~$!A(x)$, by
  246. \olref[syn][ext]{prop:extensionality}, $\Sat{M}{!A(x)}[s]$. Since
  247. $s$ was arbitrary, we've completed the proof that
  248. $\Sat{M}{!A(x)}[s]$ for all variable assignments.
  249. \item The last inference is \LeftR{\lexists}: Exercise.
  250. }{}
  251. \end{enumerate}
  252. Now let's consider the possible inferences with two premises.
  253. \begin{enumerate}
  254. \item The last inference is a cut: then $\pi$ ends in
  255. \begin{prooftree}
  256. \AxiomC{}
  257. \Deduce$\Gamma \fCenter \Delta, !A$
  258. \AxiomC{}
  259. \Deduce$!A, \Pi \fCenter \Lambda$
  260. \RightLabel{\Cut}
  261. \BinaryInf$\Gamma, \Pi \fCenter \Delta, \Lambda$
  262. \end{prooftree}
  263. Let \iftag{FOL}{$\Struct{M}$ be !!a{structure}}{$\pAssign{v}$ be
  264. !!a{valuation}}. By induction hypothesis, the premises are valid,
  265. so \iftag{FOL}{$\Struct{M}$}{$\pAssign{v}$} satisfies both premises.
  266. We distinguish two cases: (a) $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!A}$
  267. and (b) $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!A}$. In case (a), in order
  268. for \iftag{FOL}{$\Struct{M}$}{$\pAssign{v}$} to satisfy the left
  269. premise, it must satisfy $\Gamma \Sequent \Delta$. But then it also
  270. satisfies the conclusion. In case (b), in order for
  271. \iftag{FOL}{$\Struct{M}$}{$\pAssign{v}$} to satisfy the right
  272. premise, it must satisfy $\Pi \setminus \Lambda$. Again,
  273. \iftag{FOL}{$\Struct{M}$}{$\pAssign{v}$} satisfies the conclusion.
  274. \item The last inference is \RightR{\land}. Then $\pi$ ends in
  275. \begin{prooftree}
  276. \AxiomC{}
  277. \Deduce$\Gamma \fCenter \Delta, !A$
  278. \AxiomC{}
  279. \Deduce$\Gamma \fCenter \Delta, !B$
  280. \RightLabel{\RightR{\land}}
  281. \BinaryInf$\Gamma \fCenter \Delta, !A \land !B$
  282. \end{prooftree}
  283. Consider \iftag{FOL}{!!a{structure}~$\Struct
  284. M$}{!!a{valuation}~$\pAssign{v}$}. If
  285. \iftag{FOL}{$\Struct{M}$}{$\pAssign{v}$} satisfies $\Gamma \Sequent
  286. \Delta$, we are done. So suppose it doesn't. Since $\Gamma \fCenter
  287. \Delta, !A$ is valid by induction hypothesis,
  288. $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!A}$. Similarly, since $\Gamma
  289. \Sequent \Delta, !B$ is valid,
  290. $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!B}$. But then
  291. $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!A \land !B}$.
  292. \item The last inference is \LeftR{\lor}: Exercise.
  293. \item The last inference is \LeftR{\lif}. Then $\pi$ ends in
  294. \begin{prooftree}
  295. \AxiomC{}
  296. \Deduce$\Gamma \fCenter \Delta, !A$
  297. \AxiomC{}
  298. \Deduce$!B, \Pi \fCenter \Lambda$
  299. \RightLabel{\LeftR{\lif}}
  300. \BinaryInf$!A \lif !B, \Gamma, \Pi \fCenter \Delta, \Lambda$
  301. \end{prooftree}
  302. Again, consider
  303. \iftag{FOL}{!!a{structure}~$\Struct{M}$}{!!a{valuation}~$\pAssign{v}$}
  304. and suppose \iftag{FOL}{$\Struct{M}$}{$\pAssign{v}$} doesn't satisfy
  305. $\Gamma, \Pi \Sequent \Delta, \Lambda$. We have to show that
  306. $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!A \lif !B}$. If
  307. \iftag{FOL}{$\Struct{M}$}{$\pAssign{v}$} doesn't satisfy $\Gamma,
  308. \Pi \Sequent \Delta, \Lambda$, it satisfies neither $\Gamma \Sequent
  309. \Delta$ nor $\Pi \Sequent \Lambda$. Since, $\Gamma \Sequent \Delta,
  310. !A$ is valid, we have $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!A}$. Since
  311. $!B, \Pi \Sequent \Lambda$ is valid, we have
  312. $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!B}$. But then
  313. $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!A \lif !B}$, which is what we
  314. wanted to show.
  315. \end{enumerate}
  316. \end{proof}
  317. \tagprob{FOL}
  318. \begin{prob}
  319. Complete the proof of \olref[fol][seq][sou]{thm:sequent-soundness}.
  320. \end{prob}
  321. \tagendprob
  322. \tagprob{notFOL}
  323. \begin{prob}
  324. Complete the proof of \olref[pl][seq][sou]{thm:sequent-soundness}.
  325. \end{prob}
  326. \tagendprob
  327. \begin{cor}
  328. \ollabel{cor:weak-soundness}
  329. If $\Proves !A$ then $!A$ is \iftag{FOL}{valid}{a tautology}.
  330. \end{cor}
  331. \begin{cor}
  332. \ollabel{cor:entailment-soundness}
  333. If $\Gamma \Proves !A$ then $\Gamma \Entails !A$.
  334. \end{cor}
  335. \begin{proof}
  336. If $\Gamma \Proves !A$ then for some finite subset $\Gamma_0 \subseteq
  337. \Gamma$, there is !!a{derivation} of $\Gamma_0 \Sequent !A$. By
  338. \olref{thm:sequent-soundness}, every
  339. \iftag{FOL}{!!{structure}~$\Struct{M}$}{!!{valuation}~$\pAssign{v}$}
  340. either makes some $!B \in \Gamma_0$ false or makes $!A$ true. Hence,
  341. if $\iftag{FOL}{\Sat{M}}{\pSat{v}}{\Gamma}$ then also
  342. $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!A}$.
  343. \end{proof}
  344. \begin{cor}
  345. \ollabel{cor:consistency-soundness}
  346. If $\Gamma$ is satisfiable, then it is consistent.
  347. \end{cor}
  348. \begin{proof}
  349. We prove the contrapositive. Suppose that $\Gamma$ is not consistent.
  350. Then there is a finite $\Gamma_0 \subseteq \Gamma$ and !!a{derivation}
  351. of $\Gamma_0 \Sequent \quad$. By \olref{thm:sequent-soundness},
  352. $\Gamma_0 \Sequent \quad$ is valid. In other words, for every
  353. \iftag{FOL}{!!{structure}~$\Struct{M}$}{!!{valuation}~$\pAssign{v}$},
  354. there is $!C \in \Gamma_0$ so that
  355. $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!C}$, and since $\Gamma_0
  356. \subseteq \Gamma$, that $!C$ is also in~$\Gamma$. Thus, no
  357. \iftag{FOL}{$\Struct{M}$}{$\pAssign{v}$} satisfies~$\Gamma$, and
  358. $\Gamma$ is not satisfiable.
  359. \end{proof}
  360. \end{document}

content/first-order-logic/sequent-calculus/identity.tex

77 lines; SHA-256 f9abed3c3d8c2079b2be27fdcb551c8f1987d1b4db18ece56d4c9e1a7b066856. Open the byte-exact preserved source file.

  1. % Part: first-order-logic
  2. % Chapter: sequent-calculus
  3. % Section: equality
  4. \documentclass[../../../include/open-logic-section]{subfiles}
  5. \begin{document}
  6. \olfileid{fol}{seq}{ide}
  7. \olsection{\usetoken{P}{derivation} with \usetoken{S}{identity}}
  8. !!^{derivation}s with !!{identity} require additional initial sequents
  9. and inference rules.
  10. \begin{defn}[Initial sequents for $\eq$]
  11. If $t$ is a closed term, then ${} \Sequent \eq[t][t]$ is an initial sequent.
  12. \end{defn}
  13. The rules for $\eq$ are ($t_1$ and $t_2$ are closed terms):
  14. \begin{defish}
  15. \Axiom$ \eq[t_1][t_2], \Gamma \fCenter \Delta, !A(t_1) $
  16. \RightLabel{$\eq$}
  17. \UnaryInf$\eq[t_1][t_2], \Gamma \fCenter \Delta, !A(t_2)$
  18. \DisplayProof
  19. \hfill
  20. \Axiom$\eq[t_1][t_2], \Gamma \fCenter \Delta, !A(t_2) $
  21. \RightLabel{$\eq$}
  22. \UnaryInf$\eq[t_1][t_2], \Gamma \fCenter \Delta, !A(t_1)$
  23. \DisplayProof
  24. \end{defish}
  25. \begin{ex}
  26. If $s$ and $t$ are closed terms, then $\eq[s][t], !A(s)
  27. \Proves !A(t)$:
  28. \begin{prooftree}
  29. \Axiom$ !A(s) \fCenter !A(s)$
  30. \RightLabel{\LeftR{\Weakening}}
  31. \UnaryInf$\eq[s][t], !A(s) \fCenter !A(s)$
  32. \RightLabel{$\eq$}
  33. \UnaryInf$\eq[s][t], !A(s) \fCenter !A(t)$
  34. \end{prooftree}
  35. This may be familiar as the principle of substitutability of
  36. identicals, or Leibniz' Law.
  37. $\Log{LK}$ proves that $\eq$ is symmetric and transitive:
  38. \begin{prooftree}
  39. \Axiom$ \fCenter \eq[t_1][t_1] $
  40. \RightLabel{\LeftR{\Weakening}}
  41. \UnaryInf$ \eq[t_1][t_2] \fCenter \eq[t_1][t_1] $
  42. \RightLabel{$\eq$}
  43. \UnaryInf$ \eq[t_1][t_2] \fCenter \eq[t_2][t_1]$
  44. \DisplayProof\qquad\bottomAlignProof
  45. \Axiom$ \eq[t_1][t_2] \fCenter \eq[t_1][t_2] $
  46. \RightLabel{\LeftR{\Weakening}}
  47. \UnaryInf$\eq[t_2][t_3], \eq[t_1][t_2] \fCenter \eq[t_1][t_2] $
  48. \RightLabel{$\eq$}
  49. \UnaryInf$\eq[t_2][t_3], \eq[t_1][t_2] \fCenter \eq[t_1][t_3]$
  50. \RightLabel{\LeftR{\Exchange}}
  51. \UnaryInf$\eq[t_1][t_2], \eq[t_2][t_3] \fCenter \eq[t_1][t_3]$
  52. \end{prooftree}
  53. In the !!{derivation} on the left, the !!{formula}~$\eq[x][t_1]$ is our
  54. $!A(x)$. On the right, we take $!A(x)$ to be~$\eq[t_1][x]$.
  55. \end{ex}
  56. \begin{prob}
  57. Give !!{derivation}s of the following sequents:
  58. \begin{enumerate}
  59. \item $\Sequent \lforall[x][\lforall[y][((x = y \land !A(x)) \lif !A(y))]]$
  60. \item $\lexists[x][!A(x)] \land \lforall[y][\lforall[z][((!A(y) \land
  61. !A(z)) \lif y = z)]] \Sequent
  62. \lexists[x][(!A(x) \land \lforall[y][(!A(y) \lif y = x)])]$
  63. \end{enumerate}
  64. \end{prob}
  65. \end{document}

content/first-order-logic/sequent-calculus/soundness-identity.tex

44 lines; SHA-256 da0c929628dc2c252d9d48d2fff02439e26c7a984db958943aa6cd55bb4ffeb5. Open the byte-exact preserved source file.

  1. % Part: first-order-logic
  2. % Chapter: sequent-calculus
  3. % Section: soundness-identity
  4. \documentclass[../../../include/open-logic-section]{subfiles}
  5. \begin{document}
  6. \olfileid{fol}{seq}{sid}
  7. \olsection{Soundness with \usetoken{S}{identity}}
  8. \begin{prop}
  9. $\Log{LK}$ with initial sequents and rules for identity is sound.
  10. \end{prop}
  11. \begin{proof}
  12. Initial sequents of the form ${} \Sequent \eq[t][t]$ are valid, since
  13. for every !!{structure}~$\Struct M$, $\Sat{M}{\eq[t][t]}$. (Note that
  14. we assume the term $t$ to be closed, i.e., it contains no variables,
  15. so variable assignments are irrelevant).
  16. Suppose the last inference in !!a{derivation} is $=$. Then the premise
  17. is $\eq[t_1][t_2], \Gamma \Sequent \Delta, !A(t_1)$ and the conclusion
  18. is $\eq[t_1][t_2], \Gamma \Sequent \Delta, !A(t_2)$. Consider
  19. !!a{structure}~$\Struct M$. We need to show that the conclusion is
  20. valid, i.e., if $\Sat{M}{\eq[t_1][t_2]}$ and $\Sat{M}{\Gamma}$, then
  21. either $\Sat{M}{!C}$ for some $!C \in \Delta$ or $\Sat{M}{!A(t_2)}$.
  22. By induction hypothesis, the premise is valid. This means that if
  23. $\Sat{M}{\eq[t_1][t_2]}$ and $\Sat{M}{\Gamma}$ either (a) for some $!C
  24. \in \Delta$, $\Sat{M}{!C}$ or (b) $\Sat{M}{!A(t_1)}$. In case (a) we
  25. are done. Consider case (b). Let $s$ be a variable assignment with
  26. $s(x) = \Value{t_1}{M}$. By \olref[syn][ass]{prop:sentence-sat-true},
  27. $\Sat{M}{!A(t_1)}[s]$. Since $\varAssign{s}{s}{x}$, by
  28. \olref[syn][ext]{prop:ext-formulas}, $\Sat{M}{!A(x)}[s]$. since
  29. $\Sat{M}{\eq[t_1][t_2]}$, we have $\Value{t_1}{M} = \Value{t_2}{M}$,
  30. and hence $s(x) = \Value{t_2}{M}$. By applying
  31. \olref[syn][ext]{prop:ext-formulas} again, we also have
  32. $\Sat{M}{!A(t_2)}[s]$. By \olref[syn][ass]{prop:sentence-sat-true},
  33. $\Sat{M}{!A(t_2)}$.
  34. \end{proof}
  35. \end{document}