diff --git a/content/lambda-calculus/church-rosser/beta-eta-reduction.tex b/content/lambda-calculus/church-rosser/beta-eta-reduction.tex index b4015862..c8d01829 100644 --- a/content/lambda-calculus/church-rosser/beta-eta-reduction.tex +++ b/content/lambda-calculus/church-rosser/beta-eta-reduction.tex @@ -49,7 +49,7 @@ \end{proof} \begin{thm}\ollabel{thm:cr} - $\bered$ satisfies Church--Rosser property. + $\bered$ satisfies the Church--Rosser property. \end{thm} \begin{proof} diff --git a/content/lambda-calculus/church-rosser/beta-reduction.tex b/content/lambda-calculus/church-rosser/beta-reduction.tex index 00b305a4..3f7f12fd 100644 --- a/content/lambda-calculus/church-rosser/beta-reduction.tex +++ b/content/lambda-calculus/church-rosser/beta-reduction.tex @@ -58,7 +58,7 @@ $\bred \subseteq \xred$: Suppose $M \bred M'$, i.e., $M \ident M_1 \bredone \dots \bredone M_k \ident M'$. By \olref{lem:one-par}, $M - \ident M_1 \bredpar \dots \bredpar M_k \ident M'$. Since is $\xred$ + \ident M_1 \bredpar \dots \bredpar M_k \ident M'$. Since $\xred$ contains $\bredpar$ and is transitive, $M \xred M'$. $\xred \subseteq \bred$: Suppose $M \xred M'$, i.e., $M diff --git a/content/lambda-calculus/church-rosser/definitions-and-properties.tex b/content/lambda-calculus/church-rosser/definitions-and-properties.tex index 8e494072..3342ed7b 100644 --- a/content/lambda-calculus/church-rosser/definitions-and-properties.tex +++ b/content/lambda-calculus/church-rosser/definitions-and-properties.tex @@ -21,8 +21,8 @@ We can view the lambda calculus as a model of computation in which terms in normal form are ``values'' and a reducibility relation on -terms are the ``calculation rules.'' The Church--Rosser property states -is that when there is more than one way to proceed with a calculation, +terms supplies the ``calculation rules.'' The Church--Rosser property states +that when there is more than one way to proceed with a calculation, there is still only a single value of the expression. To take an example from elementary algebra, there's more than one way @@ -61,7 +61,7 @@ M & \xredone Q_1 \xredone \dots \xredone Q_n. \end{align*} We will prove the theorem by constructing a grid $N$ of terms of - height is $m + 1$ and width $n + 1$. We use $N_{i,j}$ to denote the + height $m + 1$ and width $n + 1$. We use $N_{i,j}$ to denote the term in the $i$-th row and $j$-th column. We construct $N$ in such a way that $N_{i,j} \xredone N_{i+1,j}$ and diff --git a/content/lambda-calculus/church-rosser/parallel-beta-reduction.tex b/content/lambda-calculus/church-rosser/parallel-beta-reduction.tex index 86c8f55d..e3b10b13 100644 --- a/content/lambda-calculus/church-rosser/parallel-beta-reduction.tex +++ b/content/lambda-calculus/church-rosser/parallel-beta-reduction.tex @@ -11,7 +11,7 @@ \olsection{Parallel $\beta$-reduction} We introduce the notion of \emph{parallel $\beta$-reduction}, and -prove the it has the Church--Rosser property. +prove that it has the Church--Rosser property. \begin{defn}[parallel $\beta$-reduction, $\bredpar$] \ollabel{defn:bredpar} Parallel reduction ($\bredpar$) of terms is inductively defined as follows: diff --git a/content/lambda-calculus/introduction/basic-pr-lambda.tex b/content/lambda-calculus/introduction/basic-pr-lambda.tex index c07ae88f..1c0f1298 100644 --- a/content/lambda-calculus/introduction/basic-pr-lambda.tex +++ b/content/lambda-calculus/introduction/basic-pr-lambda.tex @@ -17,7 +17,7 @@ $\Zero$ is just $\lambd[x][\lambd[y][y]]$. -The successor function~$\Succ$, is +The successor function~$\Succ$ is defined by $\fn{Succ}(u) = \lambd[x][\lambd[y][x(uxy)]]$. You should think about why this works; for each numeral $\num{n}$, thought of as an iterator, and each function~$f$, $\fn{Succ}(\num{n},f)$ is a function that, diff --git a/content/lambda-calculus/introduction/currying.tex b/content/lambda-calculus/introduction/currying.tex index 2c1422c0..9020db50 100644 --- a/content/lambda-calculus/introduction/currying.tex +++ b/content/lambda-calculus/introduction/currying.tex @@ -10,7 +10,7 @@ \olsection{Currying} A $\lambd$-abstract $\lambd[x][M]$ represents a function of one -argument, which is quite a limitation when we want to define function +argument, which is quite a limitation when we want to define a function accepting multiple arguments. One way to do this would be by extending the $\lambd$-calculus to allow the formation of pairs, triples, etc., in which case, say, a three-place function @@ -53,7 +53,7 @@ $\lambd[x_1][\lambd[x_2][\ldots\lambd[x_n][N]]]$. If we apply $n$ arguments to it we get: \begin{multline*} - (\lambd[x_1][\lambd[x_2][\ldots\lambd[x_n][N]]]) M_1 \dots M_n \bredone\\ + (\lambd[x_1][\lambd[x_2][\ldots\lambd[x_n][N]]]) M_1 \dots M_n\\ \begin{aligned} \bredone {} & (\Subst{(\lambd[x_2][\ldots\lambd[x_n][N]])}{M_1}{x_1}) M_2 \dots M_n\\ diff --git a/content/lambda-calculus/introduction/lambda-computable.tex b/content/lambda-calculus/introduction/lambda-computable.tex index 30021023..6f654adf 100644 --- a/content/lambda-calculus/introduction/lambda-computable.tex +++ b/content/lambda-calculus/introduction/lambda-computable.tex @@ -18,8 +18,7 @@ \begin{proof} Suppose a function~$f$ is !!{lambda defined} by a lambda term~$X$. Let us describe an informal procedure to compute~$f$. On input $m_0$, -\dots,~$m_{n-1}$, write down the term $X \num m_0 \ldots \num -m_{n-1}$. Build a tree, first writing down all the one-step reductions +\dots,~$m_{n-1}$, write down the term $X \num{m_0} \ldots \num{m_{n-1}}$. Build a tree, first writing down all the one-step reductions of the original term; below that, write all the one-step reductions of those (i.e., the two-step reductions of the original term); and keep going. If you ever reach a numeral, return that as the answer; @@ -28,7 +27,7 @@ An appeal to Church's thesis tells us that this function is computable. A better way to prove the theorem would be to give a recursive description of this search procedure. For example, one -could define a sequence primitive recursive functions and relations, +could define a sequence of primitive recursive functions and relations, ``$\fn{IsASubterm}$,'' ``$\fn{Substitute}$,'' ``$\fn{ReducesToInOneStep}$,'' ``$\fn{ReductionSequence}$,'' ``$\fn{Numeral}$,'' etc. The partial recursive procedure for computing diff --git a/content/lambda-calculus/introduction/lambda-definability.tex b/content/lambda-calculus/introduction/lambda-definability.tex index da245a8d..43e90bb4 100644 --- a/content/lambda-calculus/introduction/lambda-definability.tex +++ b/content/lambda-calculus/introduction/lambda-definability.tex @@ -34,7 +34,7 @@ F\, \num{n_0}\, \num{n_1} \dots \num{n_{k-1}} \red \num{f(n_0, n_1, \dots, n_{k-1})} \] -if $f(n_0, \dots, n_{k-1})$ is defined, and $F, \num{n_0}\, \num{n_1} +if $f(n_0, \dots, n_{k-1})$ is defined, and $F\, \num{n_0}\, \num{n_1} \dots \num{n_{k-1}}$ has no normal form otherwise. \end{defn} diff --git a/content/lambda-calculus/introduction/reduction.tex b/content/lambda-calculus/introduction/reduction.tex index b4dfd6d0..121ac6eb 100644 --- a/content/lambda-calculus/introduction/reduction.tex +++ b/content/lambda-calculus/introduction/reduction.tex @@ -58,11 +58,11 @@ \item Also, some terms can be reduced in more than one way; for example, \[ -(\lambd[x][(\lambd[y][yx]) z)] v \redone (\lambd[y][yv]) z +(\lambd[x][(\lambd[y][yx]) z]) v \redone (\lambd[y][yv]) z \] by contracting the outermost application; and \[ -(\lambd[x][(\lambd[y][yx]) z)] v \redone (\lambd[x][zx]) v +(\lambd[x][(\lambd[y][yx]) z]) v \redone (\lambd[x][zx]) v \] by contracting the innermost one. Note, in this case, however, that both terms further reduce to the same term, $zv$. diff --git a/content/lambda-calculus/introduction/syntax.tex b/content/lambda-calculus/introduction/syntax.tex index 0fbb2bcb..f8d23190 100644 --- a/content/lambda-calculus/introduction/syntax.tex +++ b/content/lambda-calculus/introduction/syntax.tex @@ -36,7 +36,7 @@ to right. For example, if $M$, $N$, $P$, and $Q$ are terms, then $MNPQ$ abbreviates $(((MN)P)Q)$. \item Again, when parentheses are left out, lambda abstraction is to - be given the widest scope possible. From example, $\lambd[x][MNP]$ is + be given the widest scope possible. For example, $\lambd[x][MNP]$ is read $(\lambd[x][((MN)P)])$. \item A lambda can be used to abstract multiple variables. For example, $\lambd[xyz][M]$ is short for diff --git a/content/lambda-calculus/lambda-definability/arithmetical-functions.tex b/content/lambda-calculus/lambda-definability/arithmetical-functions.tex index c8e01618..eb750c49 100644 --- a/content/lambda-calculus/lambda-definability/arithmetical-functions.tex +++ b/content/lambda-calculus/lambda-definability/arithmetical-functions.tex @@ -1,5 +1,5 @@ % Part: lambda-calculus -% Chapter: lambda-definablity +% Chapter: lambda-definability % Section: arithmetical-functions \documentclass[../../../include/open-logic-section]{subfiles} @@ -65,7 +65,7 @@ \intertext{or, alternatively,} \fn{Add}' & \ident \lambd[{a}{b}][{a}\, \fn{Succ} \, {b}]. \intertext{The first addition works as follows: $\fn{Add}$ first - accept two numbers ${a}$ and ${b}$. The result is a function that + accepts two numbers ${a}$ and ${b}$. The result is a function that accepts $f$ and $x$ and returns $af(bfx)$. If $a$ and $b$ are Church numerals $\num{n}$ and $\num{m}$, this reduces to $f^{n+m}(x)$, which is identical to $f^{n}(f^{m}(x))$. Or, slowly:} @@ -141,7 +141,7 @@ $\eta$-reduction, this does not work for exponent~$0$ however. \end{editorial} -Predecessor and subtraction on Church numeral are not as easy to +Predecessor and subtraction on Church numerals are not as easy to define as we might think: it requires encoding of pairs. \end{document} diff --git a/content/lambda-calculus/lambda-definability/introduction.tex b/content/lambda-calculus/lambda-definability/introduction.tex index 219b597a..8a559a3f 100644 --- a/content/lambda-calculus/lambda-definability/introduction.tex +++ b/content/lambda-calculus/lambda-definability/introduction.tex @@ -70,7 +70,7 @@ \num{n_1} \dots \num{n_{k-1}}$ has no normal form otherwise. \end{defn} -A very simple example are the constant functions. The term $C_k \ident +Very simple examples are the constant functions. The term $C_k \ident \lambd[x][\num{k}]$ !!{lambda define}s the function $c_k\colon \Nat \to \Nat$ such that $c(n) = k$. For $C_k \, \num n \ident (\lambd[x][\num{k}])\num n \redone \num{k}$ for any~$n$. The identity diff --git a/content/lambda-calculus/lambda-definability/lambda-definable-recursive.tex b/content/lambda-calculus/lambda-definability/lambda-definable-recursive.tex index 6073d375..25caff6e 100644 --- a/content/lambda-calculus/lambda-definability/lambda-definable-recursive.tex +++ b/content/lambda-calculus/lambda-definability/lambda-definable-recursive.tex @@ -20,13 +20,13 @@ \begin{proof} We only sketch the proof. First, we arithmetize $\lambd$-terms, - i.e., systematially assign G\"odel numbers to $\lambd$-terms, using + i.e., systematically assign G\"odel numbers to $\lambd$-terms, using the usual power-of-primes coding of sequences. Then we define a partial recursive function $\fn{normalize}(t)$ operating on the G\"odel number~$t$ of a lambda term as argument, and which returns the G\"odel number of the normal form if it has one, or is undefined otherwise. Then define two partial recursive functions - $\fn{toChurch}$ and $\fn{fromChurch}$ that maps natural numbers to + $\fn{toChurch}$ and $\fn{fromChurch}$ that map natural numbers to and from the G\"odel numbers of the corresponding Church numeral. Using these recursive functions, we can define the function~$f$ as a diff --git a/content/lambda-calculus/lambda-definability/lists.tex b/content/lambda-calculus/lambda-definability/lists.tex index b153162a..9e3898a5 100644 --- a/content/lambda-calculus/lambda-definability/lists.tex +++ b/content/lambda-calculus/lambda-definability/lists.tex @@ -34,7 +34,7 @@ \lambd[l][l \, (\lambd[xa][\fn{Add} \, a \, \num{1}]) \num{0}] \end{align*} -$\fn{Sum}$ calculates the sum of a list of church numerals. It works +$\fn{Sum}$ calculates the sum of a list of Church numerals. It works by doing an accumulation on the list, where the initial value is $\num{0}$ and for each element, return $\fn{Add} \, x\, a$ as the new value (where $x$ is the current element and $a$ is the accumulated diff --git a/content/lambda-calculus/lambda-definability/minimization.tex b/content/lambda-calculus/lambda-definability/minimization.tex index 7093464a..b2851793 100644 --- a/content/lambda-calculus/lambda-definability/minimization.tex +++ b/content/lambda-calculus/lambda-definability/minimization.tex @@ -31,7 +31,7 @@ function and a fixpoint combinator: \begin{align*} \fn{Search} & \ident \lambd[g][\lambd[f\,\vec{x}\,y][ - \fn{IsZero} (f\, \vec{x}\, y)\, y\, (g\, f\, \vec{x} (\fn{Succ}\, y)]]]\\ + \fn{IsZero} (f\, \vec{x}\, y)\, y\, (g\, f\, \vec{x} (\fn{Succ}\, y))]]\\ H & \ident \lambd[\vec x][(Y \, \fn{Search}) F\, \vec{x}\, \num{0}], \end{align*} where $Y$ is any fixpoint combinator. Informally speaking, diff --git a/content/lambda-calculus/lambda-definability/partial-recursive-functions.tex b/content/lambda-calculus/lambda-definability/partial-recursive-functions.tex index d6422a27..95ce1470 100644 --- a/content/lambda-calculus/lambda-definability/partial-recursive-functions.tex +++ b/content/lambda-calculus/lambda-definability/partial-recursive-functions.tex @@ -11,7 +11,7 @@ Partial recursive functions are those obtained from the basic functions by composition, primitive recursion, and unbounded -minimization. They differ from general recursive function in that the +minimization. They differ from general recursive functions in that the functions used in unbounded search are not required to be regular. Not requiring regularity means that functions defined by minimization may sometimes not be defined. @@ -23,7 +23,7 @@ !!{lambda define}d by $\lambd[x][F (G x)]$ if $f$ and $g$ are !!{lambda define}d by terms $F$ and~$G$, respectively. However, when the functions are partial, this is problematic. When $g(x)$ is undefined, -meaning $G x$ has no normal form. In most cases this means that $F (G +$G x$ has no normal form. In most cases this means that $F (G x)$ has no normal forms either, which is what we want. But consider when $F$ is $\lambd[x][\lambd[y][y]]$, in which case $F (G x)$ does have a normal form ($\lambd[y][y]$). diff --git a/content/lambda-calculus/lambda-definability/primitive-recursive-functions.tex b/content/lambda-calculus/lambda-definability/primitive-recursive-functions.tex index 0fd5bed1..f1c02186 100644 --- a/content/lambda-calculus/lambda-definability/primitive-recursive-functions.tex +++ b/content/lambda-calculus/lambda-definability/primitive-recursive-functions.tex @@ -70,7 +70,7 @@ Informally speaking, the primitive recursive definition iterates the application of the function $g$ $y$ times and applies it to $f(x_1, \dots, x_n)$. This is reminiscent of the definition of Church - numerals, which is also defined as a iterator. + numerals, which are also defined as iterators. For simplicity, we give the definition and proof for a single additional argument~$x$. The function $h$ is !!{lambda define}d by: diff --git a/content/lambda-calculus/lambda-definability/truth-values.tex b/content/lambda-calculus/lambda-definability/truth-values.tex index dc05b169..74a2c4c6 100644 --- a/content/lambda-calculus/lambda-definability/truth-values.tex +++ b/content/lambda-calculus/lambda-definability/truth-values.tex @@ -16,7 +16,7 @@ \end{align*} Truth values are represented as \emph{selectors}, i.e., functions that -accept two arguments and returning one of them. The truth value +accept two arguments and return one of them. The truth value $\fn{true}$ selects its first argument, and $\fn{false}$ its second. For example, $\fn{true}\, M N$ always reduces to $M$, while $\fn{false}\, M N$ always reduces to~$N$. diff --git a/content/lambda-calculus/syntax/abbreviated-syntax.tex b/content/lambda-calculus/syntax/abbreviated-syntax.tex index 468c6ca9..a13a3753 100644 --- a/content/lambda-calculus/syntax/abbreviated-syntax.tex +++ b/content/lambda-calculus/syntax/abbreviated-syntax.tex @@ -20,7 +20,7 @@ to right. For example, if $M$, $N$, $P$, and~$Q$ are terms, then $MNPQ$ abbreviates $(((MN)P)Q)$. \item Again, when parentheses are left out, lambda abstraction is - given the widest scope possible. From example, $\lambd[x][MNP]$ is + given the widest scope possible. For example, $\lambd[x][MNP]$ is read as $(\lambd[x][MNP])$. \item A lambda can be used to abstract multiple variables. For example, $\lambd[xyz][M]$ is short for diff --git a/content/lambda-calculus/syntax/alpha.tex b/content/lambda-calculus/syntax/alpha.tex index 7deabbc6..0004269c 100644 --- a/content/lambda-calculus/syntax/alpha.tex +++ b/content/lambda-calculus/syntax/alpha.tex @@ -28,7 +28,7 @@ \begin{defn}[Compatibility of relation] A relation $R$ on terms is said to be \emph{compatible} - if it satisfies following conditions: + if it satisfies the following conditions: \begin{enumerate} \item If $R N N'$ then $R \lambd[x][N] \lambd[x][N']$ \item If $R P P'$ then $R (PQ) (P'Q)$ @@ -39,7 +39,7 @@ Thus let's rephrase the definition: \begin{defn}[Change of bound variable, $\aconvone$] \emph{Change of bound variable} ($\redone[\alpha]$) is - the smallest compatible relation on terms satisfying following + the smallest compatible relation on terms satisfying the following condition: \begin{align*} &\lambd[x][N] \redone[\alpha] \lambd[y][\Subst{N}{y}{x}] && \text{if @@ -70,7 +70,7 @@ exercise. From now on we will use the inductive definition. \begin{defn}[$\alpha$-conversion, $\aconv$] - \emph{$\alpha$-conversion} ($\aconv$) is the smallest reflexitive + \emph{$\alpha$-conversion} ($\aconv$) is the smallest reflexive and transitive relation on terms containing $\aconvone$. \end{defn} @@ -92,7 +92,7 @@ $\lambd[x][f x]$ $\alpha$-converts to $\lambd[y][f y]$, and conversely. Informally speaking, they are both functions that accept an argument and - return $f$ of that argument, refering to the environment variable~$f$. + return $f$ of that argument, referring to the environment variable~$f$. $\lambd[x][f x]$ does not $\alpha$-convert to $\lambd[x][g x]$. Informally speaking, they refer to the environment variables @@ -134,7 +134,7 @@ \item If $x \notin FV(N)$, then: \begin{align*} \FV{\lambd[y][\Subst{N}{y}{x}]} - & = FV{\Subst{N}{y}{x}} \setminus \{y\} \\ + & = \FV{\Subst{N}{y}{x}} \setminus \{y\} \\ & = \FV{N} \setminus \{x\} && \text{by \olref[sub]{thm:notinfv}} \\ & = \FV{\lambd[x][N]}. @@ -181,8 +181,8 @@ \begin{enumerate} \item For each term $M$, $M$ can be changed to $M$ by \emph{zero} changes of bound variables. - \item If $P$ is $\alpha$-converts to $Q$ by a series of changes - of bound variables, then from $Q$ we can just inverse these + \item If $P$ $\alpha$-converts to $Q$ by a series of changes + of bound variables, then from $Q$ we can just reverse these changes (by \olref{lem:inv}) in opposite order to obtain~$P$. \item If $P$ $\alpha$-converts to $Q$ by a series of changes of diff --git a/content/lambda-calculus/syntax/beta.tex b/content/lambda-calculus/syntax/beta.tex index dc997729..2920e7d7 100644 --- a/content/lambda-calculus/syntax/beta.tex +++ b/content/lambda-calculus/syntax/beta.tex @@ -1,5 +1,5 @@ % Part: lambda-calculus -% Chapter: introduction +% Chapter: syntax % Section: beta \documentclass[../../../include/open-logic-section]{subfiles} @@ -94,7 +94,7 @@ strategy has the useful property that a term can be reduced to a normal form by some strategy iff it can be reduced to normal form using the natural strategy. In what follows we will use the natural - stratuegy unless otherwise specified. + strategy unless otherwise specified. \end{digress} \begin{defn}[$\beta$-equivalence, $\equal$] diff --git a/content/lambda-calculus/syntax/conversion.tex b/content/lambda-calculus/syntax/conversion.tex index 88201c36..8fe4b43a 100644 --- a/content/lambda-calculus/syntax/conversion.tex +++ b/content/lambda-calculus/syntax/conversion.tex @@ -9,7 +9,7 @@ \olfileid{lam}{int}{con} \olsection{Conversion and Reduction} -There three type of conversions or reductions in lambda calculus. The +There are three types of conversions or reductions in lambda calculus. The difference between conversion and reduction is whether the ``transformation'' is unidirectional or bidirectional, as we will see. diff --git a/content/lambda-calculus/syntax/de-bruijn.tex b/content/lambda-calculus/syntax/de-bruijn.tex index dd06656e..284a9a92 100644 --- a/content/lambda-calculus/syntax/de-bruijn.tex +++ b/content/lambda-calculus/syntax/de-bruijn.tex @@ -21,15 +21,15 @@ this parameter. In the de Bruijn index, however, parameters have no name and reference to them in the function body is denoted by a number denoting the levels of abstraction between them. For example, consider -the example of $\lambd[x][\lambd[y][y x]]$: the outer abstraction is on +the example of $\lambd[x][\lambd[y][y x]]$: the outer abstraction binds the variable~$x$; the inner abstraction binds the variable -is~$y$; the sub-term $y x$ lies in the scope of the inner abstraction: +$y$; the sub-term $y x$ lies in the scope of the inner abstraction: there is no abstraction between $y$ and its abstract~$\lambd[y]$, but one abstract between $x$ and its abstract~$\lambd[x]$. Thus we write -$0\, 1$ for $y x$, and $\lambd[][\lambd[][01]]$ for the entire term. +$0\, 1$ for $y x$, and $\lambd[][\lambd[][0\,1]]$ for the entire term. \begin{defn} - De Bruijn terms are inductively defines as follows: + De Bruijn terms are inductively defined as follows: \begin{enumerate} \item $n$, where $n$ is any natural number. \item $PQ$, where $P$ and $Q$ are both De Bruijn terms. @@ -50,8 +50,8 @@ For example, if $\Gamma$ is $x,y,z$, then $\Gamma(x)$ is $0$ and $\Gamma(z)$ is $2$. - $x,\Gamma$ denotes the list resulted from pushing $x$ to the head of - $\Gamma$; for instance, continuing the $\Gamma$ in last example, + $x,\Gamma$ denotes the list resulting from pushing $x$ to the head of + $\Gamma$; for instance, continuing the $\Gamma$ in the last example, $w,\Gamma$ is $w,x,y,z$. \end{defn} @@ -68,8 +68,8 @@ $\Gamma[n]$ denotes the variable in position~$n$. For example, if $\Gamma$ is $x,y,z$, then $\Gamma[1]$ is $y$. - The variable $x$ in last equation is chosen to be any variable that - not in $\Gamma$. + The variable $x$ in the last equation is chosen to be any variable that + is not in $\Gamma$. \end{defn} Here we give some results without proving them: diff --git a/content/lambda-calculus/syntax/eta.tex b/content/lambda-calculus/syntax/eta.tex index 5c6cc407..152bf2c9 100644 --- a/content/lambda-calculus/syntax/eta.tex +++ b/content/lambda-calculus/syntax/eta.tex @@ -27,7 +27,7 @@ \begin{defn}[$\beta\eta$-reduction, $\bered$] \ollabel{defn:bered} \emph{$\beta\eta$-reduction} ($\bered$) is the smallest reflexive, transitive relation on terms containing $\bredone$ and $\eredone$, - i.e., the rules of reflexivity and transitive plus the following two + i.e., the rules of reflexivity and transitivity plus the following two rules: \begin{enumerate} \item If $M \bredone N$ then $M \bered N$. \ollabel{defn:bered3} @@ -76,7 +76,7 @@ \equal N$ derived by the \ext{} rule, we have $Mx \equal[\eta] Nx$ as premise. Then we have $\lambd[x][Mx] \equal[\eta] \lambd[x][Nx]$ by a rule of $\equal$, applying $\eta$ - on both side gives us $M \equal[\eta] N$. + on both sides gives us $M \equal[\eta] N$. Similarly we prove that the $\eta$ rule is contained in $\equal[ext]$. For any $\lambd[x][Mx]$ and $M$ with $x \notin diff --git a/content/lambda-calculus/syntax/free-variables.tex b/content/lambda-calculus/syntax/free-variables.tex index 166c3898..d5ba887c 100644 --- a/content/lambda-calculus/syntax/free-variables.tex +++ b/content/lambda-calculus/syntax/free-variables.tex @@ -1,5 +1,5 @@ % Part: lambda-calculus -% Chapter: introduction +% Chapter: syntax % Section: free-variables \documentclass[../../../include/open-logic-section]{subfiles} diff --git a/content/lambda-calculus/syntax/substitution.tex b/content/lambda-calculus/syntax/substitution.tex index fc9f1fee..cf572603 100644 --- a/content/lambda-calculus/syntax/substitution.tex +++ b/content/lambda-calculus/syntax/substitution.tex @@ -46,7 +46,7 @@ accepts an argument and returns it directly. But the term $\lambd[y][x]$ stands for a function that always returns the term~$x$ (or whatever $x$ refers to). So the result we actually want is a -function that accepts an argument, drop it, and returns the +function that accepts an argument, drops it, and returns the environment variable~$y$. To do this properly, we would first have to ``rename'' the bound variable~$y$. \end{explain} @@ -75,7 +75,7 @@ $\lambd[y][\Subst{P}{N}{x}]$. Then $\Subst{P}{N}{x}$ has to be defined; also, $x \neq y$ and $x \notin \FV{Q}$. Then: \begin{multline*} - \FV{\Subst{\lambd[y][P]}{N}{x}} = \\ + \FV{\Subst{\lambd[y][P]}{N}{x}} \\ \begin{aligned} & = \FV{\lambd[y][\Subst{P}{N}{x}]} && \text{by \olref{defn:substitution-4}}\\ @@ -93,7 +93,7 @@ \end{prob} \begin{thm} \ollabel{thm:infv} - If $x \in \FV{M})$, then $\FV{\Subst{M}{N}{x}} = (\FV{M} \setminus + If $x \in \FV{M}$, then $\FV{\Subst{M}{N}{x}} = (\FV{M} \setminus \{x\}) \cup \FV{N}$, provided the left hand is defined. \end{thm} @@ -112,7 +112,7 @@ defined, $x \neq y$ and $y \notin \FV{N}$; also, since $y \in \FV{\lambd[x][P]}$, we have $y \in \FV{P}$ too. Now: \begin{multline*} - \FV{\Subst{(\lambd[y][P])}{N}{x}} = \\ + \FV{\Subst{(\lambd[y][P])}{N}{x}} \\ \begin{aligned} & = \FV{\lambd[y][\Subst{P}{N}{x}]} \\ & = \FV{\Subst{P}{N}{x}} \setminus \{y\} \\ diff --git a/content/lambda-calculus/syntax/term-revisited.tex b/content/lambda-calculus/syntax/term-revisited.tex index b80c9368..21dff15b 100644 --- a/content/lambda-calculus/syntax/term-revisited.tex +++ b/content/lambda-calculus/syntax/term-revisited.tex @@ -1,5 +1,5 @@ % Part: lambda-calculus -% Chapter: introduction +% Chapter: syntax % Section: term-revisited \documentclass[../../../include/open-logic-section]{subfiles} @@ -10,7 +10,7 @@ \olsection{Terms as $\alpha$-Equivalence Classes} From now on, we will consider terms up to $\alpha$-equivalence. That -means when we write a term, we mean its $\alpha$-equivalance class it +means when we write a term, we mean the $\alpha$-equivalence class it is in. For example, we write $\lambd[a][\lambd[b][a c]]$ for the set of all terms $\alpha$-equivalent to it, such as $\lambd[a][\lambd[b][a c]]$, $\lambd[b][\lambd[a][b c]]$, etc. @@ -18,14 +18,14 @@ Also, while in previous sections letters such as $N, Q$ are used to denote a term, from now on we use them to denote a class, and it is these classes instead of terms that will be our subjects of study in -what follows. Letters such as $x, y$ continues to denote a variable. +what follows. Letters such as $x, y$ continue to denote a variable. We also adopt the notation $\rep{M}$ to denote an arbitrary !!{element} of the class~$M$, and $\rep{M}[0], \rep{M}[1], etc. $ if we need more than one. We reuse the notations from terms to simplify our wording. We -have following definition on classes: +have the following definition on classes: \begin{defn} \begin{enumerate} \item $\lambd[x][N]$ is defined as the class containing @@ -45,7 +45,7 @@ This is well defined since $FV(\rep{M}[0]) = FV(\rep{M}[1])$, as shown in \olref[alp]{thm:fv}. -We also reuse the notation for substition into classes: +We also reuse the notation for substitution into classes: \begin{defn} \ollabel{def:sub} The \emph{substitution} of $R$ for $y$ in $M$, or $\Subst{M}{R}{y}$, is defined to be $\Subst{\rep{M}}{\rep{R}}{y}$, for any $\rep{M}$ and @@ -57,7 +57,7 @@ Note how this definition significantly simplifies our reasoning. For example: \begin{align} - \Subst{\lambd[x][x]}{y}{x} & =\ollabel{eq:1}\\ + \Subst{\lambd[x][x]}{y}{x} & \ollabel{eq:1}\\ &= \Subst{\lambd[z][z]}{y}{x} \ollabel{eq:2}\\ &= \lambd[z][\Subst{z}{y}{x}] \\ &= \lambd[z][z] diff --git a/content/lambda-calculus/syntax/unique-readability.tex b/content/lambda-calculus/syntax/unique-readability.tex index cc6a18fc..a20b804e 100644 --- a/content/lambda-calculus/syntax/unique-readability.tex +++ b/content/lambda-calculus/syntax/unique-readability.tex @@ -1,5 +1,5 @@ % Part: lambda-calculus -% Chapter: introduction +% Chapter: syntax % Section: unique-readability \documentclass[../../../include/open-logic-section]{subfiles} @@ -69,7 +69,7 @@ result of an abstraction on~$N$. By inductive hypothesis we know that formation of $N$ is itself unique. \item $M$ is of the form $(PQ)$, where $P$ and $Q$ are terms. - Since it starts with a parentheses, it cannot also be + Since it starts with a parenthesis, it cannot also be constructed by \olref[trm]{defn:term}\olref[trm]{defn:term-var}. By \olref{lem:term-start}, $P$ cannot begin with $\lambd$, so @@ -79,7 +79,7 @@ segment of $P'$ (or vice versa), and this is impossible by \olref{lem:initial}. So $P$ and $Q$ are uniquely determined, and by inductive hypothesis we know that formations - of $P$ and $Q$ is unique. + of $P$ and $Q$ are unique. \end{enumerate} \end{proof} @@ -89,7 +89,7 @@ \begin{enumerate} \item $x$, where $x$ is a variable uniquely determined by $M$. \item $(\lambd[x][N])$, where $x$ is a variable and $N$ is - another term, both of which is uniquely determined by $M$. + another term, both of which are uniquely determined by $M$. \item $(PQ)$, where $P$ and $Q$ are two terms uniquely determined by $M$. \end{enumerate} diff --git a/content/proof-theory/cut-elimination/ce-largest.tex b/content/proof-theory/cut-elimination/ce-largest.tex index 0a31f5d0..a17153a7 100644 --- a/content/proof-theory/cut-elimination/ce-largest.tex +++ b/content/proof-theory/cut-elimination/ce-largest.tex @@ -284,7 +284,7 @@ \begin{prob} Verify the case where $!A \ident (!B \land !C)$ in the proof of -\olref{lem:inv-G3c-cut}. That is, show that if there is +\olref{lem:max-cut-red-G3c}. That is, show that if there is !!a{proof}~$\pi$ ending in \[ \AxiomC{} @@ -308,7 +308,7 @@ % \end{prob} -\olref[top]{lem:cut-adm-G3c} establishes that we can replace a \CutCS{} +\olref{lem:max-cut-red-G3c} establishes that we can replace a \CutCS{} inference of highest rank in !!a{proof} by \CutCS{} inferences of lower rank. We can again use this lemma to show that we can eliminate any number of \CutCS{} inferences from !!a{proof} by successively diff --git a/content/proof-theory/cut-elimination/interpolation.tex b/content/proof-theory/cut-elimination/interpolation.tex index 7d72b7a6..67dc52a8 100644 --- a/content/proof-theory/cut-elimination/interpolation.tex +++ b/content/proof-theory/cut-elimination/interpolation.tex @@ -539,7 +539,7 @@ \[ \Gamma \Sequent \lforall[x_1][\dots\lforall[x_n][(R(x_1,\dots,x_n) \liff !A(x_1, \dots, x_n))]]. \] - This shows that $!A(x_1, \dots, x_n)$ explicitly defines $!R$ + This shows that $!A(x_1, \dots, x_n)$ explicitly defines $R$ in~$\Gamma$. \end{proof} diff --git a/content/proof-theory/cut-elimination/intuitionistic.tex b/content/proof-theory/cut-elimination/intuitionistic.tex index c2318f14..5ab194c1 100644 --- a/content/proof-theory/cut-elimination/intuitionistic.tex +++ b/content/proof-theory/cut-elimination/intuitionistic.tex @@ -40,7 +40,7 @@ \[ \AxiomC{} \RightLabel{$\pi_1'$} -\Deduce$B!, \Gamma \fCenter \Delta, !C$ +\Deduce$!B, \Gamma \fCenter \Delta, !C$ \AxiomC{} \RightLabel{$\pi_2''$} \Deduce$!C, \Pi \fCenter \Lambda$ diff --git a/content/proof-theory/cut-elimination/midsequent.tex b/content/proof-theory/cut-elimination/midsequent.tex index 7fa3267a..6164a503 100644 --- a/content/proof-theory/cut-elimination/midsequent.tex +++ b/content/proof-theory/cut-elimination/midsequent.tex @@ -191,7 +191,7 @@ \RightLabel{$\pi_2$} \Deduce$\Gamma' \fCenter \Delta', \lexists[x][!A(x)], !A(t), !B$ \RightLabel{\RightR{\lexists}} -\UnaryInf$!\Gamma' \fCenter \Delta', \lexists[x][!A(x)], !B$ +\UnaryInf$\Gamma' \fCenter \Delta', \lexists[x][!A(x)], !B$ \AxiomC{} \RightLabel{$\pi_3$} \Deduce$\Gamma' \fCenter \Delta', \lexists[x][!A(x)], !C$ diff --git a/content/proof-theory/natural-deduction/rules-proofs.tex b/content/proof-theory/natural-deduction/rules-proofs.tex index b0718e89..14fdf4e5 100644 --- a/content/proof-theory/natural-deduction/rules-proofs.tex +++ b/content/proof-theory/natural-deduction/rules-proofs.tex @@ -34,7 +34,7 @@ are the \emph{premises}. The !!{formula} on the left is the \emph{principal} !!{formula}~$!A \lif !B$. All !!{elimination} rules have one such premise, always on the far left. It is called the -\emph{major} premise of the inference. If there are others, such as an +\emph{major} premise of the inference. If there are others, such as in this case, they are called \emph{minor} premises. The premise(s) of !!{introduction} rules are also called major premise(s). The !!{formula} below the line is the \emph{conclusion}. @@ -133,13 +133,13 @@ inference. Each leaf is an assumption, possibly labelled with a discharge label, and every other !!{formula} follows from the !!{formula}s immediately above it by one of the inference rules of the -system. If an occurence of a !!{formula} as an assumption in the tree +system. If an occurrence of a !!{formula} as an assumption in the tree above an inference has not been discharged by an inference above it, it is called \emph{open} (at the inference). \begin{defn}\ollabel{defn:proof} \emph{!!^{proof}s} in \Log{N1c} and~\Log{N1i} are finite trees of -!!{formula}s inductively as follows: +!!{formula}s defined inductively as follows: \begin{enumerate} \item\ollabel{defn:prf:assumption} Every !!{formula} labelled by a discharge label such as $x$ or $y$, by itself is @@ -148,7 +148,7 @@ \item\ollabel{defn:prf:one-prem} If $R$ is a rule with one, two, or three premises $!A_1$, $!A_2$, $!A_3$, conclusion~$!A$, and $\delta_1$, $\delta_2$, $\delta_3$ are !!{proof}s ending in $!A_1$, - $!A_2$, $!A_3$, respectively, the + $!A_2$, $!A_3$, respectively, then \[ \AxiomC{} \RightLabel{$\delta_1$} @@ -229,7 +229,7 @@ \] is !!a{proof}~$\delta_1$. Its height is~$0$. From $\delta_1$ we can obtain two !!{proof}s~$\delta_2$ and~$\delta_3$ -by applying one of the two version of~\Elim{\land} +by applying one of the two versions of~\Elim{\land} \[ \AxiomC{$!A \land !B^x$} \RightLabel{\Elim{\land}[2]} @@ -242,7 +242,7 @@ \DisplayProof \] The immediate sub-!!{proof}s of the last inference in~$\delta_2$ and -in~$\delta_3$ is the same: $!A \land !B$. Both !!{proof}s have the +in~$\delta_3$ are the same: $!A \land !B$. Both !!{proof}s have the occurrence of $!A\land !B$ as an open assumption. We have $\pheight{\delta_1} = \pheight{\delta_2} = 1$. @@ -263,7 +263,7 @@ \DisplayProof \] Its height $\pheight{\delta_4} = \max(\pheight{\delta_2}, -\pheight{\delta_3})+1 = \max(1,1) + 1 = 2$. It has two occurences of +\pheight{\delta_3})+1 = \max(1,1) + 1 = 2$. It has two occurrences of $!A \land !B$ as assumptions, both are open. Finally we can apply \Intro{\lif} to obtain $\delta_5$: diff --git a/content/proof-theory/natural-deduction/sequents.tex b/content/proof-theory/natural-deduction/sequents.tex index ba46c567..ed82c3e8 100644 --- a/content/proof-theory/natural-deduction/sequents.tex +++ b/content/proof-theory/natural-deduction/sequents.tex @@ -80,7 +80,7 @@ \[ \AxiomC{} \RightLabel{$\delta_1'$} - \Deduce$x:B, \Gamma \fCenter !C$ + \Deduce$x:!B, \Gamma \fCenter !C$ \RightLabel{\Intro{\lif}} \UnaryInf$\Gamma \fCenter !B \lif !C$ \DisplayProof diff --git a/content/proof-theory/normalization/reductions.tex b/content/proof-theory/normalization/reductions.tex index 06f1c0e4..1113b6d1 100644 --- a/content/proof-theory/normalization/reductions.tex +++ b/content/proof-theory/normalization/reductions.tex @@ -94,7 +94,7 @@ and major premise of !!a{elimination} inference) or the last !!{formula} occurrence of a cut segment (major premise of !!a{elimination} inference and conclusion of~\Elim{\lor} or - \Elim{\lexists}). If $B^x$ was a minor premise of \Elim{\lor} or + \Elim{\lexists}). If $!B^x$ was a minor premise of \Elim{\lor} or \Elim{\lexists}, it already was the first !!{formula} occurrence of a segment, and possibly of a cut segment. In the new !!{proof} that segment may now be longer. However, observe that the !!{formula} diff --git a/content/proof-theory/normalization/segments.tex b/content/proof-theory/normalization/segments.tex index 7cfb717c..12dded38 100644 --- a/content/proof-theory/normalization/segments.tex +++ b/content/proof-theory/normalization/segments.tex @@ -1,6 +1,6 @@ % Part: proof-theory % Chapter: normalization -% Section: introduction +% Section: segments \documentclass[../../../include/open-logic-section]{subfiles} @@ -75,14 +75,14 @@ \item $!A_1$ is not the conclusion of \Elim{\lor} or \Elim{\lexists}; \item $!A_n$ is not a minor premise of \Elim{\lor} or \Elim{\lexists}; \item For $i = 1$, \dots,~$n-1$, $!A_i$ is a minor premise of - \Elim{\lor} or \Elim{\lexists} and $A_{i+1}$ is the conclusion of + \Elim{\lor} or \Elim{\lexists} and $!A_{i+1}$ is the conclusion of that inference. \end{enumerate} The \emph{length} of that segment is~$n$. \end{defn} -Not every segment is a target for elimination (a detour). The ones that -are called \emph{cuts}. +Not every segment is a target for elimination (a detour). Those that +are targets for elimination are called \emph{cuts}. \begin{defn} A \emph{cut} is a segment in which $!A_n$ is the major premise of diff --git a/content/proof-theory/normalization/translations.tex b/content/proof-theory/normalization/translations.tex index f713459e..33966ae1 100644 --- a/content/proof-theory/normalization/translations.tex +++ b/content/proof-theory/normalization/translations.tex @@ -15,7 +15,7 @@ \Log{2i} !!{proof}s results in normal \Log{N2i}-!!{proof}s. To state the result we need a bit of terminology to let us relate -antecendents of sequents in~\Log{N2i} and in~\Log{G2i} more easily: a +antecedents of sequents in~\Log{N2i} and in~\Log{G2i} more easily: a set~$\Gamma'$ of labelled !!{formula}s \emph{corresponds to} the multiset~$\Gamma$ of unlabelled !!{formula}s if, for every !!{formula}~$!A$, the number of !!{element}s of~$\Gamma'$ of the form @@ -87,10 +87,10 @@ If $\delta$ ends in an inference rule, we distinguish cases: \begin{enumerate} \item If $R$ is !!a{introduction} rule or~\FalseInt, the - translations proceeds exactly as in the proof of + translation proceeds exactly as in the proof of \olref[nat][tni]{prop:N2-to-G2}, and does not require~\Cut. - If the last rule~$R$ of~$\delta$ is !!a{elimination} rule, observe + \item If the last rule~$R$ of~$\delta$ is !!a{elimination} rule, observe the following: \begin{enumerate} \item A main branch of~$\delta$ passes through no diff --git a/content/proof-theory/proof-search/completeness.tex b/content/proof-theory/proof-search/completeness.tex index 08c152b6..2fe22cee 100644 --- a/content/proof-theory/proof-search/completeness.tex +++ b/content/proof-theory/proof-search/completeness.tex @@ -14,7 +14,7 @@ aborts or never halts, there is no !!{proof} of the starting sequent~$\Gamma \Sequent \Delta$. To do this, we define !!a{structure}~$\Struct M$ such that for all $!A \in \Gamma$, -$\Sat{M}{!A}$, and for all~$! \in \Delta$, $\Sat/{M}{!A}$. In other +$\Sat{M}{!A}$, and for all~$!A \in \Delta$, $\Sat/{M}{!A}$. In other words, all !!{formula}s in~$\Gamma$ are true and all !!{formula}s in~$\Delta$ are false in~$\Struct M$, i.e., $\Gamma \Sequent \Delta$ is not valid. Since \Log{G3c} is sound, $\Gamma \Sequent \Delta$ has diff --git a/content/proof-theory/proof-theory.tex b/content/proof-theory/proof-theory.tex index de397917..b67ba4db 100644 --- a/content/proof-theory/proof-theory.tex +++ b/content/proof-theory/proof-theory.tex @@ -1,4 +1,4 @@ -% Part: model-theory +% Part: proof-theory \documentclass[../../include/open-logic-part]{subfiles} diff --git a/content/proof-theory/propositions-as-types/normalization.tex b/content/proof-theory/propositions-as-types/normalization.tex index d4bb162a..c7c8f662 100644 --- a/content/proof-theory/propositions-as-types/normalization.tex +++ b/content/proof-theory/propositions-as-types/normalization.tex @@ -57,7 +57,7 @@ $\lambd[x][P]$ \end{enumerate} In the first case, $\cutrank{\Subst{M}{N}{x}} = \cutrank{M}$; in the - other cases, $\cutrank{\Subst{M}{N}{x}} = \len{!A})$. + other cases, $\cutrank{\Subst{M}{N}{x}} = \len{!A}$. \end{lem} \begin{proof} Proof by induction on~$M$. @@ -128,7 +128,6 @@ All proof terms reduce to normal form; all !!{derivation}s reduce to normal !!{derivation}s. \end{thm} - \begin{proof} The second follows from the first. We prove the first by complete induction on $m=\maxrank{M}$, where $M$ is a proof term. @@ -171,7 +170,7 @@ In fact, terms in the typed $\lambd$-calculus don't just reduce to normal forms for one way of applying $\beta$-reductions to subterms, -but \emph{any} way of applying $\beta$-reductions to subtems +but \emph{any} way of applying $\beta$-reductions to subterms eventually terminates in a normal form. This property is called \emph{strong normalization}. It means that not only is there a way to guarantee that a computation eventually halts and produces a value, diff --git a/content/proof-theory/propositions-as-types/proof-terms.tex b/content/proof-theory/propositions-as-types/proof-terms.tex index ce6f1314..ce0a96c6 100644 --- a/content/proof-theory/propositions-as-types/proof-terms.tex +++ b/content/proof-theory/propositions-as-types/proof-terms.tex @@ -1,4 +1,4 @@ -% part: intuitionistic-logic +% part: proof-theory % chapter: propositions-as-types % section: proof-terms diff --git a/content/proof-theory/propositions-as-types/reduction.tex b/content/proof-theory/propositions-as-types/reduction.tex index 27836b02..c6fedca4 100644 --- a/content/proof-theory/propositions-as-types/reduction.tex +++ b/content/proof-theory/propositions-as-types/reduction.tex @@ -47,13 +47,13 @@ the proof term for the proof on the left reduces (in one step) to the proof term for the proof on the right: \[ - \proj{i}{\pair{N_1, N_2}} \redone N_i + \proj{i}{\pair{N_1}{N_2}} \redone[\beta] N_i \] In the typed lambda calculus, this is the \emph{beta reduction} rule for the product type. In natural deduction, a pair of inferences such as a \Intro{\land} -folloed by \Elim{\land}, i.e., a pair that is subject to reduction, is +followed by \Elim{\land}, i.e., a pair that is subject to reduction, is called a \emph{cut}. In the typed lambda calculus the term on the left of $\redone$ is called a \emph{redex}, and the term to the right is called the \emph{reductum}. Unlike untyped lambda calculus, where only @@ -94,7 +94,7 @@ \dcase{\inj[!A_i]{i}{M}}{x_1}{N_1}{x_2}{N_2} \redone \Subst{N_i}{M}{x_i} \end{gather*} where $M$ is the proof term of~$\delta$, and $N_i$ is the proof term -of~$\delta_i$. This is the beta reduction rule of for sum types. +of~$\delta_i$. This is the beta reduction rule for sum types. Here, $\Subst{M}{N_i}{x}$ means replacing all free occurrences of the variable~$x$ in $M$ by~$N_i$. diff --git a/content/proof-theory/propositions-as-types/rules-tN2.tex b/content/proof-theory/propositions-as-types/rules-tN2.tex index da36716f..7add0d27 100644 --- a/content/proof-theory/propositions-as-types/rules-tN2.tex +++ b/content/proof-theory/propositions-as-types/rules-tN2.tex @@ -1,6 +1,6 @@ % Part: proof-theory -% Chapter: natural-deduction -% Section: rules-N2 +% Chapter: propositions-as-types +% Section: rules-tN2 \documentclass[../../../include/open-logic-section]{subfiles} diff --git a/content/proof-theory/propositions-as-types/rules-tN3.tex b/content/proof-theory/propositions-as-types/rules-tN3.tex index e7b48d15..4079f32b 100644 --- a/content/proof-theory/propositions-as-types/rules-tN3.tex +++ b/content/proof-theory/propositions-as-types/rules-tN3.tex @@ -1,6 +1,6 @@ % Part: proof-theory -% Chapter: natural-deduction -% Section: rules-N2 +% Chapter: propositions-as-types +% Section: rules-tN3 \documentclass[../../../include/open-logic-section]{subfiles} diff --git a/content/proof-theory/propositions-as-types/types.tex b/content/proof-theory/propositions-as-types/types.tex index 519d0df7..0cdd2e96 100644 --- a/content/proof-theory/propositions-as-types/types.tex +++ b/content/proof-theory/propositions-as-types/types.tex @@ -22,7 +22,7 @@ \end{defn} Note that the definition does not require that $\Gamma$ contains -$x:!A$ \emph{only} for free variables of~$N$. This, e.g., $\Gamma = +$x:!A$ \emph{only} for free variables of~$N$. Thus, e.g., $\Gamma = \{x:!A, y:!B, z:!C\}$ is a context for $\pair{x}{y}$. \begin{defn}\ollabel{defn:type} @@ -67,7 +67,7 @@ Proof terms are terms in a version of the $\lambd$-calculus, the \emph{typed $\lambd$-calculus with products, sums, and empty type}. The -classical $\lambd$-calculus only has term built from variables, +classical $\lambd$-calculus only has terms built from variables, \emph{$\lambd$-abstracts}~$\lambd[x][N]$ and application $(MN)$, and it lacks the annotation by~$!A$ of the typed $\lambd$-abstract $\lambd[\typeof{x}{!A}][N]$. The $\lambd$-calculus is a model of @@ -104,7 +104,7 @@ intuitively name the right sort of thing, provided the terms it is applied to name certain things. E.g., ``if $N_1 : !A$ and $N_2 : !B$, then $\pair{N_1}{N_2} : !A \land !B$'' says that if $N_1$ names -somethign of type~$!A$ and $N_2$ names something of type~$!B$, then +something of type~$!A$ and $N_2$ names something of type~$!B$, then $\pair{N_1}{N_2}$ names something of type $!A \land !B$. \end{document} diff --git a/content/proof-theory/sequent-calculus/admissible-derivable.tex b/content/proof-theory/sequent-calculus/admissible-derivable.tex index dc60dd8d..75f9715e 100644 --- a/content/proof-theory/sequent-calculus/admissible-derivable.tex +++ b/content/proof-theory/sequent-calculus/admissible-derivable.tex @@ -59,12 +59,12 @@ \RightLabel{$\LeftR{\land}_2$} \UnaryInf$!A \land !B, !A \land !B, \Gamma \fCenter \Delta$ \RightLabel{\LeftR{\Contraction}} -\UnaryInf$!A \land !B \Gamma \fCenter \Delta$ +\UnaryInf$!A \land !B, \Gamma \fCenter \Delta$ \DisplayProof \] \end{ex} -Simulating a inferences using one rule using other rules is one way to +Simulating inferences using one rule using other rules is one way to show that a rule is admissible. But it is not the only way, and some rules are admissible but can't be so simulated. Rules that can be are called \emph{derivable}. @@ -189,7 +189,7 @@ \end{defn} Note that it is enough for a rule to be !!{height}-preserving -admissable that, whenever the premises~$S_i$ have !!{proof}s~$\pi_i$ +admissible that, whenever the premises~$S_i$ have !!{proof}s~$\pi_i$ with !!{height}~$h_i = \pheight{\pi_i}$, there is !!a{proof}~$\pi$ of the conclusion of !!{height}~$\pheight{\pi}$ no greater than the maximum of the~$h_i$. In particular, if there is only one diff --git a/content/proof-theory/sequent-calculus/invertibility.tex b/content/proof-theory/sequent-calculus/invertibility.tex index 867eedbf..dbe5d215 100644 --- a/content/proof-theory/sequent-calculus/invertibility.tex +++ b/content/proof-theory/sequent-calculus/invertibility.tex @@ -363,7 +363,7 @@ \DisplayProof \] The inductive hypothesis applies to~$\pi_1$ and there is -!!a{proof}s~$\pi_1'$ of $\Gamma \Sequent \Delta, \lexists[x][!B(x)], +!!a{proof}~$\pi_1'$ of $\Gamma \Sequent \Delta, \lexists[x][!B(x)], !B(t)$. (Note that no inversion lemma is needed here!) The !!{proof}~$\pi'$ then is: \[ diff --git a/content/proof-theory/sequent-calculus/proof-examples.tex b/content/proof-theory/sequent-calculus/proof-examples.tex index 5229ee7b..c9590eaa 100644 --- a/content/proof-theory/sequent-calculus/proof-examples.tex +++ b/content/proof-theory/sequent-calculus/proof-examples.tex @@ -87,6 +87,7 @@ \UnaryInf$!D, !C \fCenter !C$ \RightLabel{\RightR{\Weakening}} \UnaryInf$!D, !C \fCenter !E, !C$ +\DisplayProof \] Overall, we have !!a{proof} in \Log{G1c} which looks like this: \[ @@ -197,18 +198,18 @@ \[ \AxiomC{} \RightLabel{$\pi_1$} - \Deduce$!B, \fCenter !B$ + \Deduce$!B \fCenter !B$ \RightLabel{\LeftR{\Weakening}} - \UnaryInf$!B, !C, \fCenter !B$ + \UnaryInf$!B, !C \fCenter !B$ \RightLabel{\LeftR{\land}} \UnaryInf$!B \land !C, !C\fCenter !B$ \RightLabel{\LeftR{\land}} \UnaryInf$!B \land !C, !B \land !C \fCenter !B$ \AxiomC{} \RightLabel{$\pi_2$} - \Deduce$!C, \fCenter !C$ + \Deduce$!C \fCenter !C$ \RightLabel{\LeftR{\Weakening}} - \UnaryInf$!B, !C, \fCenter !C$ + \UnaryInf$!B, !C \fCenter !C$ \RightLabel{\LeftR{\land}} \UnaryInf$!B \land !C, !C \fCenter !C$ \RightLabel{\LeftR{\land}} @@ -294,7 +295,7 @@ \Gamma \Sequent \Delta, !A$ is an axiom of~\Log{G3c}. Now suppose $n>0$. Again we distinguish cases. The inductive -hypothesis is: for all $D!$ with $\depth{!D} < n$, and all $\Pi$ +hypothesis is: for all $!D$ with $\depth{!D} < n$, and all $\Pi$ and $\Lambda$, $\Log{G3c} \Proves !D, \Pi \Sequent \Lambda, !D$. Here is the case for $!A \ident (!B \land !C)$. We use the inductive hypothesis twice: once for $!D = !B$, $\Pi = !C, \Gamma$, and $\Lambda diff --git a/content/proof-theory/sequent-calculus/rules-G1i.tex b/content/proof-theory/sequent-calculus/rules-G1i.tex index 1d799abf..1ec9b4de 100644 --- a/content/proof-theory/sequent-calculus/rules-G1i.tex +++ b/content/proof-theory/sequent-calculus/rules-G1i.tex @@ -1,6 +1,6 @@ % Part: proof-theory % Chapter: sequent-calculus -% Section: rules-G1c +% Section: rules-G1i \documentclass[../../../include/open-logic-section]{subfiles} diff --git a/content/proof-theory/sequent-calculus/rules-G2c.tex b/content/proof-theory/sequent-calculus/rules-G2c.tex index 4fd7a9b5..f29f5b6b 100644 --- a/content/proof-theory/sequent-calculus/rules-G2c.tex +++ b/content/proof-theory/sequent-calculus/rules-G2c.tex @@ -1,6 +1,6 @@ % Part: proof-theory % Chapter: sequent-calculus -% Section: rules-G1c +% Section: rules-G2c \documentclass[../../../include/open-logic-section]{subfiles} diff --git a/content/proof-theory/sequent-calculus/rules-G3c.tex b/content/proof-theory/sequent-calculus/rules-G3c.tex index 614099d3..0bc243fd 100644 --- a/content/proof-theory/sequent-calculus/rules-G3c.tex +++ b/content/proof-theory/sequent-calculus/rules-G3c.tex @@ -54,7 +54,7 @@ \UnaryInf$ \Gamma \fCenter \Delta, !A \lif !B $ \DisplayProof \\[4ex] -\Axiom$ !A(t), \lforall[x][!A(x)]\Gamma \fCenter \Delta$ +\Axiom$ !A(t), \lforall[x][!A(x)], \Gamma \fCenter \Delta$ \RightLabel{\LeftR{\lforall}} \UnaryInf$ \lforall[x][!A(x)],\Gamma \fCenter \Delta$ \DisplayProof diff --git a/content/proof-theory/sequent-calculus/rules-G3i.tex b/content/proof-theory/sequent-calculus/rules-G3i.tex index c7d950c1..9a11c835 100644 --- a/content/proof-theory/sequent-calculus/rules-G3i.tex +++ b/content/proof-theory/sequent-calculus/rules-G3i.tex @@ -1,6 +1,6 @@ % Part: proof-theory % Chapter: sequent-calculus -% Section: rules-G3c +% Section: rules-G3i \documentclass[../../../include/open-logic-section]{subfiles} @@ -61,7 +61,7 @@ \UnaryInf$ \Gamma \fCenter !A \lif !B $ \DisplayProof \\[4ex] -\Axiom$ !A(t), \lforall[x][!A(x)]\Gamma \fCenter \Delta$ +\Axiom$ !A(t), \lforall[x][!A(x)], \Gamma \fCenter \Delta$ \RightLabel{\LeftR{\lforall}} \UnaryInf$ \lforall[x][!A(x)],\Gamma \fCenter \Delta$ \DisplayProof diff --git a/content/proof-theory/sequent-calculus/rules-LK.tex b/content/proof-theory/sequent-calculus/rules-LK.tex index be3f4a1b..eff042b3 100644 --- a/content/proof-theory/sequent-calculus/rules-LK.tex +++ b/content/proof-theory/sequent-calculus/rules-LK.tex @@ -122,7 +122,7 @@ $\LeftR{\exists}$, the !!{constant}~$a$ must not occur in the conclusion sequent. $\Gamma$, $\Delta$, and~$\Pi$ are sequences of !!{formula}s.} -\ollabel{tab:G1c} +\ollabel{tab:LK} \end{table} \end{document} \ No newline at end of file diff --git a/content/proof-theory/sequent-calculus/rules-mG3i.tex b/content/proof-theory/sequent-calculus/rules-mG3i.tex index a6ad463a..980690b0 100644 --- a/content/proof-theory/sequent-calculus/rules-mG3i.tex +++ b/content/proof-theory/sequent-calculus/rules-mG3i.tex @@ -1,6 +1,6 @@ % Part: proof-theory % Chapter: sequent-calculus -% Section: rules-G3c +% Section: rules-mG3i \documentclass[../../../include/open-logic-section]{subfiles} @@ -54,7 +54,7 @@ \UnaryInf$ \Gamma \fCenter \Delta, !A \lif !B $ \DisplayProof \\[4ex] -\Axiom$ !A(t), \lforall[x][!A(x)]\Gamma \fCenter \Delta$ +\Axiom$ !A(t), \lforall[x][!A(x)], \Gamma \fCenter \Delta$ \RightLabel{\LeftR{\lforall}} \UnaryInf$ \lforall[x][!A(x)],\Gamma \fCenter \Delta$ \DisplayProof diff --git a/content/proof-theory/sequent-calculus/translations.tex b/content/proof-theory/sequent-calculus/translations.tex index 2b2a98ac..841fc52c 100644 --- a/content/proof-theory/sequent-calculus/translations.tex +++ b/content/proof-theory/sequent-calculus/translations.tex @@ -91,7 +91,7 @@ \RightLabel{\RightR{\lor}} \UnaryInf$\Gamma \fCenter \Delta, !A \lor !B, !B$ \RightLabel{\RightR{\lor}} - \UnaryInf$\Gamma \fCenter \Delta, , !A \lor !B, !A \lor !B$ + \UnaryInf$\Gamma \fCenter \Delta, !A \lor !B, !A \lor !B$ \RightLabel{\RightR{\Contraction}} \UnaryInf$\Gamma \fCenter \Delta, !A \lor !B$ \DisplayProof