Propositional & Predicate Logic

A rigorous bridge from formula syntax to valuations, first-order structures, semantic consequence, and formal derivation—with countermodels and scope discipline as the main tools for avoiding false reasoning.

Formal logic works because it refuses to blur three different questions: is this a well-formed expression, what makes it true, and can it be derived by stated rules? Propositional logic answers those questions when whole statements can be treated as indivisible atoms. First-order predicate logic opens the atoms and lets us reason about objects, properties, relations, identity, and quantification. The payoff is not notation for its own sake: it is a disciplined way to find exactly where an inference can fail.

This entry uses classical two-valued logic and standard first-order logic with identity, nonempty domains, and denoting constants. Other logics deliberately change some of these choices, so every theorem below is relative to this declared system.

Three layers that must stay separate #

Syntax
The alphabet, formation rules, and parse tree that determine which expressions are formulas.
Semantics
A mathematical account of truth: valuations for propositional formulas, and structures plus variable assignments for first-order formulas.
Proof theory
A calculus whose rules determine which formulas may be derived from which assumptions.

The layers cooperate, but none defines the others:

The horizontal distinction is the important one. A truth table does not constitute a natural-deduction proof, and a sequence of symbols is not a proof merely because its conclusion happens to be true.

Validity preserves truth; it does not assert that the premises are actually true. A valid argument may start from a false premise. Conversely, an argument whose conclusion happens to be true may still be invalid if there is some admissible situation in which its premises are true and its conclusion false.

Propositional syntax: formulas are trees #

Let p,q,r,…p,q,r,\ldots be propositional atoms. A formula φ\varphi is generated inductively:

φ::=p∣¬φ∣(φ∧φ)∣(φ∨φ)∣(φ→φ)∣(φ↔φ).\varphi ::= p \mid \neg\varphi \mid (\varphi\land\varphi) \mid (\varphi\lor\varphi) \mid (\varphi\to\varphi) \mid (\varphi\leftrightarrow\varphi).

The final clause is implicit but essential: nothing else is a formula. This makes formation decidable by parsing and gives every compound formula an immediate decomposition. For example,

¬P∨(Q∧R)\neg P\lor(Q\land R)

has ∨\lor as its main connective when the usual precedence convention is in force. Its left subtree is ¬P\neg P and its right subtree is Q∧RQ\land R. The written line is only a compact serialization of that tree.

Parentheses prevent a change of tree:

  • ¬(P∧Q)\neg(P\land Q) denies that both hold;
  • (¬P)∧Q(\neg P)\land Q asserts that PP fails while QQ holds;
  • (P→Q)→R(P\to Q)\to R and P→(Q→R)P\to(Q\to R) are different formulas and are not equivalent.

The inductive syntax is more than a grammar. It licenses structural recursion: define a property for atoms, then define it for a compound from the corresponding properties of its immediate subformulas. Formula evaluation, substitution, size, subformula collection, and structural induction all use this same decreasing tree.

Propositional semantics: truth flows up the tree #

A valuation vv assigns each propositional atom either T\mathsf{T} or F\mathsf{F}. The assignment extends recursively:

Formula It is true exactly when…
¬φ\neg\varphi φ\varphi is false
φ∧ψ\varphi\land\psi both operands are true
φ∨ψ\varphi\lor\psi at least one operand is true
φ→ψ\varphi\to\psi the antecedent is false or the consequent is true
φ↔ψ\varphi\leftrightarrow\psi both operands have the same truth value

Material implication is false in exactly one local state: a true antecedent and a false consequent. This explains several facts that otherwise look like arbitrary rules:

φ→ψ≡¬φ∨ψ≡¬ψ→¬φ.\varphi\to\psi \equiv \neg\varphi\lor\psi \equiv \neg\psi\to\neg\varphi.

The last formula is the contrapositive. The converse, ψ→φ\psi\to\varphi, is generally different.

Material implication models a truth condition, not causation or time. “If the build passes, the deployment starts” may be intended as a policy, a causal claim, or a temporal guarantee. Symbolization is correct only after that intended relation has been made explicit.

Truth tables enumerate finite propositional models #

