content/normal-modal-logic/syntax-and-semantics/syntax-and-semantics.tex
1% Part: normal-modal-logic2% Chapter: syntax-and-semantics34\documentclass[../../../include/open-logic-chapter]{subfiles}56\begin{document}78\olchapter{nml}{syn}{Syntax and Semantics}910\olimport{introduction}11\olimport{language-modal-logic}12\olimport{substitution}13\olimport{relational-models}14\olimport{truth-at-w}15\olimport{truth-in-model}16\olimport{modal-validity}17\olimport{tautological-instances}18\olimport{schemas}19\olimport{entailment}2021\OLEndChapterHook2223\end{document}24
content/normal-modal-logic/syntax-and-semantics/introduction.tex
1% Part: normal-modal-logic2% Chapter: syntax-and-semantics3% Section: introduction45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{nml}{syn}{int}1011\olsection{Introduction}1213Modal logic deals with \emph{modal propositions} and the entailment14relations among them. Examples of modal propositions are the15following:16\begin{enumerate}17\item It is necessary that $2+2=4$.18\item It is necessarily possible that it will rain tomorrow.19\item If it is necessarily possible that~$!A$ then it is possible20 that~$!A$.21\end{enumerate}22Possibility and necessity are not the only modalities: other unary23connectives are also classified as modalities, for instance, ``it24ought to be the case that~$!A$,'' ``It will be the case that~$!A$,''25``Dana knows that~$!A$,'' or ``Dana believes that~$!A$.''2627Modal logic makes its first appearance in Aristotle's \emph{De28 Interpretatione}: he was the first to notice that necessity implies29possibility, but not vice versa; that possibility and necessity are30inter-definable; that If $!A \land !B$ is possibly true then31$!A$ is possibly true and $!B$ is possibly true, but not32conversely; and that if $!A \to !B$ is necessary, then if33$!A$ is necessary, so is~$!B$.3435The first modern approach to modal logic was the work of C.~I. Lewis,36culminating with Lewis and Langford, \emph{Symbolic Logic}37(1932). Lewis \& Langford were unhappy with the representation of38implication by means of the material conditional: $!A \lif !B$39is a poor substitute for ``$!A$ implies $!B$.'' Instead, they40proposed to characterize implication as ``Necessarily, if $!A$41then $!B$,'' symbolized as $!A \strictif !B$. In trying to42sort out the different properties, Lewis identified five different43modal systems, \Log{S1}, \ldots, \Log{S4}, \Log{S5}, the last44two of which are still in use.4546The approach of Lewis and Langford was purely \emph{syntactical}: they47identified reasonable axioms and rules and investigated what was48provable with those means. A semantic approach remained elusive for a49long time, until a first attempt was made by Rudolf Carnap in50\emph{Meaning and Necessity} (1947) using the notion of a \emph{state51 description}, i.e., a collection of atomic sentences (those that are52``true'' in that state description). After lifting the truth53definition to arbitrary sentences $!A$, Carnap defines $!A$54to be \emph{necessarily true} if it is true in all state55descriptions. Carnap's approach could not handle \emph{iterated}56modalities, in that sentences of the form ``Possibly necessarily57\ldots possibly $!A$'' always reduce to the innermost modality.5859The major breakthrough in modal semantics came with Saul Kripke's60article ``A Completeness Theorem in Modal Logic'' (JSL 1959). Kripke61based his work on Leibniz's idea that a statement is necessarily true62if it is true ``at all possible worlds.'' This idea, though, suffers63from the same drawbacks as Carnap's, in that the truth of statement at64a world $w$ (or a state description $s$) does not depend on $w$ at65all. So Kripke assumed that worlds are related by an66\emph{accessibility relation} $R$, and that a statement of the form67``Necessarily $!A$'' is true at a world $w$ if and only if68$!A$ is true at all worlds $w'$ \emph{accessible from}69$w$. Semantics that provide some version of this approach are called70Kripke semantics and made possible the tumultuous development of modal71logics (in the plural).7273When interpreted by the Kripke semantics, modal logic shows us what74\emph{relational structures} look like ``from the inside.'' A75relational structure is just a set equipped with a binary relation76(for instance, the set of students in the class ordered by their77social security number is a relational structure). But in fact78relational structures come in all sorts of domains: besides relative79possibility of states of the world, we can have epistemic states of80some agent related by epistemic possibility, or states of a dynamical81system with their state transitions, etc. Modal logic can be used to82model all of these: the first gives us ordinary, alethic, modal logic;83the others give us epistemic logic, dynamic logic, etc.8485We focus on one particular angle, known to modal logicians as86``correspondence theory.'' One of the most significant early87discoveries of Kripke's is that many properties of the accessibility88relation~$R$ (whether it is transitive, symmetric, etc.) can be89characterized \emph{in the modal language} itself by means of90appropriate ``modal schemas.'' Modal logicians say, for instance, that91the reflexivity of $R$ ``corresponds'' to the schema ``If92necessarily~$!A$, then~$!A$''. We explore mainly the correspondence93theory of a number of classical systems of modal logic (e.g., \Log{S4}94and \Log{S5}) obtained by a combination of the schemas \Ax{D}, \Ax{T},95\Ax{B}, \Ax{4}, and~\Ax{5}.9697\end{document}
content/normal-modal-logic/syntax-and-semantics/language-modal-logic.tex
1% Part: normal-modal-logic2% Chapter: syntax-and-semantics3% Section: language-modal-logic45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{nml}{syn}{lan}1011\olsection{The Language of Basic Modal Logic}1213\begin{defn}14The basic language of modal logic contains15\begin{enumerate}16 \tagitem{prvFalse}{The propositional constant for !!{falsity}~$\lfalse$.}{}17 \tagitem{prvTrue}{The propositional constant for !!{truth}~$\ltrue$.}{}18 \item A !!{denumerable}s set of !!{propositional variable}s: $\Obj19 p_0$, $\Obj p_1$, $\Obj p_2$, \dots20 \item The propositional connectives: \startycommalist21 \iftag{prvNot}{\ycomma $\lnot$ (negation)}{}%22 \iftag{prvAnd}{\ycomma $\land$ (conjunction)}{}%23 \iftag{prvOr}{\ycomma $\lor$ (disjunction)}{}%24 \iftag{prvIf}{\ycomma $\lif$ (!!{conditional})}{}%25 \iftag{prvIff}{\ycomma $\liff$ (!!{biconditional})}{}.26 \tagitem{prvBox}{The modal operator $\Box$.}{}27 \tagitem{prvDiamond}{The modal operator $\Diamond$.}{}28\end{enumerate}29\end{defn}3031\begin{defn}32\emph{!!^{formula}s} of the basic modal language are inductively33 defined as follows:34\begin{enumerate}35\tagitem{prvFalse}{$\lfalse$ is an atomic !!{formula}.}{}3637\tagitem{prvTrue}{$\ltrue$ is an atomic !!{formula}.}{}3839\item Every !!{propositional variable} $\Obj p_i$ is an (atomic) !!{formula}.4041\tagitem{prvNot}{If $!A$ is !!a{formula}, then $\lnot !A$ is42 !!a{formula}.}{}4344\tagitem{prvAnd}{If $!A$ and $!B$ are !!{formula}s, then $(!A \land45 !B)$ is !!a{formula}.}{}4647\tagitem{prvOr}{If $!A$ and $!B$ are !!{formula}s, then $(!A \lor !B)$48 is !!a{formula}.}{}4950\tagitem{prvIf}{If $!A$ and $!B$ are !!{formula}s, then $(!A \lif !B)$51 is !!a{formula}.}{}5253\tagitem{prvIff}{If $!A$ and $!B$ are !!{formula}s, then $(!A \liff !B)$54 is !!a{formula}.}{}5556\tagitem{prvBox}{If $!A$ is !!a{formula}, then $\Box !A$ is57 !!a{formula}.}{}5859\tagitem{prvDiamond}{If $!A$ is !!a{formula}, then $\Diamond !A$ is60 !!a{formula}.}{}6162\tagitem{limitClause}{Nothing else is !!a{formula}.}{}63\end{enumerate}64\end{defn}6566\begin{tagblock}{defNot,defOr,defAnd,defIf,defIff,defTrue,defFalse,defBox,defDiamond}67\begin{defn}68Formulas constructed using the defined operators are to be understood69as follows:7071\begin{tagenumerate}{defTrue,defFalse,defNot,defOr,defAnd,defIf,defIff,defBox,defDiamond}7273\tagitem{defTrue}{$\ltrue$ abbreviates74 \iftag{prvFalse}{$\lnot\lfalse$}{$(!A \lor \lnot !A)$ for some75 fixed atomic !!{formula}~$!A$}.}{}7677\tagitem{defFalse}{$\lfalse$ abbreviates78 \iftag{prvTrue}{$\lnot\ltrue$}{$(!A \land \lnot !A)$ for some79 fixed atomic !!{formula}~$!A$}.}{}8081\tagitem{defNot}{$\lnot !A$ abbreviates $!A \lif \lfalse$.}{}8283\tagitem{defOr}{$!A \lor !B$ abbreviates84 \iftag{prvAnd}{$\lnot(\lnot !A \land \lnot !B)$}{$\lnot !A \lif85 !B$}.}{}8687\tagitem{defAnd}{$!A \land !B$ abbreviates88 \iftag{prvOr}{$\lnot(\lnot !A \lor \lnot !B)$}{$\lnot (!A \lif89 \lnot !B)$}.}{}9091\tagitem{defIf}{$!A \lif !B$ abbreviates92 \iftag{prvOr}{$\lnot !A \lor !B)$}{$\lnot (!A \land \lnot !B)$}.}{}9394\tagitem{defIff}{$!A \liff !B$ abbreviates $(!A \lif !B) \land (!B95 \lif !A)$.}{}9697\tagitem{defBox}{$\Box !A$ abbreviates $\lnot\Diamond\lnot !A$. }{}9899\tagitem{defDiamond}{$\Diamond !A$ abbreviates $\lnot\Box\lnot !A$.}{}100\end{tagenumerate}101\end{defn}102\end{tagblock}103104If !!a{formula}~$!A$ does not contain $\Box$ or $\Diamond$, we say it105is \emph{modal-free}.106107\end{document}
content/normal-modal-logic/syntax-and-semantics/substitution.tex
1% Part: normal-modal-logic2% Chapter: syntax-and-semantics3% Section: substitution45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{nml}{syn}{sub}1011\olsection{Simultaneous Substitution}1213An \emph{instance} of !!a{formula}~$!A$ is the result of replacing all14occurrences of !!a{propositional variable} in~$!A$ by some other15!!{formula}. We will refer to instances of !!{formula}s often, both16when discussing validity and when discussing !!{derivability}. It17therefore is useful to define the notion precisely.1819\begin{defn}\ollabel{def:subst-inst}20 Where $!A$ is a modal !!{formula} all of whose !!{propositional21 variable}s are among $p_1$, \dots, $p_n$, and $!D_1$, \dots,22 $!D_n$ are also modal !!{formula}s, we define23 $\SSubst{!A}{\subst{!D_1}{p_1}, \dots, \subst{!D_n}{p_n}}$ as the24 result of simultaneously substituting each $!D_i$ for $p_i$25 in~$!A$. Formally, this is a definition by induction on~$!A$:26 \begin{enumerate}27 \tagitem{prvFalse}{\indcase{!A}{\lfalse}{%28 $\SSubst{\indfrm}{\subst{!D_1}{p_1}, \dots,29 \subst{!D_n}{p_n}}$ is $\lfalse$.}}{}30 \tagitem{prvTrue}{\indcase{!A}{\ltrue}{%31 $\SSubst{\indfrm}{\subst{!D_1}{p_1}, \dots,32 \subst{!D_n}{p_n}}$ is $\ltrue$.}}{}33 \item \indcase{!A}{q}{$\SSubst{\indfrm}{\subst{!D_1}{p_1}, \dots,34 \subst{!D_n}{p_n}}$ is $q$, provided $q \not\ident p_i$ for $i35 = 1$, \dots,~$n$.}36 \item \indcase{!A}{p_i}{$\SSubst{\indfrm}{\subst{!D_1}{p_1},37 \dots, \subst{!D_n}{p_n}}$ is $!D_i$.}38 \tagitem{prvNot}{\indcase{!A}{\lnot !B}{%39 $\SSubst{\indfrm}{\subst{!D_1}{p_1}, \dots, \subst{!D_n}{p_n}}$ is40 $\lnot \SSubst{!B}{\subst{!D_1}{p_1}, \dots, \subst{!D_n}{p_n}}$.}}{}41 \tagitem{prvAnd}{\indcase{!A}{(!B \land42 !C)}{$\SSubst{\indfrm}{\subst{!D_1}{p_1}, \dots,43 \subst{!D_n}{p_n}}$ is44 \[(\SSubst{!B}{\subst{!D_1}{p_1}, \dots, \subst{!D_n}{p_n}} \land45 \SSubst{!C}{\subst{!D_1}{p_1}, \dots, \subst{!D_n}{p_n}}).\]}}{}46 \tagitem{prvOr}{\indcase{!A}{(!B \lor47 !C)}{$\SSubst{\indfrm}{\subst{!D_1}{p_1}, \dots,48 \subst{!D_n}{p_n}}$ is49 \[(\SSubst{!B}{\subst{!D_1}{p_1}, \dots, \subst{!D_n}{p_n}} \lor50 \SSubst{!C}{\subst{!D_1}{p_1}, \dots, \subst{!D_n}{p_n}}).\]}}{}51 \tagitem{prvIf}{\indcase{!A}{(!B \lif52 !C)}{$\SSubst{\indfrm}{\subst{!D_1}{p_1}, \dots,53 \subst{!D_n}{p_n}}$ is54 \[(\SSubst{!B}{\subst{!D_1}{p_1}, \dots, \subst{!D_n}{p_n}} \lif55 \SSubst{!C}{\subst{!D_1}{p_1}, \dots, \subst{!D_n}{p_n}}).\]}}{}56 \tagitem{prvIf}{\indcase{!A}{(!B \liff57 !C)}{$\SSubst{\indfrm}{\subst{!D_1}{p_1}, \dots,58 \subst{!D_n}{p_n}}$ is59 \[(\SSubst{!B}{\subst{!D_1}{p_1}, \dots, \subst{!D_n}{p_n}} \liff60 \SSubst{!C}{\subst{!D_1}{p_1}, \dots, \subst{!D_n}{p_n}}).\]}}{}61 \item \indcase{!A}{\Box !B}{%62 $\SSubst{\indfrm}{\subst{!D_1}{p_1}, \dots, \subst{!D_n}{p_n}}$ is63 $\Box64 \SSubst{!B}{\subst{!D_1}{p_1}, \dots, \subst{!D_n}{p_n}}.$}65 \tagitem{prvDiamond}{\indcase{!A}{\Diamond !B}{%66 $\SSubst{\indfrm}{\subst{!D_1}{p_1}, \dots, \subst{!D_n}{p_n}}$ is67 $\Diamond68 \SSubst{!B}{\subst{!D_1}{p_1}, \dots, \subst{!D_n}{p_n}}.$}}{}69 \end{enumerate}70 The !!{formula} $\SSubst{!A}{\subst{!D_1}{p_1}, \dots,71 \subst{!D_n}{p_n}}$ is called a \emph{substitution instance}72 of~$!A$.73\end{defn}7475\begin{ex}76 Suppose $!A$ is $p_1 \lif \Box(p_1 \land p_2)$, $!D_1$ is77 $\Diamond(p_2 \lif p_3)$ and $!D_2$ is $\lnot\Box p_1$. Then78 $\SSubst{!A}{\subst{!D_1}{p_1}, \subst{!D_2}{p_2}}$ is79 \begin{align*}80 \Diamond(p_2 \lif p_3) &81 \lif \Box(\Diamond(p_2 \lif p_3) \land \lnot\Box p_1)82 \intertext{while $\SSubst{!A}{\subst{!D_2}{p_1}, \subst{!D_1}{p_2}}$ is}83 \lnot\Box p_1 &84 \lif \Box(\lnot\Box p_1 \land \Diamond(p_2 \lif p_3))85 \intertext{Note that simultaneous substitution is in general not86 the same as iterated substitution, e.g., compare87 $\SSubst{!A}{\subst{!D_1}{p_1}, \subst{!D_2}{p_2}}$ above with88 $\Subst{(\Subst{!A}{!D_1}{p_1})}{!D_2}{p_2}$, which is:}89 \Diamond(p_2 \lif p_3) & \Subst{\lif \Box(\Diamond(p_2 \lif p_3) \land p_2)}{\lnot\Box p_1}{p_2}, \text{ i.e.,}\\90 \Diamond(\lnot\Box p_1 \lif p_3) &91 \lif \Box(\Diamond(\lnot\Box p_192 \lif p_3) \land \lnot\Box p_1)\\93 \intertext{and with $\Subst{(\Subst{!A}{!D_2}{p_2})}{!D_1}{p_1}$:}94 p_1 & \lif \Subst{\Box(p_1 \land \lnot\Box p_1)}{\Diamond(p_2 \lif p_3)}{p_1}, \text{ i.e.,}\\95 \Diamond(p_2 \lif p_3) &96 \lif \Box(\Diamond(p_297 \lif p_3) \land \lnot\Box\Diamond(p_2 \lif p_3)).98 \end{align*}99\end{ex}100101\end{document}
content/normal-modal-logic/syntax-and-semantics/relational-models.tex
1% Part: normal-modal-logic2% Chapter: syntax-and-semantics3% Section: relational-models45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{nml}{syn}{rel}1011\olsection{Relational Models}1213The basic concept of semantics for normal modal logics is that of a14\emph{relational model}. It consists of a set of worlds, which are15related by a binary ``accessibility relation,'' together with an16assignment which determines which !!{propositional variable}s count as17``true'' at which worlds.1819\begin{defn}20 A \emph{model} for the basic modal language is a triple $\mModel{M}21 = \tuple{W, R, V}$, where22 \begin{enumerate}23 \item $W$ is a nonempty set of ``worlds,''24 \item $R$ is a binary accessibility relation on~$W$, and25 \item $V$ is a function assigning to each !!{propositional26 variable}~$p$ a set $V(p)$ of possible worlds.27 \end{enumerate}28 When $Rww'$ holds, we say that $w'$ is \emph{accessible29 from}~$w$. When $w \in V(p)$ we say $p$ is \emph{true at}~$w$.30\end{defn}3132The great advantage of relational semantics is that models can be33represented by means of simple diagrams, such as the one in34\olref{fig:simple}. Worlds are represented by nodes, and world~$w'$ is35accessible from~$w$ precisely when there is an arrow from~$w$36to~$w'$. Moreover, we label a node (world) by~$\mTrue{p}$ when $w \in V(p)$,37and otherwise by~\mFalse{p}. \olref{fig:simple} represents the model38with $W = \{w_1, w_2, w_3\}$, $R = \{\tuple{w_1, w_2},\tuple{w_1,39 w_3}\}$, $V(p) = \{w_1, w_2\}$, and $V(q) = \{w_2\}$.4041\begin{figure}42 \begin{center}43 \begin{tikzpicture}[modal]44 \node[world] (w1) [label={[align=right]right:\mTrue{p}\\ \mFalse{q}}]{$w_1$}; 45 \node[world] (w2) [label={[align=right]right:\mTrue{p}\\ \mTrue{q}},46 above right=of w1]{$w_2$}; 47 \node[world] (w3) [label={[align=right]right:\mFalse{p}\\ \mFalse{q}},48 below right=of w1] {$w_3$};49 \draw[->] (w1) to (w2);50 \draw[->] (w1) to (w3);51 \end{tikzpicture}52 \end{center}53 \caption{A simple model.}54 \ollabel{fig:simple}55\end{figure}5657\end{document}
content/normal-modal-logic/syntax-and-semantics/truth-at-w.tex
1% Part: normal-modal-logic2% Chapter: syntax-and-semantics3% Section: truth-at-w45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{nml}{syn}{trw}1011\olsection{Truth at a World}1213Every modal model determines which modal !!{formula}s count as true at14which worlds in it. The relation ``model $\mModel{M}$ makes15!!{formula}~$!A$ true at world~$w$'' is the basic notion of relational16semantics. The relation is defined inductively and coincides with the17usual characterization using truth tables for the non-modal operators.1819\begin{defn}\ollabel{defn:mmodels}20 \emph{Truth of !!a{formula}~$!A$ at~$w$} in a~$\mModel M$, in symbols:21 $\mSat{M}{!A}[w]$, is defined inductively as follows:22 \begin{enumerate}23 \tagitem{prvFalse}{\indcase{!A}{\lfalse}{Never $\mSat{M}{\lfalse}[w]$}.}{}24 \tagitem{prvTrue}{\indcase{!A}{\ltrue}{Always $\mSat{M}{\ltrue}[w]$}.}{}25 \item $\mSat{M}{p}[w]$ iff $w \in V(p)$.26 \tagitem{prvNot}{\indcase{!A}{\lnot !B}{$\mSat{M}{\indfrm}[w]$ iff27 $\mSat/{M}{!B}[w]$}.}{}28 \tagitem{prvAnd}{\indcase{!A}{(!B \land !C)}{$\mSat{M}{\indfrm}[w]$ iff29 $\mSat{M}{!B}[w]$ and $\mSat{M}{!C}[w]$}.}{}30 \tagitem{prvOr}{\indcase{!A}{(!B \lor !C)}{$\mSat{M}{\indfrm}[w]$ iff31 $\mSat{M}{!B}[w]$ or $\mSat{M}{!C}[w]$} (or both).}{}32 \tagitem{prvIf}{\indcase{!A}{(!B \lif !C)}{$\mSat{M}{\indfrm}[w]$ iff33 $\mSat/{M}{!B}[w]$ or $\mSat{M}{!C}[w]$}.}{}34 \tagitem{prvIff}{\indcase{!A}{(!B \liff !C)}{$\mSat{M}{\indfrm}[w]$ iff35 either both $\mSat{M}{!B}[w]$ and $\mSat{M}{!C}[w]$ or36 neither $\mSat{M}{!B}[w]$ nor $\mSat{M}{!C}[w]$}.}{}37 \item\ollabel{defn:sub:mmodels-box}38 \indcase{!A}{\Box !B}{$\mSat{M}{\indfrm}[w]$ iff39 $\mSat{M}{!B}[w']$ for all $w' \in W$ with $Rww'$.}40 \item\ollabel{defn:sub:mmodels-diamond}41 \indcase{!A}{\Diamond !B}{$\mSat{M}{\indfrm}[w]$ iff42 $\mSat{M}{!B}[w']$ for at least one $w' \in W$ with $Rww'$.}43 \end{enumerate}44\end{defn}4546Note that by clause~\olref{defn:sub:mmodels-box}, !!a{formula}~$\Box47!B$ is true at~$w$ whenever there are no~$w'$ with $Rww'$. In48such a case $\Box !B$ is \emph{vacuously} true at~$w$. Also,49$\Box !B$ may be satisfied at~$w$ even if $!B$ is not. The truth50of~$!B$ at~$w$ does not guarantee the truth of~$\Diamond !B$51at~$w$. This holds, however, if $Rww$, e.g., if $R$ is reflexive. If52there is no $w'$ such that $Rww'$, then $\mSat/{M}{\Diamond !A}[w]$,53for any~$!A$.5455\begin{prob}56 Consider the model of \olref[nml][syn][rel]{fig:simple}. Which of the57 following hold?58 \begin{enumerate}59 \item $\mSat{M}{q}[w_1]$;60 \item $\mSat{M}{\lnot q}[w_3]$;61 \item $\mSat{M}{p \lor q}[w_1]$;62 \item $\mSat{M}{\Box (p \lor q)}[w_1]$;63 \item $\mSat{M}{\Box q}[w_3]$;64 \item $\mSat{M}{\Box \bot}[w_3]$;65 \item $\mSat{M}{\Diamond q}[w_1]$;66 \item $\mSat{M}{\Box q}[w_1]$;67 \item $\mSat{M}{\lnot \Box\Box \lnot q}[w_1]$.68 \end{enumerate}69\end{prob}7071% Prove duality of \Box and \Diamond72\begin{tagblock}{prvDiamond}73\begin{prop}\ollabel{prop:dual}74 \begin{enumerate}75 \item $\mSat{M}{\Box !A}[w]$ iff $\mSat{M}{\lnot\Diamond\lnot !A}[w]$.76 \item $\mSat{M}{\Diamond !A}[w]$ iff $\mSat{M}{\lnot\Box\lnot !A}[w]$.77 \end{enumerate}78\end{prop}7980\begin{proof}81 \begin{enumerate}82 \item $\mSat{M}{\lnot\Diamond\lnot !A}[w]$ iff $\mSat/{M}{\Diamond\lnot83 !A}[w]$ by definition of $\mSat{M}{}[w]$. $\mSat{M}{\Diamond\lnot84 !A}[w]$ iff for some $w'$ with $Rww'$, $\mSat{M}{\lnot85 !A}[w']$. Hence, $\mSat/{M}{\Diamond\lnot !A}[w]$ iff for all86 $w'$ with $Rww'$, $\mSat/{M}{\lnot !A}[w']$. We also have87 $\mSat/{M}{\lnot !A}[w']$ iff $\mSat{M}{!A}[w']$. Together we have88 $\mSat{M}{\lnot\Diamond\lnot !A}[w]$ iff for all $w'$ with $Rww'$,89 $\mSat{M}{!A}[w']$. Again by definition of $\mSat{M}{}[w]$, that90 is the case iff $\mSat{M}{\Box !A}[w]$.91 \item \iftag{probDiamond}{Exercise.}{$\mSat{M}{\lnot\Box\lnot !A}[w]$ iff92 $\mSat/{M}{\Box\lnot !A}$. $\mSat{M}{\Box\lnot !A}[w]$ iff for all93 $w'$ with $Rww'$, $\mSat{M}{\lnot !A}[w']$. Hence,94 $\mSat/{M}{\Box\lnot !A}[w]$ iff for some $w'$ with $Rww'$,95 $\mSat/{M}{\lnot !A}[w']$. We also have $\mSat/{M}{\lnot96 !A}[w']$ iff $\mSat{M}{!A}[w']$. Together we have97 $\mSat{M}{\lnot\Box\lnot !A}[w]$ iff for some~$w'$ with98 $Rww'$, $\mSat{M}{!A}[w']$. Again by definition of99 $\mSat{M}{}[w]$, that is the case iff $\mSat{M}{\Diamond100 !A}[w]$.}101 \end{enumerate}102\end{proof}103104\begin{probtag}{probDiamond}105 Complete the proof of \olref[nml][syn][trw]{prop:dual}.106\end{probtag}107\end{tagblock}108109\begin{prob}110 Let $\mModel{M} = \tuple{W, R, V}$ be a model, and suppose $w_1, w_2 \in111 W$ are such that:112 \begin{enumerate}113 \item $w_1 \in V(p)$ if and only if $w_2 \in V(p)$ (for every !!{propositional variable} $p$); and114 \item for all $w \in W$: $Rw_1w$ if and only if $Rw_2w$.115 \end{enumerate}116 Using induction on !!{formula}s, show that for all !!{formula}s $!A$:117 $\mSat{M}{!A}[w_1]$ if and only if $\mSat{M}{!A}[w_2]$.118\end{prob}119120\begin{probtag}{prvDiamond}121 Let $\mModel{M} = \tuple{W, R, V}$. Show that122 $\mSat{M}{\lnot\Diamond !A}[w]$ if and only if123 $\mSat{M}{\Box\lnot!A}[w]$.124\end{probtag}125126\end{document}
content/normal-modal-logic/syntax-and-semantics/truth-in-model.tex
1% Section: truth-in-model23\documentclass[../../../include/open-logic-section]{subfiles}45\begin{document}67\olfileid{nml}{syn}{tru}89\olsection{Truth in a Model}1011Sometimes we are interested in which !!{formula}s are true at every world12in a given model. Let's introduce a notation for this.1314\begin{defn}15 !!^a{formula}~$!A$ is \emph{true in a model} $M = \tuple{W, R,16 V}$, written $\mSat{M}{!A}$, if and only if $\mSat{M}{!A}[w]$17 for every $w \in W$.18\end{defn}1920\begin{prop}\ollabel{prop:truthfacts}21 \begin{enumerate}22 \item If $\mSat{M}{!A}$ then $\mSat/{M}{\lnot !A}$, but \emph{not}23 vice-versa.24 \item If $\mSat{M}{!A \lif !B}$ then $\mSat{M}{!A}$ only if25 $\mSat{M}{!B}$, but \emph{not} vice-versa.26 \end{enumerate}27\end{prop}2829\begin{proof}30 \begin{enumerate}31 \item If $\mSat{M}{!A}$ then $!A$ is true at all worlds in $W$, and32 since $W \neq \emptyset$, it can't be that $\mSat{M}{\lnot!A}$, or33 else $!A$ would have to be both true and false at some34 world.3536 On the other hand, if $\mSat/{M}{\lnot !A}$ then $!A$ is true at37 some world $w \in W$. It does not follow that $\mSat{M}{!A}[w]$38 for \emph{every}~$w \in W$. For instance, in the model of39 \olref[rel]{fig:simple}, $\mSat/{M}{\lnot p}$, and also $\mSat/{M}{p}$.40 \item Assume $\mSat{M}{!A \lif !B}$ and $\mSat{M}{!A}$; to show41 $\mSat{M}{!B}$ let $w \in W$ be an arbitrary world. Then42 $\mSat{M}{!A \lif !B}[w]$ and $\mSat{M}{!A}[w]$, so43 $\mSat{M}{!B}[w]$, and since $w$ was arbitrary,44 $\mSat{M}{!B}$.4546 To show that the converse fails, we need to find a model47 $\mModel{M}$ such that $\mSat{M}{!A}$ only if $\mSat{M}{!B}$, but48 $\mSat/{M}{!A \lif !B}$. Consider again the model of49 \olref[rel]{fig:simple}: $\mSat/{M}{p}$ and hence (vacuously)50 $\mSat{M}{p}$ only if $\mSat{M}{q}$. However, $\mSat/{M}{p \lif51 q}$, as $p$ is true but $q$ false at~$w_1$.52 \end{enumerate}53\end{proof}5455\begin{prob}56 Consider the following model $\mModel{M}$ for the language57 comprising $p_1$, $p_2$, $p_3$ as the only !!{propositional variable}s:58 \begin{center}59 \begin{tikzpicture}[modal]60 \node[world] (w1) [label={[align=right]left:\mTrue{p_1}\\\mFalse{p_2}\\\mFalse{p_3}}]61 {$w_1$} ; 62 \node[world] (w2) [label={[align=right]right:\mTrue{p_1}\\\mTrue{p_2}\\\mFalse{p_3}},63 below right=of w1] {$w_2$}; 64 \node[world] (w3) [label={[align=right]right:\mTrue{p_1}\\\mTrue{p_2}\\\mTrue{p_3}},65 above right=of w2] {$w_3$};66 \draw[reflexive above] (w3) to (w3); 67 \draw[->] (w1) to (w2);68 \draw[->] (w2) to (w3);69 \draw[->] (w1) to (w3); 70 \end{tikzpicture}71 \end{center}72 Are the following !!{formula}s and schemas true in the model $\mModel{M}$,73 i.e., true at every world in $\mModel{M}$? Explain.74 \begin{enumerate}75 \item $p\lif \Diamond p$ (for $p$ atomic);76 \item $!A\lif \Diamond !A$ (for $!A$ arbitrary);77 \item $\Box p \lif p$ (for $p$ atomic);78 \item $\lnot p \lif \Diamond \Box p$ (for $p$ atomic);79 \item $\Diamond \Box !A$ (for $!A$ arbitrary);80 \item $\Box \Diamond p$ (for $p$ atomic). 81 \end{enumerate}82\end{prob}8384\end{document}
content/normal-modal-logic/syntax-and-semantics/modal-validity.tex
1% Part: normal-modal-logic2% Chapter: syntax-and-semantics3% Section: modal-validity45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{nml}{syn}{val}1011\olsection{Validity}1213\begin{explain}14 !!^{formula}s that are true in all models, i.e., true at every world15 in every model, are particularly interesting. They represent those16 modal propositions which are true regardless of how $\Box$ and17 $\Diamond$ are interpreted, as long as the interpretation is18 ``normal'' in the sense that it is generated by some accessibility19 relation on possible worlds. We call such !!{formula}s20 \emph{valid}. For instance, $\Box(p \land q) \lif \Box p$ is21 valid. Some !!{formula}s one might expect to be valid on the basis22 of the alethic interpretation of $\Box$, such as $\Box p \lif p$,23 are not valid, however. Part of the interest of relational models24 is that different interpretations of $\Box$ and $\Diamond$ can be25 captured by different kinds of accessibility relations. This26 suggests that we should define validity not just relative to27 \emph{all} models, but relative to all models \emph{of a certain28 kind}. It will turn out, e.g., that $\Box p \lif p$ is true in all29 models where every world is accessible from itself, i.e., $R$ is30 reflexive. Defining validity relative to classes of models enables31 us to formulate this succinctly: $\Box p \lif p$ is valid in the32 class of reflexive models.33\end{explain}3435\begin{defn}36 !!^a{formula}~$!A$ is \emph{valid} in a class $\mClass{C}$ of37 models if it is true in every model in~$\mClass{C}$ (i.e., true at38 every world in every model in~$\mClass{C}$). If $!A$ is valid39 in~$\mClass{C}$, we write $\mClass{C} \Entails !A$, and we40 write $\Entails !A$ if $!A$ is valid in the class of41 \emph{all} models.42\end{defn}4344\begin{prop}\ollabel{prop:subset-class}45 If $!A$ is valid in $\mClass{C}$ it is also valid in each class46 $\mClass{C}' \subseteq \mClass{C}$.47\end{prop}4849\begin{prop}\ollabel{prop:Nec-rule}50 If $!A$ is valid, then so is $\Box!A$. 51\end{prop}5253\begin{proof}54 Assume $\Entails !A$. To show $\Entails \Box!A$ let $\mModel{M} =55 \tuple{W, R, V}$ be a model and $w \in W$. If $Rww'$ then56 $\mSat{M}{!A}[w']$, since $!A$ is valid, and so also57 $\mSat{M}{\Box!A}[w]$. Since $\mModel{M}$ and $w$ were58 arbitrary, $\Entails \Box!A$.59\end{proof}6061\begin{prob}62 Show that the following are valid:63 \begin{enumerate}64 \item $\Box p \lif \Box (q \lif p)$;65 \item $\Box \lnot \lfalse$;66 \item $\Box p \lif (\Box q \lif \Box p)$.67 \end{enumerate}68\end{prob}6970\begin{prob}71 Show that $!A \lif \Box!A$ is valid in the class $\mClass{C}$ of72 models $\mModel{M} = \tuple{W, R, V}$ where $W = \{w\}$. Similarly,73 show that $!B \lif \Box !A$ and $\Diamond !A \lif !B$ are valid in74 the class of models $\mModel{M} = \tuple{W, R, V}$ where75 $R = \emptyset$.76\end{prob}7778\end{document}
content/normal-modal-logic/syntax-and-semantics/tautological-instances.tex
1% Part: normal-modal-logic2% Chapter: syntax-and-semantics3% Section: tautological-instances45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{nml}{syn}{tau}1011\olsection{Tautological Instances}1213\begin{explain}14A modal-free formula is a tautology if it is true under every15truth-value assignment. Clearly, every tautology is true at every16world in every model. But for !!{formula}s involving $\Box$17and~$\Diamond$, the notion of tautology is not defined. Is it the18case, e.g., that $\Box p \lor \lnot \Box p$---an instance of the19principle of excluded middle---is valid? The notion of a20\emph{tautological instance} helps: !!a{formula} that is a21substitution instance of a (non-modal) tautology. It is not22surprising, but still requires proof, that every tautological instance23is valid.24\end{explain}2526\begin{defn}27 A modal !!{formula}~$!B$ is a \emph{tautological instance} if and28 only if there is a modal-free tautology~$!A$ with !!{propositional29 variable}s $p_1$, \dots,~$p_n$ and !!{formula}s $!D_1$,30 \dots,~$!D_n$ such that $!B \ident \SSubst{!A}{\subst{!D_1}{p_1},31 \dots, \subst{!D_n}{p_n}}$.32\end{defn}3334\begin{lem}\ollabel{lem:valid-taut}35 Suppose $!A$ is a modal-free !!{formula} whose !!{propositional36 variable}s are $p_1$, \dots, $p_n$, and let $!D_1$, \dots,37 $!D_n$ be modal !!{formula}s. Then for any assignment $\pAssign{v}$,38 any model $\mModel{M} = \tuple{W, R, V}$, and any $w \in W$ such39 that $\pAssign{v}(p_i) = \True$ if and only if $\mSat{M}{!D_i}[w]$ we have40 that $\pSat{v}{!A}$ if and only if41 $\mSat{M}{\SSubst{!A}{\subst{!D_1}{p_1}, \dots,42 \subst{!D_n}{p_n}}}[w]$.43\end{lem}4445\begin{proof}46 By induction on $!A$.47 \begin{enumerate}48 \tagitem{prvFalse}{\indcase{!A}{\lfalse}{Both $\pSat/{v}{\lfalse}$49 and $\mSat/{M}{\lfalse}[w]$}.}{}50 \tagitem{prvTrue}{\indcase{!A}{\ltrue}{Both $\pSat{v}{\ltrue}$51 and $\mSat{M}{\ltrue}[w]$}.}{}52 \item \indcase{!A}{p_i}{%53 \begin{align*}54 \pSat{v}{p_i} \Leftrightarrow {} & \pAssign{v}(p_i) = \True \\55 & \qquad \text{by definition of $\pSat{v}{p_i}$}\\56 \Leftrightarrow {} & \mSat{M}{!D_i}[w] \\57 &\qquad \text{by assumption}\\58 \Leftrightarrow {} & \mSat{M}{\SSubst{p_i}{\subst{!D_1}{p_1}, \dots,59 \subst{!D_n}{p_n}}}[w]\\60 &\qquad \text{since $\SSubst{p_i}{\subst{!D_1}{p_1}, \dots,61 \subst{!D_n}{p_n}} \ident !D_i$}.62 \end{align*}}63 \tagitem{prvFalse}{\indcase{!A}{\lnot !B}{%64 \begin{align*}65 \pSat{v}{\lnot !B} \Leftrightarrow {} & \pSat/{v}{!B}\\66 &\qquad \text{by definition of $\pSat{v}{}$};\\67 \Leftrightarrow {} & \mSat/{M}{\SSubst{!B}{\subst{!D_1}{p_1}, \dots,68 \subst{!D_n}{p_n}}}[w]\\69 &\qquad \text{by induction hypothesis}\\70 \Leftrightarrow {} &71 \mSat{M}{\SSubst{\lnot !B}{\subst{!D_1}{p_1}, \dots,72 \subst{!D_n}{p_n}}}[w]\\73 &\qquad \text{by definition of $\pSat{v}{}$}.74 \end{align*}}}{}75 \tagitem{prvAnd}{\indcase{!A}{(!B \land !C)}{%76 \begin{align*}77 \pSat{v}{!B \land !C} \Leftrightarrow {} &78 \pSat{v}{!B} \text{ and } \pSat{v}{!C}\\79 &\qquad \text{by definition of $\pSat{v}{}$}\\80 \Leftrightarrow {} &81 \mSat{M}{\SSubst{!B}{\subst{!D_1}{p_1}, \dots,82 \subst{!D_n}{p_n}}}[w] \text{ and } \\83 & \mSat{M}{\SSubst{!C}{\subst{!D_1}{p_1}, \dots,84 \subst{!D_n}{p_n}}}[w]\\85 &\qquad \text{by induction hypothesis}\\86 \Leftrightarrow{} &87 \mSat{M}{\SSubst{(!B \land !C)}{\subst{!D_1}{p_1}, \dots,88 \subst{!D_n}{p_n}}}[w]\\89 &\qquad \text{by definition of $\mSat{M}{}[w]$}.90 \end{align*}}}{}91 \tagitem{prvOr}{\indcase{!A}{(!B \lor !C)}{%92 \begin{align*}93 \pSat{v}{!B \lor !C} \Leftrightarrow{} &94 \pSat{v}{!B} \text{ or } \pSat{v}{!C}\\95 &\qquad \text{by definition of $\pSat{v}{}$};\\96 \Leftrightarrow{} & \mSat{M}{\SSubst{!B}{\subst{!D_1}{p_1}, \dots,97 \subst{!D_n}{p_n}}}[w] \text{ or }\\98 & \mSat{M}{\SSubst{!C}{\subst{!D_1}{p_1}, \dots,99 \subst{!D_n}{p_n}}}[w]\\100 &\qquad \text{by induction hypothesis}\\101 \Leftrightarrow{} &102 \mSat{M}{\SSubst{(!B \lor !C)}{\subst{!D_1}{p_1}, \dots,103 \subst{!D_n}{p_n}}}[w]\\104 &\qquad \text{by definition of $\mSat{M}{}[w]$}.105 \end{align*}}}{}106 \tagitem{prvIf}{\indcase{!A}{(!B \lif !C)}{%107 \begin{align*}108 \pSat{v}{!B \lif !C} \Leftrightarrow{} &109 \pSat/{v}{!B} \text{ or } \pSat{v}{!C}\\110 &\qquad \text{by definition of $\pSat{v}{}$}\\111 \Leftrightarrow{} &112 \mSat/{M}{\SSubst{!B}{\subst{!D_1}{p_1}, \dots,113 \subst{!D_n}{p_n}}}[w] \text{ or }\\114 & \mSat{M}{\SSubst{!C}{\subst{!D_1}{p_1}, \dots,115 \subst{!D_n}{p_n}}}[w]\\116 &\qquad \text{by induction hypothesis}\\117 \Leftrightarrow{} &118 \mSat{M}{\SSubst{(!B \lif !C)}{\subst{!D_1}{p_1}, \dots,119 \subst{!D_n}{p_n}}}[w]\\120 &\qquad \text{by definition of $\mSat{M}{}[w]$}.121 \end{align*}}}{}122 \tagitem{prvIff}{\indcase{!A}{(!B \liff !C)}{%123 \begin{align*}124 \pSat{v}{!B \lif !C} \Leftrightarrow {} &125 \text{either } \pSat{v}{!B} \text{ and } \pSat{v}{!C}\\126 & \text{or } \pSat/{v}{!B} \text{ and } \pSat/{v}{!C}\\127 &\qquad \text{by definition of $\pSat{v}{}$}\\128 \Leftrightarrow {} &129 \text{either } \mSat{M}{\SSubst{!B}{\subst{!D_1}{p_1}, \dots,130 \subst{!D_n}{p_n}}}[w] \text{ and }\\131 & \qquad \mSat{M}{\SSubst{!C}{\subst{!D_1}{p_1}, \dots,132 \subst{!D_n}{p_n}}}[w]\\ 133 & \text{ or } \mSat/{M}{\SSubst{!B}{\subst{!D_1}{p_1}, \dots,134 \subst{!D_n}{p_n}}}[w] \text{ and }\\135 & \qquad \mSat/{M}{\SSubst{!C}{\subst{!D_1}{p_1}, \dots,136 \subst{!D_n}{p_n}}}[w]\\137 &\qquad\text{by induction hypothesis}\\138 \Leftrightarrow {} &139 \mSat{M}{\SSubst{(!B \liff !C)}{\subst{!D_1}{p_1}, \dots,140 \subst{!D_n}{p_n}}}[w]\\141 &\qquad \text{by definition of $\mSat{M}{}[w]$}.142 \end{align*}}}{}143 \end{enumerate}144 \end{proof}145146\begin{prop}\ollabel{prop:valid-taut}147 All tautological instances are valid.148\end{prop}149150\begin{proof}151 Contrapositively, suppose $!A$ is such that152 $\mSat/{M}{\SSubst{!A}{\subst{!D_1}{p_1}, \dots,153 \subst{!D_n}{p_n}}}[w]$, for some model $\mModel{M}$ and world~$w$.154 Define an assignment $\pAssign{v}$ such that $\pAssign{v}(p_i) =155 \True$ if and only if $\mSat{M}{!D_i}[w]$ (and $\pAssign{v}$ assigns156 arbitrary values to $q \notin \{p_1, \dots, p_n \}$). Then by157 \olref{lem:valid-taut}, $\pSat/{v}{!A}$, so $!A$ is not a tautology.158\end{proof}159160\end{document}
content/normal-modal-logic/syntax-and-semantics/schemas.tex
1% Part: normal-modal-logic2% Chapter: syntax-and-semantics3% Section: schemas45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{nml}{syn}{sch}1011\olsection{Schemas and Validity}1213\begin{defn}14 A \emph{schema} is a set of !!{formula}s comprising all15 and only the substitution instances of some modal !!{formula}~$!C$, i.e.,16 \[17 \Setabs{!B}{\lexists[!D_1], \dots, \lexists[!D_n] \left(!B =18 \SSubst{!C}{\subst{!D_1}{p_1}, \dots, \subst{!D_n}{p_n}} \right) }.19 \]20 The !!{formula}~$!C$ is called the \emph{characteristic} !!{formula} of21 the schema, and it is unique up to a renaming of the !!{propositional22 variable}s. !!^a{formula}~$!A$ is an \emph{instance} of a schema if23 it is a member of the set.24\end{defn}2526It is convenient to denote a schema by the meta-linguistic expression27obtained by substituting `$!A$', `$!B$',~\dots, for the atomic28components of~$!C$. So, for instance, the following denote schemas:29`$!A$', `$!A \lif \Box!A$', `$!A \lif (!B \lif !A)$'. They correspond30to the characteristic !!{formula}s $p$, $p \lif \Box p$, $p \lif (q31\lif p)$. The schema `$!A$' denotes the set of \emph{all}32!!{formula}s.3334\begin{defn}35 A schema is \emph{true} in a model if and only if all of its instances36 are; and a schema is \emph{valid} if and only if it is true in every37 model.38\end{defn}3940\begin{prop}\ollabel{prop:Kvalid}41 The following schema \Ax{K} is valid42 \begin{equation*}43 \Box(!A \lif !B) \lif (\Box !A \lif \Box !B). \tag{\Ax{K}}44 \end{equation*}45\end{prop}4647\begin{proof}48 We need to show that all instances of the schema are true at every49 world in every model. So let $\mModel{M} = \tuple{W,R,V}$ and $w \in50 W$ be arbitrary. To show that a conditional is true at a world we51 assume the antecedent is true to show that the consequent is true as52 well. In this case, let $\mSat{M}{\Box(!A \lif !B)}[w]$ and53 $\mSat{M}{\Box !A}[w]$. We need to show $\mSat{M}{\Box !B}[w]$. So let54 $w'$ be arbitrary such that $Rww'$. Then by the first assumption55 $\mSat{M}{!A \lif !B}[w']$ and by the second assumption56 $\mSat{M}{!A}[w']$. It follows that $\mSat{M}{!B}[w']$. Since $w'$57 was arbitrary, $\mSat{M}{\Box !B}[w]$.58\end{proof}5960\begin{prop}\ollabel{prop:Dual-valid}61 The following schema \Dual{} is valid62 \begin{equation*}63 \Diamond !A \liff \lnot\Box\lnot !A. \tag{\Dual}64 \end{equation*}65\end{prop}6667\begin{proof}68 Exercise.69\end{proof}7071\begin{prob}72 Prove \olref[nml][syn][sch]{prop:Dual-valid}.73\end{prob}7475\begin{prop}\ollabel{prop:soundMP}76 If $!A$ and $!A \lif !B$ are true at a world in a model77 then so is $!B$. Hence, the valid !!{formula}s are closed under78 modus ponens.79\end{prop}8081\begin{prop}\ollabel{prop:valid-instances}82 !!^a{formula}~$!A$ is valid iff all its substitution instances83 are. In other words, a schema is valid iff its characteristic84 !!{formula} is.85\end{prop}8687\begin{proof}88 The ``if'' direction is obvious, since $!A$ is a substitution89 instance of itself.9091 To prove the ``only if'' direction, we show the following: Suppose92 $\mModel{M} = \tuple{W, R, V}$ is a modal model, and $!B \ident93 \SSubst{!A}{\subst{!D_1}{p_1},\dots,\subst{!D_n}{p_n}}$ is a94 substitution instance of~$!A$. Define $\mModel{M'} = \tuple{W, R,95 V'}$ by $V'(p_i) = \Setabs{w}{\mSat{M}{!D_i}[w]}$. Then96 $\mSat{M}{!B}[w]$ iff $\mSat{M'}{!A}[w]$, for any~$w \in W$. (We97 leave the proof as an exercise.) Now suppose that $!A$ was valid,98 but some substitution instance $!B$ of~$!A$ was not valid. Then for99 some $\mModel{M} = \tuple{W, R, V}$ and some $w \in W$,100 $\mSat/{M}{!B}[w]$. But then $\mSat/{M'}{!A}[w]$ by the claim, and101 $!A$ is not valid, a contradiction.102\end{proof}103104\begin{prob}105 Prove the claim in the ``only if'' part of the proof of106 \olref[nml][syn][sch]{prop:valid-instances}. (Hint: use induction107 on~$!A$.)108\end{prob}109110Note, however, that it is not true that a schema is true in a model111iff its characteristic formula is. Of course, the ``only if''112direction holds: if every instance of $!A$ is true in~$\mModel{M}$,113$!A$~itself is true in~$\mModel{M}$. But it may happen that $!A$ is114true in~$\mModel{M}$ but some instance of~$!A$ is false at some world115in~$\mModel{M}$. For a very simple counterexample consider~$p$ in a116model with only one world~$w$ and $V(p) = \{w\}$, so that $p$ is true117at~$w$. But $\lfalse$ is an instance of~$p$, and not true at~$w$.118119\begin{prob}120 Show that none of the following !!{formula}s are valid:121 \begin{enumerate}122 \item[\Ax{D}:] \quad $\Box p \lif \Diamond p$;123 \item[\Ax{T}:] \quad $\Box p \lif p$;124 \item[\Ax{B}:] \quad $p \lif \Box\Diamond p$;125 \item[\Ax{4}:] \quad $\Box p \lif \Box \Box p$;126 \item[\Ax{5}:] \quad $\Diamond p \lif \Box \Diamond127 p$.128 \end{enumerate}129\end{prob}130131\begin{table}[t]132 \centering133 \begin{tabular}{| l || l |}134 \hline135 {\emph{Valid Schemas}} & {\emph{Invalid Schemas}} \\136 \hline\hline137 $\Box(!A \lif !B) \lif (\Diamond !A \lif \Diamond !B)$138 & $\Box (!A \lor !B) \lif (\Box !A \lor \Box !B)$ \\139 $\Diamond (!A \lif !B) \lif (\Box !A \lif \Diamond140 !B)$141 & $(\Diamond !A \land \Diamond !B) \lif \Diamond (!A142 \land !B)$\\143 $\Box (!A \land !B) \liff (\Box !A \land \Box !B)$144 & $!A \lif \Box !A$ \\145 $\Box !A \lif \Box (!B \lif !A)$146 & $\Box \Diamond !A \lif !B$ \\147 $\lnot \Diamond !A \lif \Box (!A \lif !B)$148 & $\Box \Box !A \lif \Box !A$ \\149 $\Diamond (!A \lor !B) \liff (\Diamond !A \lor150 \Diamond !B)$151 & $\Box \Diamond !A \lif \Diamond \Box !A$. \\152 \hline153 \end{tabular}154 \caption{Valid and (or?) invalid schemas.}155 \ollabel{tab:valid-invalidSchemas}156\end{table}157158\begin{prob}%\ollabel{ex:in/validSchemas}159 Prove that the schemas in the first column of160 \olref[nml][syn][sch]{tab:valid-invalidSchemas} are valid and those in161 the second column are not valid.162\end{prob}163164\begin{prob}165 Decide whether the following schemas are valid or invalid:166 \begin{enumerate}167 \item $(\Diamond !A \lif \Box !B) \lif (\Box !A \lif \Box168 !B)$;169 \item $\Diamond(!A \lif !B) \lor \Box(!B \lif !A)$.170 \end{enumerate}171\end{prob}172173\begin{prob}174 For each of the following schemas find a model $\mModel{M}$ such175 that every instance of the !!{formula} is true in $\mModel{M}$:176 \begin{enumerate}177 \item $p \lif \Diamond\Diamond p$;178 \item $\Diamond p \lif \Box p$.179 \end{enumerate}180\end{prob}181182\end{document}
content/normal-modal-logic/syntax-and-semantics/entailment.tex
1% Part: normal-modal-logic2% Chapter: syntax-and-semantics3% Section: entailment45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{nml}{syn}{ent}1011\olsection{Entailment}1213\begin{explain}14 With the definition of truth at a world, we can define an entailment15 relation between !!{formula}s. !!^a{formula}~$!B$ entails~$!A$ iff,16 whenever $!B$ is true, $!A$ is true as well. Here, ``whenever''17 means both ``whichever model we consider'' as well as ``whichever18 world in that model we consider.''19\end{explain}2021\begin{defn}22 If $\Gamma$ is a set of !!{formula}s and $!A$ !!a{formula}, then23 $\Gamma$ \emph{entails}~$!A$, in symbols: $\Gamma \Entails !A$, if24 and only if for every model $\mModel{M} = \tuple{W, R, V}$ and world25 $w \in W$, if $\mSat{M}{!B}[w]$ for every $!B \in \Gamma$, then26 $\mSat{M}{!A}[w]$. If $\Gamma$ contains a single !!{formula}~$!B$,27 then we write $!B \Entails !A$.28\end{defn}2930\begin{ex}31 To show that !!a{formula} entails another, we have to reason about32 all models, using the definition of $\mSat{M}{}[w]$. For instance,33 to show $p \lif \Diamond p \Entails \Box\lnot p \lif \lnot p$, we34 might argue as follows: Consider a model $\mModel{M} = \tuple{W, R,35 V}$ and $w \in W$, and suppose $\mSat{M}{p \lif \Diamond36 p}[w]$. We have to show that $\mSat{M}{\Box\lnot p \lif \lnot37 p}[w]$. Suppose not. Then $\mSat{M}{\Box\lnot p}[w]$ and38 $\mSat/{M}{\lnot p}[w]$. Since $\mSat/{M}{\lnot p}[w]$, $\mSat{M}{39 p}[w]$. By assumption, $\mSat{M}{p \lif \Diamond p}[w]$, hence40 $\mSat{M}{\Diamond p}[w]$. By definition of $\mSat{M}{\Diamond41 p}[w]$, there is some $w'$ with $Rww'$ such that42 $\mSat{M}{p}[w']$. Since also $\mSat{M}{\Box \lnot p}[w]$,43 $\mSat{M}{\lnot p}[w']$, a contradiction.4445 To show that !!a{formula}~$!B$ does not entail another~$!A$, we have46 to give a counterexample, i.e., a model $\mModel{M} = \tuple{W, R,47 V}$ where we show that at some world~$w \in W$, $\mSat{M}{!B}[w]$48 but $\mSat/{M}{!A}[w]$. Let's show that $p \lif \Diamond p \Entails/49 \Box p \lif p$. Consider the model in \olref{fig:counterex}. We50 have $\mSat{M}{\Diamond p}[w_1]$ and hence $\mSat{M}{p \lif51 \Diamond p}[w_1]$. However, since $\mSat{M}{\Box p}[w_1]$ but52 $\mSat/{M}{p}[w_1]$, we have $\mSat/{M}{\Box p \lif p}[w_1]$.53 \begin{figure}54 \begin{center}55 \begin{tikzpicture}[modal]56 \node[world] (w1) [label=right:\mFalse{p}]{$w_1$}; 57 \node[world] (w2) [label=right:\mTrue{p}, above left=of w1]{$w_2$}; 58 \node[world] (w3) [label=right:\mTrue{p}, above right=of w1] {$w_3$};59 \draw[->] (w1) to (w2);60 \draw[->] (w1) to (w3);61 \end{tikzpicture}62 \end{center}63 \caption{Counterexample to $p \lif \Diamond p64 \Entails \Box p \lif p$.}65 \ollabel{fig:counterex}66 \end{figure}67 68 Often very simple counterexamples suffice. The model $\mModel{M'} =69 \{W', R', V'\}$ with $W' = \{w\}$, $R' = \emptyset$, and $V'(p) =70 \emptyset$ is also a counterexample: Since $\mSat/{M'}{p}[w]$,71 $\mSat{M'}{p \lif \Diamond p}[w]$. As no worlds are accessible72 from~$w$, we have $\mSat{M'}{\Box p}[w]$, and so $\mSat/{M'}{\Box p73 \lif p}[w]$.74\end{ex}7576\begin{prob}77 Show that $\Box (!A \land !B) \Entails \Box !A$.78\end{prob}7980\begin{prob}81 Show that $\Box (p \lif q) \Entails/ p \lif \Box q$ and $p \lif \Box82 q \Entails/\Box (p \lif q)$.83\end{prob}8485\end{document}