← all subjects

Logic

Logic makes proof itself the object of study. It fixes a formal language, a precise notion of truth, and rules of inference — then asks what those rules can reach and where they must stop.

FIG_002
PP
QQ
PQP \to Q
TTFFTFTFTFTT
Propositional semantics: a truth table computing a connective, filled column by column.

Propositional logic comes first. A handful of connectives — and, or, not, implies — combine atoms into formulas, and a truth table settles every question about them by brute enumeration.

Two views run in parallel. Syntax is the game of symbols and inference rules; semantics is what those symbols mean once you interpret them. Keeping the two apart is the whole discipline.

FIG_003
M
aa
bb
cc
Mxy  R(x,y)\mathcal{M} \models \forall x\, \exists y\; R(x, y)
A structure interprets a language: a domain and its relations, made to satisfy a first-order sentence.

First-order logic adds quantifiers. With for all and there exists ranging over a domain, the language can finally state real mathematics — orderings, arithmetic, the theory of a structure.

The soundness and completeness theorems then tie the two views together: a sentence is provable exactly when it is true in every model. Deduction and truth turn out to be the same reach.

FIG_004
PQP \lor Q
¬PR\lnot P \lor R
¬QR\lnot Q \lor R
¬R\lnot R
QRQ \lor R
RR
\htmlClass{fm-accent}{\bot}
Resolution: clauses resolved pairwise on complementary literals, cascading to the empty clause ⊥.
FIG_001
PQP \to Q
PP
QRQ \to R
E{\to}\mathrm{E}
QQ
E{\to}\mathrm{E}
R\htmlClass{fm-accent}{R}
A natural-deduction proof tree: premises at the leaves, each inference bar discharging them toward the conclusion.

That equivalence makes proof mechanical. Resolution refutes an unsatisfiable set by resolving clauses until it derives the empty clause — a contradiction — which is the engine underneath automated theorem provers.

But mechanising proof runs into a wall. Validity in first-order logic is undecidable, and once a theory can talk about its own arithmetic, it can talk about its own provability.

FIG_005
G    ¬Prov(G)G \;\equiv\; \lnot\,\mathrm{Prov}(\ulcorner G \urcorner)
"this sentence is unprovable"
The Gödel sentence: a formula that, by self-reference, asserts its own unprovability.

Gödel's incompleteness theorems close the subject: any consistent theory strong enough for arithmetic has true sentences it cannot prove, and it can never prove its own consistency — the boundary logic set for itself.

Contents.

·
Progress.░░░░░░░░░░░░░░░░░░
Articles done:0 / 32
Complete:0%
Notes written:0
Highlights:0