If a formula contains nn distinct atoms, it has 2n2^n relevant valuations. A complete truth table evaluates the formula under every one, so it can decide propositional validity, satisfiability, equivalence, and consequence.

Consider three atoms:

  • BB: a badge is accepted;
  • OO: an operator override is active;
  • UU: the door unlocks.

The formula (B∨O)→U(B\lor O)\to U says that accepted authorization is sufficient for unlocking. The converse U→(B∨O)U\to(B\lor O) says that authorization is necessary for unlocking.

BB OO UU (B∨O)→U(B\lor O)\to U U→(B∨O)U\to(B\lor O)
T T T T T
T T F F T
T F T T T
T F F F T
F T T T T
F T F F T
F F T T F
F F F T T

The seventh row is a countervaluation to the converse: the door is unlocked with neither stated authorization. It also exposes a requirements error. The original implication does not prohibit unauthorized unlocking; it only requires unlocking when authorization is present. If the intended policy is both directions, use U↔(B∨O)U\leftrightarrow(B\lor O).

The basic semantic classifications are different questions over table rows:

Tautology
True under every valuation.
Contradiction / unsatisfiable formula
False under every valuation.
Contingent formula
True under some valuations and false under others.
Logical equivalence
Two formulas have the same truth value under every valuation.
Joint consistency
There is at least one valuation making all formulas in the set true.

For a finite set of propositional premises, consequence has a simple diagnostic row condition:

Γ⊨φ⟺no row makes every γ∈Γ true and φ false.\Gamma\vDash\varphi \quad\Longleftrightarrow\quad \text{no row makes every }\gamma\in\Gamma\text{ true and }\varphi\text{ false}.

Truth tables are decisive, but not magically cheap. Doubling the number of atoms squares the row count: 10 atoms need 1,024 rows; 20 need 1,048,576. Decidable by exhaustive enumeration does not mean operationally convenient.

Normal forms expose truth conditions #

A literal is an atom or its negation. A formula is in:

  • disjunctive normal form (DNF) when it is a disjunction of conjunctions of literals;
  • conjunctive normal form (CNF) when it is a conjunction of disjunctions of literals.

A canonical DNF can be built from satisfying table rows: for each row, conjoin the literals that describe that valuation, then disjoin the row terms. Canonical CNF is dual: for each falsifying row, construct a clause false exactly on that row, then conjoin the clauses.

For exclusive-or of PP and QQ:

(P∧¬Q)∨(¬P∧Q)≡(P∨Q)∧(¬P∨¬Q).(P\land\neg Q)\lor(\neg P\land Q) \equiv (P\lor Q)\land(\neg P\lor\neg Q).

The left is DNF; the right is CNF. They are two representations of the same truth function. Canonical conversion can grow exponentially, so normal form is not automatically a compression or optimization.

Why first-order logic is a genuine extension #

Propositional logic treats “Mira owns device 1” and “Noah owns device 2” as unrelated atoms. It cannot express that the same relation connects different objects, or quantify over all devices. First-order logic adds internal structure.

A first-order signature declares nonlogical symbols and their arities:

  • constant symbols such as aa;
  • nn-ary function symbols such as ff;
  • nn-ary predicate symbols such as PP or RR;
  • identity ==.

Terms name or compute objects:

t::=x∣c∣f(t1,…,tn).t ::= x \mid c \mid f(t_1,\ldots,t_n).

Atomic formulas assert predicates or identity:

P(t1,…,tn)ort1=t2.P(t_1,\ldots,t_n) \qquad\text{or}\qquad t_1=t_2.

Formulas then close under the propositional connectives and quantifiers:

∀x φand∃x φ.\forall x\,\varphi \qquad\text{and}\qquad \exists x\,\varphi.

Arity and argument order are semantic commitments. If Owns(x,y)Owns(x,y) means “xx owns yy,” then Owns(m,d)Owns(m,d) and Owns(d,m)Owns(d,m) need not agree.

Scope, binding, and safe substitution #

A quantifier binds occurrences of its variable inside its scope. Occurrences outside that scope are free. Binding is about occurrences, not merely variable names:

P(x)∧∃x Q(x)P(x)\land\exists x\,Q(x)

contains a free occurrence of xx in P(x)P(x) and a bound occurrence in Q(x)Q(x). A formula with no free variable occurrences is a sentence or closed formula.

