Skip to content

Commit 724e04f

Browse files
committed
initial checkin of style and first section files
1 parent 427c88f commit 724e04f

13 files changed

Lines changed: 865 additions & 0 deletions

misc/misc.tex

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
\documentclass{memoir}
2+
3+
\usepackage{subfiles}
4+
5+
\usepackage{amsmath}
6+
\usepackage[greekformulas]{../open-logic}
7+
8+
\begin{document}
9+
\subfile{sets-and-relations}
10+
\end{document}
11+

misc/sets-and-relations.tex

Lines changed: 310 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,310 @@
1+
\documentclass[misc]{subfiles}
2+
3+
\begin{document}
4+
5+
\section{Sets and Relations}\label{sec:Sets-and-Relations}
6+
7+
8+
\subsection{Sets}\label{ssec:Sets}
9+
10+
Sets and relations are the fundamental building blocks from which
11+
we construct structures used to interpret logical languages. For instance, a model~$\Mod M$
12+
for a first-order language consists of a set~$D$ (the ``domain''
13+
or ``universe of discourse'') and relations on~$D$ for each predicate
14+
symbol in the language. For the semantics of modal logic, we will
15+
make extensive use of sets and relations; in particular, certain specific
16+
kinds of relations will play a prominent role. Hence, let's first
17+
review what sets and relations are.
18+
19+
\begin{defn}
20+
A set is a collection of objects, considered independently of the
21+
way it is specified, of the order of its elements, or of their
22+
multiplicity. The objects making up the set are called \emph{elements} of
23+
the set. If $a$ is an element of a set $X$, we write $a \in X$ (otherwise,
24+
$a \notin X$). The set which has no elements is called the \emph{empty set}
25+
and denoted~$\emptyset$.
26+
\end{defn}
27+
28+
\begin{ex}
29+
Whenever you have a bunch of objects, you can collect them together
30+
in a set. The set of Richard's siblings, for instance, is a set that
31+
contains one person, and we could write it as $S=\{\textrm{Ruth}\}$.
32+
In general, when we have some objects $a_{1}$, \dots{}, $a_{n}$,
33+
then the set consisting of exactly those objects is written $\{a_{1},\dots,a_{n}\}$.
34+
\end{ex}
35+
36+
Frequently we'll specify a set by some property that its elements
37+
share---as we just did, for instance, by specifying $S$ as the set
38+
of Richard's siblings. We'll use the following shorthand notation
39+
for that: $\{x : \ldots x \ldots\}$ (pronounced ``the set of all
40+
$x$ such that $\ldots x\ldots$''), where the $\ldots x\ldots$
41+
is the property that $x$ has to have in order to be counted among
42+
the elements of the set. In our example, we could have specified $S$
43+
also as $S=\{x : x\text{ is a sibling of Richard}\}$. When we say
44+
that sets are independent of the way they are specified, we mean
45+
that the elements of a set are all that matters. For instance, it
46+
so happens that $\{\text{Nicole},\text{Jacob}\}$, $\{x : x\text{ is a niece or nephew of Richard}\}$ and
47+
$\{x :d x\text{ is a child of Ruth}\}$ are three ways of specifying
48+
one and the same set. Saying that sets are considered independently
49+
of the order of their elements and their multiplicity is a fancy way
50+
of saying that $\{\text{Nicole}, \text{Jacob}\}$ and $\{\text{Jacob},\text{Nicole}\}$ are
51+
two ways of specifying the same set; and that $\{\text{Nicole},\text{Jacob}\}$
52+
and $\{\text{Jacob},\text{Nicole}, \text{Nicole}\}$ are two ways of
53+
specifying the same set.
54+
55+
Mostly we'll be dealing with sets that have mathematical objects as
56+
members. You will remember the various sets of numbers: $\mathbb{N}$
57+
is the set of \emph{natural} numbers $0$, $1$, $2$, $3$, \dots{};
58+
$\mathbb{Z}$ the set of \emph{integers} \dots{}, $-3$, $-2$,
59+
$-1$, $0$, $1$, $2$, $3$, \dots{}; $\mathbb{Q}$ the set of
60+
\emph{rationals} ($\mathbb{Q}=\{p/q : p,q\in\mathbb{Z}\}$); and
61+
$\mathbb{R}$ the set of \emph{real} numbers. These are all \emph{infinite}
62+
sets, that is, they each have infinitely many elements. As it turns
63+
out, $\mathbb{N}$, $\mathbb{Z}$, $\mathbb{Q}$ have the same number
64+
of elements, while $\mathbb{R}$ has a whole bunch more---$\mathbb{N}$,
65+
$\mathbb{Z}$, $\mathbb{Q}$ are ``countably infinite'' whereas
66+
$\mathbb{R}$ is ``uncountable''.
67+
68+
\begin{ex}\label{ex:strings}
69+
Another interesting set is the set $A^{*}$ of
70+
\emph{strings} over an alphabet $A$: any sequence of elements of
71+
$A$ is a string over $A$. We include the \emph{empty string $\Lambda$}
72+
among the strings over $A$, for every alphabet~$A$. For instance,
73+
if $A = \{0,1\}$, then
74+
\[
75+
\mathbb{B}=A^{*}=\{\Lambda,0,1,00,01,10,11,000,001,010,011,100,101,110,111,0000,\ldots\}.
76+
\]
77+
If $x=x_{1}\ldots x_{n}\in A^{*}$ is a string consisting of $n$
78+
``letters'' from $A$, then we say the \emph{length} of the string is~$n$
79+
and write $\len(x)=n$.
80+
\end{ex}
81+
82+
\begin{defn}
83+
A set $X$ is a \emph{subset} of a set $Y$, $X \subseteq Y$, iff every
84+
element of $X$ is also an element of $Y$. If $X\subseteq Y$ and
85+
$X\neq Y$, we say that $X$ is a \emph{proper subset} of $Y$ and
86+
write $X\subsetneq Y$. The set of all subsets of a set~$X$ is called
87+
the \emph{power set} of~$X$, and denoted~$\wp(X)$.
88+
\end{defn}
89+
90+
\begin{ex}
91+
The empty set~$\emptyset$ is a subset of every set, and every set
92+
is a subset of itself. If $X$ is a finite set with $n$ elements,
93+
then there are $2^{n}$ subsets of~$X$. For instance, $X=\{1,2,3\}$has
94+
$2^{3}=8$ subsets, namely:
95+
\[
96+
\wp(X)=\{\emptyset,\{1\},\{2\},\{3\},\{1,2\},\{1,3\},\{2,3\},\{1,2,3\}\}.
97+
\]
98+
Of our previous examples, we have $\mathbb{N}\subseteq\mathbb{Z}\subseteq\mathbb{Q}\subseteq\mathbb{R}$
99+
(in fact, these are all proper subsets). If $A\subseteq B$, then
100+
also $A^{*}\subseteq B^{*}$ and $\wp(A) \subseteq \wp(B)$.
101+
\end{ex}
102+
103+
\begin{defn}
104+
If $X$and $Y$ are sets, then the \emph{intersection} $X\cap Y$
105+
of $X$ and $Y$ is the set of all elements of $X$ which are also
106+
elements of $Y$, i.e., $X\cap Y=\{x : x\in X\text{ and }x\in Y\}$.
107+
If $X$ and $Y$ have no elements in common, then $X \cap Y = \emptyset$,and
108+
we call $X$ and $Y$ \emph{disjoint.} The \emph{union}~$X \cup Y$
109+
of $X$ and $Y$ is the set consisting of the elements of $X$ together
110+
with all the elements of $Y$, i.e., $X \cup Y=\{x : x\in X\text{ or }x\in Y\}$.
111+
The \emph{difference}~$X \setminus Y$ is the set of all elements
112+
of $X$ which are not also elements of $Y$, i.e., $X \setminus Y = \{x : x\in X\text{ and }x\notin Y\}$.
113+
\end{defn}
114+
115+
It will ofent be necessary to describe the unions or intersections not just of two, but of many sets. Since sets are collections of arbitrary objects, we can form sets of sets. The power set of a set~$X$ is aset of sets, for instance, and its powerset is a set of sets of sets.
116+
117+
\begin{defn}
118+
If $X$ is a set (of sets), then $\bigcap X = \{x : x \in Y \text{ for all } Y \in X\}$ and $\bigcup X = \{x : x \in Y \text{ for some } Y \in X\}$ are the intersection and union, respectively, of all sets in~$X$.
119+
\end{defn}
120+
121+
If the elements of $X$ are indexed, e.g., $X = \{Y_0, Y_1, Y_2, \dots\}$, we will also write $\bigcap_{i=0}^\infty Y_i$ and $\bigcap_{i=0}^\infty Y_i$ for $\bigcap X$ and $\bigcup X$, respectively. Often infinite sets are constructed as the unions or intersections of an infinite sequence of sets, which may be nested ($Y_0 \subseteq Y_1 \subseteq Y_2 \subseteq \dots$). It will be important to remember in such cases that $x \in \bigcup_{i=0}^\infty$ iff $x \in Y_i$ for some~$i$.
122+
123+
\subsection{Relations}
124+
125+
Now that we've reviewed what sets are and seen some examples, you
126+
will no doubt remember some interesting relations between objects
127+
of some of these sets. For instance, numbers come with an \emph{order
128+
relation}~$<$ and from the theory of whole numbers the relation
129+
of \emph{divisibility without remainder} (usually written $n \mid m$)
130+
may be familar. There is also the relation \emph{is identical with}
131+
that every object bears to itself and to no other thing. But there
132+
are many more interesting relations that we'll encounter, and even
133+
more possible relations. Before we review them, we'll just point out
134+
that we can look at relations as a special sort of set. For this,
135+
we'll first need to define what a \emph{pair} is: if $a$ and $b$
136+
are two objecta, we can combine them into the \emph{ordered pair}~$(a,b)$.
137+
Note that for ordered pairs the order \emph{does} matter, e.g, $(a,b)\neq(b,a)$
138+
(in contrast to unordered pairs, i.e., 2-element sets, where $\{a,b\}=\{b,a\}$).
139+
140+
\begin{defn}
141+
If $X$ and $Y$ are sets, then the \emph{Cartesian product} $X \times Y$
142+
of $X$ and $Y$ is the set of all pairs $(a,b)$ with $a\in X$ and
143+
$b\in Y$. In particular, $X^{2}=X \times X$ is the set of all pairs
144+
from~$X$.
145+
\end{defn}
146+
147+
Now consider a relation on a set, e.g., the $<$-relation on the set
148+
$\mathbb{N}$ of natural numbers, and consider the set of all pairs
149+
of numbers $(n,m)$ where $n<m$, i.e.,
150+
\[
151+
R=\{(n,m)\mid n,m\in\mathbb{N}\text{ and }n<m\}.
152+
\]
153+
Then there is a close connection between the a number $n$ being less
154+
than a number $m$ and the corresponding pair $(n,m)$ being a member
155+
of $R$, namely, $n<m$ if and only if $(n,m) \in R$. In a sense we
156+
can consider the set $R$ to \emph{be} the $<$-relation on the set
157+
$\mathbb{N}$. In the same way we can construct a subset of $\mathbb{N}^{2}$ for
158+
any relation between numbers. Conversely, given any set of pairs of
159+
numbers $S\subseteq\mathbb{N}^{2}$, there is a corresponding relation
160+
between numbers, namely, the relationship $n$ bears to $m$ if and
161+
only if $(n,m) \in S$. This justifies the following definition:
162+
163+
\begin{defn}
164+
A \emph{binary relation} on a set $X$ is a subset of $X^{2}$. If
165+
$R\subseteq X^{2}$ is a binary relation on~$X$ and $x,y\in X$,
166+
we write $Rxy$ (or $xRy$) for $(x,y)\in R$.
167+
\end{defn}
168+
169+
\begin{ex}label{ex:relations}
170+
The set $\mathbb{N}^{2}$of
171+
pairs of natural numbers can be listed in a 2-dimensional matrix like
172+
this:
173+
\[
174+
\begin{array}{ccccc}
175+
\mathbf{(0,0)} & (0,1) & (0,2) & (0,3) & \ldots\\
176+
(1,0) & \mathbf{(1,1)} & (1,2) & (1,3) & \ldots\\
177+
(2,0) & (2,1) & \mathbf{(2,2)} & (2,3) & \ldots\\
178+
(3,0) & (3,1) & (3,2) & \mathbf{(3,3)} & \ldots\\
179+
\vdots & \vdots & \vdots & \vdots & \mathbf{\ddots}
180+
\end{array}
181+
\]
182+
The subset consisting of the pairs lying on the diagonal, $I=\{(0,0),(1,1),(2,2),\ldots\}$,
183+
is the \emph{identity relation on}~$\mathbb{N}$. (Since the identity
184+
relation is popular, let's define $I_{X}=\{(x,x) : x\in X\}$ for any
185+
set $X$.) The subset of all pairs lying above the diagonal, $L = \{(0,1),(0,2),\ldots,(1,2),(1,3),\ldots,(2,3),(2,4),\ldots\}$ is
186+
the \emph{less than} relation, i.e., $Lnm$ iff $n<m$. The subset
187+
of pairs below the diagonal, $G=\{(1,0),(2,0),(2,1),(3,0),(3,1),(3,2),\ldots\}$
188+
is the \emph{greater than} relation, i.e., $Gnm$ iff $n>m$. The
189+
union of $L$ with $I$, $K=L\cup I$, is the \emph{less than or equal
190+
to} relation: $Kmn$ iff $n\le m$. Similarly, $H=G\cup I$ is the
191+
\emph{greater than or equal to relation.} $L$, $G$, $K$, and $H$
192+
are special kinds of relations called \emph{orders}. $L$ and $G$
193+
have the property that no number bears $L$ or $G$ to itself (i.e.,
194+
for all $n$, neither $Lnn$ nor $Gnn$). Relations with this property
195+
are called \emph{antireflexive}, and, if they also happen to be orders,
196+
they are called \emph{strict orders.}
197+
198+
Although orders and identity are important and natural relations,
199+
it should be emphasized that according to our definition \emph{any}
200+
subset of $X^{2}$ is a relation on~$X$, regardless of how unnatural
201+
or contrived it seems. In particular, $\emptyset$ is a relation on
202+
any set (the \emph{empty relation}, which no pair of elements bears),
203+
and $X^{2}$ itself is a relation on $X$ as well (the universal relation, which every
204+
pair bears). But also something like $E=\{(n,m) : d n>5\text{ or }m\times n\ge 34\}$
205+
counts as a relation.
206+
\end{ex}
207+
208+
\begin{defn}
209+
If $R$ is a relation, then the \emph{domain}~$\dom{R}$ is the set of all elements related by~$R$, i.e., $\dom{R} = \{a : \text{for some }b, Rab\}$.
210+
The \emph{range}~$\ran{R}$ is the set of all elements related to by~$R$, i.e., $\ran{R} = \{b : \text{for some }a, Rab\}$.
211+
\end{defn}
212+
213+
\begin{defn}
214+
A relation $R$ over a set $X$ is called \emph{reflexive} if, for
215+
every $x\in X$, $Rxx$. A relation which has the property that whenever
216+
$Rxy$ and $Ryz$, then also $Rxz$, is called \emph{transitive}.
217+
$R$ is called \emph{anti-symmetric,} if, whenever both $Rxy$ and
218+
$Ryx$, then $x=y$ (or, in other words: if $x\neq y$ then either
219+
$\not Rxy$ or $\not Ryx$). Finally, $R$ is \emph{total} if for
220+
all $x,y\in X$, either $Rxy$ or $Ryx$.
221+
222+
A relation which is both reflexive and transitive is called a \emph{preorder.}
223+
A preorder which is also anti-symmetric is called a \emph{partial
224+
order}. A partial order which is also total is called a \emph{total
225+
order} or \emph{linear order.} (If we want to emphasize that the order
226+
is reflexive, we add the adjective ``weak''---see below).
227+
\end{defn}
228+
229+
\begin{ex}
230+
Every linear order is also a partial order, and every partial order
231+
is also a preorder, but the converses don't hold. For instance, the
232+
identity relation and the universal relation on~$X$ are preorders, but
233+
they are not partial orders, because they are not anti-symmetric (if
234+
$X$ has more than one element). For a somewhat less silly example,
235+
consider the \emph{no longer than} relation $\preccurlyeq$on~$\mathbb{B}$:
236+
$x\preccurlyeq y$ iff $\len(x)\le\len(y)$. This is a preorder, even
237+
a total preorder, but not a partial order. The relation of \emph{divisibility
238+
without remainder} gives us an example of a partial order which isn't
239+
a total order: for integers $n$, $m$, we say $n$ (evenly) divides
240+
$m$, in symbols: $n\mid m$, if there is some $k$ so that $m=kn$.
241+
On $\mathbb{N}$, this is a partial order, but not a linear order:
242+
for instance, $2\nmid3$ and also $3\nmid2$. Considered as a relation
243+
on $\mathbb{Z}$, divisibility is only a preorder since anti-symmetry
244+
fails: $1\mid-1$ and $-1\mid1$ but $1\neq-1$. Another important
245+
partial order is the relation $\subseteq$ on a set of sets.
246+
247+
Notice that the examples $L$ and $G$ from \ref{ex:relations},
248+
although we said there that they were called ``strict orders'' are
249+
not total orders even though they are total. But there is a close
250+
connection, as we will see momentarily.
251+
\end{ex}
252+
253+
\begin{defn}
254+
A relation $R$ on $X$is called \emph{irreflexive} if, for all $x\in X$,
255+
$x\not Rx$. $R$ is called \emph{asymmetric} if for no pair $x,y\in X$
256+
we have $xRy$ and $yRx$. A \emph{strict partial order} is a relation
257+
which is irreflexive, asymmetric, and transitive. A strict partial
258+
order which is also linear is called a \emph{strict linear order.}
259+
\end{defn}
260+
261+
A strict partial order $R$ on $X$ can be turned into a weak partial
262+
order $R'$ by adding the identity relation on $X$.
263+
Conversely, starting from a weak partial order, one can get a strict
264+
partial order by removing~$I_{X}$
265+
266+
\begin{prop}
267+
Let $R$ be a relation on $X$ and $R'= R \cup I{}_{X}$. Then
268+
$R$ is a strict partial (linear) order on $X$ iff $R'$ is a weak
269+
partial (linear) order. Moreover, $xRy$ iff $xR'y$ for all $x\neq y$.\end{prop}
270+
271+
\begin{ex}
272+
$\le$ is the weak linear order corresponding to the strict linear
273+
order $<$. $\subseteq$ is the weak partial order corresponding to
274+
the strict partial order $\subsetneq$.
275+
\end{ex}
276+
277+
\begin{prob}
278+
Show that if $R$ is a weak partial order on $X$, then $R^{-} = R\setminus I_{X}$
279+
is a strict partial order and $xRy$ iff $xR^{-}y$ for all $x\neq y$.\end{prob}
280+
281+
\subsection{Operations on Relations}
282+
283+
It is often useful to modify or combine relations. We've already used the union of relations above (which is just the union of two relations considered as sets of pairs). Here are some other ways:
284+
285+
\begin{defn} Let $R$, $S$ be relations and $X$ a set.
286+
\begin{enumerate}
287+
\item The \emph{inverse}~$R^{-1}$ of $R$ is $R^-1 = \{ (b, a) : (a, b) \in R\}$.
288+
\item The \emph{relative product}~$R \mid S$ of $R$ and $S$ is
289+
\[
290+
(R \mid S) = \{(a, c) : \text{for some }b, Rab \text{ and } Rbc\}
291+
\]
292+
\item The \emph{restriction}~$R \restrict X$ of $R$ to $X$
293+
\item The \emph{application}~$R[X]$ of $R$ to $X$ is
294+
\[
295+
R[X] = \{b : \text{for some }a, Rab\}
296+
\]
297+
\end{enumerate}
298+
\end{defn}
299+
300+
\begin{defn}
301+
The \emph{transitive closure}~$R^+$ of a relation $R$ is $R^+ = \bigcup_{i=1}^\infty R^i$ where $R^1 = R$ and $R^{i+1} = R^i \mid R$.
302+
303+
The reflexive transitive closure~$R^*$ of $R$ is $R* = R^+ \cup I_{\dom{R}}$.
304+
\end{defn}
305+
306+
\begin{prob}
307+
Show that the transitive closure of $R$ is in fact transitive.
308+
\end{prob}
309+
310+
\end{document}

