Source and provenance

All seven authority files and all 709 lines are shown exactly and copied byte-for-byte. Four reader corrections and four listening decisions are disclosures only; the accepted projected text and authority source are unchanged. Open the exact accepted projected chapter transcript (SHA-256 6519bb100935d6da0aac42faecbe0f5f6b18c642fe4c1befc5e7c1573cd085c7). AI production model: OpenAI Codex gpt-5.6-sol, Ultra. Source authorship remains with the credited Open Logic Project contributors.

content/first-order-logic/models-theories/models-theories.tex

24 lines; SHA-256 a3a51cfc65725adf5e09f41af5e24114847757effad8d2c49827bb427e16da6f. Open the byte-exact preserved source file.

  1. % Part: first-order-logic
  2. % Chapter: models-theories
  3. \documentclass[../../../include/open-logic-chapter]{subfiles}
  4. \begin{document}
  5. \olchapter{fol}{mat}{Theories and Their Models}
  6. \olimport{introduction}
  7. \olimport{expressing-props-of-structures}
  8. \olimport{theories}
  9. \olimport{expressing-relations}
  10. \olimport{set-theory}
  11. \olimport{size-of-structures}
  12. \OLEndChapterHook
  13. \end{document}

content/first-order-logic/models-theories/introduction.tex

101 lines; SHA-256 56518e9cb660f5393a035d369656023c1e2301db8eb220c642131a14a5cdc8d8. Open the byte-exact preserved source file.

  1. % Part: first-order-logic
  2. % Chapter: models-theories
  3. % Section: introduction
  4. \documentclass[../../../include/open-logic-section]{subfiles}
  5. \begin{document}
  6. \olfileid{fol}{mat}{int}
  7. \olsection{Introduction}
  8. \begin{explain}
  9. The development of the axiomatic method is a significant achievement
  10. in the history of science, and is of special importance in the history
  11. of mathematics. An axiomatic development of a field involves the
  12. clarification of many questions: What is the field about? What are the
  13. most fundamental concepts? How are they related? Can all the
  14. concepts of the field be defined in terms of these fundamental
  15. concepts? What laws do, and must, these concepts obey?
  16. The axiomatic method and logic were made for each other. Formal logic
  17. provides the tools for formulating axiomatic theories, for proving
  18. theorems from the axioms of the theory in a precisely specified way,
  19. for studying the properties of all systems satisfying the axioms in a
  20. systematic way.
  21. \end{explain}
  22. \begin{defn}
  23. A set of !!{sentence}s~$\Gamma$ is \emph{closed} iff, whenever
  24. $\Gamma \Entails !A$ then $!A \in \Gamma$. The \emph{closure} of a set
  25. of !!{sentence}s~$\Gamma$ is $\Setabs{!A}{\Gamma \Entails !A}$.
  26. We say that~$\Gamma$ is \emph{axiomatized by} a set of
  27. sentences~$\Delta$ if $\Gamma$ is the closure of~$\Delta$.
  28. \end{defn}
  29. \begin{explain}
  30. We can think of an axiomatic theory as the set of sentences that is
  31. axiomatized by its set of axioms~$\Delta$. In other words, when we
  32. have a first-order language which contains non-logical symbols for the
  33. primitives of the axiomatically developed science we wish to study,
  34. together with a set of !!{sentence}s that express the fundamental laws
  35. of the science, we can think of the theory as represented by all the
  36. !!{sentence}s in this language that are entailed by the axioms. This
  37. ranges from simple examples with only a single primitive and
  38. simple axioms, such as the theory of partial orders, to complex
  39. theories such as Newtonian mechanics.
  40. The important logical facts that make this formal approach to the
  41. axiomatic method so important are the following. Suppose $\Gamma$ is
  42. an axiom system for a theory, i.e., a set of sentences.
  43. \begin{enumerate}
  44. \item We can state precisely when an axiom system captures an intended
  45. class of !!{structure}s. That is, if we are interested in a certain
  46. class of !!{structure}s, we will successfully capture that class by
  47. an axiom system~$\Gamma$ iff the !!{structure}s are exactly
  48. those~$\Struct M$ such that $\Sat{M}{\Gamma}$.
  49. \item We may fail in this respect because there are $\Struct M$ such
  50. that $\Sat{M}{\Gamma}$, but $\Struct M$ is not one of the
  51. !!{structure}s we intend. This may lead us to add axioms which are
  52. not true in~$\Struct M$.
  53. \item If we are successful at least in the respect that $\Gamma$ is
  54. true in all the intended !!{structure}s, then a sentence~$!A$ is true in
  55. all intended !!{structure}s whenever $\Gamma \Entails !A$. Thus we can
  56. use logical tools (such as !!{derivation} methods) to show that sentences are
  57. true in all intended !!{structure}s simply by showing that they are
  58. entailed by the axioms.
  59. \item Sometimes we don't have intended !!{structure}s in mind, but instead
  60. start from the axioms themselves: we begin with some primitives that
  61. we want to satisfy certain laws which we codify in an axiom system.
  62. One thing that we would like to verify right away is that the axioms
  63. do not contradict each other: if they do, there can be no concepts
  64. that obey these laws, and we have tried to set up an incoherent
  65. theory. We can verify that this doesn't happen by finding a model
  66. of~$\Gamma$. And if there are models of our theory, we can use
  67. logical methods to investigate them, and we can also use logical
  68. methods to construct models.
  69. \item The independence of the axioms is likewise an important
  70. question. It may happen that one of the axioms is actually a
  71. consequence of the others, and so is redundant. We can prove that
  72. an axiom $!A$ in $\Gamma$ is redundant by proving $\Gamma \setminus
  73. \{!A\} \Entails !A$. We can also prove that an axiom is not
  74. redundant by showing that $(\Gamma \setminus \{!A\}) \cup \{\lnot
  75. !A\}$ is satisfiable. For instance, this is how it was shown that the
  76. parallel postulate is independent of the other axioms of geometry.
  77. \item Another important question is that of definability of concepts
  78. in a theory: The choice of the language determines what the models
  79. of a theory consist of. But not every aspect of a theory must be
  80. represented separately in its models. For instance, every ordering
  81. $\le$ determines a corresponding strict ordering~$<$---given one, we
  82. can define the other. So it is not necessary that a model of a
  83. theory involving such an order must \emph{also} contain the
  84. corresponding strict ordering. When is it the case, in general,
  85. that one relation can be defined in terms of others? When is it
  86. impossible to define a relation in terms of others (and hence must
  87. add it to the primitives of the language)?
  88. \end{enumerate}
  89. \end{explain}
  90. \end{document}