Quantifier order matters:

∀x ∃y R(x,y)\forall x\,\exists y\,R(x,y)

allows the witness yy to depend on xx, while

∃y ∀x R(x,y)\exists y\,\forall x\,R(x,y)

requires one common witness for every xx.

Substitution must respect binding. Suppose

φ(x)=∃y Owns(y,x).\varphi(x)=\exists y\,Owns(y,x).

Naively replacing xx with the variable yy produces ∃y Owns(y,y)\exists y\,Owns(y,y): the formerly free yy has been captured by the quantifier. Rename the bound variable first:

∃z Owns(z,x)⟹∃z Owns(z,y).\exists z\,Owns(z,x) \quad\Longrightarrow\quad \exists z\,Owns(z,y).

The Open Logic substitution module gives this guarded, partial operation explicitly. It does not by itself define the stronger total algorithm that first alpha-renames obstructing binders. Alpha-renaming a bound variable changes notation, not meaning, provided the fresh name does not capture anything: ∀x P(x)\forall x\,P(x) and ∀z P(z)\forall z\,P(z) are equivalent.

Structures give the symbols meaning #

Syntax alone leaves aa, ff, and RR uninterpreted. In the single-sorted Open Logic structure contract, a structure M\mathcal M for a signature supplies:

  1. a nonempty domain DD;
  2. an element cM∈Dc^{\mathcal M}\in D for each constant cc;
  3. a total function fM:Dn→Df^{\mathcal M}:D^n\to D for each nn-ary function symbol;
  4. a relation RM⊆DnR^{\mathcal M}\subseteq D^n for each nn-ary predicate;
  5. ordinary equality on DD for identity.

A variable assignment ss maps every variable to a domain element. Term values are recursive:

ValsM(c)=cM,ValsM(x)=s(x),ValsM(f(t1,…,tn))=fM(ValsM(t1),…,ValsM(tn)).\begin{aligned} \mathop{\mathrm{Val}}^{\mathcal M}_s(c) &= c^{\mathcal M},\\ \mathop{\mathrm{Val}}^{\mathcal M}_s(x) &= s(x),\\ \mathop{\mathrm{Val}}^{\mathcal M}_s(f(t_1,\ldots,t_n)) &=f^{\mathcal M}(\mathop{\mathrm{Val}}^{\mathcal M}_s(t_1),\ldots, \mathop{\mathrm{Val}}^{\mathcal M}_s(t_n)). \end{aligned}

Satisfaction, written M,s⊨φ\mathcal M,s\vDash\varphi, follows the formula tree. Atomic predicates inspect relation membership; connectives use the classical clauses. Quantifiers change one assigned variable at a time. If s[x↦d]s[x\mapsto d] agrees with ss except that it maps xx to dd, then:

M,s⊨∀x φ⟺for every d∈D, M,s[x↦d]⊨φ,M,s⊨∃x φ⟺for some d∈D, M,s[x↦d]⊨φ.\begin{aligned} \mathcal M,s\vDash\forall x\,\varphi &\Longleftrightarrow \text{for every }d\in D,\ \mathcal M,s[x\mapsto d]\vDash\varphi,\\ \mathcal M,s\vDash\exists x\,\varphi &\Longleftrightarrow \text{for some }d\in D,\ \mathcal M,s[x\mapsto d]\vDash\varphi. \end{aligned}

This assignment machinery is necessary because a domain element need not have a constant symbol naming it. Quantifiers range over objects, not over the written names available in the language.

For a sentence, all variable occurrences are bound. Its truth therefore does not depend on the initial assignment: every relevant variable value is supplied by a quantifier. This can be proved by structural induction; the stronger induction statement says that satisfaction depends only on assignments to variables free in the formula.

A finite model makes quantifier order visible #

Use one domain containing both people and devices:

D={mira,noah,d1,d2}.D=\{\text{mira},\text{noah},d_1,d_2\}.

Interpret predicates as:

PersonM={mira,noah},DeviceM={d1,d2},OwnsM={(mira,d1),(noah,d2)}.\begin{aligned} Person^{\mathcal M}&=\{\text{mira},\text{noah}\},\\ Device^{\mathcal M}&=\{d_1,d_2\},\\ Owns^{\mathcal M}&=\{(\text{mira},d_1),(\text{noah},d_2)\}. \end{aligned}

