content/many-valued-logic/sequent-calculus/sequent-calculus.tex
1% Part: many-valued-logic2% Chapter: three-valued-logics34\documentclass[../../../include/open-logic-chapter]{subfiles}56\begin{document}78\olchapter{mvl}{seq}{Sequent Calculus}910\olimport{introduction}1112\olimport{rules-and-proofs}1314\olimport{structural-rules}1516\olimport{propositional-rules}1718\OLEndChapterHook1920\end{document}
content/many-valued-logic/sequent-calculus/introduction.tex
1% Part: many-valued-logic2% Chapter: sequent-calculus3% Section: introduction45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{mvl}{seq}{int}1011\olsection{Introduction}1213The sequent calculus for classical logic is an efficient and simple14!!{derivation} system. If a many-valued logic is defined by a matrix with15finitely many truth values, i.e., $V$ is finite, it is possible to16provide a sequent calculus for it. The idea for how to do this comes17from considering the meanings of sequents and the form of inference18rules in the classical case. 1920Now recall that a sequent 21\begin{align*}22 !A_1, \dots, !A_n & \Sequent !B_1, \dots, !B_n23\intertext{can be interpreted as the !!{formula}}24 (!A_1 \land \cdots \land !A_m) & \lif (!B_1 \lor \cdots \lor25!B_n)26\end{align*}27In other words, !!^a{valuation}~$\pAssign{v}$ \emph{satisfies} a28sequent $\Gamma \Sequent \Delta$ iff either $\pValue{v}(!A) = \False$29for some $!A \in \Gamma$ or $\pValue{v}(!A) = \True$ for some $!A \in30\Delta$. On this interpretation, initial sequents $!A \Sequent !A$ are31always satisfied, because either $\pValue v(!A) = \True$ or $\pValue(!A) =32\False$.3334Here are the inference rules for the conditional in~$\Log{LK}$, with35side formulas $\Gamma$, $\Delta$ left out:3637\begin{defish}38 \Axiom$ \fCenter !A$39 \Axiom$ !B \fCenter $40 \RightLabel{\LeftR{\lif}}41 \BinaryInf$ !A \lif !B \fCenter $42 \DisplayProof43 \hfill44 \Axiom$ !A \fCenter !B$45 \RightLabel{\RightR{\lif}}46 \UnaryInf$ \fCenter !A \lif !B $47 \DisplayProof48\end{defish}4950If we apply the above semantic interpretation of a sequent, we can51read the $\LeftR{\lif}$ rule as saying that if $\pValue v(!A) = \True$52and $\pValue v(!B) = \False$, then $\pValue v(!A \lif !B) = \False$.53Similarly, the $\RightR{\lif}$ rule says that if either $\pValue v(!A)54= \False$ or $\pValue v(!B) = \True$, then $\pValue v(!A \lif !B) =55\True$. And in fact, these conditionals are actually biconditionals.56In the case of the $\LeftR{\land}$ and $\RightR{\lor}$ rules in their57standard formulation, the corresponding conditionals would not be58biconditionals. But there are alternative versions of these rules59where they are:6061\begin{defish}62 \Axiom$!A, !B, \Gamma \fCenter \Delta$63 \RightLabel{\LeftR{\land}}64 \UnaryInf$!A \land !B, \Gamma \fCenter \Delta$65 \DisplayProof66 \hfill67 \Axiom$ \Gamma \fCenter \Delta, !A, !B$68 \RightLabel{\RightR{\lor}}69 \UnaryInf$ \Gamma \fCenter \Delta, !A \lor !B$70 \DisplayProof71\end{defish}7273This basic idea, applied to an $n$-valued logic, then results in a74sequent calculus with $n$ instead of two places, one for each truth75value. For a three-valued logic with $V = \{\False, \Undef, \True\}$,76a sequent is an expression $\Gamma \mid \Pi \mid \Delta$. It is77satisfied in !!a{valuation}~$\pAssign v$ iff either $\pValue{v}(!A) =78\False$ for some $!A \in \Gamma$ or $\pValue{v}(!A) = \True$ for some79$!A \in \Delta$ or $\pValue{v}(!A) = \Undef$ for some $!A \in \Pi$.80Consequently, initial sequents $!A \mid !A \mid !A$ are always81satisfied.8283\end{document}
content/many-valued-logic/sequent-calculus/rules-and-proofs.tex
1% Part: first-order-logic2% Chapter: sequent-calculus3% Section: rules-and-proofs45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{mvl}{seq}{rul}1011\olsection{Rules and \usetoken{P}{derivation}}1213For the following, let $\Gamma, \Delta, \Pi, \Lambda$ represent finite14sequences of !!{sentence}s.1516\begin{defn}[Sequent]17An \emph{$n$-sided sequent} is an expression of the form18\[19\Gamma_1 \nSequent \dots \nSequent \Gamma_n20\]21where each $\Gamma_1$ is a finite (possibly empty) sequences of22!!{sentence}s of the language~$\Lang L$.23\end{defn}2425\begin{defn}[Initial Sequent]26An \emph{$n$-sided initial sequent} is an $n$-sided sequent of the27form $!A \nSequent \dots \nSequent !A$ for any !!{sentence} $!A$ in28the language.2930If the language contains a $0$-place connective~$\star$, i.e., a31propositional constant, then we also take the sequent $\dots \nSequent32\star \nSequent \dots$ where $\star$ appears in the space for the truth33value associated with~$\tf{\star} \in V$, and is empty otherwise. 34\end{defn}3536For each connective of an $n$-valued logic~$\Log{L}$, there is a37logical rule for each truth value that this connective can take38in~$\Log{L}$. !!^{derivation}s in an $n$-sided sequent calculus39for~$\Log{L}$ are trees of sequents, where the topmost sequents are40initial sequents, and if a sequent stands below one or more other41sequents, it must follow correctly by a rule of inference for the42connectives of~$\Log{L}$.4344\begin{defn}[Theorems]45!!^a{sentence}~$!A$ is a \emph{theorem} of an $n$-valued46logic~$\Log{L}$ if there is !!a{derivation}47of the $n$-sequent containing $!A$ in each position corresponding to a48designated truth value of~$\Log{L}$. We write $\Proves[\Log{L}]49!A$ if $!A$ is a theorem and $\Proves/[\Log{L}] !A$ if it is not.50\end{defn}5152\begin{defn}[!!^{derivability}]53!!^a{sentence}~$!A$ is \emph{!!{derivable} from} a set of54!!{sentence}s~$\Gamma$ in an $n$-valued logic~$\Log{L}$, $\Gamma55\Proves[\Log{L}] !A$, iff there is a finite subset~$\Gamma_0 \subseteq56\Gamma$ and a sequence $\Gamma_0'$ of the !!{sentence}s in~$\Gamma_0$57such that the following sequent has !!a{derivation}:58\[ \Lambda_1 \nSequent \dots \nSequent \Lambda_n \] where $\Lambda_i$59is $!A$ if position $i$ corresponds to a designated truth value, and60$\Gamma_0'$otherwise. If $!A$ is not !!{derivable} from $\Gamma$ we61write $\Gamma \Proves/ !A$.62\end{defn}6364For instance, $3$-valued \L ukasiewicz logic has a $3$-sided sequent65calculus. In a $3$-sided sequent $\Gamma \nSequent \Pi \nSequent66\Delta$, $\Gamma$ corresponds to~$\False$, $\Delta$ to~$\True$, and67$\Pi$ to~$\Undef$. Axioms are $!A \nSequent !A \nSequent !A$. Since68only $\True$ is designated, $\Gamma \Proves[\LogLuk[3]] !A$ iff the69sequent $\Gamma \nSequent \Gamma \nSequent !A$ has !!a{derivation}.70(If $\Undef$ were also designated, we would need !!a{derivation} of71$\Gamma \nSequent !A \nSequent !A$.)7273\end{document}
content/many-valued-logic/sequent-calculus/structural-rules.tex
1% Part: many-valued-logics2% Chapter: sequent-calculus3% Section: structural-rules45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{mvl}{seq}{str}1011\olsection{Structural Rules}1213The structural rules for $n$-sided sequent calculus operate as in the14classical case, except for each position~$i$.1516\begin{defish}17\begin{center}18\AxiomC{$ \Gamma_1 \nSequent \dots \nSequent \phantom{!A,}\Gamma_i \nSequent \dots \nSequent \Gamma_n $}19\RightLabel{$\iR{\Weakening}{i}$}20\UnaryInfC{$\Gamma_1 \nSequent \dots \nSequent !A, \Gamma_i \nSequent \dots \nSequent \Gamma_n$}21\DisplayProof22\\[2ex]23\AxiomC{$ \Gamma_1 \nSequent \dots \nSequent !A, !A, \Gamma_i \nSequent \dots \nSequent \Gamma_n $}24\RightLabel{$\iR{\Contraction}{i}$}25\UnaryInfC{$\Gamma_1 \nSequent \dots \nSequent \phantom{!A,}!A, \Gamma_i \nSequent26\dots \nSequent \Gamma_n$}27\DisplayProof28\\[2ex]29\AxiomC{$ \Gamma_1 \nSequent \dots \nSequent \Gamma_i, !A, !B, \Gamma_i' \nSequent \dots \nSequent \Gamma_n $}30\RightLabel{$\iR{\Exchange}{i}$}31\UnaryInfC{$\Gamma_1 \nSequent \dots \nSequent \Gamma_i, !B, !A, \Gamma_i' \nSequent \dots32\nSequent \Gamma_n$}33\DisplayProof34\end{center}35\end{defish}3637A series of weakening, contraction, and exchange inferences will often38be indicated by double inference lines.3940The \Cut{} rule comes in several forms, one for every combination of41distinct positions in the sequent $i \neq j$:42\begin{defish}43\[44\AxiomC{$ \Gamma_1 \nSequent \dots \nSequent !A, \Gamma_i \nSequent \dots \nSequent \Gamma_n $}45\AxiomC{$ \Delta_1 \nSequent \dots \nSequent !A, \Delta_j \nSequent \dots \nSequent \Delta_n $}46\RightLabel{$\iR{\Cut}{i,j}$}47\BinaryInfC{$\Gamma_1,\Delta_1 \nSequent \dots \nSequent \Gamma_n, \Delta_n$}48\DisplayProof49\]50\end{defish}5152\end{document}
content/many-valued-logic/sequent-calculus/propositional-rules.tex
1% Part: first-order-logic2% Chapter: sequent-calculus3% Section: propositional-rules45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{mvl}{seq}{prl}1011\olsection{Propositional Rules for Selected Logics}1213The inference rules for a connective in an $n$-sided sequent calculus14only depend on the characteristic truth function for the connective.15Thus, if some connective is defined by the same truth function in16different logics, these $n$-sided sequent rules for the connective are17the same in those logics.1819\subsection{Rules for $\lnot$}2021The following rules for $\lnot$ apply to \L ukasiewicz and Kleene22logics, and their variants.2324\begin{defish}25 \begin{center}26\AxiomC{$ \Gamma \nSequent \Pi \nSequent \Delta, !A $}27\RightLabel{\iR{\lnot}{\False}}28\UnaryInfC{$ \lnot !A, \Gamma \nSequent \Pi \nSequent \Delta$}29\DisplayProof30\\[2ex]31\AxiomC{$ \Gamma \nSequent !A, \Pi \nSequent \Delta $}32\RightLabel{\iR{\lnot}{\Undef}}33\UnaryInfC{$\Gamma \nSequent \lnot !A, \Pi \nSequent \Delta$}34\DisplayProof35\\[2ex]36\AxiomC{$!A, \Gamma \nSequent \Pi \nSequent \Delta$}37\RightLabel{\iR{\lnot}{\True}}38\UnaryInfC{$\Gamma \nSequent \Pi \nSequent \Delta, \lnot !A$}39\DisplayProof40 \end{center}41\end{defish}4243The following rules for $\lnot$ apply to G\"odel logic.4445\begin{defish}46\AxiomC{$ \Gamma \nSequent !A, \Pi \nSequent \Delta, !A $}47\RightLabel{\iR{\lnot}{\False}[\LogGod]}48\UnaryInfC{$ \lnot !A, \Gamma \nSequent \Pi \nSequent \Delta$}49\DisplayProof50\hfill51\AxiomC{$!A, \Gamma \nSequent \Pi \nSequent \Delta$}52\RightLabel{\iR{\lnot}{\True}[\LogGod]}53\UnaryInfC{$\Gamma \nSequent \Pi \nSequent \Delta, \lnot !A$}54\DisplayProof55\hfill56\end{defish}5758(In G\"odel logic, $\lnot !A$ can never take the value~$\Undef$, so59there is no rule for the middle position.)6061\subsection{Rules for $\land$}6263These are the rules for $\land$ in \L ukasiewicz, strong Kleene, and64G\"odel logic.6566\begin{defish}67\begin{center}68 \AxiomC{$!A, !B, \Gamma \nSequent \Pi \nSequent \Delta$}69 \RightLabel{$\iR{\land}{\False}$}70 \UnaryInfC{$!A \land !B, \Gamma \nSequent \Pi \nSequent \Delta$}71 \DisplayProof72\\[2ex]73 \AxiomC{$\Gamma \nSequent !A, \Pi \nSequent !A, \Delta$}74 \AxiomC{$\Gamma \nSequent !B, \Pi \nSequent !B, \Delta$}75 \AxiomC{$\Gamma \nSequent !A, !B, \Pi \nSequent \Delta$}76 \RightLabel{$\iR\land\Undef$}77 \TrinaryInfC{$\Gamma \nSequent !A \land !B, \Pi \nSequent \Delta$}78 \DisplayProof79 \\[2ex] 80 \AxiomC{$\Gamma \nSequent \Pi \nSequent \Delta, !A$}81 \AxiomC{$\Gamma \nSequent \Pi \nSequent \Delta, !B$}82 \RightLabel{$\iR\land\True$}83 \BinaryInfC{$\Gamma \nSequent \Pi \nSequent \Delta, !A \land !B$}84 \DisplayProof85\end{center}86\end{defish}8788\subsection{Rules for $\lor$}8990These are the rules for $\lor$ in \L ukasiewicz, strong Kleene, and91G\"odel logic.9293\begin{defish}94\begin{center}95 \AxiomC{$!A, \Gamma \nSequent \Pi \nSequent \Delta$}96 \AxiomC{$!B, \Gamma \nSequent \Pi \nSequent \Delta$}97 \RightLabel{$\iR\lor\False$}98 \BinaryInfC{$!A \lor !B, \Gamma \nSequent \Pi \nSequent \Delta$}99 \DisplayProof100\\[2ex]101 \AxiomC{$!A, \Gamma \nSequent !A, \Pi \nSequent \Delta$}102 \AxiomC{$!B, \Gamma \nSequent !B, \Pi \nSequent \Delta$}103 \AxiomC{$\Gamma \nSequent !A, !B, \Pi \nSequent \Delta$}104 \RightLabel{$\iR\lor\Undef$}105 \TrinaryInfC{$\Gamma \nSequent !A \lor !B, \Pi \nSequent \Delta$}106 \DisplayProof107 \\[2ex] 108 \AxiomC{$\Gamma \nSequent \Pi \nSequent \Delta, !A, !B$}109 \RightLabel{$\iR\lor\True$}110 \UnaryInfC{$\Gamma \nSequent \Pi \nSequent \Delta, !A \lor !B$}111 \DisplayProof112\end{center}113\end{defish}114115\subsection{Rules for $\lif$}116117These are the rules for $\lif$ in \L ukasiewicz logic.118119\begin{defish}120\begin{center}121 \AxiomC{$\Gamma \nSequent \Pi \nSequent \Delta, !A$}122 \AxiomC{$!B, \Gamma \nSequent \Pi \nSequent \Delta$}123 \RightLabel{$\iR\lif\False[\LogLuk[3]]$}124 \BinaryInfC{$!A \lif !B, \Gamma \nSequent \Pi \nSequent \Delta$}125 \DisplayProof126 \\[2ex]127 \AxiomC{$\Gamma \nSequent !A, !B, \Pi \nSequent \Delta$}128 \AxiomC{$!B, \Gamma \nSequent \Pi \nSequent \Delta, !A$}129 \RightLabel{$\iR\lif\Undef[\LogLuk[3]]$}130 \BinaryInfC{$\Gamma \nSequent !A \lif !B, \Pi \nSequent \Delta$}131 \DisplayProof132\\[2ex]133 \AxiomC{$!A, \Gamma \nSequent !B, \Pi \nSequent \Delta, !B$}134 \AxiomC{$!A, \Gamma \nSequent !A, \Pi \nSequent \Delta, !B$}135 \RightLabel{$\iR{\lif}{\True}[\LogLuk[3]]$}136 \BinaryInfC{$\Gamma \nSequent \Pi \nSequent \Delta, !A \lif !B$}137 \DisplayProof138\end{center}139\end{defish}140141These are the rules for $\lif$ in strong Kleene logic.142143\begin{defish}144\begin{center}145 \AxiomC{$\Gamma \nSequent \Pi \nSequent \Delta, !A$}146 \AxiomC{$!B, \Gamma \nSequent \Pi \nSequent \Delta$}147 \RightLabel{$\iR\lif\False[\LogKs]$}148 \BinaryInfC{$!A \lif !B, \Gamma \nSequent \Pi \nSequent \Delta$}149 \DisplayProof150 \\[2ex]151 \AxiomC{$!B, \Gamma \nSequent !B, \Pi \nSequent \Delta$}152 \AxiomC{$\Gamma \nSequent !A, !B, \Pi \nSequent \Delta$}153 \AxiomC{$\Gamma \nSequent !A, \Pi \nSequent \Delta, !A$}154 \RightLabel{$\iR\lif\Undef[\LogKs]$}155 \TrinaryInfC{$\Gamma \nSequent !A \lif !B, \Pi \nSequent \Delta$}156 \DisplayProof157\\[2ex]158 \AxiomC{$!A, \Gamma \nSequent \Pi \nSequent \Delta, !B$}159 \RightLabel{$\iR{\lif}{\True}[\LogKs]$}160 \UnaryInfC{$\Gamma \nSequent \Pi \nSequent \Delta, !A \lif !B$}161 \DisplayProof162\end{center}163\end{defish}164165These are the rules for $\lif$ in G\"odel logic.166167\begin{defish}168\begin{center}169 \AxiomC{$\Gamma \nSequent !A, \Pi \nSequent \Delta, !A$}170 \AxiomC{$!B, \Gamma \nSequent \Pi \nSequent \Delta$}171 \RightLabel{$\iR\lif\False[\LogGod[3]]$}172 \BinaryInfC{$!A \lif !B, \Gamma \nSequent \Pi \nSequent \Delta$}173 \DisplayProof174 \\[2ex]175 \AxiomC{$\Gamma \nSequent !B, \Pi \nSequent \Delta$}176 \AxiomC{$\Gamma \nSequent \Pi \nSequent \Delta, !A$}177 \RightLabel{$\iR\lif\Undef[\LogGod[3]]$}178 \BinaryInfC{$\Gamma \nSequent !A \lif !B, \Pi \nSequent \Delta$}179 \DisplayProof180\\[2ex]181 \AxiomC{$!A, \Gamma \nSequent !B, \Pi \nSequent \Delta, !B$}182 \AxiomC{$!A, \Gamma \nSequent !A, \Pi \nSequent \Delta, !B$}183 \RightLabel{$\iR{\lif}{\True}[\LogGod[3]]$}184 \BinaryInfC{$\Gamma \nSequent \Pi \nSequent \Delta, !A \lif !B$}185 \DisplayProof186\end{center}187\end{defish}188189190\begin{sidewaysfigure}191 \begin{center} 192 \AxiomC{$A \nSequent A \nSequent A$}193 \RightLabel{\iR \Weakening \True}194 \UnaryInfC{$A \nSequent A \nSequent B, A$}195 \RightLabel{\iR \Weakening \Undef}196 \UnaryInfC{$A \nSequent B, A \nSequent B, A$}197 \RightLabel{\iR \Weakening \Undef}198 \UnaryInfC{$A \nSequent A, B, A \nSequent B, A$}199 \AxiomC{$A \nSequent A \nSequent A$}200 \RightLabel{\iR \Weakening \True}201 \UnaryInfC{$A \nSequent A \nSequent A, A$}202 \RightLabel{\iR \Weakening \True}203 \UnaryInfC{$A \nSequent A \nSequent B, A, A$}204 \RightLabel{\iR \Weakening \False}205 \UnaryInfC{$B, A \nSequent A \nSequent B, A, A$}206 \RightLabel{$\iR\lif\Undef$}207 \BinaryInfC{$A \nSequent A \lif B, A \nSequent B, A$}208 \AxiomC{$B \nSequent B \nSequent B$}209 \RightLabel{\iR \Weakening \Undef}210 \UnaryInfC{$B \nSequent A, B \nSequent B$}211 \RightLabel{\iR \Exchange \Undef}212 \UnaryInfC{$B \nSequent B, A \nSequent B$}213 \RightLabel{\iR \Weakening \Undef}214 \UnaryInfC{$B \nSequent A, B, A \nSequent B$}215 \RightLabel{\iR \Weakening \False}216 \UnaryInfC{$A, B \nSequent A, B, A \nSequent B$}217 \RightLabel{\iR \Exchange \False}218 \UnaryInfC{$B, A \nSequent A, B, A \nSequent B$}219 \AxiomC{$A \nSequent A \nSequent A$}220 \RightLabel{\iR \Weakening \True}221 \UnaryInfC{$A \nSequent A \nSequent B, A$}222 \RightLabel{\iR \Weakening \False}223 \UnaryInfC{$B, A \nSequent A \nSequent B, A$}224 \RightLabel{\iR \Weakening \False}225 \UnaryInfC{$B, B, A \nSequent A \nSequent B, A$}226 \RightLabel{$\iR\lif\Undef$}227 \BinaryInfC{$B, A \nSequent A \lif B, A \nSequent B$}228 \RightLabel{$\iR\lif\False$}229 \BinaryInfC{$A \lif B, A \nSequent A \lif B, A \nSequent B$}230 \DisplayProof231 \end{center}232 \caption{Example !!{derivation} in~$\LogLuk[3]$}233\end{sidewaysfigure}234235\end{document}