content/normal-modal-logic/axioms-systems/axioms-systems.tex
1% Part: normal-modal-logic2% Chapter: axioms-systems34\documentclass[../../../include/open-logic-chapter]{subfiles}56\begin{document}78\olchapter{nml}{prf}{Axiomatic \usetoken{P}{derivation}}910\olimport{introduction}11\olimport{normal-logics}12\olimport{logics-proofs}13\olimport{proofs-in-K}14\olimport{derived-rules}15\olimport{more-proofs-in-K}16\olimport{duals}17\olimport{proofs-modal-systems}18\olimport{soundness}19\olimport{systems-distinct}20\olimport{provability-from-set}21\olimport{provability-properties}22\olimport{consistency}2324\OLEndChapterHook2526\end{document}27
content/normal-modal-logic/axioms-systems/introduction.tex
1% Part: normal-modal-logic2% Chapter: axioms-systems3% Section: introduction45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{nml}{axs}{int}1011\olsection{Introduction}1213We have a semantics for the basic modal language in terms of modal14models, and a notion of !!a{formula} being valid---true at all worlds15in all models---or valid with respect to some class of models or16frames---true at all worlds in all models in the class, or based on17the frame. Logic usually connects such semantic characterizations of18validity with a proof-theoretic notion of !!{derivability}. The aim is19to define a notion of !!{derivability} in some system such that20!!a{formula} is !!{derivable} iff it is valid.2122The simplest and historically oldest !!{derivation} systems are23so-called Hilbert-type or axiomatic !!{derivation} systems.24Hilbert-type !!{derivation} systems for many modal logics are25relatively easy to construct: they are simple as objects of26metatheoretical study (e.g., to prove soundness and27completeness). However, they are much harder to use to prove28!!{formula}s in than, say, natural deduction systems.2930In Hilbert-type !!{derivation} systems, !!a{derivation} of !!a{formula}31is a sequence of !!{formula}s leading from certain axioms, via a32handful of inference rules, to the !!{formula} in question. Since we33want the !!{derivation} system to match the semantics, we have to34guarantee that the set of !!{derivable} formulas are true in all35models (or true in all models in which all axioms are true). We'll36first isolate some properties of modal logics that are necessary for37this to work: the ``normal'' modal logics. For normal modal logics,38there are only two inference rules that need to be assumed: modus39ponens and necessitation. As axioms we take all (substitution40instances) of tautologies, and, depending on the modal logic we deal41with, a number of modal axioms. Even if we are just interested in the42class of all models, we must also count all substitution instances43of~$\Ax{K}$\iftag{notprvDiamond}{}{ and~$\Ax{Dual}$} as axioms. This44alone generates the minimal normal modal logic~$\Log K$.4546\begin{defn}47The rule of \emph{modus ponens} is the inference schema48\begin{prooftree}49\AxiomC{$!A$}50\AxiomC{$!A \lif !B$}51\RightLabel{\MP}52\BinaryInfC{$!B$}53\end{prooftree}54We say !!a{formula}~$!B$ \emph{follows from}~!!{formula}s $!A$, $!C$55by modus ponens iff $!C \ident !A \lif !B$.56\end{defn}5758\begin{defn}59The rule of \emph{necessitation} is the inference schema60\begin{prooftree}61\AxiomC{$!A$}62\RightLabel{\Nec}63\UnaryInfC{$\Box !A$}64\end{prooftree}65We say the !!{formula}~$!B$ follows from the !!{formula}s $!A$ by66necessitation iff $!B \ident \Box !A$.67\end{defn}6869\begin{defn}70A \emph{!!{derivation}} from a set of axioms~$\Sigma$ is a sequence of71!!{formula}s $!B_1$, $!B_2$, \dots, $!B_n$, where each $!B_i$ is72either73\begin{enumerate}74\item a substitution instance of a tautology, or75\item a substitution instance of !!a{formula} in~$\Sigma$, or76\item follows from two !!{formula}s $!B_j$, $!B_k$ with $j$, $k < i$77 by modus ponens, or78\item follows from !!a{formula}~$!B_j$ with $j < i$ by necessitation.79\end{enumerate}80If there is such !!a{derivation} with $!B_n \ident !A$, we say that81$!A$ is \emph{!!{derivable} from $\Sigma$}, in symbols $\Sigma \Proves !A$.82\end{defn}8384With this definition, it will turn out that the set of !!{derivable}85formulas forms a normal modal logic, and that any !!{derivable}86!!{formula} is true in every model in which every axiom is true. This87property of !!{derivation}s is called \emph{soundness}. The converse,88\emph{completeness}, is harder to prove.8990\end{document}
content/normal-modal-logic/axioms-systems/normal-logics.tex
1% Part: normal-modal-logic2% Chapter: axioms-systems3% Section: normal-logics45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{nml}{prf}{nor}1011\olsection{Normal Modal Logics}1213Not every set of modal !!{formula}s can easily be characterized as14those !!{formula}s derivable from a set of axioms. We want modal15logics to be well-behaved. First of all, everything we can !!{derive}16in classical propositional logic should still be !!{derivable}, of17course taking into account that the !!{formula}s may now contain also18\iftag{prvBox}{$\Box$\iftag{prvDiamond}{19 and~}{}}{}\iftag{prvDiamond}{$\Diamond$}{}. To this end, we20require that a modal logic contain all tautological instances and be21closed under modus ponens.2223\begin{defn}24 A \emph{modal logic} is a set~$\Sigma$ of modal !!{formula}s which25 \begin{enumerate}26 \item contains all tautologies, and27 \item is closed under substitution, i.e., if $!A \in \Sigma$, and28 $!D_1$, \dots, $!D_n$ are !!{formula}s, then29 \[30 \SSubst{!A}{\subst{!D_1}{p_1}, \dots, \subst{!D_n}{p_n}} \in \Sigma,31 \]32 \item is closed under \emph{modus ponens}, i.e., if $!A$ and $!A33 \lif !B \in \Sigma$, then $!B \in \Sigma$.34 \end{enumerate}35\end{defn}3637In order to use the relational semantics for modal logics, we also38have to require that all !!{formula}s valid in all modal models are39included. It turns out that this requirement is met as soon as all40instances of \Ax{K}\iftag{prvDiamond}{ and~\Dual{}}{} are41!!{derivable}, and whenever !!a{formula}~$!A$ is !!{derivable}, so42is~$\Box !A$. A modal logic that satisfies these conditions is called43\emph{normal}. (Of course, there are also non-normal modal logics, but44the usual relational models are not adequate for them.)4546\begin{defn}47 A modal logic $\Sigma$ is \emph{normal} if it contains48 \begin{align*}49 \tag{\Ax{K}} & \Box(p \lif q) \lif (\Box p \lif \Box q),50 \iftag{prvDiamond}{\\51 \tag{\Dual} & \Diamond p \liff \lnot\Box\lnot p}{}52 \end{align*}53 and is closed under \emph{necessitation}, i.e., if $!A \in54 \Sigma$, then $\Box !A \in \Sigma$.55\end{defn}5657Observe that while tautological implication is ``fine-grained'' enough58to preserve \emph{truth at a world}, the rule \Nec{} only preserves59\emph{truth in a model} (and hence also validity in a frame or in a60class of frames).6162\begin{prop}\ollabel{prop:rk}63 Every normal modal logic is closed under rule \RK,64 \begin{prooftree}65 \AxiomC{$!A_1 \lif (!A_2 \lif \cdots (!A_{n-1} \lif !A_n)\cdots)$}66 \RightLabel{\RK}67 \UnaryInfC{$\Box!A_1 \lif (\Box!A_2 \lif \cdots (\Box!A_{n-1}68 \lif \Box!A_n)\cdots).$}69 \end{prooftree}70\end{prop}7172\begin{proof}73 By induction on~$n$: If $n = 1$, then the rule is just \Nec, and74 every normal modal logic is closed under \Nec.7576 Now suppose the result holds for $n-1$; we show it holds for~$n$.7778 Assume79 \begin{align*}80 & !A_1 \lif (!A_2 \lif \cdots (!A_{n-1} \lif !A_n)\cdots) \in \Sigma81 \intertext{By the induction hypothesis, we have}82 & \Box!A_1 \lif (\Box!A_2 \lif \cdots \Box(!A_{n-1} \lif !A_n)\cdots)83 \in \Sigma84 \intertext{Since $\Sigma$ is a normal modal logic, it contains all85 instances of~$\Ax{K}$, in particular}86 & \Box(!A_{n-1} \lif !A_n) \lif (\Box!A_{n-1} \lif \Box!A_n) \in \Sigma87 \intertext{Using modus ponens and suitable tautological instances we get}88 & \Box!A_1 \lif (\Box!A_2 \lif \cdots (\Box!A_{n-1}89 \lif \Box!A_n)\cdots) \in \Sigma. 90 \end{align*}91\end{proof}9293\begin{prop}\ollabel{prop:notDiamondBot}94 Every normal modal logic $\Sigma$ contains~$\lnot\Diamond\lfalse$.95\end{prop}9697\begin{prob}98 Prove \olref[nml][prf][nor]{prop:notDiamondBot}.99\end{prob}100101\begin{prop}102 Let $!A_1$, \dots, $!A_n$ be !!{formula}s. Then there is a103 smallest modal logic $\Sigma$ containing all instances of104 $!A_1$, \dots, $!A_n$.105\end{prop}106107\begin{proof}108 Given $!A_1$, \dots, $!A_n$, define $\Sigma$ as the109 intersection of all normal modal logics containing all instances of110 $!A_1$, \dots, $!A_n$. The intersection is non-empty as111 $\Frm[L]$, the set of all !!{formula}s, is such a modal112 logic.113\end{proof}114115\begin{defn}116The smallest normal modal logic containing $!A_1$, \dots, $!A_n$ is117called a \emph{modal system} and denoted by $\Log{K} !A_1 \dots118!A_n$. The smallest normal modal logic is denoted by~\Log{K}.119\end{defn}120121\end{document}
content/normal-modal-logic/axioms-systems/logics-proofs.tex
1% Part: normal-modal-logic2% Chapter: axioms-systems3% Section: logics-proofs45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{nml}{prf}{prf}1011\olsection{\usetoken{P}{derivation} and Modal Systems}1213We first define what !!a{derivation} is for normal modal14logics. Roughly, !!a{derivation} is a sequence of !!{formula}s in15which every !!{element} is either (a substitution instance of) one of16a number of \emph{axioms}, or follows from previous !!{element}s by17one of a few inference rules. For normal modal logics, all instances18of tautologies\iftag{prvDiamond}{, \Ax{K}, and~\Dual{}}{ and~\Ax{K}}19count as axioms. This results in the modal system~$\Log{K}$, the20smallest normal modal logic. We may wish to add additional axioms to21obtain other systems, however. The rules are always modus ponens~\MP{}22and necessitation~\Nec.2324\begin{defn}25 Given a modal system $\Log{K} !A_1 \dots !A_n$ and !!a{formula}~$!B$26 we say that $!B$ is \emph{!!{derivable}} in $\Log{K} !A_1 \dots27 !A_n$, written $\Log{K} !A_1 \dots !A_n \Proves !B$, if and only if28 there are !!{formula}s $!C_1$, \dots, $!C_k$ such that $!C_k = !B$29 and each $!C_i$ is either a tautological instance, or an instance of30 one of $\Ax{K}$,\iftag{prvDiamond}{ $\Dual$,}{} $!A_1$,31 \dots, $!A_n$, or it follows from previous !!{formula}s by means of32 the rules \MP{} or~\Nec.33\end{defn}3435The following proposition allows us to show that $!B \in \Sigma$36by exhibiting a $\Sigma$-!!{derivation} of~$!B$.3738\begin{prop}39 $\Log{K} !A_1 \dots !A_n = \Setabs{!B}{\Log{K} !A_1 \dots !A_n \Proves !B}$.40\end{prop}4142\begin{proof}43 We use induction on the length of !!{derivation}s to show that44 $\Setabs{!B}{\Log{K} !A_1 \dots !A_n \Proves !B} \subseteq45 \Log{K} !A_1 \dots !A_n$.4647 If the !!{derivation} of~$!B$ has length~$1$, it contains a single48 !!{formula}. That !!{formula} cannot follow from previous formulas49 by \MP{} or \Nec, so must be a tautological instance, an instance of50 \Ax{K},\iftag{prvDiamond}{ $\Dual$,}{} or an instance51 of one of $!A_1$, \dots,~$!A_n$. But $\Log{K}!A_1\dots!A_n$ contains52 these as well, so $!B \in \Log{K}!A_1 \dots !A_n$.5354 If the !!{derivation} of $!B$ has length~$> 1$, then $!B$ may in55 addition be obtained by \MP{} or \Nec{} from !!{formula}s not56 occurring as the last line in the !!{derivation}. If $!B$ follows57 from $!C$ and $!C \lif !B$ (by \MP), then $!C$ and $!C \lif !B \in58 \Log{K}!A_1 \dots !A_n$ by induction hypothesis. But every modal59 logic is closed under modus ponens, so $!B \in \Log{K}!A_1 \dots60 !A_n$. If $!B \equiv \Box !C$ follows from $!C$ by \Nec, then $!C61 \in \Log{K}!A_1 \dots !A_n$ by induction hypothesis. But every62 normal modal logic is closed under $\Nec$, so $!B \in63 \Log{K}!A_1\dots!A_n$.6465 The converse inclusion follows by showing that66 $\Sigma = \Setabs{!B}{\Log{K} !A_1 \dots !A_n \Proves !B }$ is a normal67 modal logic containing all the instances of $!A_1$,68 \dots, $!A_n$, and the observation that $\Log{K} !A_1 \dots !A_n$69 is, by definition, the smallest such logic.70 \begin{enumerate}71 \item Every tautology~$!B$ is a tautological instance, so72 $\Log{K}!A_1\dots!A_n \Proves !B$, so $\Sigma$ contains all73 tautologies.74 \item If $\Log{K}!A_1\dots!A_n \Proves !C$ and75 $\Log{K}!A_1\dots!A_n \Proves !C \lif !B$, then76 $\Log{K}!A_1\dots!A_n \Proves !B$: Combine the !!{derivation} of77 $!C$ with that of $!C \lif !B$, and add the line~$!B$. The last78 line is justified by \MP{}. So $\Sigma$ is closed under modus79 ponens.80 \item If $!B$ has !!a{derivation}, then every substitution81 instance of~$!B$ also has !!a{derivation}: apply the substitution82 to every !!{formula} in the !!{derivation}. (Exercise: prove by83 induction on the length of !!{derivation}s that the result is84 also a correct !!{derivation}). So $\Sigma$ is closed under85 uniform substitution. (We have now established that $\Sigma$86 satisfies all conditions of a modal logic.)87 \item We have $\Log{K}!A_1\dots!A_n \Proves \Ax{K}$, so $K \in \Sigma$.88 \tagitem{prvDiamond}{We have89 $\Log{K}!A_1\dots!A_n \Proves \Dual$, so $\Dual \in \Sigma$.}{}90 \item If $\Log{K}!A_1\dots!A_n \Proves !C$, the additional91 line~$\Box !C$ is justified by~\Nec. Consequently, $\Sigma$ is92 closed under~\Nec. Thus, $\Sigma$ is normal.93 \end{enumerate}94\end{proof}9596\end{document}
content/normal-modal-logic/axioms-systems/proofs-in-K.tex
1% Part: normal-modal-logic2% Chapter: axioms-systems3% Section: proofs-in-K45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{nml}{prf}{prk}1011\olsection{Proofs in \Log{K}}1213In order to practice proofs in the smallest modal system, we show the14valid !!{formula}s on the left-hand side of15\olref[syn][sch]{tab:valid-invalidSchemas} can all be given16\Log{K}-proofs.1718\begin{prop}19 $\Log{K} \Proves \Box!A \lif \Box (!B\lif !A)$20\end{prop}2122\begin{proof}23 \begin{derivation}24 1. & $!A \lif (!B \lif !A)$ & \Taut \\25 2. & $\Box(!A \lif (!B \lif !A))$ & \Nec, 1 \\26 3. & $\Box(!A \lif (!B \lif !A)) \lif27 (\Box!A \lif \Box(!B \lif !A))$ & \Ax{K}\\28 4. & $\Box!A \lif \Box (!B\lif !A)$ & \MP, 2, 329 \end{derivation}30\end{proof}3132\begin{prop}33 $\Log{K} \Proves \Box(!A \land !B) \lif (\Box !A \land \Box!B)$34\end{prop}3536\begin{proof}37\begin{derivation}38 1. & $(!A \land !B) \lif !A$ & \Taut \\39 2. & $\Box((!A \land !B) \lif !A)$ & \Nec \\40 3. & $\Box((!A \land !B) \lif !A) \lif (\Box(!A \land !B) \lif \Box!A)$41 & \Ax{K} \\42 4. & $\Box(!A \land !B) \lif \Box!A$ & \MP, 2, 3 \\43 5. & $(!A \land !B) \lif !B$ & \Taut \\44 6. & $\Box((!A \land !B) \lif !B)$ & \Nec \\45 7. & $\Box((!A \land !B) \lif !B) \lif (\Box(!A \land !B) \lif \Box!B)$46 & \Ax{K} \\47 8. & $\Box(!A \land !B) \lif \Box!B$ & \MP, 6, 7 \\48 9. & $(\Box(!A \land !B) \lif \Box!A) \lif{}$ \\49 & \qquad $((\Box(!A \land !B) \lif \Box!B) \lif{}$ \\50 & \qquad $(\Box(!A \land !B) \lif (\Box !A \land \Box!B)))$ & \Taut\\51 10. & $(\Box(!A \land !B) \lif \Box!B) \lif{}$ \\52 & \qquad $(\Box(!A \land !B) \lif (\Box !A \land \Box!B))$ & \MP, 4, 9\\53 11. & $\Box(!A \land !B) \lif (\Box !A \land \Box!B)$ & \MP, 8, 10.54\end{derivation}55Note that the !!{formula} on line~$9$ is an instance of the tautology56\[57(p \lif q) \lif ((p \lif r) \lif (p \lif (q \land r))).58\]59\end{proof}6061\begin{prop}62 $\Log{K}\Proves (\Box!A \land \Box!B) \lif \Box (!A \land !B)$63\end{prop}6465\begin{proof}66 \begin{derivation}67 1. & $!A \lif (!B \lif (!A \land !B))$ & \Taut \\68 2. & $\Box(!A \lif (!B \lif (!A \land !B)))$ & \Nec, 1 \\69 3. & $\Box(!A \lif (!B \lif (!A \land !B))) \lif (\Box!A \lif \Box(!B \lif (!A \land !B)))$ & \Ax{K}\\70 4. & $\Box!A \lif \Box(!B \lif (!A \land !B))$ & \MP, 2, 3\\71 5. & $\Box(!B \lif (!A \land !B)) \lif (\Box!B \lif \Box(!A \land !B))$ & \Ax{K} \\72 6. & $(\Box!A \lif \Box(!B \lif (!A \land !B))) \lif {}$ \\73 & \qquad $(\Box(!B \lif (!A \land !B)) \lif (\Box!B \lif \Box(!A \land !B))) \lif {}$\\74 & \qquad $(\Box!A \lif (\Box !B \lif \Box(!A \land !B))))$ & \Taut\\75 7. & $(\Box(!B \lif (!A \land !B)) \lif (\Box!B \lif \Box(!A \land !B))) \lif {}$\\76 & \qquad $(\Box!A \lif (\Box !B \lif \Box(!A \land !B)))$ & \MP, 4, 6\\77 8. & $\Box!A \lif (\Box !B \lif \Box(!A \land !B)))$ & \MP, 5, 7\\78 9. & $(\Box!A \lif (\Box !B \lif \Box(!A \land !B)))) \lif {}$\\79 & \qquad $((\Box!A \land \Box!B) \lif \Box(!A \land !B))$ & \Taut\\80 10. & $(\Box!A \land \Box!B) \lif \Box(!A \land !B)$ & \MP, 8, 981 \end{derivation}82 The !!{formula}s on lines $6$ and $9$ are instances of the tautologies83 \begin{align*}84 (p \lif q) & \lif ((q \lif r) \lif (p \lif r)) \\85 (p \lif (q \lif r)) & \lif ((p \land q) \lif r)86 \end{align*}87\end{proof}8889\begin{prop}90 \iftag{prvBox}{$\Log{K} \Proves \lnot\Box p \lif \Diamond \lnot91 p$}{$\Log{K} \Proves \Box\lnot p \lif \lnot\Diamond p$}92\end{prop}9394\begin{proof}95 \iftag{prvBox}{\iftag{prvDiamond}{% Box and Diamond are primitive96 \begin{derivation}97 1. & $\Diamond \lnot p \liff \lnot\Box\lnot\lnot p$ & \Dual\\98 2. & $(\Diamond \lnot p \liff \lnot\Box\lnot\lnot p) \lif {}$ \\99 & \qquad $(\lnot \Box \lnot\lnot p \lif \Diamond \lnot p)$& \Taut\\100 3. & $\lnot \Box \lnot\lnot p \lif \Diamond \lnot p$ & \MP, 1, 2\\101 4. & $\lnot\lnot p \lif p$ & \Taut\\102 5. & $\Box(\lnot\lnot p \lif p)$ & \Nec, 4\\103 6. & $\Box(\lnot\lnot p \lif p) \lif (\Box \lnot\lnot p \lif \Box p)$ & \Ax{K}\\104 7. & $(\Box \lnot\lnot p \lif \Box p)$ & \MP, 5, 6\\105 8. & $(\Box \lnot\lnot p \lif \Box p) \lif (\lnot \Box p \lif \lnot\Box\lnot\lnot p)$ & \Taut\\106 9. & $\lnot \Box p \lif \lnot\Box\lnot\lnot p$ & \MP, 7, 8\\107 10. & $(\lnot \Box p \lif \lnot\Box\lnot\lnot p) \lif {}$ \\108 & \qquad $((\lnot \Box \lnot\lnot p \lif \Diamond \lnot p) \lif (\lnot \Box p \lif \Diamond\lnot p))$ & \Taut\\109 11. & $(\lnot \Box \lnot\lnot p \lif \Diamond \lnot p) \lif (\lnot \Box p \lif \Diamond\lnot p)$ & \MP, 9, 10\\110 12. & $\lnot\Box p \lif \Diamond \lnot p$ & \MP, 3, 11\\111 \end{derivation}112 The !!{formula}s on lines $8$ and $10$ are instances of the tautologies113 \begin{align*}114 & (p \lif q) \lif (\lnot q \lif \lnot p) \\115 & (p \lif q) \lif ((q \lif r) \lif (p \lif r)).116 \end{align*}117 }{% Diamond is defined118 \begin{derivation}119 1. & $\lnot\lnot p \lif p$ & \Taut\\120 2. & $\Box(\lnot\lnot p \lif p)$ & \Nec, 1\\121 3. & $\Box(\lnot\lnot p \lif p) \lif (\Box \lnot\lnot p \lif \Box p)$ & \Ax{K}\\122 4. & $(\Box \lnot\lnot p \lif \Box p)$ & \MP, 2, 3\\123 5. & $(\Box \lnot\lnot p \lif \Box p) \lif (\lnot \Box p \lif \lnot\Box\lnot\lnot p)$ & \Taut\\124 6. & $\lnot \Box p \lif \lnot\Box\lnot\lnot p$ & \MP, 4, 5\\125 & $\lnot\Box p \lif \Diamond \lnot p$126 \end{derivation}127 The last line is $\lnot \Box p \lif \Diamond\lnot p$, since128 $\Diamond$ is defined as $\lnot\Box\lnot$. The !!{formula} on129 line~$5$ is an instance of the tautology130 \[131 (p \lif q) \lif (\lnot q \lif \lnot p).132 \]133 }}{% Box is defined134 \begin{derivation}135 1. & $\Diamond p \liff \lnot\Box\lnot p$ & \Dual\\136 2. & $(\Diamond p \liff \lnot\Box\lnot p) \lif137 (\Diamond p \lif \lnot \Box \lnot p)$& \Taut\\138 3. & $\Diamond p \lif \lnot \Box \lnot p$ & \MP, 1, 2\\139 4. & $(\Diamond p \lif \lnot \Box \lnot p) \lif (\Box\lnot p \lif \lnot\Diamond p)$ & \Taut\\140 5. & $\Box\lnot p \lif \lnot\Diamond p$ & \MP, 3, 4141 \end{derivation}142 The !!{formula} on143 line~$4$ is an instance of the tautology144 \begin{align*}145 & (p \lif \lnot q) \lif (q \lif \lnot p).146 \end{align*}147}148\end{proof}149150\begin{prob}151 Find !!{derivation}s in~$\Log{K}$ for the following !!{formula}s:152 \begin{enumerate}153 \item $\Box \lnot p \lif \Box(p \lif q)$154 \item $(\Box p \lor \Box q) \lif \Box(p \lor q)$155 \item $\Diamond p \lif \Diamond(p \lor q)$156 \end{enumerate}157\end{prob}158159\end{document}
content/normal-modal-logic/axioms-systems/derived-rules.tex
1% Part: normal-modal-logic2% Chapter: axioms-systems3% Section: derived-rules45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{nml}{prf}{der}1011\olsection{Derived Rules}1213Finding and writing !!{derivation}s is obviously difficult,14cumbersome, and repetitive. For instance, very often we want to pass15from $!A \lif !B$ to $\Box !A \lif \Box !B$, i.e., apply16rule~\RK. That requires an application of \Nec, then recording the17proper instance of~\Ax{K}, then applying~\MP. Passing from $!A \lif18!B$ and $!B \lif !C$ to $!A \lif !C$ requires recording the (long)19tautological instance20\[21(!A \lif !B) \lif ((!B \lif !C) \lif (!A \lif !C))22\]23and applying \MP{} twice. Often we want to replace a sub-!!{formula}24by a formula we know to be equivalent, e.g., \iftag{prvDiamond}{$\Diamond25 !A$ by $\lnot\Box\lnot !A$}{$\Box !A$ by $\lnot\Diamond\lnot !A$}, or26$\lnot\lnot !A$ by $!A$. So rather than write out the actual27!!{derivation}, it is more convenient to simply record why the28intermediate steps are !!{derivable}. For this purpose, let us collect29some facts about !!{derivability}.3031\begin{prop}32 If $\Log{K} \Proves !A_1$, \dots, $\Log{K} \Proves !A_n$, and $!B$33 follows from $!A_1$, \dots, $!A_n$ by propositional logic, then34 $\Log{K} \Proves !B$.35\end{prop}3637\begin{proof}38 If $!B$ follows from $!A_1$, \dots,~$!A_n$ by propositional logic, then39 \[40 !A_1 \lif (!A_2 \lif \cdots (!A_n \lif !B)\dots)41 \]42 is a tautological instance. Applying \MP{} $n$ times gives a43 !!{derivation} of~$!B$.44\end{proof}4546We will indicate use of this proposition by~\PL.4748\begin{prop}49 If $\Log{K} \Proves !A_1 \lif (!A_2 \lif \cdots (!A_{n-1} \lif50 !A_n)\dots)$ then $\Log{K} \Proves \Box !A_1 \lif (\Box !A_2 \lif51 \cdots (\Box !A_{n-1} \lif \Box !A_n)\dots)$.52\end{prop}5354\begin{proof}55 By induction on $n$, just as in the proof of \olref[nor]{prop:rk}.56\end{proof}5758We will indicate use of this proposition by~\RK. Let's illustrate how59these results help establishing !!{derivability} results more easily.6061\begin{prop}62 $\Log{K} \Proves (\Box!A \land \Box!B) \lif \Box (!A \land !B)$63\end{prop}6465\begin{proof}66 \begin{derivation}67 1. & $\Log{K} \Proves !A \lif (!B \lif (!A \land !B))$ & \Taut \\68 2. & $\Log{K} \Proves \Box!A \lif (\Box !B \lif \Box(!A \land !B)))$ & \RK, 1\\69 3. & $\Log{K} \Proves (\Box!A \land \Box!B) \lif \Box(!A \land !B)$ & \PL, 270 \end{derivation}71\end{proof}7273\begin{prop}\ollabel{prop:rewriting}74 If $\Log{K} \Proves !A \liff !B$ and $\Log{K} \Proves75 \Subst{!C}{!A}{q}$ then $\Log{K} \Proves \Subst{!C}{B}{q}$76\end{prop}7778\begin{proof}79 Exercise.80\end{proof}8182\begin{prob}83 Prove \olref[nml][prf][der]{prop:rewriting} by proving, by induction84 on the complexity of~$!C$, that if $\Log{K} \Proves !A \liff !B$85 then $\Log{K} \Proves \Subst{!C}{!A}{q} \liff \Subst{!C}{!B}{q}$.86\end{prob}8788This proposition comes in handy especially when we want to convert89$\Diamond$ into $\Box$ (or vice versa), or remove double negations90inside !!a{formula}. In what follows, we will mark applications of91\olref{prop:rewriting} by ``$!A$ for $!B$'' whenever we re-write92!!a{formula}~$!C(!B)$ for~$!C(!A)$. In other words, ``$!A$ for $!B$''93abbreviates:94 \begin{derivation}95 & $\Proves !C(!A)$ \\96 & $\Proves !A \liff !B$\\97 & $\Proves !C(!B)$ & by \olref{prop:rewriting}98 \end{derivation}99For instance:100101\begin{prop}102 $\Log{K} \Proves \lnot\Box p \lif \Diamond \lnot p$103\end{prop}104105\begin{proof}106 \iftag{prvDiamond}{% Diamond is primitive107 \begin{derivation}108 1. & $\Log{K} \Proves \Diamond \lnot p \liff \lnot\Box\lnot\lnot p$ &109 \Dual\\110 2. & $\Log{K} \Proves \lnot \Box \lnot\lnot p \lif \Diamond \lnot p$ & \PL, 1\\111 3. & $\Log{K} \Proves \lnot\Box p \lif \Diamond \lnot p$ & $p$ for $\lnot\lnot p$\\112 \end{derivation}113 }{% Diamond is defined114 \begin{derivation}115 1. & $\Log{K} \Proves \lnot \Box \lnot\lnot p \lif \Diamond \lnot p$ & \Taut\\116 2. & $\Log{K} \Proves \lnot\Box p \lif \Diamond \lnot p$ & $p$ for $\lnot\lnot p$\\117 \end{derivation}118 The formula on line~$1$ is an instance of $\lnot q \lif \lnot q$,119 substituting $\Box\lnot\lnot p$ for~$q$. $\Diamond\lnot p$ and120 $\lnot\Box\lnot\lnot p$ are identical, since $\Diamond$ is defined121 as~$\lnot\Box\lnot$.}122\end{proof}123124In the above !!{derivation}, the final step ``$p$ for $\lnot\lnot p$''125is short for126 \begin{derivation}127 & $\Log{K} \Proves \lnot \Box \lnot\lnot p \lif \Diamond \lnot128 p$\\129 & $\Log{K} \Proves \lnot\lnot p \liff p$ & \Taut\\130 & $\Log{K} \Proves \lnot\Box p \lif \Diamond \lnot p$ & by \olref{prop:rewriting}131 \end{derivation}132The roles of $!C(q)$, $!A$, and $!B$ in \olref{prop:rewriting} are133played here, respectively, by $\lnot \Box q \lif \Diamond \lnot p$,134$\lnot\lnot p$, and~$p$.135136When !!a{formula} contains a sub-!!{formula} $\lnot\Diamond !A$,137we can replace it by $\Box\lnot !A$ using \olref{prop:rewriting}, since138$\Log{K} \Proves \lnot\Diamond !A \liff \Box\lnot !A$. We'll indicate139this and similar replacements simply by ``$\Box\lnot$ for140$\lnot\Diamond$.''141142The following proposition justifies that we can establish143!!{derivability} results schematically. E.g., the previous proposition144does not just establish that $\Log{K} \Proves \lnot\Box p \lif145\Diamond \lnot p$, but $\Log{K} \Proves \lnot\Box !A \lif \Diamond146\lnot !A$ for arbitrary~$!A$.147148\begin{prop}149 If $!A$ is a substitution instance of $!B$ and $\Log{K} \Proves !B$,150 then $\Log{K} \Proves !A$.151\end{prop}152153\begin{proof}154 It is tedious but routine to verify (by induction on the length of155 the !!{derivation} of~$!B$) that applying a substitution to an156 entire !!{derivation} also results in a correct157 !!{derivation}. Specifically, substitution instances of tautological158 instances are themselves tautological instances, substitution159 instances of instances of~\iftag{prvDiamond}{\Dual{} and~}{}\Ax{K}160 are themselves instances of~\iftag{prvDiamond}{\Dual{}161 and~}{}\Ax{K}, and applications of \MP{} and~\Nec{} remain correct162 when substituting !!{formula}s for !!{propositional variable}s in163 both premise(s) and conclusion.164\end{proof}165166167\end{document}
content/normal-modal-logic/axioms-systems/more-proofs-in-K.tex
1% Part: normal-modal-logic2% Chapter: axioms-systems3% Section: more-proofs-in-K45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{nml}{prf}{mpr}1011\olsection{More Proofs in \Log{K}}1213Let's see some more examples of !!{derivability} in~\Log{K}, now using14the simplified method introduced in \olref[der]{sec}.1516\begin{prop}17 $\Log{K} \Proves \Box (!A \lif !B) \lif (\Diamond !A \lif \Diamond18 !B)$19\end{prop}2021\begin{proof}22\begin{derivation}231. & $\Log{K} \Proves (!A \lif !B) \lif (\lnot !B \lif \lnot !A)$ & \PL \\242. & $\Log{K} \Proves \Box(!A \lif !B) \lif (\Box\lnot!B \lif \Box\lnot!A)$ & \RK, 1 \\253. & $\Log{K} \Proves (\Box\lnot!B \lif \Box\lnot!A) \lif (\lnot26\Box\lnot!A \lif \lnot\Box\lnot!B)$ & \Taut\\274. & $\Log{K} \Proves \Box(!A \lif !B) \lif (\lnot28\Box\lnot!A \lif \lnot\Box\lnot!B)$ & \PL, 2, 3 \\295. & $\Log{K} \Proves \Box(!A \lif !B) \lif (\Diamond!A \lif \Diamond!B)$ & $\Diamond$ for $\lnot\Box\lnot$.30\end{derivation}31\end{proof}32 33\begin{prop}34$\Log{K}\Proves \Box!A \lif (\Diamond(!A \lif !B) \lif35 \Diamond !B)$36\end{prop}3738\begin{proof}39 \begin{derivation}40 1. & $\Log{K} \Proves !A \lif (\lnot!B \lif \lnot (!A \lif !B))$ & \Taut \\41 2. & $\Log{K} \Proves \Box!A \lif (\Box\lnot!B \lif \Box\lnot (!A\lif !B))$ &42 \RK, 1 \\43 3. & $\Log{K} \Proves \Box!A \lif (\lnot \Box\lnot (!A\lif !B) \lif \lnot44 \Box\lnot!B)$ & \PL, 2 \\45 4. & $\Log{K} \Proves \Box!A \lif (\Diamond(!A \lif !B) \lif46 \Diamond !B)$ & $\Diamond$ for $\lnot\Box\lnot$.47 \end{derivation}48\end{proof}4950\begin{prop}51 $\Log{K} \Proves (\Diamond!A \lor \Diamond!B) \lif \Diamond(!A \lor !B)$52\end{prop}5354\begin{proof}55 \begin{derivation}56 1. & $\Log{K} \Proves \lnot(!A \lor !B) \lif \lnot!A$ & \Taut \\57 2. & $\Log{K} \Proves \Box\lnot(!A \lor !B) \lif \Box\lnot!A$ & \RK, 1 \\58 3. & $\Log{K} \Proves \lnot\Box\lnot !A \lif \lnot\Box\lnot(!A \lor!B)$ &59 \PL, 2\\60 4. & $\Log{K} \Proves \Diamond!A \lif \Diamond(!A \lor !B)$ &61 $\Diamond$ for $\lnot\Box\lnot$\\62 5. & $\Log{K} \Proves \Diamond!B \lif \Diamond(!A \lor !B)$ & similarly\\63 6. & $\Log{K} \Proves (\Diamond!A \lor\Diamond!B) \lif \Diamond(!A \lor !B)$64 & \PL, 4, 5.65 \end{derivation}66\end{proof}6768\begin{prop}69 $\Log{K} \Proves \Diamond(!A \lor!B) \lif (\Diamond!A \lor \Diamond!B)$70\end{prop}7172\begin{proof}73 \begin{derivation}74 1. & $\Log{K} \Proves \lnot !A \lif (\lnot !B \lif \lnot (!A \lor !B))$ & \Taut \\75 2. & $\Log{K} \Proves \Box\lnot !A \lif76 (\Box\lnot!B \lif \Box \lnot (!A \lor !B))$ & \RK\\77 3. & $\Log{K} \Proves \Box\lnot !A \lif (\lnot \Box \lnot (!A \lor!B)78 \lif \lnot\Box\lnot !B)$ & \PL, 2\\79 4. & $\Log{K} \Proves \lnot \Box \lnot(!A \lor !B) \lif (\Box \lnot !A \lif 80 \lnot\Box\lnot !B)$ & \PL, 3\\81 5. & $\Log{K} \Proves \lnot \Box \lnot(!A\lor!B) \lif (\lnot82 \lnot\Box\lnot!B \lif \lnot\Box\lnot!A)$ & \PL, 4\\83 6. & $\Log{K} \Proves \Diamond(!A \lor !B) \lif (\lnot84 \Diamond!B \lif \Diamond!A)$ & $\Diamond$ for $\lnot\Box\lnot$\\85 7. & $\Log{K} \Proves \Diamond(!A\lor!B) \lif (\Diamond!B \lor \Diamond!A)$ & \PL, 6. \\86 \end{derivation}87\end{proof}8889\begin{prob}90 Show that the following !!{derivability} claims hold:91 \begin{enumerate}92 \item $\Log{K} \Proves \Diamond \lnot \lfalse \lif (\Box !A \lif93 \Diamond !A)$;94 \item $\Log{K} \Proves \Box(!A \lor !B) \lif (\Diamond !A \lor \Box95 !B)$;96 \item $\Log{K} \Proves (\Diamond !A \lif \Box !B) \lif \Box(!A \lif97 !B)$.98 \end{enumerate}99\end{prob}100101\end{document}
content/normal-modal-logic/axioms-systems/duals.tex
1% Part: normal-modal-logic2% Chapter: axioms-systems3% Section: duals45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{nml}{prf}{dua}1011\olsection{Dual \usetoken{P}{formula}}1213\begin{defn}\ollabel{def:duals}14 Each of the !!{formula}s \Ax{T}, \Ax{B}, \Ax{4}, and15 \Ax{5} has a \emph{dual}, denoted by a subscripted diamond, as16 follows:17 \begin{align}18 \tag{\Ax{T_\Diamond}} p & \lif \Diamond p\\19 \tag{\Ax{B_\Diamond}} \Diamond\Box p & \lif p\\20 \tag{\Ax{4_\Diamond}} \Diamond\Diamond p & \lif \Diamond p\\21 \tag{\Ax{5_\Diamond}} \Diamond\Box p & \lif \Box p22 \end{align}23\end{defn}2425Each of the above dual !!{formula}s is obtained from the corresponding26!!{formula} by substituting $\lnot p$ for $p$, contraposing, replacing27$\lnot\Box\lnot$ by $\Diamond$, and replacing $\lnot\Diamond\lnot$28by~$\Box$. \Ax{D}, i.e., $\Box!A \lif \Diamond!A$ is its own dual in29that sense.3031\begin{prop}\ollabel{prop:dualsys}32 For each !!{formula}~$!A$ in \olref[nml][prf][dua]{def:duals}:33 $\Log{K}!A = \Log{K}!A_{\Diamond}$.34\end{prop}35\begin{proof}36 Exercise.37\end{proof}38\begin{prob}39 Prove \olref[nml][prf][dua]{prop:dualsys}.40\end{prob}4142\end{document}
content/normal-modal-logic/axioms-systems/proofs-modal-systems.tex
1% Part: normal-modal-logic2% Chapter: axioms-systems3% Section: proofs-modal-systems45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{nml}{prf}{prs}1011\olsection{Proofs in Modal Systems}1213We now come to proofs in systems of modal logic other than~\Log{K}.1415\begin{prop}\ollabel{prop:S5facts}16The following provability results obtain:17 \begin{enumerate}18 \item $\Log{KT5} \Proves \Ax{B}$;19 \item $\Log{KT5} \Proves \Ax{4}$;20 \item $\Log{KDB4} \Proves \Ax{T}$;21 \item $\Log{KB4} \Proves \Ax{5}$;22 \item $\Log{KB5} \Proves \Ax{4}$;23 \item \ollabel{prop:S5facts-KT-D}$\Log{KT} \Proves \Ax{D}$.24 \end{enumerate}25\end{prop}2627\begin{proof}28 We exhibit proofs for each.29 \begin{enumerate}30 \item $\Log{KT5} \Proves \Ax{B}$:31 \begin{derivation}32 1. & $\Log{KT5} \Proves \Diamond!A \lif \Box\Diamond!A$ & \Ax{5}\\33 2. & $\Log{KT5} \Proves !A \lif \Diamond!A$ & $\Ax{T_\Diamond}$\\34 3. & $\Log{KT5} \Proves !A \lif \Box\Diamond!A$ & \PL, 2, 1.35 \end{derivation}36 \item $\Log{KT5} \Proves \Ax{4}$:37 \begin{derivation}38 1. &$\Log{KT5} \Proves \Diamond\Box!A \lif \Box\Diamond\Box!A$ & \Ax{5}39 with $\Box!A$ for $p$\\40 2. & $\Log{KT5} \Proves \Box!A \lif \Diamond\Box!A$ & $\Ax{T_\Diamond}$41 with $\Box!A$ for $p$\\42 3. & $\Log{KT5} \Proves \Box!A \lif \Box\Diamond\Box!A$ & \PL, 2, 1\\43 4. & $\Log{KT5} \Proves \Diamond\Box!A \lif \Box!A$ & $\Ax{5_\Diamond}$\\44 5. & $\Log{KT5} \Proves \Box\Diamond\Box!A \lif \Box\Box!A$ & \RK{}, 4 \\45 6. & $\Log{KT5} \Proves \Box!A \lif \Box\Box!A$ & \PL, 3, 5. \\46 \end{derivation}47 \item $\Log{KDB4} \Proves \Ax{T}$:48 \begin{derivation}49 1. & $\Log{KDB4} \Proves \Diamond\Box!A \lif !A $ & $\Ax{B_\Diamond}$ \\50 2. & $\Log{KDB4} \Proves \Box\Box!A \lif \Diamond\Box!A$ & $\Ax{D}$51 with $\Box!A$ for $p$\\52 3. & $\Log{KDB4} \Proves \Box\Box!A \lif !A$ & \PL, 1, 2\\53 4. & $\Log{KDB4} \Proves \Box!A \lif \Box\Box!A$ & \Ax{4} \\54 5. & $\Log{KDB4} \Proves \Box!A \lif !A$ & \PL, 4, 3. \\55 \end{derivation}56 \item $\Log{KB4} \Proves \Ax{5}$:57 \begin{derivation}58 1. & $\Log{KB4} \Proves \Diamond!A \lif \Box \Diamond\Diamond!A$ & \Ax{B}59 with $\Diamond!A$ for $p$\\60 2. & $\Log{KB4} \Proves \Diamond\Diamond !A \lif \Diamond !A$ &61 $\Ax{4_\Diamond}$ \\62 3. & $\Log{KB4} \Proves \Box\Diamond\Diamond !A \lif \Box \Diamond!A$ &63 \RK{}, 2 \\64 4. & $\Log{KB4} \Proves \Diamond!A \lif \Box\Diamond!A$ & \PL, 1, 3.65 \end{derivation}66 \item $\Log{KB5} \Proves \Ax{4}$:67 \begin{derivation}68 1. & $\Log{KB5} \Proves \Box!A \lif \Box\Diamond\Box !A$ & \Ax{B} with69 $\Box!A$ for $p$ \\70 2. & $\Log{KB5} \Proves \Diamond\Box!A \lif \Box !A$ &71 $\Ax{5_\Diamond}$\\72 3. & $\Log{KB5} \Proves \Box\Diamond\Box!A \lif \Box\Box !A$ & \RK{}, 2 \\73 4. & $\Log{KB5} \Proves \Box!A \lif \Box\Box!A$ & \PL, 1, 3.74 \end{derivation}75 \item $\Log{KT} \Proves \Ax{D}$:76 \begin{derivation}77 1. & $\Log{KT} \Proves \Box !A \lif !A$ & \Ax{T} \\78 2. & $\Log{KT} \Proves !A \lif \Diamond!A$ & $\Ax{T_\Diamond}$ \\79 3. & $\Log{KT} \Proves \Box !A \lif \Diamond !A$ & \PL, 1, 280 \end{derivation}81 \end{enumerate}82\end{proof}8384\begin{defn}85 Following tradition, we define \Log{S4} to be the system86 \Log{KT4}, and \Log{S5} the system \Log{KTB4}.87\end{defn}8889The following proposition shows that the classical system \Log{S5} has90several equivalent axiomatizations. This should not surprise, as the91various combinations of axioms all characterize equivalence relations92(see \olref[frd][es5]{prop:equivalences}).9394\begin{prop}\ollabel{prop:S5}95 $\Log{KTB4} = \Log{KT5} = \Log{KDB4} = \Log{KDB5}$.96\end{prop}9798\begin{proof}99 Exercise.100\end{proof}101102\begin{prob}103 Prove \olref[nml][prf][prs]{prop:S5}.104\end{prob}105106107\end{document}
content/normal-modal-logic/axioms-systems/soundness.tex
1% Part: normal-modal-logic2% Chapter: axioms-systems3% Section: soundness45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{nml}{prf}{snd}1011\olsection{Soundness}1213!!^a{derivation} system is called sound if everything that can be14!!{derive}d is valid. When considering modal systems, i.e.,15!!{derivation}s where in addition to \Ax{K} we can use instances of16some !!{formula}s $!A_1$, \dots,~$!A_n$, we want every !!{derivable}17formula to be true in any model in which $!A_1$, \dots, $!A_n$ are18true. 1920\begin{thm}[Soundness Theorem]\ollabel{thm:soundness}21 If every instance of $!A_1$, \dots, $!A_n$ is valid in the22 classes of models $\mClass{C}_1$, \dots, $\mClass{C}_n$,23 respectively, then $\Log{K}!A_1\dots !A_n24 \Proves !B$ implies that $!B$ is valid in the class of25 models $\mClass{C}_1 \cap \dots \cap \mClass{C}_n$.26\end{thm}2728\begin{proof}29 By induction on length of proofs. For brevity, put $\mClass{C} =30 \mClass{C}_1 \cap \dots \cap \mClass{C}_n$.31 \begin{enumerate}32 \item Induction Basis: If $!B$ has a proof of length~$1$, then it is33 either a tautological instance, an instance34 of~\Ax{K},\iftag{prvDiamond}{ or of~\Dual{},}{} or an instance of35 one of $!A_1$, \dots,~$!A_n$. In the first case, $!B$ is valid in36 $\mClass{C}$, since tautological instance are valid in \emph{any}37 class of models, by \olref[syn][tau]{prop:valid-taut}. Similarly38 in the second case, by39 \olref[syn][sch]{prop:Kvalid}\iftag{prvDiamond}{ and40 \olref[syn][sch]{prop:Dual-valid}}{}. Finally in the third case,41 since $!B$ is valid in $\mClass{C}_i$ and $\mClass{C} \subseteq42 \mClass{C}_i$, we have that $!B$ is valid in $\mClass{C}$ as well43 by \olref[syn][val]{prop:subset-class}.44 \item Inductive step: Suppose $!B$ has a proof of length $k>1$. If45 $!B$ is a tautological instance or an instance of one of $!A_1$,46 \dots, $!A_n$, we proceed as in the previous step. So suppose $!B$ is47 obtained by \MP{} from previous !!{formula}s $!C \lif !B$ and48 $!C$. Then $!C \lif !B$ and $!C$ have proofs of length $<k$, and49 by inductive hypothesis they are valid in~$\mClass{C}$. By50 \olref[syn][sch]{prop:soundMP}, $!B$ is valid in $\mClass{C}$ as51 well. Finally suppose $!B$ is obtained by \Nec{} from $!C$ (so52 that $!B = \Box!C$). By inductive hypothesis, $!C$ is valid in53 $\mClass{C}$, and by \olref[syn][val]{prop:Nec-rule} so is~$!B$.54 \end{enumerate}55\end{proof}5657\end{document}
content/normal-modal-logic/axioms-systems/systems-distinct.tex
1% Part: normal-modal-logic2% Chapter: axioms-systems3% Section: systems-distinct45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{nml}{prf}{dis}1011\olsection{Showing Systems are Distinct}1213In \olref[prs]{sec} we saw how to prove that two systems of modal14logic are in fact the same system. \olref[snd]{thm:soundness} allows15us to show that two modal systems $\Sigma$ and $\Sigma'$ are distinct,16by finding !!a{formula}~$!A$ such that $\Sigma' \Proves !A$ that fails in17a model of~$\Sigma$.1819\begin{prop}20 $\Log{KD} \subsetneq \Log{KT}$21\end{prop}2223\begin{proof} This is the syntactic counterpart to the semantic fact24 that all reflexive relations are serial. To show $\Log{KD} \subseteq25 \Log{KT}$ we need to see that $\Log{KD} \Proves !B$ implies26 $\Log{KT} \Proves !B$, which follows from $\Log{KT} \Proves27 \Log{D}$, as shown in28 \olref[prs]{prop:S5facts}\olref[prs]{prop:S5facts-KT-D}. To show29 that the inclusion is proper, by Soundness30 (\olref[snd]{thm:soundness}), it suffices to exhibit a model of31 \Log{KD} where \Ax{T}, i.e., $\Box p \lif p$, fails (an32 easy task left as an exercise), for then by Soundness $\Log{KD}33 \Proves/ \Box p \lif p$.34\end{proof}3536\begin{prop}37 $\Log{KB} \neq \Log{K4}$. 38\end{prop}3940\begin{proof}41 We construct a symmetric model where some instance of \Ax{4} fails;42 since obviously the instance is !!{derivable} for \Log{K4} but not43 in \Log{KB}, it will follow $\Log{K4} \nsubseteq \Log{KB}$.44 Consider the symmetric model $\mModel{M}$ of \olref{fig:Bnot4}. Since45 the model is symmetric, \Ax{K} and~\Ax{B} are true in~$\mModel{M}$46 (by \olref[syn][sch]{prop:Kvalid} and47 \olref[frd][acc]{thm:soundschemas}, respectively). However,48 $\mSat/{M}{\Box p \lif \Box\Box p}[w_1]$.49\end{proof}5051\begin{figure}[htpb]52 \centering53 \begin{tikzpicture}[modal]54 \node[world] (w1) [label=above:\mFalse{p},55 label={below:$\mSat{{}}{\Box p}$\\ $\mSat/{{}}{\Box\Box p}$}] {$w_1$}; 56 \node[world] (w2) [label=above:\mTrue{p},57 label=below:$\mSat/{{}}{\Box p}$, right=of w1]{$w_2$}; 58 \draw[->, bend left] (w1) to (w2); 59 \draw[->, bend left] (w2) to (w1); 60 \end{tikzpicture}61 \caption{A symmetric model falsifying an instance of \Ax{4}.}62 \ollabel{fig:Bnot4}63\end{figure}64 65\begin{thm}\ollabel{thm:KTBnot45}66 $\Log{KTB} \Proves/ \Log{4}$ and $\Log{KTB} \Proves/ \Log{5}$.67\end{thm}6869\begin{proof}70 By \olref[frd][acc]{thm:soundschemas} we know that all instances of71 \Ax{T} and \Ax{B} are true in every reflexive symmetric model72 (respectively). So by soundness, it suffices to find a reflexive73 symmetric model containing a world at which some instance of~\Ax{4}74 fails, and similarly for~\Ax{5}. We use the same model for both75 claims. Consider the symmetric, reflexive model in76 \olref{fig:KTBnot45}. Then $\mSat/{M}{\Box p \to \Box \Box77 p}[w_1]$, so \Ax{4} fails at $w_1$. Similarly, $\mSat/{M}{\Diamond78 \lnot p \lif \Box \Diamond \lnot p}[w_2]$, so the instance79 of~\Ax{5} with $!A = \lnot p$ fails at~$w_2$.80\end{proof}8182\begin{figure}[htpb]83 \centering84 \begin{tikzpicture}[modal]85 \node[world] (w1) [label={right:\mTrue{p}},86 label={below: $\mSat{{}}{\Box p}$\\87 $\mSat/{{}}{\Box\Box p}$\\88 $\mSat/{{}}{\Diamond\lnot p}$}] {$w_1$};89 \draw[reflexive above] (w1) to (w1);90 \node[world] (w2) [label={right:\mTrue{p}}, label={below:91 $\mSat{{}}{\Diamond\lnot p}$\\92 $\mSat/{{}}{\Box\Diamond\lnot p}$}, right=of w1] {$w_2$} ;93 \draw[reflexive above] (w2) to (w2);94 \node[world] (w3) [label={right:\mFalse{p}},right=of w2] {$w_3$};95 \draw[reflexive above] (w3) to (w3);96 \draw[->, bend left] (w1) to (w2); 97 \draw[->, bend left] (w2) to (w3); 98 \draw[->, bend left] (w3) to (w2); 99 \draw[->, bend left] (w2) to (w1); 100 \end{tikzpicture}101 \caption{The model for \olref{thm:KTBnot45}.}102 \ollabel{fig:KTBnot45}103\end{figure}104105\begin{thm}\ollabel{thm:KD5not4}106 $\Log{KD5} \neq \Log{KT4} = \Log{S4}$.107\end{thm}108109\begin{proof}110 By \olref[frd][acc]{thm:soundschemas} we know that all instances of111 \Ax{D} and~\Ax{5} are true in all serial euclidean models.112 So it suffices to find a serial euclidean model containing a world113 at which some instance of~\Ax{4} fails. Consider the model of114 \olref{fig:KD5not4}, and notice that $\mSat/{M}{\Box p115 \lif \Box\Box p}[w_1]$. 116\end{proof}117118\begin{figure}[t]119 \centering120 \begin{tikzpicture}[modal]121 \node[world] (w2) [label=north west:\mTrue{p}]{$w_2$} ;122 \draw[reflexive left] (w2) to (w2);123 \node[world] (w1) [label=right:\mFalse{p},124 label=below:{$\mSat{{}}{\Box p}, \mSat/{{}}{\Box\Box p}$},125 below right=of w2]{$w_1$};126 \node[world] (w3) [label=north east:\mTrue{p}, above right=of w1]{$w_3$} ;127 \draw[reflexive right] (w3) to (w3);128 \node[world] (w4) [label=right:\mFalse{p},above right=of w2]{$w_4$};129 \draw[reflexive above] (w4) to (w4);130 \draw[->] (w1) to (w2); 131 \draw[->] (w1) to (w3); 132 \draw[->, bend left=15] (w2) to (w3);133 \draw[->, bend left=15] (w3) to (w2); 134 \draw[->, bend left=15] (w2) to (w4);135 \draw[->, bend left=15] (w4) to (w2); 136 \draw[->, bend left=15] (w3) to (w4);137 \draw[->, bend left=15] (w4) to (w3); 138 \end{tikzpicture}139 \caption{The model for \olref{thm:KD5not4}.}140 \ollabel{fig:KD5not4}141\end{figure}142143\begin{prob}144 Give an alternative proof of \olref[nml][prf][dis]{thm:KD5not4} using a model145 with $3$ worlds.146\end{prob}147148\begin{prob}149 Provide a single reflexive transitive model showing that both150 $\Log{KT4} \Proves/ \Ax{B}$ and $\Log{KT4} \Proves/ \Ax{5}$.151\end{prob}152153\end{document}
content/normal-modal-logic/axioms-systems/provability-from-set.tex
1% Part: normal-modal-logic2% Chapter: axioms-systems3% Section: provability-from-set45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{nml}{prf}{prg}1011\olsection{\usetoken{S}{derivability} from a Set of \usetoken{P}{formula}}1213In \olref[prf][prs]{sec} we defined a notion of provability14of !!a{formula} in a system~$\Sigma$. We now extend this notion to15provability in $\Sigma$ from !!{formula}s in a set~$\Gamma$.1617\begin{defn}\ollabel{defn:Gammaproves}18 !!^a{formula}~$!A$ is !!{derivable} in a system~$\Sigma$ from a set of19 !!{formula}s $\Gamma$, written $\Gamma \Proves[\Sigma] !A$ if and20 only if there are $!B_1$, \dots, $!B_n \in \Gamma$ such that21 $\Sigma \Proves !B_1 \lif (!B_2 \lif \cdots (!B_n \lif !A)22 \cdots)$. 23\end{defn}2425\end{document}
content/normal-modal-logic/axioms-systems/provability-properties.tex
1% Part: normal-modal-logic2% Chapter: axioms-systems3% Section: provability-properties45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{nml}{prf}{prp}1011\olsection{Properties of \usetoken{S}{derivability}}1213\begin{prop}\ollabel{prop:derivabilityfacts}14 Let $\Sigma$ be a modal system and $\Gamma$ a set of modal15 !!{formula}s. The following properties hold:16 \begin{enumerate}17 \item\ollabel{prop:derivabilityfacts-monotonicity} \emph{Monotonicity}: If18 $\Gamma \Proves[\Sigma] !A$ and $\Gamma \subseteq \Delta$ then19 $\Delta \Proves[\Sigma] !A$;20 \item\ollabel{prop:derivabilityfacts-reflexivity}21 \emph{Reflexivity}: If $!A \in \Gamma$ then $\Gamma22 \Proves[\Sigma] !A$;23 \item\ollabel{prop:derivabilityfacts-cut} \emph{Cut}: If $\Gamma24 \Proves[\Sigma] !A$ and $\Delta \cup \{!A\} \Proves[\Sigma] !B$25 then $\Gamma \cup \Delta \Proves[\Sigma] !B$;26 \item\ollabel{prop:derivabilityfacts-deduction} \emph{Deduction theorem}: $\Gamma \cup \{!B\}27 \Proves[\Sigma] !A$ if and only if $\Gamma \Proves[\Sigma] !B \lif28 !A$;29 \item \ollabel{prop:derivabilityfacts-ruleT}% \emph{Rule T}: If30 $\Gamma \Proves[\Sigma] !A_1$ and \dots and $\Gamma31 \Proves[\Sigma] !A_n$ and $!A_1 \to (!A_2 \lif \cdots (!A_n \lif32 !B)\cdots)$ is a tautological instance, then $\Gamma33 \Proves[\Sigma] !B$.34 \end{enumerate}35\end{prop}3637The proof is an easy exercise. Part38\olref{prop:derivabilityfacts-ruleT} of \olref{prop:derivabilityfacts}39gives us that, for instance, if $\Gamma \Proves[\Sigma] !A \lor !B$40and $\Gamma \Proves[\Sigma] \lnot !A$, then $\Gamma \Proves[\Sigma]41!B$. Also, in what follows, we write $\Gamma, !A \Proves[\Sigma] !B$42instead of $\Gamma \cup \{ !A\} \Proves[\Sigma] !B$.4344\begin{defn}45 A set $\Gamma$ is \emph{deductively closed} relatively to a system46 $\Sigma$ if and only if $\Gamma \Proves[\Sigma] !A$ implies47 $!A \in \Gamma$.48\end{defn}4950\end{document}
content/normal-modal-logic/axioms-systems/consistency.tex
1% Part: normal-modal-logic2% Chapter: axioms-systems3% Section: consistency45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{nml}{prf}{con}1011\olsection{Consistency}1213Consistency is an important property of sets of !!{formula}s. A set of14!!{formula}s is inconsistent if a contradiction, such as~$\lfalse$, is15!!{derivable} from it; and otherwise consistent. If a set is16inconsistent, its !!{formula}s cannot all be true in a model at a17world. For the completeness theorem we prove the converse: every18consistent set is true at a world in a model, namely in the ``canonical19model.''2021\begin{defn}22 A set $\Gamma$ is \emph{consistent} relatively to a system~$\Sigma$23 or, as we will say, $\Sigma$-consistent, if and only if $\Gamma24 \Proves/[\Sigma] \lfalse$.25\end{defn}2627So for instance, the set $\{ \Box(p \lif q), \Box p, \lnot\Box q \}$ is28consistent relatively to propositional logic, but not29\Log{K}-consistent. Similarly, the set $\{ \Diamond p, \Box\Diamond30p \lif q, \lnot q \}$ is not \Log{K5}-consistent.3132\begin{prop}\ollabel{prop:consistencyfacts}33 Let $\Gamma$ be a set of !!{formula}s. Then:34 \begin{enumerate}35 \item $\Gamma$ is $\Sigma$-consistent if and only if there is36 some !!{formula}~$!A$ such that $\Gamma \Proves/[\Sigma]37 !A$.38 \item \ollabel{prop:consistencyfacts-b}%39 $\Gamma \Proves[\Sigma] !A$ if and only if $\Gamma \cup \{40 \lnot!A \}$ is not $\Sigma$-consistent.41 \item \ollabel{prop:consistencyfacts-c}%42 If $\Gamma$ is $\Sigma$-consistent, then for any !!{formula}43 $!A$, either $\Gamma \cup \{ !A \}$ is44 $\Sigma$-consistent or $\Gamma \cup \{ \lnot!A \}$ is45 $\Sigma$-consistent.46 \end{enumerate}47\end{prop}4849\begin{proof}50 These facts follow easily using classical propositional logic. We51 give the argument for \olref{prop:consistencyfacts-c}. Proceed52 contrapositively and suppose neither $\Gamma \cup \{ !A \}$ nor53 $\Gamma \cup \{ \lnot!A \}$ is $\Sigma$-consistent. Then by54 \olref{prop:consistencyfacts-b}, both $\Gamma, !A \Proves[\Sigma]55 \lfalse$ and $\Gamma, \lnot !A \Proves[\Sigma] \lfalse$. By the56 deduction theorem $\Gamma \Proves[\Sigma] !A \to \lfalse$ and57 $\Gamma \Proves[\Sigma] \lnot!A \lif \lfalse$. But $(!A \lif58 \lfalse) \lif ((\lnot!A \lif \lfalse) \lif \lfalse)$ is a59 tautological instance, hence by60 \olref[prp]{prop:derivabilityfacts}\olref[prp]{prop:derivabilityfacts-ruleT},61 $\Gamma \Proves[\Sigma] \lfalse$.62\end{proof}6364\end{document}