Now compare:

∀x(Device(x)→∃y(Person(y)∧Owns(y,x)))(1)\forall x\bigl(Device(x)\to \exists y(Person(y)\land Owns(y,x))\bigr) \tag{1}

and

∃y(Person(y)∧∀x(Device(x)→Owns(y,x))).(2)\exists y\bigl(Person(y)\land \forall x(Device(x)\to Owns(y,x))\bigr). \tag{2}

Sentence (1) is true: for d1d_1, choose Mira; for d2d_2, choose Noah. The witness may change with xx. Sentence (2) is false: neither person owns both devices. The formulas differ only in dependency structure, but that is exactly what quantifier order expresses.

The predicates Person and Device are guards because this is single-sorted FOL. Without Device(x)\to, the universal would assert the ownership condition for people as well as devices.

Translation patterns follow from semantics #

Patterns are useful only when their truth conditions are understood:

Controlled statement Formula Why this connective?
Every PP is a QQ ∀x(P(x)→Q(x))\forall x(P(x)\to Q(x)) Non-PP objects do not violate the claim
Some PP is a QQ ∃x(P(x)∧Q(x))\exists x(P(x)\land Q(x)) One object must satisfy both properties
No PP is a QQ ∀x(P(x)→¬Q(x))\forall x(P(x)\to\neg Q(x)) Equivalent to ¬∃x(P(x)∧Q(x))\neg\exists x(P(x)\land Q(x))
Exactly one PP exists ∃x(P(x)∧∀y(P(y)→y=x))\exists x(P(x)\land\forall y(P(y)\to y=x)) Existence plus uniqueness by identity
Every PP relates to some QQ ∀x(P(x)→∃y(Q(y)∧R(x,y)))\forall x(P(x)\to\exists y(Q(y)\land R(x,y))) The witness may depend on the selected PP

The universal conditional is vacuously true when there are no PP objects. That is not a loophole; it reflects that “every P is Q” makes no existence assertion. Add ∃xP(x)\exists xP(x) if existence is part of the requirement.

Quantifier negation is also semantic, not a symbol-shuffling trick:

¬∀x P(x)≡∃x ¬P(x),¬∃x P(x)≡∀x ¬P(x).\neg\forall x\,P(x)\equiv\exists x\,\neg P(x), \qquad \neg\exists x\,P(x)\equiv\forall x\,\neg P(x).

“Not every request succeeded” means at least one failed; it does not mean every request failed.

Models, theories, and countermodels #

A structure is a model of a sentence when it satisfies it, and a model of a theory TT when it satisfies every sentence in TT. The semantic notions lift from propositional valuations to all first-order structures:

  • φ\varphi is satisfiable if some structure and assignment satisfy it;
  • a sentence is valid if every structure satisfies it;
  • Γ⊨φ\Gamma\vDash\varphi if every structure and variable assignment satisfying every formula in Γ\Gamma also satisfies φ\varphi; when Γ\Gamma and φ\varphi are sentences, the assignment is irrelevant and this reduces to the usual model formulation.

This distinction defeats a common error: truth in one intended structure is not logical validity. The sentence “every device has an owner” may be true in the model above, but another perfectly admissible structure can make it false.

Consider the inference

∀x(P(x)→Q(x)),∃xQ(x)∴∃xP(x).\forall x(P(x)\to Q(x)),\quad \exists xQ(x) \quad\therefore\quad \exists xP(x).

It is invalid. Take D={a,b}D=\{a,b\}, PM=∅P^{\mathcal M}=\varnothing, and QM={a}Q^{\mathcal M}=\{a\}. The universal premise is vacuously true, the existential premise is true, and the conclusion is false. This is predicate-level affirming the consequent.

A formal theory fixes the syntactic game #

A convenient presentation of a formal deductive theory is a triple

D=(L,Ax,R),\mathcal D=(\mathcal L,\mathsf{Ax},\mathsf R),