modal-logic/axiom-systems.tex

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
\documentclass[modal-logic]{subfiles}
2+
3+
\begin{document}
4+
5+
\section{Axiom Systems for Normal Modal Logics}
6+
7+
One way of specifying normal modal logics as the set of formulas provable in certain proof systems. The simplest and historically oldest proof systems are so-called Hilbert-type axiomatic proof systems. Hilbert-type proof systems for many normal modal logics are relatively easy to construct, they are simple as objects of metatheoretical study (e.g., to prove soundness and completeness), but they are much harder to use to prove formulas in than, say, natural deduction systems.
8+
9+
In Hilbert-type proof systems, a derivation of a formula is a sequence of formulas leading from certain axioms, via a handful of inference rules, to the formula in question. For normal modal logics, there are only two inference rules that need to be assumed: modus ponens and necessitation. A axioms we take all (substitution instances) of tautologies, and, depending on the modal logic we deal with, a number of modal axioms. In order to generate a normal modal logic, all substitution instances of K and Dual count as axioms. This alone generates the minimal normal modal logic~$\Log K$. Additional axioms generate other normal modal logics.
10+
11+
\begin{defn}
12+
The rule of \emph{modus ponens} is the inference schema
13+
\[
14+
\infer{!B}{!A & !A \lif !B}
15+
\]
16+
We say a formula $!B$ follows from formulas $!A$, $!C$ by modus ponens iff $!C \ident !A \lif !B$.
17+
\end{defn}
18+
19+
\begin{defn}
20+
The rule of \emph{necessitation} is the inference schema
21+
\[
22+
\infer{\Box !A}{!A}
23+
\]
24+
We say the formula $!B$ follows from the formulas $!A$ by necessitation iff $!B \ident \Box !A$.
25+
\end{defn}
26+
27+
\begin{defn}
28+
A \emph{derivation} from a set of axioms~$\Sigma$ is a sequence of formulas $!B_1$, $!B_2$, \dots, $!B_n$, where each $!B_i$ is either
29+
\begin{enumerate}
30+
\item a substitution instance of a tautology, or
31+
\item a substitution instance of a formula in~$\Sigma$, or
32+
\item follows from two formulas $!B_j$, $!B_k$ with $j, k < i$ by modus ponens, or
33+
\item follows from a formula $!B_j$ with $j < i$ by necessitation.
34+
\end{enumerate}
35+
If there is such a derivation with $!B_n \ident !A$, we say that $!A$ is \emph{$\Sigma$-derivable}, in symbols $\Deriv{\Sigma} !A$.
36+
\end{defn}
37+
38+
\end{document}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
\documentclass[modal-logic]{subfiles}
2+
3+
\begin{document}
4+
5+
\section{The Language of Basic Modal Logic}
6+
7+
The basic language of modal logic contains propositional variables
8+
$p$, $q$, \dots, $\bot$ (the falsity symbol), the familiar logical connective $\lnot$ (``not''),
9+
$\land$ (``and''), $\lor$ (``or''), $\lif$, (``if\dots then''), as
10+
well as the two basic modalities $\Box$ and $\Diamond$.
11+
12+
\begin{defn}
13+
\emph{Formulas} of the basic modal language are inductively defined as follows:
14+
\begin{enumerate}
15+
\item Every propositional variable $p \in \Var$ is an (atomic) formula.
16+
\item $\bot$ is an (atomic) formula.
17+
\item If $!A$ is a formula, so is $\lnot !A$.
18+
\item If $!A$ and $!B$ are formulas, so are $(!A \land !B)$, $(!A \lor !B)$, and $(!A \lif !B)$.
19+
\item If $!A$ is a formula, so are $\Box !A$ and $\Diamond !A$.
20+
\end{enumerate}
21+
\end{defn}
22+
23+
% modal depth
24+
25+
\end{document}

0 commit comments

Comments
 (0)