content/first-order-logic/models-theories/expressing-props-of-structures.tex

65 lines; SHA-256 939bbd9f240291eefaf1926db84c710e635642e1c0b083d6bb8fd7c62b302db0. Open the byte-exact preserved source file.

  1. % Part: first-order-logic
  2. % Chapter: models-theories
  3. % Section: expressing-props-of-structures
  4. \documentclass[../../../include/open-logic-section]{subfiles}
  5. \begin{document}
  6. \olfileid{fol}{mat}{exs}
  7. \olsection{Expressing Properties of \printtoken{P}{structure}}
  8. \begin{explain}
  9. It is often useful and important to express conditions on
  10. functions and relations, or more generally, that the functions and
  11. relations in a structure satisfy these conditions. For instance, we
  12. would like to have ways of distinguishing those !!{structure}s for a
  13. language which ``capture'' what we want the !!{predicate}s to ``mean''
  14. from those that do not. Of course we're completely free to specify
  15. which !!{structure}s we ``intend,'' e.g., we can specify that the
  16. interpretation of the !!{predicate}~$\le$ must be an ordering, or that
  17. we are only interested in interpretations of~$\Lang L$ in which the
  18. domain consists of sets and $\Obj \in$ is interpreted by the ``is
  19. !!a{element} of'' relation. But can we do this with !!{sentence}s of
  20. the language? In other words, which conditions on
  21. !!a{structure}~$\Struct M$ can we express by !!a{sentence} (or perhaps
  22. a set of !!{sentence}s) in the language of~$\Struct M$? There are
  23. some conditions that we will not be able to express. For instance,
  24. there is no sentence of~$\Lang L_A$ which is only true in a
  25. !!{structure}~$\Struct M$ if $\Domain M = \Nat$. We cannot express
  26. ``the domain contains only natural numbers.'' But there are
  27. ``structural properties'' of !!{structure}s that we perhaps can
  28. express. Which properties of !!{structure}s can we express by
  29. !!{sentence}s? Or, to put it another way, which collections of
  30. !!{structure}s can we describe as those making !!a{sentence} (or set
  31. of !!{sentence}s) true?
  32. \end{explain}
  33. \begin{defn}[Model of a set]
  34. Let $\Gamma$ be a set of !!{sentence}s in a language~$\Lang L$. We
  35. say that !!a{structure}~$\Struct M$ \emph{is a model of}~$\Gamma$ if
  36. $\Sat{M}{!A}$ for all $!A \in \Gamma$.
  37. \end{defn}
  38. \begin{ex}
  39. The sentence $\lforall[x][x \le x]$ is true in~$\Struct M$ iff
  40. $\Assign{\le}{M}$ is a reflexive relation. The sentence
  41. $\lforall[x][\lforall[y][((x \le y \land y \le x) \lif x = y)]]$ is
  42. true in~$\Struct M$ iff $\Assign{\le}{M}$ is anti-symmetric. The
  43. sentence $\lforall[x][\lforall[y][\lforall[z][((x \le y \land y \le z)
  44. \lif x \le z)]]]$ is true in~$\Struct M$ iff $\Assign{\le}{M}$
  45. is transitive. Thus, the models of
  46. \begin{align*}
  47. \{\quad &\lforall[x][x \le x], \\
  48. & \lforall[x][\lforall[y][((x \le y \land y \le
  49. x) \lif x = y)]], \\
  50. &\lforall[x][\lforall[y][\lforall[z][((x \le y
  51. \land y \le z) \lif x \le z)]]] \quad \}
  52. \end{align*}
  53. are exactly those structures in which~$\Assign{\le}{M}$ is reflexive,
  54. anti-symmetric, and transitive, i.e., a partial order. Hence, we can take
  55. them as axioms for the \emph{first-order theory of partial orders}.
  56. \end{ex}
  57. \end{document}