where:

  1. L\mathcal L specifies the alphabet, finite expressions, and formation rules;
  2. Ax\mathsf{Ax} is a set of axioms or axiom schemata in that language;
  3. R\mathsf R is a set of inference rules, including every side condition that controls their use.

The axioms need not be a finite list: they may be given by finitely many schemata or as another specified set. Whether axiom instances and rule applications are effectively recognizable is an additional computational property. Nor are axioms automatically “truths.” The triple first defines a syntactic object; an interpretation and a soundness theorem are needed before its derivations acquire a truth-preservation guarantee.

A derivation from assumptions Γ\Gamma is a finite sequence or finite proof tree in which every line is an assumption from Γ\Gamma, an axiom instance, or the result of an allowed rule applied to earlier lines. A theorem is a formula with a derivation from no undischarged assumptions. Thus the theorem set is generated by the presentation:

Th(D)={φ∣∅⊢Dφ}.\mathop{\mathrm{Th}}(\mathcal D) =\{\varphi\mid \varnothing\vdash_{\mathcal D}\varphi\}.

Some texts use “theory” instead for a set TT of sentences, often one already closed under consequence. Context must therefore reveal whether TT names premises to be modelled, or D\mathcal D names the language-and-rules machinery that generates proofs.

Derivability and consequence are different relations #

A proof system gives local inference rules. For example, implication elimination (modus ponens) is:

φφ→ψψ.\frac{\varphi\qquad\varphi\to\psi}{\psi}.

From premises P→QP\to Q and PP, a three-line derivation records both premises and derives QQ by that rule. More complex natural-deduction systems use subproofs: assume a formula temporarily, derive a consequence, then discharge the assumption under an introduction rule.

Quantifier rules need side conditions. To infer a universal statement, the chosen object must be genuinely arbitrary; it cannot depend on a special undischarged assumption. To instantiate a universal, the substituted term must be free for the bound variable. These restrictions are what make the rules preserve meaning.

Write Γ⊢Dφ\Gamma\vdash_{\mathcal D}\varphi when a derivation exists in the selected calculus. This is a finite syntactic certificate and can change when the calculus changes; in an effective calculus, a proposed certificate is mechanically checkable. By contrast, Γ⊨φ\Gamma\vDash\varphi quantifies over models and does not mention proof rules. For a standard classical natural-deduction calculus, two separate metatheorems connect the relations:

Γ⊢Dφ⟹Γ⊨φ⏟soundness,Γ⊨φ⟹Γ⊢Dφ⏟semantic completeness.\underbrace{\Gamma\vdash_{\mathcal D}\varphi \Longrightarrow\Gamma\vDash\varphi}_{\text{soundness}}, \qquad \underbrace{\Gamma\vDash\varphi \Longrightarrow\Gamma\vdash_{\mathcal D}\varphi}_{\text{semantic completeness}}.

Soundness says the calculus cannot certify a semantic counterexample. Completeness says semantic consequence is not stronger than what the calculus can prove. These are properties to establish for a specified language, semantics, and calculus—not definitions that make axioms true by decree.

The definition of consequence does not require satisfiable premises. If no model satisfies every member of Γ\Gamma, then Γ⊨φ\Gamma\vDash\varphi holds vacuously for every φ\varphi. Standard classical calculi mirror this through explosion, but the resulting argument says nothing informative about which conclusion holds in an intended real-world model; it exposes an inconsistent premise set.

The craft of direct proof, contradiction, contrapositive, and induction belongs in Proof Techniques & Induction. Here the essential point is the contract between a formal derivation and semantics.

Resolution turns consequence into refutation #

Resolution works with clauses. Treat a clause as a finite set of literals, interpreted as their disjunction. Repeated literals therefore disappear, order is irrelevant, and the empty clause □\square is the empty disjunction—false under every valuation. A clause set SS is interpreted conjunctively:

v⊨S⟺∀C∈S: v⊨C.v\vDash S \quad\Longleftrightarrow\quad \forall C\in S:\ v\vDash C.

The empty set of clauses is therefore true under every valuation, while a clause set containing the empty clause is unsatisfiable. Confusing those two empty objects reverses the meaning of a refutation.

For propositional clauses, choose a pivot atom AA that occurs positively in one parent and negatively in the other. If the parents are written as C∪{A}C\cup\{A\} and D∪{¬A}D\cup\{\neg A\}, the binary resolution rule is exactly

