1. Formal logic. formal system은 다음 4가지로 구성된다:
- alphabet: a set of symbols
- a set of formulas
- a set of axioms
- rules of inference.
2.1 Propositional logic. propositional logic의 formal system은 다음 4가지로 구성된다:
- alphabet: propositional variables, connectives
- a set of formulas
- a set of axioms
- the rule of inference: Modus Ponens, $\phi$와 $(\phi\rightarrow \psi)$로부터 $\psi$를 추론할 수 있다.
$\sum$이 a set of formulas이고 $\phi$가 $\sum$의 theorem일 때
\[\sum \vdash \phi\]로 적는다.
2.2 Semantics of propositional logic. 어떤 propositional variable들에 대해 truth value를 알고 있다면 그것들을 결합하여 만든 formula들의 truth value를 알 수 있다. 임의의 valuation $v$에 대하여 $v(\phi)=\mathrm T$일 때 $\phi$를 tautology라 하고, 임의의 valuation $v$에 대하여 $v(\phi)=\mathrm F$일 때 $\phi$를 contradiction이라 한다.
Let $\sum$ be a set of formulas. We say that a formula $\phi$ is a logical consequence of $\sum$ and write
if $v(\phi)=\mathrm T$ for all valuation $v$ such that $v(\sigma)=\mathrm T$ for all $\sigma\in \sum$.
3.1 First-order logic.
- language $\mathcal L$
- unique symbols: function symbols, relation symbols, constant symbols,
- common symbols: variables, connectives, equality, quantifiers, parentheses, comma
- $\mathcal L$-terms, atomic $\mathcal L$-formulas, $\mathcal L$-formulas
- 9 axioms
- rules of inference
Conjunction introduction
\[\frac{A \qquad B}{A \land B}\]Conjunction elimination
\[\frac{A \land B}{A}\] \[\frac{A \land B}{B}\]Disjunction introduction
\[\frac{A}{A \lor B}\] \[\frac{B}{A \lor B}\]Disjunction elimination
\[\frac{A \lor B \qquad [A] \vdots C \qquad [B] \vdots C}{C}\]Implication introduction
\[\frac{[A] \vdots B}{A \to B}\]Implication elimination
\[\frac{A \to B \qquad A}{B}\]Negation introduction
\[\frac{[A] \vdots \bot}{\neg A}\]Negation elimination
\[\frac{A \qquad \neg A}{\bot}\]Bottom elimination
\[\frac{\bot}{A}\]Biconditional introduction
\[\frac{A \to B \qquad B \to A}{A \leftrightarrow B}\]Biconditional elimination
\[\frac{A \leftrightarrow B}{A \to B}\] \[\frac{A \leftrightarrow B}{B \to A}\]Universal introduction
\[\frac{A(a)}{\forall x A(x)}\]단, ($a$)는 arbitrary variable이어야 한다.
Universal elimination
\[\frac{\forall x A(x)}{A(t)}\]Existential introduction
\[\frac{A(t)}{\exists x A(x)}\]Existential elimination
\[\frac{\exists x A(x) \qquad [A(a)] \vdots B}{B}\]단, ($a$)는 fresh variable이어야 하며, ($B$)에 자유변수로 남으면 안 된다.
Equality introduction
\[\frac{}{t = t}\]Equality elimination
\[\frac{s = t \qquad A(s)}{A(t)}\]Double negation elimination
\[\frac{\neg \neg A}{A}\]Law of excluded middle
\[A \lor \neg A\]Proof by contradiction
\[\frac{[\neg A] \vdots \bot}{A}\]
3.2 Semantics of first-order logic