Source and provenance
All six authority files and all 461 lines are shown exactly and packaged byte-for-byte. These files are shared with the earlier propositional profile; this route binds the canonical First-order tag state and FOL semantic meanings. The spelling correction and source-label disclosure affect reader presentation only; source bytes and the projected transcript remain unchanged. Open the exact accepted projected chapter transcript (SHA-256 ba553e37375752c5db946151d8873c36f0cf65118f5beec33a1925c013288d7e). AI production model: OpenAI Codex gpt-5.6-sol, Ultra. Source authorship remains with the credited Open Logic Project contributors.
content/first-order-logic/proof-systems/proof-systems.tex
31 lines; SHA-256 85b8a0fca16c329ad16b3c17975735c159e0cf9d38e8dfc7501acba84171fb6c. Open the byte-exact preserved source file.
% Part: first-order-logic% Chapter: proof-systems\documentclass[../../../include/open-logic-chapter]{subfiles}\begin{document}\iftag{FOL}{\olchapter{fol}{prf}{\usetoken{S}{derivation} Systems}}{\olchapter{pl}{prf}{\usetoken{S}{derivation} Systems}}\begin{editorial}This chapter collects general material on !!{derivation} systems. Atextbook using a specific system can insert the introduction sectionplus the relevant survey section at the beginning of the chapterintroducing that system.\end{editorial}\olimport{introduction}\olimport{sequent-calculus}\olimport{natural-deduction}\olimport{tableaux}\olimport{axiomatic-deduction}\OLEndChapterHook\end{document}
content/first-order-logic/proof-systems/introduction.tex
101 lines; SHA-256 5172343625a0d66971257858a1a6e359805ffeec979bd5afdc0377864799a756. Open the byte-exact preserved source file.
% Part: first-order-logic% Chapter: proof-systems% Section: introduction\documentclass[../../../include/open-logic-section]{subfiles}\begin{document}\iftag{FOL}{\olfileid{fol}{prf}{int}}{\olfileid{pl}{prf}{int}}\olsection{Introduction}Logics commonly have both a semantics and !!a{derivation}system. The semantics concerns concepts such as truth, satisfiability,validity, and entailment. The purpose of !!{derivation} systems is toprovide a purely syntactic method of establishing entailment andvalidity. They are purely syntactic in the sense that a!!{derivation} in such a system is a finite syntactic object, usuallya sequence (or other finite arrangement) of !!{sentence}s or!!{formula}s. Good !!{derivation} systems have the property that anygiven sequence or arrangement of !!{sentence}s or !!{formula}s can beverified mechanically to be ``correct.''The simplest (and historically first) !!{derivation} systems forfirst-order logic were \emph{axiomatic}. A sequence of !!{formula}scounts as !!a{derivation} in such a system if each individual!!{formula} in it is either among a fixed set of ``axioms'' or followsfrom !!{formula}s coming before it in the sequence by one of a fixednumber of ``inference rules''---and it can be mechanically verified if!!a{formula} is an axiom and whether it follows correctly from other!!{formula}s by one of the inference rules. Axiomatic !!{derivation}systems are easy to describe---and also easy to handlemeta-theoretically---but !!{derivation}s in them are hard to read andunderstand, and are also hard to produce.Other !!{derivation} systems have been developed with the aim ofmaking it easier to construct !!{derivation}s or easier to understand!!{derivation}s once they are complete. Examples are naturaldeduction, truth trees, also known as tableaux proofs, and the sequentcalculus. Some !!{derivation} systems are designed especially withmechanization in mind, e.g., the resolution method is easy toimplement in software (but its !!{derivation}s are essentiallyimpossible to understand). Most of these other !!{derivation} systemsrepresent !!{derivation}s as trees of !!{formula}s rather thansequences. This makes it easier to see which parts of !!a{derivation}depend on which other parts.So for a given logic, such as first-order logic, the different!!{derivation} systems will give different explications of what it isfor !!a{sentence} to be a \emph{theorem} and what it means for!!a{sentence} to be !!{derivable} from some others. However that isdone (via axiomatic !!{derivation}s, natural deductions, sequent!!{derivation}s, truth trees, resolution refutations), we want theserelations to match the semantic notions of validity andentailment. Let's write $\Proves !A$ for ``$!A$~is a theorem'' and``$\Gamma \Proves !A$'' for ``$!A$~is !!{derivable} from~$\Gamma$.''However $\Proves$~is defined, we want it to match up with $\Entails$,that is:\begin{enumerate}\item $\Proves !A$ if and only if $\Entails !A$\item $\Gamma \Proves !A$ if and only if $\Gamma \Entails !A$\end{enumerate}The ``only if'' direction of the above is called\emph{soundness}. !!^a{derivation} system is sound if !!{derivability}guarantees entailment (or validity). Every decent !!{derivation}system has to be sound; unsound !!{derivation} systems are not usefulat all. After all, the entire purpose of !!a{derivation} is to providea syntactic guarantee of validity or entailment. We'll prove soundnessfor the !!{derivation} systems we present.The converse ``if'' direction is also important: it is called\emph{completeness}. A complete !!{derivation} system is strong enoughto show that $!A$~is a theorem whenever $!A$~is valid, and that$\Gamma \Proves !A$ whenever $\Gamma \Entails !A$.Completeness is harder to establish, and some logics have no complete!!{derivation} systems. First-order logic does. Kurt G\"odel was thefirst one to prove completeness for !!a{derivation} system offirst-order logic in his 1929 dissertation.Another concept that is connected to !!{derivation} systems is that of\emph{consistency}. A set of !!{sentence}s is called inconsistent ifanything whatsoever can be !!{derive}d from it, and consistentotherwise. Inconsistency is the syntactic counterpart tounsatisfiablity: like unsatisfiable sets, inconsistent sets of!!{sentence}s do not make good theories, they are defective in afundamental way. Consistent sets of !!{sentence}s may not be true oruseful, but at least they pass that minimal threshold of logicalusefulness. For different !!{derivation} systems the specificdefinition of consistency of sets of !!{sentence}s might differ, butlike~$\Proves$, we want consistency to coincide with its semanticcounterpart, satisfiability. We want it to always be the case that$\Gamma$ is consistent if and only if it is satisfiable. Here, the``only if'' direction amounts to completeness (consistency guaranteessatisfiability), and the ``if'' direction amounts to soundness(satisfiability guarantees consistency). In fact, for classicalfirst-order logic, the two versions of soundness and completeness areequivalent.\end{document}
content/first-order-logic/proof-systems/sequent-calculus.tex
67 lines; SHA-256 9a847c7bd45afe0d177230807fb2ba9dda820b4c0551a9274002db8776182003. Open the byte-exact preserved source file.
% Part: first-order-logic% Chapter: proof-systems% Section: seqeunt-calculus\documentclass[../../../include/open-logic-section]{subfiles}\begin{document}\iftag{FOL}{\olfileid{fol}{prf}{seq}}{\olfileid{pl}{prf}{seq}}\olsection{The Sequent Calculus}While many !!{derivation} systems operate with arrangements of!!{sentence}s, the sequent calculus operates with \emph{sequents}. Asequent is an expression of the form\[!A_1, \dots, !A_m \Sequent !B_1, \dots, !B_m,\]that is a pair of sequences of !!{sentence}s, separated by the sequentsymbol~$\Sequent$. Either sequence may be empty. !!^a{derivation} inthe sequent calculus is a tree of sequents, where the topmost sequentsare of a special form (they are called ``initial sequents'' or``axioms'') and every other sequent follows from the sequentsimmediately above it by one of the rules of inference. The rules ofinference either manipulate the !!{sentence}s in the sequents (adding,removing, or rearranging them on either the left or the right), orthey introduce a complex !!{formula} in the conclusion of the rule.For instance, the $\LeftR{\land}$ rule allows the inference from $!A,\Gamma \Sequent \Delta$ to $!A \land !B, \Gamma \Sequent \Delta$, andthe $\RightR{\lif}$ allows the inference from $!A, \Gamma \Sequent\Delta, !B$ to $\Gamma \Sequent \Delta, !A \lif !B$, for any $\Gamma$,$\Delta$, $!A$, and~$!B$. (In particular, $\Gamma$ and~$\Delta$ may beempty.)The $\Proves$ relation based on the sequent calculus is defined asfollows: $\Gamma \Proves !A$ iff there is some sequence $\Gamma_0$such that every $!A$ in $\Gamma_0$ is in~$\Gamma$ and there is a!!{derivation} with the sequent~$\Gamma_0 \Sequent !A$ at its root.$!A$ is a theorem in the sequent calculus if the sequent~$\Sequent !A$has !!a{derivation}. For instance, here is !!a{derivation} that showsthat $\Proves (!A \land !B) \lif !A$:\begin{prooftree}\Axiom$!A \fCenter !A$\RightLabel{\LeftR{\land}}\UnaryInf$!A \land !B \fCenter !A$\RightLabel{\RightR{\lif}}\UnaryInf$\fCenter (!A \land !B) \lif !A$\end{prooftree}A set $\Gamma$ is inconsistent in the sequent calculus if there is!!a{derivation} of $\Gamma_0 \Sequent$ (where every $!A \in \Gamma_0$is in~$\Gamma$ and the right side of the sequent is empty). Using therule \RightR{\Weakening}, any !!{sentence} can be !!{derive}d from aninconsistent set.The sequent calculus was invented in the 1930s by Gerhard Gentzen.Because of its systematic and symmetric design, it is a very usefulformalism for developing a theory of !!{derivation}s. It is relativelyeasy to find !!{derivation}s in the sequent calculus, but these!!{derivation}s are often hard to read and their connection to proofsare sometimes not easy to see. It has proved to be a very elegantapproach to !!{derivation} systems, however, and many logics havesequent calculus systems.\end{document}
content/first-order-logic/proof-systems/natural-deduction.tex
90 lines; SHA-256 c203daa5161eed34188e9fb9022b83be4f0201904f31cef386c5b838fb9e7d49. Open the byte-exact preserved source file.
% Part: first-order-logic% Chapter: proof-systems% Section: natural-deduction\documentclass[../../../include/open-logic-section]{subfiles}\begin{document}\iftag{FOL}{\olfileid{fol}{prf}{ntd}}{\olfileid{pl}{prf}{ntd}}\olsection{Natural Deduction}Natural deduction is !!a{derivation} system intended to mirror actualreasoning (especially the kind of regimented reasoning employed bymathematicians). Actual reasoning proceeds by a number of ``natural''patterns. For instance, proof by cases allows us to establish aconclusion on the basis of a disjunctive premise, by establishing thatthe conclusion follows from either of the disjuncts. Indirect proofallows us to establish a conclusion by showing that its negation leadsto a contradiction. Conditional proof establishes a conditional claim``if \dots then \dots'' by showing that the consequent follows fromthe antecedent. Natural deduction is a formalization of some of thesenatural inferences. Each of the logical connectives and quantifierscomes with two rules, an introduction and an elimination rule, andthey each correspond to one such natural inference pattern. Forinstance, $\Intro{\lif}$ corresponds to conditional proof, and$\Elim{\lor}$ to proof by cases. A particularly simple rule is$\Elim{\land}$ which allows the inference from $!A \land !B$ to~$!A$(or $!B$).One feature that distinguishes natural deduction from other!!{derivation} systems is its use of assumptions. !!^a{derivation} innatural deduction is a tree of !!{formula}s. A single !!{formula}stands at the root of the tree of !!{formula}s, and the ``leaves'' ofthe tree are !!{formula}s from which the conclusion is derived. Innatural deduction, some leaf !!{formula}s play a role inside the!!{derivation} but are ``used up'' by the time the !!{derivation}reaches the conclusion. This corresponds to the practice, in actualreasoning, of introducing hypotheses which only remain in effect for ashort while. For instance, in a proof by cases, we assume the truthof each of the disjuncts; in conditional proof, we assume the truth ofthe antecedent; in indirect proof, we assume the truth of the negationof the conclusion. This way of introducing hypothetical assumptionsand then doing away with them in the service of establishing anintermediate step is a hallmark of natural deduction. The formulas atthe leaves of a natural deduction !!{derivation} are calledassumptions, and some of the rules of inference may ``!!{discharge}''them. For instance, if we have !!a{derivation} of~$!B$ from someassumptions which include~$!A$, then the $\Intro{\lif}$ rule allows usto infer~$!A \lif !B$ and discharge any assumption of the form~$!A$.(To keep track of which assumptions are discharged at whichinferences, we label the inference and the assumptions it dischargeswith a number.) The assumptions that remain !!{undischarged} at theend of the !!{derivation} are together sufficient for the truth of theconclusion, and so !!a{derivation} establishes that its!!{undischarged} assumptions entail its conclusion.The relation $\Gamma \Proves !A$ based on natural deduction holds iffthere is !!a{derivation} in which $!A$~is the last !!{sentence} in thetree, and every leaf which is !!{undischarged} is in~$\Gamma$. $!A$~isa theorem in natural deduction iff there is !!a{derivation} in which$!A$~is the last !!{sentence} and all assumptions are !!{discharged}.For instance, here is !!a{derivation} that shows that $\Proves (!A\land !B) \lif !A$:\begin{prooftree}\AxiomC{$\Discharge{!A \land !B}{1}$}\RightLabel{\Elim{\land}}\UnaryInfC{$!A$}\DischargeRule{\Intro{\lif}}{1}\UnaryInfC{$(!A \land !B) \lif !A$}\end{prooftree}The label~$1$ indicates that the assumption $!A \land !B$ is!!{discharged} at the \Intro{\lif} inference.A set~$\Gamma$ is inconsistent iff $\Gamma \Proves \lfalse$ in naturaldeduction. The rule \FalseInt{} makes it so that from an inconsistentset, any !!{sentence} can be !!{derive}d.Natural deduction systems were developed by Gerhard Gentzen andStanis\l{}aw Ja\'skowski in the 1930s, and later developed by DagPrawitz and Frederic Fitch. Because its inferences mirror naturalmethods of proof, it is favored by philosophers. The versionsdeveloped by Fitch are often used in introductory logic textbooks. Inthe philosophy of logic, the rules of natural deduction have sometimesbeen taken to give the meanings of the logical operators(``proof-theoretic semantics'').\end{document}
content/first-order-logic/proof-systems/tableaux.tex
89 lines; SHA-256 6abf691f97c618dd41bc0c30a21dcf74fa7025228aa378cfd9f0369a898c2966. Open the byte-exact preserved source file.
% Part: first-order-logic% Chapter: proof-systems% Section: tableaux\documentclass[../../../include/open-logic-section]{subfiles}\begin{document}\iftag{FOL}{\olfileid{fol}{prf}{tab}}{\olfileid{pl}{prf}{tab}}\olsection{\usetoken{P}{tableau}}While many !!{derivation} systems operate with arrangements of!!{sentence}s, !!{tableau}s operate with !!{signed formula}s.!!^a{signed formula} is a pair consisting of a truth value sign($\True$ or $\False$) and !!a{sentence}\[\sFmla{\True}{!A} \text{ or } \sFmla{\False}{!A}.\]!!^a{tableau} consists of !!{signed formula}s arranged in adownward-branching tree. It begins with a number of \emph{assumptions}and continues with !!{signed formula}s which result from one of the!!{signed formula}s above it by applying one of the rules ofinference. Each rule allows us to add one or more !!{signed formula}sto the end of a branch, or two !!{signed formula}s side by side---inthis case a branch splits into two, with the two added !!{signedformula}s forming the ends of the two branches.A rule applied to a complex !!{signed formula} results in the additionof !!{signed formula}s which are immediate sub-!!{formula}s. They comein pairs, one rule for each of the two signs. For instance, the$\TRule{\True}{\land}$ rule applies to $\sFmla{\True}{!A \land !B}$,and allows the addition of both the two !!{signed formula}s$\sFmla{\True}{!A}$ and~$\sFmla{\True}{!B}$ to the end of any branchcontaining $\sFmla{\True}{!A \land !B}$, and the rule$\TRule{\False}{!A \land !B}$ allows a branch to be split by adding$\sFmla{\False}{!A}$ and $\sFmla{\False}{!B}$ side-by-side.!!^a{tableau} is closed if every one of its branches contains amatching pair of !!{signed formula}s $\sFmla{\True}{!A}$ and$\sFmla{\False}{!A}$.The $\Proves$ relation based on !!{tableau}s is defined as follows:$\Gamma \Proves !A$ iff there is some finite set~$\Gamma_0 = \{!B_1,\dots, !B_n\} \subseteq \Gamma$ such that there is a closed !!{tableau}for the assumptions\[\{\sFmla{\False}{!A}, \sFmla{\True}{!B_1}, \dots, \sFmla{\True}{!B_n}\}\]For instance, here is a closed !!{tableau} that shows that $\Proves(!A \land !B) \lif !A$:\begin{oltableau}[\sFmla{\False}{(\formula{A} \land \formula{B}) \lif \formula{A}}, just = \TAss[\sFmla{\True}{\formula{A} \land \formula{B}}, just = {\TRule{\False}{\lif}[1]}[\sFmla{\False}{\formula{A}}, just = {\TRule{\False}{\lif}[1]}[\sFmla{\True}{\formula{A}}, just = {\TRule{\True}{\lif}[2]}[\sFmla{\True}{\formula{B}}, just = {\TRule{\True}{\lif}[2]}, close]]]]]\end{oltableau}A set $\Gamma$ is inconsistent in the !!{tableau} calculus if there isa closed !!{tableau} for assumptions\[\{\sFmla{\True}{!B_1}, \dots, \sFmla{\True}{!B_n}\}\]for some $!B_i \in \Gamma$.!!^{tableau}s were invented in the 1950s independently by EvertBeth and Jaakko Hintikka, and simplified and popularized by RaymondSmullyan. They are very easy to use, since constructing !!a{tableau} is avery systematic procedure. Because of the systematic nature of!!{tableau}s, they also lend themselves to implementation bycomputer. However, !!a{tableau} is often hard to read and theirconnection to proofs are sometimes not easy to see. The approach isalso quite general, and many different logics have !!{tableau}systems. !!^{tableau}s also help us to find !!{structure}s thatsatisfy given (sets of) !!{sentence}s: if the set is satisfiable, itwon't have a closed !!{tableau}, i.e., any !!{tableau} will have anopen branch. The satisfying !!{structure} can be ``read off'' an openbranch, provided every rule it is possible to apply has been appliedon that branch. There is also a very close connection to the sequentcalculus: essentially, a closed !!{tableau} is a condensed!!{derivation} in the sequent calculus, written upside-down.\end{document}
content/first-order-logic/proof-systems/axiomatic-deduction.tex
83 lines; SHA-256 0269390efeb94a0522020ce00d45f1d1e752e4a32db564b7519d7a939fa13034. Open the byte-exact preserved source file.
% Part: first-order-logic% Chapter: proof-systems% Section: axiomatic-deduction\documentclass[../../../include/open-logic-section]{subfiles}\begin{document}\iftag{FOL}{\olfileid{fol}{prf}{axd}}{\olfileid{pl}{prf}{axd}}\olsection{Axiomatic \usetoken{P}{derivation}}Axiomatic !!{derivation}s are the oldest and simplest logical!!{derivation} systems. Its !!{derivation}s are simply sequences of!!{sentence}s. A sequence of !!{sentence}s counts as a correct!!{derivation} if every !!{sentence}~$!A$ in it satisfies one of thefollowing conditions:\begin{enumerate}\item $!A$ is an axiom, or\item $!A$ is !!a{element} of a given set~$\Gamma$ of !!{sentence}s, or\item $!A$ is justified by a rule of inference.\end{enumerate}To be an axiom, $!A$ has to have the form of one of a number of fixed!!{sentence} schemas. There are many sets of axiom schemas thatprovide a satisfactory (sound and complete) !!{derivation} system forfirst-order logic. Some are organized according to the connectivesthey govern, e.g., the schemas\[!A \lif (!B \lif !A) \qquad !B \lif (!B \lor !C) \qquad (!B \land !C) \lif !B\]are common axioms that govern $\lif$, $\lor$ and~$\land$. Some axiom systemsaim at a minimal number of axioms. Depending on the connectives thatare taken as primitives, it is even possible to find axiom systemsthat consist of a single axiom.A rule of inference is a conditional statement that gives a sufficientcondition for !!a{sentence} in !!a{derivation} to be justified. Modusponens is one very common such rule: it says that if $!A$ and $!A \lif!B$ are already justified, then $!B$ is justified. This means that aline in !!a{derivation} containing the !!{sentence}~$!B$ is justified,provided that both $!A$ and $!A \lif !B$ (for some !!{sentence}~$!A$)appear in the !!{derivation} before~$!B$.The $\Proves$ relation based on axiomatic !!{derivation}s is definedas follows: $\Gamma \Proves !A$ iff there is !!a{derivation} with the!!{sentence}~$!A$ as its last formula (and $\Gamma$ is taken as theset of !!{sentence}s in that !!{derivation} which are justified by~(2) above). $!A$is a theorem if~$!A$ has !!a{derivation} where~$\Gamma$ is empty,i.e., every !!{sentence} in the !!{derivation} is justified either by (1)or~(3). For instance, here is !!a{derivation} that shows that $\Proves!A \lif (!B \lif (!B \lor !A))$:\begin{derivation}1. & $!B \lif (!B \lor !A)$ \\2. & $(!B \lif (!B \lor !A)) \lif (!A \lif (!B \lif (!B \lor !A)))$\\3. & $!A \lif (!B \lif (!B \lor !A))$\end{derivation}The !!{sentence} on line~1 is of the form of the axiom $!A \lif (!A\lor !B)$ (with the roles of $!A$ and $!B$ reversed). The sentence online~2 is of the form of the axiom $!A \lif (!B \lif !A)$. Thus, bothlines are justified. Line~3 is justified by modus ponens: if weabbreviate it as $!D$, then line~2 has the form $!C \lif !D$, where$!C$ is $!B \lif (!B \lor !A)$, i.e., line~1.A set $\Gamma$ is inconsistent if $\Gamma \Proves \lfalse$. A completeaxiom system will also prove that $\lfalse \lif !A$ for any~$!A$, andso if $\Gamma$ is inconsistent, then $\Gamma \Proves !A$ for any~$!A$.Systems of axiomatic !!{derivation}s for logic were first given byGottlob Frege in his 1879 \emph{Begriffsschrift}, which for thisreason is often considered the first work of modern logic. They wereperfected in Alfred North Whitehead and Bertrand Russell's\emph{Principia Mathematica} and by David Hilbert and his students inthe 1920s. They are thus often called ``Frege systems'' or ``Hilbertsystems.'' They are very versatile in that it is often easy to findan axiomatic system for a logic. Because !!{derivation}s have a verysimple structure and only one or two inference rules, it is alsorelatively easy to prove things \emph{about} them. However, they arevery hard to use in practice, i.e., it is difficult to find and writeproofs.\end{document}