C∪{A}D∪{¬A}C∪D.\frac{C\cup\{A\}\qquad D\cup\{\neg A\}} {C\cup D}.

The chosen complementary pair is removed and the remainders are united. If the resolvent contains both some atom and its negation, it is a tautological clause and contributes no constraint.

The rule is sound. Let a valuation satisfy both parents. If it makes AA false, the first parent can be true only through some literal in CC; if it makes AA true, the second parent can be true only through some literal in DD. In either case it satisfies C∪DC\cup D. Adding a resolvent therefore cannot destroy any model of the current clause set, and deriving □\square certifies that the original set had no model.

Refutation workflow #

To prove a finite propositional consequence Γ⊨φ\Gamma\vDash\varphi:

  1. Add the failure case ¬φ\neg\varphi to the premises.
  2. Convert Γ∪{¬φ}\Gamma\cup\{\neg\varphi\} to a clause set. Equivalence-preserving CNF conversion is sufficient; a transformation that is only equisatisfiable is also sufficient for refutation, but it does not license claiming that the transformed formula is logically equivalent to the original.
  3. Repeatedly add sound resolvents, recording both parent clauses and the pivot literal.
  4. Derive □\square. Then Γ∪{¬φ}\Gamma\cup\{\neg\varphi\} is unsatisfiable, so no countervaluation to Γ⊨φ\Gamma\vDash\varphi exists.

A Tseitin-style conversion illustrates the distinction in step 2. It introduces a fresh atom pψp_\psi for a subformula ψ\psi, adds clauses constraining pψ↔ψp_\psi\leftrightarrow\psi, and asserts the atom naming the root. Every model of the original formula extends to a model of the new clause set, and projecting every model of that clause set onto the original atoms recovers a model of the original. That is equisatisfiability across vocabularies, not ordinary equivalence under one unchanged valuation space.

The logical reduction behind the procedure is

Γ⊨φ⟺Γ∪{¬φ} is unsatisfiable.\Gamma\vDash\varphi \quad\Longleftrightarrow\quad \Gamma\cup\{\neg\varphi\}\text{ is unsatisfiable}.

Worked refutation: a three-step implication chain #

Prove

(P→Q),(Q→R),P⊨R.(P\to Q),(Q\to R),P\vDash R.

Clausify the premises and add the negated goal:

ID Clause Origin
C1C_1 ¬P∨Q\neg P\lor Q P→QP\to Q
C2C_2 ¬Q∨R\neg Q\lor R Q→RQ\to R
C3C_3 PP premise
C4C_4 ¬R\neg R negated goal

Now resolve while preserving the proof trace:

C5=¬Qres(C2,C4;R),C6=¬Pres(C1,C5;Q),C7=□res(C3,C6;P).\begin{aligned} C_5&=\neg Q && \mathop{\mathrm{res}}(C_2,C_4;R),\\ C_6&=\neg P && \mathop{\mathrm{res}}(C_1,C_5;Q),\\ C_7&=\square && \mathop{\mathrm{res}}(C_3,C_6;P). \end{aligned}

The last line is not merely “a contradiction appeared.” It is a checkable certificate: every possible valuation satisfying the four input clauses would also have to satisfy each sound resolvent, but no valuation satisfies □\square. Hence the premises semantically entail RR.

Propositional resolution is refutation-complete:

S is unsatisfiable⟺S⊢res□S\text{ is unsatisfiable} \quad\Longleftrightarrow\quad S\vdash_{\mathrm{res}}\square

for a finite propositional clause set SS. This is narrower than saying that any sequence of resolution choices will find the refutation. A search is fair when every eligible inference whose parents remain available is eventually considered, unless a sound redundancy rule makes it unnecessary. A clause set is saturated when every possible nonredundant resolvent is already present or redundant.

With nn propositional atoms there are at most 3n3^n non-tautological set-clauses: each atom is absent, positive, or negative. Exhaustive closure therefore terminates after duplicate and tautology removal. If that saturated closure contains no □\square, refutation completeness licenses the conclusion that the clause set is satisfiable. Stopping one branch, reaching one nonempty clause, or merely failing to notice another resolvable pair licenses no such conclusion. For example, doing nothing useful with the unit clause {Q}\{Q\} in the clause set {{P},{¬P},{Q}}\{\{P\},\{\neg P\},\{Q\}\} does not erase the immediate refutation between {P}\{P\} and {¬P}\{\neg P\}.