content/first-order-logic/models-theories/theories.tex

143 lines; SHA-256 0d47cc25cb7555009033f6dd8131beddfe7a36d514989154d241d98c3ae92536. Open the byte-exact preserved source file.

  1. % Part: first-order-logic
  2. % Chapter: models-theories
  3. % Section: theories
  4. \documentclass[../../../include/open-logic-section]{subfiles}
  5. \begin{document}
  6. \olfileid{fol}{mat}{the}
  7. \olsection{Examples of First-Order Theories}
  8. \begin{ex}
  9. The theory of strict linear orders in the language~$\Lang L_<$ is
  10. axiomatized by the set
  11. \begin{align*}
  12. \{\quad & \lforall[x][\lnot x < x], \\
  13. & \lforall[x][\lforall[y][((x < y \lor y <
  14. x) \lor x = y)]], \\
  15. & \lforall[x][\lforall[y][\lforall[z][((x < y
  16. \land y < z) \lif x < z)]]] \quad \}
  17. \end{align*}
  18. It completely captures the intended !!{structure}s: every strict
  19. linear order is a model of this axiom system, and vice versa, if $R$
  20. is a linear order on a set $X$, then the structure $\Struct M$ with
  21. $\Domain M = X$ and $\Assign{<}{M} = R$ is a model of this theory.
  22. \end{ex}
  23. \begin{ex}
  24. The theory of groups in the language $\Obj 1$ (!!{constant}), $\cdot$
  25. (two-place !!{function}) is axiomatized by
  26. \begin{align*}
  27. & \lforall[x][\eq[(x \cdot \Obj 1)][x]]\\
  28. & \lforall[x][\lforall[y][\lforall[z][\eq[(x \cdot (y \cdot z))][((x
  29. \cdot y) \cdot z)]]]]\\
  30. & \lforall[x][\lexists[y][\eq[(x \cdot y)][\Obj 1]]]
  31. \end{align*}
  32. \end{ex}
  33. \begin{ex}
  34. The theory of Peano arithmetic is axiomatized by the following
  35. sentences in the language of arithmetic~$\Lang L_A$.
  36. \begin{align*}
  37. & \lforall[x][\lforall[y][(\eq[x'][y'] \lif \eq[x][y])]]\\
  38. & \lforall[x][\eq/[\Obj 0][x']]\\
  39. & \lforall[x][\eq[(x + \Obj 0)][x]]\\
  40. & \lforall[x][\lforall[y][\eq[(x + y')][(x + y)']]]\\
  41. & \lforall[x][\eq[(x \times \Obj 0)][\Obj 0]]\\
  42. & \lforall[x][\lforall[y][\eq[(x \times y')][((x \times y) + x)]]]\\
  43. & \lforall[x][\lforall[y][(x < y \liff \lexists[z][\eq[(z' + x)][y])]]]\\
  44. \intertext{plus all sentences of the form}
  45. & (!A(\Obj 0) \land \lforall[x][(!A(x) \lif !A(x'))]) \lif \lforall[x][!A(x)]
  46. \end{align*}
  47. Since there are infinitely many sentences of the latter form, this
  48. axiom system is infinite. The latter form is called the
  49. \emph{induction schema}. (Actually, the induction schema is a bit more
  50. complicated than we let on here.)
  51. The last axiom is an \emph{explicit definition} of~$<$.
  52. \end{ex}
  53. \begin{ex}
  54. The theory of pure sets plays an important role in the foundations
  55. (and in the philosophy) of mathematics. A set is pure if all its
  56. !!{element}s are also pure sets. The empty set counts therefore as
  57. pure, but a set that has something as !!a{element} that is not a set
  58. would not be pure. So the pure sets are those that are formed just
  59. from the empty set and no ``urelements,'' i.e., objects that are not
  60. themselves sets.
  61. The following might be considered as an axiom system for a theory of
  62. pure sets:
  63. \begin{align*}
  64. & \lexists[x][\lnot \lexists[y][y \in x]]\\
  65. & \lforall[x][\lforall[y][(\lforall[z](z \in x \liff z \in y) \lif
  66. \eq[x][y])]]\\
  67. & \lforall[x][\lforall[y][\lexists[z][\lforall[u][(u \in z \liff
  68. (\eq[u][x] \lor \eq[u][y]))]]]]\\
  69. & \lforall[x][\lexists[y][\lforall[z][(z \in y \liff \lexists[u][(z \in
  70. u \land u \in x)])]]]\\
  71. \intertext{plus all sentences of the form} &
  72. \lexists[x][\lforall[y][(y \in x \liff !A(y))]]
  73. \end{align*}
  74. The first axiom says that there is a set with no !!{element}s (i.e.,
  75. $\emptyset$ exists); the second says that sets are extensional; the
  76. third that for any sets $X$ and $Y$, the set $\{X, Y\}$ exists; the
  77. fourth that for any set $X$, the set $\cup X$ exists, where $\cup X$ is the
  78. union of all the elements of $X$.
  79. The !!{sentence}s mentioned last are collectively called the
  80. \emph{naive comprehension scheme}. It essentially says that for every
  81. $!A(x)$, the set $\Setabs{x}{!A(x)}$ exists---so at first glance a
  82. true, useful, and perhaps even necessary axiom. It is called ``naive''
  83. because, as it turns out, it makes this theory unsatisfiable: if you
  84. take $!A(y)$ to be $\lnot y \in y$, you get the !!{sentence}
  85. \[
  86. \lexists[x][\lforall[y][(y \in x \liff \lnot y \in y)]]
  87. \]
  88. and this !!{sentence} is not satisfied in any !!{structure}.
  89. \end{ex}
  90. \begin{ex}
  91. In the area of \emph{mereology}, the relation of \emph{parthood} is a
  92. fundamental relation. Just like theories of sets, there are theories
  93. of parthood that axiomatize various conceptions (sometimes
  94. conflicting) of this relation.
  95. The language of mereology contains a single two-place predicate
  96. symbol~$\Obj P$, and $\Atom{\Obj P}{x, y}$ ``means'' that $x$ is a
  97. part of~$y$. When we have this interpretation in mind, !!a{structure}
  98. for this language is called a \emph{parthood structure}. Of course,
  99. not every structure for a single two-place predicate will really
  100. deserve this name. To have a chance of capturing ``parthood,''
  101. $\Assign{\Obj P}{M}$ must satisfy some conditions, which we can lay
  102. down as axioms for a theory of parthood. For instance, parthood is a
  103. partial order on objects: every object is a part (albeit an
  104. \emph{improper} part) of itself; no two different objects can be parts
  105. of each other; a part of a part of an object is itself part of that
  106. object. Note that in this sense ``is a part of'' resembles ``is a
  107. subset of,'' but does not resemble ``is an element of'' which is
  108. neither reflexive nor transitive.
  109. \begin{align*}
  110. & \lforall[x][\Atom{\Obj P}{x,x}] \\
  111. & \lforall[x][\lforall[y][((\Part{x}{y} \land \Part{y}{x})
  112. \lif \eq[x][y])]] \\
  113. & \lforall[x][\lforall[y][\lforall[z][((\Part{x}{y} \land
  114. \Part{y}{z}) \lif \Part{x}{z})]]]\\
  115. \intertext{Moreover, any two objects have a mereological sum (an object that has
  116. these two objects as parts, and is minimal in this respect).} &
  117. \lforall[x][\lforall[y][\lexists[z][\lforall[u][(\Part{z}{u} \liff
  118. (\Part{x}{u} \land \Part{y}{u}))]]]]
  119. \end{align*}
  120. These are only some of the basic principles of parthood considered by
  121. metaphysicians. Further principles, however, quickly become hard to
  122. formulate or write down without first introducing some defined
  123. relations. For instance, most metaphysicians interested in mereology
  124. also view the following as a valid principle: whenever an
  125. object~$x$ has a proper part~$y$, it also has a part~$z$ that has no
  126. parts in common with~$y$, and so that the fusion of $y$ and $z$ is
  127. $x$.
  128. \end{ex}
  129. \end{document}

content/first-order-logic/models-theories/expressing-relations.tex

122 lines; SHA-256 4463b194f95a1e7649f0ee833e2851273e78e760d9db32f67f925c8d551daa7d. Open the byte-exact preserved source file.

  1. % Part: first-order-logic
  2. % Chapter: models-theories
  3. % Section: expressing-relations
  4. \documentclass[../../../include/open-logic-section]{subfiles}
  5. \begin{document}
  6. \olfileid{fol}{mat}{exr}
  7. \olsection{Expressing Relations in \article{structure}
  8. \printtoken{S}{structure}}
  9. \begin{explain}
  10. One main use !!{formula}s can be put to is to express properties and
  11. relations in !!a{structure}~$\Struct M$ in terms of the primitives of
  12. the language~$\Lang L$ of~$\Struct M$. By this we mean the following:
  13. the !!{domain} of $\Struct M$ is a set of objects. The !!{constant}s,
  14. !!{function}s, and !!{predicate}s are interpreted in~$\Struct M$ by
  15. some objects in~$\Domain M$, functions on~$\Domain M$, and relations
  16. on~$\Domain M$. For instance, if $\Obj A^2_0$ is in $\Lang L$, then
  17. $\Struct M$ assigns to it a relation~$R = \Assign{{\Obj
  18. A^2_0}}{M}$. Then the formula $\Atom{\Obj A^2_0}{\Obj v_1, \Obj v_2}$
  19. \emph{expresses} that very relation, in the following sense: if a
  20. variable assignment~$s$ maps $\Obj v_1$ to $a \in \Domain{M}$ and
  21. $\Obj v_2$ to $b \in \Domain M$, then
  22. \[
  23. Rab \text{\quad iff\quad} \Sat{M}{\Atom{\Obj A^2_0}{\Obj v_1, \Obj v_2}}[s].
  24. \]
  25. Note that we have to involve variable assignments here: we can't just
  26. say ``$Rab$ iff $\Sat{M}{\Atom{\Obj A^2_0}{a, b}}$'' because $a$ and
  27. $b$ are not symbols of our language: they are !!{element}s
  28. of~$\Domain{M}$.
  29. Since we don't just have atomic !!{formula}s, but can combine them
  30. using the logical connectives and the quantifiers, more complex
  31. !!{formula}s can define other relations which aren't directly built
  32. into~$\Struct M$. We're interested in how to do that, and
  33. specifically, which relations we can define in !!a{structure}.
  34. \end{explain}
  35. \begin{defn}
  36. Let $!A(\Obj v_1,\dots, \Obj v_n)$ be !!a{formula} of $\Lang L$ in
  37. which only $\Obj v_1$,\dots, $\Obj v_n$ occur free, and let $\Struct
  38. M$ be !!a{structure} for~$\Lang L$. $!A(\Obj v_1,\dots, \Obj v_n)$
  39. \emph{expresses the relation}~$R \subseteq \Domain M^n$ iff
  40. \[
  41. Ra_1\dots a_n \text{\quad iff\quad} \Sat{M}{\Atom{!A}{\Obj
  42. v_1,\dots, \Obj v_n}}[s]
  43. \]
  44. for any variable assignment~$s$ with $s(\Obj v_i) = a_i$ ($i = 1,
  45. \dots, n$).
  46. \end{defn}
  47. \begin{ex}
  48. In the standard model of arithmetic~$\Struct N$, the !!{formula} $\Obj
  49. v_1 < \Obj v_2 \lor \eq[\Obj v_1][\Obj v_2]$ expresses the $\le$
  50. relation on~$\Nat$. The !!{formula} $\eq[\Obj v_2][\Obj v_1']$
  51. expresses the successor relation, i.e., the relation $R \subseteq
  52. \Nat^2$ where $Rnm$ holds if $m$ is the successor of~$n$. The formula
  53. $\eq[\Obj v_1][\Obj v_2']$ expresses the predecessor relation. The
  54. !!{formula}s $\lexists[\Obj v_3][(\eq/[\Obj v_3][\Obj 0] \land
  55. \eq[\Obj v_2][(\Obj v_1 + \Obj v_3)])]$ and $\lexists[\Obj
  56. v_3][\eq[(\Obj v_1 + {\Obj v_3}')][v_2]]$ both express the $\Obj <$
  57. relation. This means that the predicate symbol~$<$ is actually
  58. superfluous in the language of arithmetic; it can be defined.
  59. \end{ex}
  60. \begin{explain}
  61. This idea is not just interesting in specific !!{structure}s, but
  62. generally whenever we use a language to describe an intended model or
  63. models, i.e., when we consider theories. These theories often only
  64. contain a few !!{predicate}s as basic symbols, but in the domain they
  65. are used to describe often many other relations play an important
  66. role. If these other relations can be systematically expressed by the
  67. relations that interpret the basic !!{predicate}s of the language, we
  68. say we can \emph{define} them in the language.
  69. \end{explain}
  70. \begin{prob}
  71. Find !!{formula}s in $\Lang L_A$ which define the following relations:
  72. \begin{enumerate}
  73. \item $n$ is between $i$ and $j$;
  74. \item $n$ evenly divides $m$ (i.e., $m$ is a multiple of $n$);
  75. \item $n$ is a prime number (i.e., no number other than $1$ and $n$ evenly
  76. divides~$n$).
  77. \end{enumerate}
  78. \end{prob}
  79. \begin{prob}
  80. Suppose the formula $!A(\Obj v_1, \Obj v_2)$ expresses the relation $R
  81. \subseteq \Domain M^2$ in !!a{structure}~$\Struct M$. Find formulas
  82. that express the following relations:
  83. \begin{enumerate}
  84. \item the inverse $R^{-1}$ of $R$;
  85. \item the relative product $R \mid R$;
  86. \end{enumerate}
  87. Can you find a way to express $R^+$, the transitive closure of~$R$?
  88. \end{prob}
  89. \begin{prob}
  90. Let $\Lang{L}$ be the language containing a 2-place predicate symbol
  91. $<$ only (no other !!{constant}s, !!{function}s or !!{predicate}s---
  92. except of course~$\eq$). Let $\Struct{N}$ be the structure such that
  93. $\Domain{N} = \Nat$, and $\Assign{<}{N} = \Setabs{\tuple{n,m}}{n <
  94. m}$. Prove the following:
  95. \begin{enumerate}
  96. \item $\{ 0 \}$ is definable in $\Struct{N}$;
  97. \item $\{ 1 \}$ is definable in $\Struct{N}$;
  98. \item $\{ 2 \}$ is definable in $\Struct{N}$;
  99. \item for each $n \in \Nat$, the set $\{ n \}$ is definable in
  100. $\Struct{N}$;
  101. \item every finite subset of $\Domain{N}$ is definable in
  102. $\Struct{N}$;
  103. \item every co-finite subset of $\Domain{N}$ is definable in
  104. $\Struct{N}$ (where $X \subseteq \Nat$ is co-finite iff
  105. $\Nat \setminus X$ is finite).
  106. \end{enumerate}
  107. \end{prob}
  108. \end{document}

content/first-order-logic/models-theories/set-theory.tex

182 lines; SHA-256 c252116bc14449400e362e11e002d865f58e59177215cab085ceaec7ae9d2aa3. Open the byte-exact preserved source file.

  1. % Part: first-order-logic
  2. % Chapter: models-theories
  3. % Section: set-theory
  4. \documentclass[../../../include/open-logic-section]{subfiles}
  5. \begin{document}
  6. \olfileid{fol}{mat}{set}
  7. \olsection{The Theory of Sets}
  8. Almost all of mathematics can be developed in the theory of sets.
  9. Developing mathematics in this theory involves a number of things.
  10. First, it requires a set of axioms for the relation~$\in$. A number
  11. of different axiom systems have been developed, sometimes with
  12. conflicting properties of~$\in$. The axiom system known as
  13. $\Log{ZFC}$, Zermelo--Fraenkel set theory with the axiom of choice
  14. stands out: it is by far the most widely used and studied, because it
  15. turns out that its axioms suffice to prove almost all the things
  16. mathematicians expect to be able to prove. But before that can be
  17. established, it first is necessary to make clear how we can even
  18. \emph{express} all the things mathematicians would like to express.
  19. For starters, the language contains no !!{constant}s or !!{function}s,
  20. so it seems at first glance unclear that we can talk about particular
  21. sets (such as $\emptyset$ or $\Nat$), can talk about operations on
  22. sets (such as $X \cup Y$ and $\Pow{X}$), let alone other
  23. constructions which involve things other than sets, such as relations
  24. and functions.
  25. To begin with, ``is an element of'' is not the only relation we are
  26. interested in: ``is a subset of'' seems almost as important. But we
  27. can \emph{define} ``is a subset of'' in terms of ``is an element of.''
  28. To do this, we have to find !!a{formula}~$!A(x, y)$ in
  29. the language of set theory which is satisfied by a pair of
  30. sets~$\tuple{X, Y}$ iff $X \subseteq Y$. But $X$ is a subset of $Y$
  31. just in case all !!{element}s of~$X$ are also !!{element}s of~$Y$. So
  32. we can define $\subseteq$ by the formula
  33. \[
  34. \lforall[z][(z \in x \lif z \in y)]
  35. \]
  36. Now, whenever we want to use the relation~$\subseteq$ in a formula, we
  37. could instead use that formula (with $x$ and $y$ suitably replaced,
  38. and the bound variable~$z$ renamed if necessary). For instance,
  39. extensionality of sets means that if any sets~$x$ and $y$ are
  40. contained in each other, then $x$ and $y$ must be the same set. This
  41. can be expressed by $\lforall[x][\lforall[y][((x \subseteq y \land y
  42. \subseteq x) \lif x = y)]]$, or, if we replace $\subseteq$ by the
  43. above definition, by
  44. \[
  45. \lforall[x][\lforall[y][((\lforall[z][(z \in x \lif z \in y)] \land
  46. \lforall[z][(z \in y \lif z \in x)]) \lif x = y)]].
  47. \]
  48. This is in fact one of the axioms of $\Log{ZFC}$, the ``axiom of
  49. extensionality.''
  50. There is no !!{constant} for $\emptyset$, but we can express ``$x$ is
  51. empty'' by $\lnot \lexists[y][y \in x]$. Then ``$\emptyset$ exists''
  52. becomes the !!{sentence}~$\lexists[x][\lnot \lexists[y][y \in
  53. x]]$. This is another axiom of~$\Log{ZFC}$. (Note that the axiom
  54. of extensionality implies that there is only one empty set.) Whenever
  55. we want to talk about $\emptyset$ in the language of set theory, we
  56. would write this as ``there is a set that's empty and \dots'' As an
  57. example, to express the fact that $\emptyset$ is a subset of every
  58. set, we could write
  59. \[
  60. \lexists[x][(\lnot\lexists[y][y \in x] \land \lforall[z][x \subseteq
  61. z])]
  62. \]
  63. where, of course, $x \subseteq z$ would in turn have to be replaced by
  64. its definition.
  65. To talk about operations on sets, such as $X \cup Y$ and $\Pow{X}$, we
  66. have to use a similar trick. There are no function symbols in the
  67. language of set theory, but we can express the functional relations $X
  68. \cup Y = Z$ and $\Pow{X} = Y$ by
  69. \begin{align*}
  70. & \lforall[u][((u \in x \lor u \in y) \liff u \in z)]\\
  71. & \lforall[u][(u \subseteq x \liff u \in y )]
  72. \end{align*}
  73. since the !!{element}s of $X \cup Y$ are exactly the sets that are
  74. either !!{element}s of~$X$ or !!{element}s of~$Y$, and the
  75. !!{element}s of $\Pow{X}$ are exactly the subsets of~$X$. However,
  76. this doesn't allow us to use $x \cup y$ or $\Pow{x}$ as if they were
  77. terms: we can only use the entire !!{formula}s that define the
  78. relations $X \cup Y = Z$ and $\Pow{X} = Y$. In fact, we do not know
  79. that these relations are ever satisfied, i.e., we do not know that
  80. unions and power sets always exist. For instance, the !!{sentence}
  81. $\lforall[x][\lexists[y][\Pow{x} = y]]$ is another axiom
  82. of~$\Log{ZFC}$ (the power set axiom).
  83. Now what about talk of ordered pairs or functions? Here we have to
  84. explain how we can think of ordered pairs and functions as special
  85. kinds of sets. One way to define the ordered pair $\tuple{x, y}$ is
  86. as the set $\{\{x\}, \{x, y\}\}$. But like before, we cannot
  87. introduce !!a{function} that names this set; we can only define the
  88. relation $\tuple{x, y} = z$, i.e., $\{\{x\}, \{x, y\}\} = z$:
  89. \[
  90. \lforall[u][(u \in z \liff (\lforall[v][(v \in u \liff v = x)] \lor
  91. \lforall[v][(v \in u \liff (v = x \lor v = y))]))]
  92. \]
  93. This says that the !!{element}s~$u$ of~$z$ are exactly those sets which
  94. either have $x$ as its only !!{element} or have $x$ and~$y$ as its
  95. only !!{element}s (in other words, those sets that are either identical
  96. to $\{x\}$ or identical to $\{x, y\}$). Once we have this, we can say
  97. further things, e.g., that $X \times Y = Z$:
  98. \[
  99. \lforall[z][(z \in Z \liff \lexists[x][\lexists[y][(x \in
  100. X \land y \in Y \land \tuple{x, y} = z)]])]
  101. \]
  102. A function $f \colon X \to Y$ can be thought of as the relation $f(x)
  103. = y$, i.e., as the set of pairs~$\Setabs{\tuple{x,y}}{f(x) = y}$. We
  104. can then say that a set~$f$ is a function from $X$ to $Y$ if (a) it is
  105. a relation $\subseteq X \times Y$, (b) it is total, i.e., for all $x
  106. \in X$ there is some $y \in Y$ such that $\tuple{x, y} \in f$ and (c)
  107. it is functional, i.e., whenever $\tuple{x, y}, \tuple{x, y'} \in f$,
  108. $y = y'$ (because values of functions must be unique). So ``$f$ is a
  109. function from $X$ to $Y$'' can be written as:
  110. \begin{align*}
  111. \lforall[u][(u \in f \lif {}] & \lexists[x][\lexists[y][(x \in X \land y \in
  112. Y \land \tuple{x, y} = u)]]) \land {}\\
  113. \lforall[x][(x \in X \lif {}] &
  114. (\lexists[y][(y \in Y \land \mathrm{maps}(f, x, y))] \land {}\\
  115. & (\lforall[y][\lforall[y'][((\mathrm{maps}(f, x, y) \land
  116. \mathrm{maps}(f, x, y')) \lif y = y')]]))
  117. \end{align*}
  118. where $\mathrm{maps}(f, x, y)$ abbreviates $\lexists[v][(v \in f \land
  119. \tuple{x, y} = v)]$ (this !!{formula} expresses ``$f(x) = y$'').
  120. It is now also not hard to express that $f\colon X \to Y$ is
  121. !!{injective}, for instance:
  122. \begin{multline*}
  123. f \colon X \to Y \land \lforall[x][\lforall[x'][((x \in X \land x' \in
  124. X \land {}]] \\
  125. \lexists[y][(\mathrm{maps}(f, x, y) \land \mathrm{maps}(f,
  126. x', y))]) \lif x = x')
  127. \end{multline*}
  128. A function~$f\colon X \to Y$ is !!{injective} iff, whenever $f$ maps $x, x'
  129. \in X$ to a single~$y$, $x = x'$. If we abbreviate this formula as
  130. $\mathrm{inj}(f, X, Y)$, we're already in a position to state in the
  131. language of set theory something as non-trivial as Cantor's theorem:
  132. there is no !!{injective} function from $\Pow{X}$ to $X$:
  133. \[
  134. \lforall[X][\lforall[Y][(\Pow{X} = Y \lif
  135. \lnot\lexists[f][\mathrm{inj}(f, Y, X)])]]
  136. \]
  137. One might think that set theory requires another axiom that guarantees
  138. the existence of a set for every defining property. If $!A(x)$ is a
  139. formula of set theory with the variable~$x$ free, we can consider the
  140. !!{sentence}
  141. \[
  142. \lexists[y][\lforall[x][(x \in y \liff !A(x))]].
  143. \]
  144. This !!{sentence} states that there is a set~$y$ whose !!{element}s
  145. are all and only those $x$ that satisfy~$!A(x)$. This schema is called
  146. the ``comprehension principle.'' It looks very useful; unfortunately
  147. it is inconsistent. Take $!A(x) \ident \lnot x \in x$, then the
  148. comprehension principle states
  149. \[
  150. \lexists[y][\lforall[x][(x \in y \liff x \notin x)]],
  151. \]
  152. i.e., it states the existence of a set of all sets that are not
  153. !!{element}s of themselves. No such set can exist---this is Russell's
  154. Paradox. $\Log{ZFC}$, in fact, contains a restricted---and
  155. consistent---version of this principle, the separation principle:
  156. \[
  157. \lforall[z][\lexists[y][\lforall[x][(x \in y \liff (x \in z \land
  158. !A(x))]]].
  159. \]
  160. \begin{prob}
  161. Show that the comprehension principle is inconsistent by giving
  162. !!a{derivation} that shows
  163. \[
  164. \lexists[y][\lforall[x][(x \in y \liff x \notin x)]] \Proves \lfalse.
  165. \]
  166. It may help to first show $(A \lif \lnot A) \land (\lnot A \lif A)
  167. \Proves \lfalse$.
  168. \end{prob}
  169. \end{document}

content/first-order-logic/models-theories/size-of-structures.tex

72 lines; SHA-256 b63fc24a59388785180fe06e738b2b2e0e61c05896050bbfb1959fd6ddcf0060. Open the byte-exact preserved source file.

  1. % Part: first-order-logic
  2. % Chapter: models-theories
  3. % Section: size-of-structures
  4. \documentclass[../../../include/open-logic-section]{subfiles}
  5. \begin{document}
  6. \olfileid{fol}{mat}{siz}
  7. \olsection{Expressing the Size of \printtoken{P}{structure}}
  8. \begin{explain}
  9. There are some properties of structures we can express even without
  10. using the non-logical symbols of a language. For instance, there are
  11. !!{sentence}s which are true in !!a{structure} iff the !!{domain} of
  12. the !!{structure} has at least, at most, or exactly a certain
  13. number~$n$ of !!{element}s.
  14. \end{explain}
  15. \begin{prop}
  16. The !!{sentence}
  17. \begin{multline*}
  18. !A_{\ge n} \ident \lexists[x_1][\lexists[x_2][\dots\lexists[x_n][{}]]]\\
  19. \begin{aligned}
  20. (\eq/[x_1][x_2] \land {}
  21. \eq/[x_1][x_3] \land \eq/[x_1][x_4] \land \dots \land \eq/[x_1][x_n] \land {}\\
  22. \eq/[x_2][x_3] \land \eq/[x_2][x_4] \land \dots \land {} \eq/[x_2][x_n] \land {} \\
  23. \vdots\\
  24. \eq/[x_{n-1}][x_n])
  25. \end{aligned}
  26. \end{multline*}
  27. is true in !!a{structure}~$\Struct M$ iff $\Domain M$ contains at
  28. least $n$ !!{element}s. Consequently, $\Sat{M}{\lnot !A_{\ge n+1}}$ iff
  29. $\Domain M$ contains at most~$n$ !!{element}s.
  30. \end{prop}
  31. \begin{prop}
  32. The !!{sentence}
  33. \begin{multline*}
  34. !A_{= n} \ident \lexists[x_1][\lexists[x_2][\dots\lexists[x_n][{}]]] \\
  35. \begin{aligned}
  36. (\eq/[x_1][x_2] \land {}
  37. \eq/[x_1][x_3] \land \eq/[x_1][x_4] \land \dots \land \eq/[x_1][x_n] \land {}\\
  38. \eq/[x_2][x_3] \land \eq/[x_2][x_4] \land \dots \land {} \eq/[x_2][x_n] \land {} \\
  39. \vdots\\
  40. \eq/[x_{n-1}][x_n] \land {} \\
  41. \lforall[y][(\eq[y][x_1] \lor \dots \lor \eq[y][x_n]]))
  42. \end{aligned}
  43. \end{multline*}
  44. is true in !!a{structure}~$\Struct M$ iff $\Domain M$ contains
  45. exactly $n$ !!{element}s.
  46. \end{prop}
  47. \begin{prop}
  48. A !!{structure} is infinite iff it is a model of
  49. \[
  50. \{!A_{\ge 1}, !A_{\ge 2}, !A_{\ge 3}, \dots \}.
  51. \]
  52. \end{prop}
  53. There is no single purely logical sentence which is true in~$\Struct
  54. M$ iff $\Domain M$ is infinite. However, one can give !!{sentence}s with
  55. non-logical !!{predicate}s which only have infinite models (although
  56. not every infinite !!{structure} is a model of them). The property of
  57. being a finite structure, and the property of being a
  58. !!{nonenumerable} structure cannot even be expressed with an infinite
  59. set of !!{sentence}s. These facts follow from the compactness and
  60. L\"owenheim--Skolem theorems.
  61. \end{document}