Skip to content

Commit

Permalink
add convention to drop outermost perens in pl/syn/formulas.tex; impro…
Browse files Browse the repository at this point in the history
…ve statement of induction on terms and formulas in fol/syn/terms-formulas.tex
  • Loading branch information
rzach committed Jan 2, 2024
1 parent 4da084f commit ce0fbd0
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
consistent. We do this so that for every $!A$, either $!A$ or $\lnot
!A$ gets added at some stage. The union of all stages in that
construction then contains either $!A$ or its negation~$\lnot !A$ and
is thus complete. It is also consistent, since we made sure at each
is thus complete. It is also consistent, since we make sure at each
stage not to introduce an inconsistency.
\end{explain}

Expand Down
32 changes: 16 additions & 16 deletions content/first-order-logic/syntax-and-semantics/terms-formulas.tex
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@
symbols~$!A$ is the same string as the one obtained by concatenating
an opening parenthesis, the string $!B$, the $\lor$ symbol, the
string~$!C$, and a closing parenthesis, in this order. If this is the
case, then we know that the first symbol of $!A$ is an opening
case, then we know that the first symbol of~$!A$ is an opening
parenthesis, $!A$ contains $!B$ as a substring (starting at the second
symbol), that substring is followed by $\lor$, etc.
symbol), that substring is followed by~$\lor$, etc.

As terms and !!{formula}s are built up from basic elements via inductive
definitions, we can use the following induction principles to prove
Expand All @@ -189,18 +189,19 @@
\begin{lem}[\emph{Principle of induction on terms}]
\ollabel{lem:trmind}
Let $\Lang L$ be a first-order language.
If some property~$P$ holds in all of the following cases,
then $P(t)$ for every $t \in \Trm[L]$.
If some property~$P$ is such that
%
\begin{enumerate}
\item $P(v)$ for every variable $v$,
\item it holds for every !!{variable}~$v$,
%
\item $P(a)$ for every constant symbol $a$ of $\Lang L$,
\item it holds for every !!{constant}~$a$ of~$\Lang L$, and
%
\item If $t_1,\dotsc,t_n \in \Trm[L]$, $f$ is an $n$-place
function symbol of $\Lang L$, and $P(t_1),\dotsc,P(t_n)$,
then $P(f(t_1,\dotsc,t_n))$.
\item it holds for $f(t_1,\dotsc,t_n)$ whenever it holds for
$t_1$,~\dots, $t_n$ and $f$~is an $n$-place
!!{function} of~$\Lang L$
\end{enumerate}
(assuming $t_1$,~\dots, $t_n$ are terms of~$\Lang{L}$),
then $P$ holds for every term in~$\Trm[L]$.
\end{lem}

\begin{prob}
Expand All @@ -214,7 +215,6 @@
and is such that
%
\begin{enumerate}
\item $!A$ is an atomic formula.
\tagitem{prvNot}{it holds for $\lnot !A$ whenever it
holds for~$!A$;}{}
\tagitem{prvAnd}{it holds for $(!A \land !B)$
Expand All @@ -225,13 +225,13 @@
whenever it holds for $!A$ and~$!B$;}{}
\tagitem{prvIff}{it holds for $(!A \liff !B)$
whenever it holds for $!A$ and~$!B$;}{}
\tagitem{prvEx}{it holds for $\lexists[x]!A$
whenever it holds for $!A$;}{}
\tagitem{prvAll}{it holds for $\lforall[x]!A$
whenever it holds for $!A$;}{}
\tagitem{prvEx}{it holds for $\lexists[x][!A]$
whenever it holds for~$!A$;}{}
\tagitem{prvAll}{it holds for $\lforall[x][!A]$
whenever it holds for~$!A$;}{}
\end{enumerate}
%
then $P$ holds for all formulas $!A \in \Frm[L]$.
(assuming $!A$ and $!B$ are !!{formula}s of~$\Lang{L}$),
then $P$ holds for all formulas in~$\Frm[L]$.
\end{lem}

\end{document}
4 changes: 4 additions & 0 deletions content/propositional-logic/syntax-and-semantics/formulas.tex
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@
stage, and nothing else.
\end{explain}

When writing a formula $(!B \ast !C)$ constructed from $!B$, $!C$
using a two-place connective~$\ast$, we will often leave out the
outermost pair of parentheses and write simply~$!B \ast !C$.

\begin{tagblock}{defNot,defOr,defAnd,defIf,defIff,defTrue,defFalse,defEx,defAll}
\begin{defn}
Formulas constructed using the defined operators are to be understood
Expand Down
2 changes: 1 addition & 1 deletion doc
Submodule doc updated from dd6977 to b46686

0 comments on commit ce0fbd0

Please sign in to comment.