First-order resolution crosses the unification boundary #

The propositional rule matches complementary atoms literally. First-order clauses contain variables and terms, so literals may become complementary only after substitution. For example, the atoms P(x)P(x) and P(f(a))P(f(a)) have most-general unifier

θ={x↦f(a)}.\theta=\{x\mapsto f(a)\}.

Applying θ\theta to the entire parents before deleting the pivot turns

{P(x),Q(x)},{¬P(f(a)),R(a)}\{P(x),Q(x)\}, \qquad \{\neg P(f(a)),R(a)\}

into a resolvent {Q(f(a)),R(a)}\{Q(f(a)),R(a)\}. Variables in different parent clauses must first be standardized apart. A candidate substitution must also pass the occurs check: xx cannot denote the finite term f(x)f(x). Robinson's original resolution calculus makes this combination of substitution, most-general unification, and clause resolution explicit.

This extra machinery is not optional decoration. A complete first-order resolution calculus must state its clausification, Skolemization, variable-renaming, unification, and factoring conventions. Factoring unifies same-sign literals within one clause and retains one common instance. For example, factoring

{P(x),P(f(y)),Q(x)}\{P(x),P(f(y)),Q(x)\}

with {x↦f(y)}\{x\mapsto f(y)\} yields {P(f(y)),Q(f(y))}\{P(f(y)),Q(f(y))\}. Robinson's generalized rule instead selected and unified nonempty literal subsets from both parents, absorbing the multi-literal merge into the resolution inference. The separate factoring rule above is the common modern decomposition, not a verbatim rule named in the 1965 paper.

Skolemization preserves satisfiability for the refutation task; it is not in general an equivalence-preserving rewrite in the original vocabulary. The bare propositional pivot rule does not, by itself, establish first-order completeness.

Even with a sound and refutation-complete first-order calculus, proof search changes character. A fair search will eventually derive □\square from an unsatisfiable finite clause set, but the space of terms and clauses can be infinite. On a satisfiable input it may run forever. First-order resolution is therefore a semi-decision procedure for unsatisfiability, not a terminating satisfiability test.

Completeness, decidability, and incompleteness are different axes #

A theory TT is syntactically consistent in a specified classical calculus when T⊬⊥T\nvdash\bot. Equivalently, there is no sentence φ\varphi for which both T⊢φT\vdash\varphi and T⊢¬φT\vdash\neg\varphi. This proof-theoretic notion is distinct from merely having premises that sound plausible. Soundness gives satisfiable ⇒\Rightarrow syntactically consistent; the completeness theorem for standard classical first-order logic supplies the converse.

Three results that sound similar must not be collapsed:

Setting Correct boundary
Classical propositional logic Finite truth tables decide validity and satisfiability; standard calculi are sound and semantically complete.
Classical first-order logic Standard calculi are sound and semantically complete, but validity is undecidable in general. Enumerating proofs semi-decides validity: valid formulas are eventually certified, while an invalid input need not make proof search halt.
Sufficiently strong formal theories of arithmetic Gödel-style incompleteness concerns whether a particular theory proves or refutes every sentence in its language, under substantial effectiveness, consistency, and arithmetic-strength hypotheses.

The first-order completeness theorem says

Γ⊨φ⟹Γ⊢φ.\Gamma\vDash\varphi\Longrightarrow\Gamma\vdash\varphi.

Syntactic completeness of a theory TT is a different property:

for every sentence φ,T⊢φ or T⊢¬φ.\text{for every sentence }\varphi, \quad T\vdash\varphi\text{ or }T\vdash\neg\varphi.

There is no conflict between a semantically complete proof calculus for first-order logic and an arithmetical theory that is syntactically incomplete. In a standard form, the first incompleteness theorem applies to a consistent, effectively axiomatized theory strong enough to represent an adequate amount of computable arithmetic; it yields a sentence that the theory neither proves nor refutes. Under further standard derivability conditions, the second theorem says that such a theory cannot prove an appropriate internal statement expressing its own consistency.

These conclusions do not apply to every formal system, and in particular not to ordinary classical propositional logic. They do not say that the independent sentence is merely difficult, that every undecidable computational problem is a Gödel sentence, or that “all thought is impossible to formalize.” Nor do they make model semantics exclusive to classical logic: nonclassical systems, including intuitionistic logic, have semantics designed for their proof principles. The dedicated treatment is Gödel Numbering & Incompleteness Theorems.

Failure diagnostics #

When a formalization or inference looks suspicious, check in this order:

  1. Language: Which symbols and arities exist? What semantic conventions were chosen?
  2. Parse: Is the expression well formed? What is its main connective and quantifier scope?
  3. Binding: Which occurrences are free? Would a substitution capture any variable?
  4. Question type: Truth in one model, satisfiability, validity, consequence, or derivability?
  5. Counterexample: Can a small valuation or finite structure make the premises true and conclusion false?
  6. Rule side conditions: Were assumptions discharged correctly? Was the generalized object arbitrary?
  7. Translation: Did natural-language ambiguity get resolved, or merely hidden behind symbols?

Exercises #

  1. Parse ¬(P→Q)∨R\neg(P\to Q)\lor R as a tree and identify the scope of each connective.
  2. Find a countervaluation to P→Q⊨Q→PP\to Q\vDash Q\to P.
  3. Express exclusive-or in CNF and DNF, then verify their equivalence.
  4. In the people/device model, add (mira,d2)(\text{mira},d_2) to Owns. Which of sentences (1) and (2) change truth value?
  5. Decide whether ∀x∃y R(x,y)⊨∃y∀x R(x,y)\forall x\exists y\,R(x,y)\vDash\exists y\forall x\,R(x,y) and justify with a proof or countermodel.
  6. Explain why substituting yy for free xx in ∀y R(x,y)\forall y\,R(x,y) is unsafe, and perform a safe substitution.
  7. Refute or validate: ∀x(P(x)∨Q(x))⊨(∀xP(x))∨(∀xQ(x))\forall x(P(x)\lor Q(x))\vDash(\forall xP(x))\lor(\forall xQ(x)).
Solutions
  1. The main connective is ∨\lor. Its left child is ¬(P→Q)\neg(P\to Q) and right child is RR. The negation scopes over P→QP\to Q; the implication scopes over PP and QQ.
  2. Let P=FP=\mathsf F and Q=TQ=\mathsf T. Then P→QP\to Q is true while Q→PQ\to P is false.
  3. DNF: (P∧¬Q)∨(¬P∧Q)(P\land\neg Q)\lor(\neg P\land Q). CNF: (P∨Q)∧(¬P∨¬Q)(P\lor Q)\land(\neg P\lor\neg Q). Both are true exactly on the two valuations where PP and QQ differ.
  4. Sentence (1) remains true. Sentence (2) becomes true because Mira is now one person who owns both devices.
  5. The consequence fails. Let D={a,b}D=\{a,b\} and R={(a,a),(b,b)}R=\{(a,a),(b,b)\}. Every object relates to some object—namely itself—but no single object is related to by both aa and bb in the required argument order.
  6. Naive substitution yields ∀yR(y,y)\forall yR(y,y) and captures the inserted yy. First alpha-rename: ∀zR(x,z)\forall zR(x,z); then substitute to obtain ∀zR(y,z)\forall zR(y,z).
  7. It is invalid. Let D={a,b}D=\{a,b\}, P={a}P=\{a\}, and Q={b}Q=\{b\}. Every object is a PP or a QQ, but not every object is a PP, and not every object is a QQ.

Sources

  1. bookforall x: Calgary — current HTML edition
  2. bookStructures for First-order Languagespdfnotes
  3. bookSatisfaction of a Formula in a Structurepdfnotes
  4. bookSubstitutionpdfnotes
  5. bookDiscrete Mathematics: Lecture Notes, Part 2pdfnotes
  6. paperA Machine-Oriented Logic Based on the Resolution Principlepdfnotes

Searches titles, aliases, headings, summaries, and full text.↑↓ move ↵ open esc close