GLOBAL KNOWLEDGE ARK

Mathematics · Article

Axioms, formal systems and models

Build a formal language, check deductions and models, and prove what classical, constructive and first-order reasoning can establish.

Back to Mathematics

After reading, you can

  • Parse finite formulas and identify the free variables of a quantified statement.
  • Evaluate formulas in assignments or structures and use a countermodel to test a consequence.
  • Check natural-deduction rules and assumption discharge in concrete proof trees.
  • Prove propositional soundness, completeness and countable compactness under the stated rules.
  • Apply rule-specific freshness conditions for quantifiers and equality.
  • Compare definitions, axioms, proof searches and complete truth descriptions.
01

From formation rules to models

A formula has a finite construction that tells you where to begin evaluating or transforming it. A proof records a different construction. Each inference connects specified premises to a conclusion and keeps track of the assumptions still in force.

Start with propositional syntax and truth assignments, then construct natural deduction and prove when it matches semantic consequence. An infinite set of premises needs a separate compactness argument. A two-state constructive model shows exactly where changing the permitted rule changes the propositions that can be proved.

The final sections add variables, quantifiers and equality. They use corresponding assignments and models to check side conditions, test independence and separate complete descriptions by sentences from unique specification of a structure.

02

Build formulas from a finite formation grammar

Take propositional letters P_i and the constant ⊥ as atomic strings. If A and B are formed, then (A∧B), (A∨B) and (A→B) are formed. The allowed formulas are obtained by finitely many such applications. Replace the abbreviation ¬A by (A→⊥) before treating it as part of the core grammar.

Every formed nonatom starts with an opening parenthesis and ends with its matching closing parenthesis. Scan the enclosed sequence, tracking nesting depth. At depth one relative to the whole string exactly one binary connective occurs, since each nonatom operand has its own enclosing parentheses. That connective uniquely separates the two operand strings.

The operands are shorter than the original string, so the same argument and induction on string length recover unique constructor trees for them. Atoms have their predetermined tree with one node. This proves uniqueness for the formed strings, and identifies the formation check when an attempted split has missing or unformed operands.

Subformulas at different tree positions can have identical strings. For example (P∧P) contains two distinct occurrences of the same letter. A property proved for atoms and preserved by each constructor holds of every finite formula. A random parenthesized token string receives no such induction argument until membership in the grammar is shown. Related reading: [Inductive formation of first-order formulas](https://builds.openlogicproject.org/open-logic-complete.pdf#page=211). The fully parenthesized reading and occurrence proof use the lesson's grammar.

03

Declare a signature before forming terms

A first-order signature gives n-ary function symbols, k-ary relation symbols and the declared equality convention. Variables are terms. A constant is a zero-ary function term, and f(t_1,…,t_n) is a term exactly when the symbol arity is n and all arguments are terms.

For a nonempty structure M with domain D, an assignment maps variables to D. Interpret each function symbol by a total map D^n→D, with a distinguished element when n=0. An atomic formula is R(t_1,…,t_k) at the required relation arity, or t_1=t_2 when equality is in the language. It is an atomic sentence if it has no free variables.

The value of a variable is its assigned element. The value of a function term is the prescribed function applied to the values of its immediate arguments. Existence and uniqueness follow by induction on the finite tree, since the subvalues exist uniquely and every declared interpretation is a function on all relevant tuples.

The formation tree determines which expressions are formulasA well-formed conjunction with nested terms; All nodes meet the declared signature. The complete typed tree is listed below. Each edge names the required category. Each node names its actual category. Orange identifies the arity or category error.The formation tree determines which expressions are formulasFormulaTermTermFormulaTermTermTermTerm∧FormulaPFormulafTermcTermRFormulaxTermgTermcTermxTermWell-formed
All nodes meet the declared signature. The complete typed tree is listed below. Each edge names the required category. Each node names its actual category. Orange identifies the arity or category error.

A constant or variable can form a term. Functions consume terms and return terms, while predicates consume terms and form formulas. The conjunction constructor requires two formulas rather than arbitrary subexpressions.

Exact formation result
QuantityExact result
Expression(P(f(c)) ∧ R(x, g(c, x)))
Formula statusWell-formed
First errorNone
Function aritiesf: 1, g: 2
Predicate aritiesP: 1, R: 2
Exact inputs and supporting calculations
Declared inputs
ParameterValue
expr["and",["P",["f","c"]],["R","x",["g","c","x"]]]
Complete typed tree
LocationRequired and actual category
RootFormula required · Formula: ∧
Child 1Formula required · Formula: P
Child 2Term required · Term: f
Child 3Term required · Term: c
Child 4Formula required · Formula: R
Child 5Term required · Term: x
Child 6Term required · Term: g
Child 7Term required · Term: c
Child 8Term required · Term: x

An atomic relation is true when the tuple of its term values belongs to the interpreted subset of D^k. Equality tests identity of the two values. The syntax and arity determine whether the string can be evaluated. The structure and assignment determine the actual result. Related reading: [Inductive formation of first-order formulas](https://builds.openlogicproject.org/open-logic-complete.pdf#page=211). The arities and constructor checks are for the stated fixed, effectively named signature.

04

Track free and bound occurrences

Free variables of a term are the variable leaves in its tree. For an atomic formula take the union across term arguments, for a binary connective take the union of both sets, and for Qy A remove y from the free set of A for Q equal to either quantifier. Each bound occurrence is governed by the closest enclosing quantifier for its variable.

To rename the binder Qy with a fresh z, replace the occurrences of y bound by this binder with z, leaving those inside any intervening binder Q′y alone. Since z is fresh, it cannot acquire a preexisting meaning inside the renamed scope. The result keeps all original free variables.

At each tested domain element d, the original binder gives y value d and the renamed binder gives z value d. Corresponding affected term leaves then agree. Induction through functions, relations and connectives preserves the comparisons, and later quantifiers preserve them under matching updated assignments. On a branch shadowed by a second binder for y the outer change never affects its y occurrences. Thus the renamed formula has the same quantified truth.

For an explicit capture error, let R denote inequality on {0,1}. The formula ∃y R(x,y) has a free x. Replacing x by y after a fresh renaming gives ∃z R(y,z), true for either y value. Naive replacement gives ∃y R(y,y), false for both possible witnesses. The two strings express different binding patterns. Related reading: [Inductive formation of first-order formulas](https://builds.openlogicproject.org/open-logic-complete.pdf#page=211). Free occurrence is relative to an occurrence's position and enclosing binders.

05

Substitute into a term without changing its interpretation

For finite terms t and s and a variable x, let s[t/x] denote replacing every occurrence of x in s by t. Fix structure M and assignment a, and let b=a[x↦value_M(t,a)]. The claim is value_M(s[t/x],a)=value_M(s,b).

If s is x, the left value is the value of t at a and the right value is b(x), which equals it by construction. If s is a different variable, substitution and the assignment update both leave its value unchanged. A constant has the same fixed value under both assignments.

If s=f(s_1,…,s_n), substitution acts on all argument terms. By induction each new argument evaluated at a has exactly the value of its old argument evaluated at b. Applying the same interpreted function to the same tuple gives the identity for s.

One evaluates the replacing term t under the original assignment before updating x. This matters when t itself contains x. A term contains no variable-binding quantifier, so term substitution has no capture branch. Formula substitution adds that further condition. Related reading: [Free substitution and variable capture](https://builds.openlogicproject.org/open-logic-complete.pdf#page=222). Evaluate replacement terms before changing an assignment, using the original structure.

06

Know when an assignment can change truth

Fix a structure M. Suppose assignments a,b agree at every free variable of a formula A. For an atomic A, term evaluation depends only on its variable leaves by induction on each term. Corresponding relation or equality values agree, so both assignments give the same truth.

Bottom is always false in the declared semantics. If the property holds for immediate operands, each Boolean connective combines the same pair of truth values under the two assignments. This covers all propositional constructions of first-order formulas.

For Qx B, compare a[x↦d] and b[x↦d] for any d in the domain. For each free variable of B other than x they agreed originally, since that variable is free in Qx B. At x both updated assignments now agree. By induction B has the same truth under both updated assignments for every d.

An existential quantifier asks if one d works and a universal asks if every d works, giving agreement for Qx B. A sentence has no free variables, so any two assignments satisfy the agreement condition vacuously. Its truth therefore depends only on the structure. Related reading: [Syntax and semantic assignment updates](https://builds.openlogicproject.org/open-logic-complete.pdf#page=236). Agreement only on the free variables suffices for the particular formula.

07

Compare substitution of a formula with changing an assignment

Let A[t/x] be capture-avoiding substitution. Fix assignment a and update it to b=a[x↦value_M(t,a)]. We prove M,a satisfies A[t/x] exactly when M,b satisfies A. The term substitution identity gives this directly for each atomic argument, and the Boolean cases follow from equal constituent truth values.

For a quantified formula Qx B, the displayed binder blocks substitution of the free variable x into its scope. The values used in testing B overwrite a(x) or b(x) with the same domain element, so the corresponding assignments within the quantifier agree everywhere. Both quantified evaluations coincide.

For Qy B with y≠x, rename its binder if needed and write its resulting name as y, with y distinct from x and absent from the free variables of t. For each d, the inner evaluation uses a[y↦d]. The value of t stays the same because its variable leaves exclude y. The two updates at x and y consequently commute, producing precisely b[y↦d].

Follow actual binder scope before substituting a variableThe original binder would catch the replacement; The substitution changes only free occurrences of x. The old binder and its bound occurrences receive a fresh name first.Follow actual binder scope before substituting a variableOccurrenceVariableScopeRoot.body.1xFreeRoot.body.2yBound by RootOriginal: ∀y. R(x, y)After α-renaming: ∀y′. R(x, y′) (y → y′)After substitution: ∀y′. R(y, y′)
The substitution changes only free occurrences of x. The old binder and its bound occurrences receive a fresh name first.

If the replacement variable equals a binder whose body contains a free target occurrence, rename the binder to a fresh variable before substitution. When the binder is itself the target, the substitution cannot enter that scope.

Exact before/after binding scope
QuantityExact result
Original free variablesx
Original bound occurrencesy at Root.body.2
Alpha-renamingy → y′
Intermediate α-schema∀y′. R(x, y′)
Substitution result∀y′. R(y, y′)
Resulting free variablesy
Exact inputs and supporting calculations
Declared inputs
ParameterValue
expr["forall","y",["R","x","y"]]
sub["x","y"]
Original variable occurrences
LocationVariableBinder
Root.body.1xFree
Root.body.2yRoot

Apply the induction hypothesis to the inner substituted formula for each tested d. The two domains of witnesses are the same, so both quantifiers preserve the equivalence. Renaming bound variables has the same truth by the previous binding argument. The proviso is essential when a replacing term would otherwise become quantified. Related reading: [Free substitution and variable capture](https://builds.openlogicproject.org/open-logic-complete.pdf#page=222), [Syntax and semantic assignment updates](https://builds.openlogicproject.org/open-logic-complete.pdf#page=236). The fresh binder and admissible substitution conditions justify the assignment identity.

08

Define truth by the outer connective

With truth values zero and one, the implication A→B is false only at (A,B)=(1,0). On the four inputs (0,0),(0,1),(1,0),(1,1) its truth values are (1,1,0,1). Negation reverses these truth values because ¬A is A→⊥.

For the same operand pairs, ¬A∨B has values (1,1,0,1), so A→B and ¬A∨B agree on every valuation. The negated implication has values (0,0,1,0), exactly the values of A∧¬B.

The table records truth of formulas under the declared semantics. If the inputs themselves are compound formulas, they still supply one of these four pairs under each valuation. Thus the equivalences apply uniformly to all well-formed operands.

The formulas have different constructor trees despite agreement under every two-valued assignment. The same connective symbols can also receive a different semantics, as the implication rule for ordered worlds later shows. The table’s claim is scoped to the classical truth definition. Related reading: [Term valuation and quantifier semantics](https://builds.openlogicproject.org/open-logic-complete.pdf#page=229). Valuation truth follows the declared Boolean truth functions.

09

Separate symbols from their interpretations

Take a language with one constant c, a unary function f and a binary relation R. Use domain {0,1} in two structures and interpret c as 0 and R as {(1,0)} in each. These alone are insufficient to determine the interpretation of f.

In M let f exchange 0 and 1. In N let f be the identity. Both are total unary functions and all interpretations respect the same arities. The term f(c) has value 1 in M and 0 in N.

The sentence R(f(c),c) is therefore true in M because (1,0) belongs to R. It is false in N because (0,0) does not belong to R. The sentence has the same syntax and needs no variable assignment to settle its value in either fixed structure.

The symbol f supplies a syntactic role. Its mathematical function comes from the structure or from axioms specifying additional facts. Two choices with the same underlying domain can therefore disagree on what they model. Related reading: [Term valuation and quantifier semantics](https://builds.openlogicproject.org/open-logic-complete.pdf#page=229). A structure interprets each nonlogical symbol of its fixed signature.

10

Define consequence by satisfying assignments or structures

Let Γ be a set of sentences in one fixed language and φ a sentence of that language. A structure is a model of Γ if it makes every member true. Write Γ⊨φ when every model of Γ is also a model of φ. The propositional version uses valuations in place of structures.

A countermodel is precisely a structure satisfying all of Γ in which φ is false. If such a structure exists the universal consequence statement fails. Conversely, failure of that statement gives such a structure. Equivalently, Γ⊨φ means that Γ together with ¬φ has no model under the two-valued semantics.

When Γ is empty, every structure of the language satisfies all its premises. So ⊨φ requires truth under all those structures. When Γ has no models, the universal condition in Γ⊨φ holds for every φ because there is no possible countermodel.

These conclusions come from the semantic definition. A syntactic derivation is a finite object checked in a calculus. Relating semantic consequence to that derivability requires theorems about the calculus rather than the notation alone. Related reading: [Term valuation and quantifier semantics](https://builds.openlogicproject.org/open-logic-complete.pdf#page=229), [Truth-table validity and derivability](https://forallx.openlogicproject.org/forallxyyc.pdf#page=193). Quantify over assignments for propositional entailment and models for first-order sentence entailment.

11

Use a countermodel to refute a claimed connection

Take domain {0,1,2}. Put every diagonal pair in R, and add (0,1),(1,0),(1,2),(2,1). These seven ordered pairs specify the whole relation. No pair from 0 to 2 or from 2 to 0 is present.

Reflexivity holds because (x,x) is listed for each x. Symmetry holds because every off-diagonal included pair has its reverse and a diagonal pair reverses to itself. Accordingly the structure satisfies both proposed premise sentences.

Transitivity requires R(x,y) and R(y,z) to imply R(x,z) for all choices. Take x=0,y=1,z=2. The first two memberships are present and the required third one is absent, so the transitivity sentence is false.

A countervaluation must satisfy every premiseModus ponens is a consequence; Satisfying the conclusion alone is irrelevant. The decisive rows are exactly the valuations making all premises true.A countervaluation must satisfy every premiseAssignmentPremise 1Premise 2GoalJointCounterexampleP=0, Q=0100NoNoP=0, Q=1101NoNoP=1, Q=0010NoNoP=1, Q=1111YesNoConsequence holds
Satisfying the conclusion alone is irrelevant. The decisive rows are exactly the valuations making all premises true.

A semantic counterexample is a valuation that makes every premise true and the conclusion false. With no jointly satisfying valuation, there cannot be such a counterexample.

Exact consequence test
QuantityExact result
Premises(P → Q), P
ConclusionQ
Number of joint premise rows1
CountervaluationsNone
Valid consequenceYes
Exact inputs and supporting calculations
Declared inputs
ParameterValue
premises[["implies","P","Q"],"P"]
goalQ
Complete valuation table
P,Q(P → Q)PQAll premises trueCounterexample
P=0, Q=0100NoNo
P=0, Q=1101NoNo
P=1, Q=0010NoNo
P=1, Q=1111YesNo

The explicit assignment of domain and ordered pairs therefore refutes semantic entailment. A symmetric relation can be viewed as undirected adjacency with diagonal entries. Having a two-step path through a common vertex need not supply the missing direct edge. Related reading: [Term valuation and quantifier semantics](https://builds.openlogicproject.org/open-logic-complete.pdf#page=229), [Truth-table validity and derivability](https://forallx.openlogicproject.org/forallxyyc.pdf#page=193). A single satisfying counterassignment or countermodel refutes the stated entailment.

12

Preserve formulas under a change of names

Let h:D_M→D_N be a bijection such that constants are transported to their interpretations in N, each function value is preserved by h on corresponding tuples, and each relation membership holds exactly when it holds for the transformed tuple. Use the transported assignment h∘a in N.

For a variable, term value transport follows from the assignment itself, and for a constant it is stipulated. If it holds for a function term’s arguments, the preservation equation for the function yields value_N(t,h∘a)=h(value_M(t,a)). Hence all term values transport by induction.

For atomic relations the isomorphism condition gives equal truth. For equality the truth is preserved and reflected because h is injective. The Boolean connectives then preserve the equality of truth for their constituent formulas.

For a bound variable x and each d in D_M, transport commutes with the update a[x↦d], giving (h∘a)[x↦h(d)]. Induction gives equal truth for every matched instance, and surjectivity makes these all candidates in N. Thus both quantifiers and all sentences are preserved, while an arbitrary map missing elements need not reflect those quantifiers. Related reading: [Free substitution and variable capture](https://builds.openlogicproject.org/open-logic-complete.pdf#page=222), [Expanding an explicitly defined relation](https://builds.openlogicproject.org/open-logic-complete.pdf#page=247). The renaming must avoid collisions and keep binding positions consistent.

13

Order theories by their model classes

For a premise set T, write Mod(T) for all its models in the declared language and Cn(T) for all sentences true in each model of T. Suppose T⊆U, so U contains every premise of T and possibly more.

A structure satisfying U satisfies every sentence of T, hence Mod(U)⊆Mod(T). If φ belongs to Cn(T), it is true in all models in the larger class Mod(T). In particular it is true in every member of Mod(U), so φ belongs to Cn(U).

For distinct but equivalent premise sets, let A be a fixed sentence and compare {A} with {A∧A}. A structure satisfies A exactly when it satisfies the repeated conjunction. Their model classes and consequence sets coincide despite different premise strings.

Strengthening premises can even take the model class to the empty set, making every sentence a semantic consequence. Equality of model classes is an equivalence at the level of semantics. It neither identifies particular premise strings nor asserts anything by itself about the proof rules used with them. Related reading: [Expanding an explicitly defined relation](https://builds.openlogicproject.org/open-logic-complete.pdf#page=247). Larger premise sets can shrink their common model class.

14

Move one premise into a material implication

Interpret the formulas under the same structure-and-assignment pairs throughout, or under the same propositional valuations. Suppose first Γ∪{φ}⊨ψ. Fix a pair satisfying Γ. If it makes φ false, the material implication φ→ψ is true by its truth rule.

If that pair instead makes φ true, the pair satisfies the entire enlarged premise set. The assumed entailment then makes ψ true and therefore also φ→ψ. This proves Γ⊨φ→ψ directly from the two truth cases.

Conversely, suppose Γ⊨φ→ψ and take any pair satisfying Γ∪{φ}. The implication is true because Γ is true there. Its antecedent is true, so its consequent must be true. Thus Γ∪{φ}⊨ψ.

When free variables occur, the same assignment interprets all premises and the proposed conclusion in each case. The argument does not vary free-variable values between premise evaluation and conclusion. It uses material implication and requires no finiteness of Γ. Related reading: [Truth-table validity and derivability](https://forallx.openlogicproject.org/forallxyyc.pdf#page=193). The argument uses the material implication under classical valuations.

15

Track assumptions and precisely what is discharged

Annotate assumption leaves with labels that identify the open occurrences they use or a specific binder that later discharges them. A proof from a formula set Γ is a finite derivation whose undischarged assumption formulas all belong to Γ. Extra allowed premises need not appear as leaves.

If the same derivation is read from Γ∪Δ, every open assumption that belonged to Γ still belongs to the larger set. This proves weakening. A list order is irrelevant for this interpretation, giving exchange. Allowing the same formula twice as a listed premise gives the same membership condition as allowing it once, giving contraction of premise slots.

Repeated assumption leaves may still have separate labels. When a rule discharges the label u of a temporary assumption A, it removes those occurrences attached to u and leaves other open labels intact. For example a proof can use a retained premise labelled v with the same formula A.

The difference matters when checking a certificate. Treating the premise set as unordered and without multiplicities does not erase the derivation’s scope annotations. A calculus tracking resources through actual multiplicity would use a different definition and require a separate structural-rule proof. Related reading: [Natural deduction trees and labelled assumptions](https://builds.openlogicproject.org/open-logic-complete.pdf#page=142). Discharge the labelled assumption occurrences specified by each rule.

16

Check propositional natural deduction by finite rule applications

Work with a finite annotated tree. The leaves are assumptions. Conjunction introduction joins proofs of A and B into A∧B, and each elimination recovers one operand. A proof of either A or B can introduce A∨B in its corresponding slot.

Disjunction elimination has a main proof of A∨B and two subproofs of a common conclusion C. The first subproof may use an extra labelled assumption A and the second an extra labelled assumption B. The rule discharges those designated assumptions and keeps the other open leaves. This permits either possible true disjunct to support C.

Implication introduction uses a proof of B under a temporary labelled premise A, and closes that label when concluding A→B. Implication elimination uses A and A→B to conclude B. Bottom elimination permits any result from ⊥. The classical contradiction rule infers A from a branch deriving ⊥ under a temporary assumption ¬A and discharges that branch’s label.

Every deduction line needs exactly its permitted premisesConjunction and implication elimination both succeed; The listed conclusion is justified by all four checked lines.Every deduction line needs exactly its permitted premisesLineExpressionRuleCitesResult1(P ∧ Q)premiseNonePass2Pand-left1Pass3(P → R)premiseNonePass4Rimplies-elim2 · 3PassLine 2: Required conclusion: PLine 4: Requires cited antecedent P and concludes R.
The listed conclusion is justified by all four checked lines.

Check each line against its constructor and exact cited premises. Conjunction elimination selects the declared side. Implication elimination needs the antecedent and gives the consequent.

Exact proof-certificate readout
QuantityExact result
Number of declared lines4
First invalid lineNone
First result detailAll rules cite earlier exact premises.
Exact inputs and supporting calculations
Declared inputs
ParameterValue
lines[["premise",["and","P","Q"],[]],["and-left","P",[1]],["premise",["implies","P","R"],[]],["implies-elim","R",[2,3]]]
Rule checks
LineRuleReferencesResultDiagnostic
1premiseNonePassDeclared premise.
2and-left1PassRequired conclusion: P
3premiseNonePassDeclared premise.
4implies-elim2 · 3PassRequires cited antecedent P and concludes R.

A checker processes the tree from leaves toward the root. At each node compare its displayed formula with the rule’s exact premises and operands, combine remaining open assumption labels and perform only the designated discharges. Check the root’s surviving formulas against the requested premise set. A finite proof gives a finite sequence of such checks. Related reading: [Natural deduction trees and labelled assumptions](https://builds.openlogicproject.org/open-logic-complete.pdf#page=142). Checking a finite tree tests its declared local rules and resulting open assumptions.

17

Prove soundness of the propositional calculus

The induction claim is that any valuation satisfying all the open assumptions in a proof subtree satisfies its conclusion. It is immediate for an assumption leaf. For conjunction and disjunction introduction and conjunction elimination, the claim follows by passing to each relevant premise subtree and applying the declared two-valued truth rule.

For implication elimination, the premises make A→B and A true, so B is true. For implication introduction, fix a valuation satisfying the retained context. If the antecedent A is false, the implication already holds. If A is true, the new context including the previously discharged leaves is satisfied, and induction gives B.

For disjunction elimination, the valuation makes the major premise A∨B true. If A is true, the subproof under the A assumption gives C, and if B is true the B subproof gives C. The retained premises are available in either case. Thus the common conclusion holds.

For bottom elimination no valuation can satisfy the retained assumptions of a subtree proving ⊥, since induction would make ⊥ true. For classical contradiction, if the proposed A were false, ¬A would be true along with the retained assumptions. The discharged branch would make ⊥ true by induction, a contradiction. Every rule therefore preserves semantic consequence. Related reading: [Natural deduction trees and labelled assumptions](https://builds.openlogicproject.org/open-logic-complete.pdf#page=142). Verify the rule induction under classical truth functions.

18

Replace propositional letters uniformly in a proof

Assign a well-formed formula S(P_i) to each propositional letter, leave ⊥ fixed, and extend S to all formulas by commuting with the binary connectives. Since every formula has a finite constructor tree, this defines a new well-formed formula for every old one.

Apply S to the formula at each node in a finite proof. At an assumption, the new formula is the replacement of the old allowed premise. A rule for A∧B, A∨B or A→B still has the same constructor and substituted immediate formulas. Negation abbreviates an implication to ⊥ and therefore also retains its required form.

The same designated labels discharge the substituted copies of the old assumptions. In particular, if two formula strings become identical under S, their old labels still distinguish their scopes. Induction on the old tree gives a valid proof of S(C) from the corresponding images of its open premises.

Uniformity is essential. From an open P one can conclude P and hence prove P→P by discharging it. Changing only the conclusion occurrence to Q makes P→Q, which is false when P is true and Q false. The altered string is not justified by the original certificate. Related reading: [Natural deduction trees and labelled assumptions](https://builds.openlogicproject.org/open-logic-complete.pdf#page=142). Uniform replacement preserves the propositional rule instances and occurrence labels.

19

Prove the syntactic deduction step

Suppose a proof of ψ has all its open premise formulas in Γ∪{φ}. Mark the open leaves of formula φ that are to be treated as the new temporary assumption. If φ also belongs to Γ, retained copies and temporary copies can have distinct labels. All open φ leaves chosen for discharge can be assigned the one designated label.

Every remaining open leaf has a formula in Γ, so attach implication introduction discharging the designated φ assumption. This gives a proof of φ→ψ from Γ. If the proof used no designated leaf, discharge is vacuous in this calculus, which permits weakening.

Conversely, suppose Γ derives φ→ψ. In the enlarged context add a leaf assuming φ and use the original proof for the implication. Implication elimination gives ψ, with open premises belonging to Γ∪{φ}.

This is a statement about finite proof transformations in the stated natural deduction system. The semantic deduction result has a parallel conclusion under material truth. Here the proof depends on the explicit rules and on respecting labels, not on inspection of all structures. Related reading: [Natural deduction trees and labelled assumptions](https://builds.openlogicproject.org/open-logic-complete.pdf#page=142). The introduction rule needs the selected assumption to be correctly identified.

20

Display which conclusions use the classical rule

Given ¬¬A, temporarily assume ¬A. The former abbreviates (¬A)→⊥, so implication elimination yields ⊥. The classical contradiction rule discharges the assumption ¬A and concludes A. This gives double-negation elimination in the declared classical calculus.

To build double-negated excluded middle, begin by assuming H=¬(A∨¬A). Inside that scope temporarily assume A. Disjunction introduction gives A∨¬A, and H then gives ⊥. Implication introduction closes the inner A to obtain ¬A under H.

Disjunction introduction from ¬A again gives A∨¬A. A second use of H yields ⊥. Discharge H by implication introduction to derive ¬¬(A∨¬A) without using the classical contradiction rule.

Apply the already derived double-negation elimination to this result to get A∨¬A in the classical system. The proof of its double negation is valid in the fragment that keeps implication and disjunction but omits classical contradiction. The unnegated statement has a countermodel in the ordered-world semantics studied below. Related reading: [Natural deduction trees and labelled assumptions](https://builds.openlogicproject.org/open-logic-complete.pdf#page=142), [Persistent information and the intuitionistic conditional](https://builds.openlogicproject.org/open-logic-complete.pdf#page=819). The classical rule used for double-negation elimination and excluded middle is explicit.

21

Turn a truth assignment into a proof of a signed formula

For a valuation v of the finitely many letters in A, form L_v with one literal P or ¬P per letter according as v(P) is true or false. If A is a letter, its appropriate signed form is an assumption. For A=⊥ the signed form is ¬⊥, proved by discharging a temporary assumption ⊥ whose conclusion is itself.

For A=B∧C, truth supplies both constituent proofs and conjunction introduction. If it is false, one constituent is false, so its negation is derived by induction. A temporary assumption B∧C then gives that false constituent by elimination and hence ⊥. Discharge to obtain ¬(B∧C).

For A=B∨C, if a disjunct is true use its induction proof and disjunction introduction. If both are false, the two derived negations give a proof of bottom from each temporary disjunct. Apply disjunction elimination to an assumed B∨C and discharge that outer assumption to get its negation.

For A=B→C, truth means either C is true or B is false. A proof of C allows implication introduction under B, while a proof of ¬B allows deriving bottom and then C under B. If the implication is false, induction proves B and ¬C. A temporary assumption B→C yields C and then bottom, so discharging it gives the negated implication. This covers the grammar and all valuations. Related reading: [Truth-table validity and derivability](https://forallx.openlogicproject.org/forallxyyc.pdf#page=193). A signed-formula induction assumes the exact literals of one valuation.

22

Discharge all valuation cases

Let A be a tautology whose letters are P_1,…,P_n. Every one of the 2^n valuations supplies a proof of A from its signed literal context by the preceding induction. For any fixed signs of P_1,…,P_(n−1), the two contexts for the last letter differ only by P_n versus ¬P_n.

Use the closed classical proof of P_n∨¬P_n as the main premise for disjunction elimination. The two available proofs of A serve as the branches. Discharge the last letter’s assumptions, so A now has a derivation from only the fixed prefix literals.

Repeat the same pairing for the preceding letter and then each remaining letter. At the end there are no open literals. For n=0 the true signed-form derivation already has no premises. Thus every finite propositional tautology has a closed proof in the calculus.

This construction checks 2^n assignments and can grow quickly. It establishes existence of a finite derivation while making no shortest-proof claim. It applies to the declared propositional syntax rather than to arbitrary quantification over an unknown domain. Related reading: [Truth-table validity and derivability](https://forallx.openlogicproject.org/forallxyyc.pdf#page=193). Classical excluded middle supplies the two valuation cases. Disjunction elimination then discharges those cases one variable at a time.

23

Derive a consequence from finitely many premises

Let finite Γ={G_1,…,G_k} and define B to be their conjunction, with an arbitrary fixed ordering and grouping. For k=0 use the always-true formula ⊥→⊥. Under every valuation B is true exactly when all premises in Γ are true.

Hence Γ⊨φ exactly when B→φ is a tautology. If the entailment holds, finite-letter completeness gives a closed proof of B→φ. That proof uses only the letters appearing in this one finite formula, even when the ambient language has infinitely many letters.

Use open assumptions G_i and conjunction introduction to derive B from Γ when k≥2. The single-premise B is that premise itself. At k=0 the proof of B is the direct implication from temporarily assuming and then concluding ⊥. Implication elimination with the closed proof of B→φ now gives Γ⊢φ.

If Γ⊢φ, soundness yields Γ⊨φ. Equivalence follows for every finite Γ, including vacuous truth from unsatisfiable premises. The next compactness argument is needed to reduce arbitrary infinite semantic premise sets to this case. Related reading: [Truth-table validity and derivability](https://forallx.openlogicproject.org/forallxyyc.pdf#page=193), [Propositional completeness and compactness](https://builds.openlogicproject.org/open-logic-complete.pdf#page=193). Finite semantic consequence yields a derivation from those finite premises.

24

Prove compactness for countable propositional languages

Enumerate the propositional letters P_1,P_2,… and let the level n nodes be assignments of truth values to the first n letters that satisfy every member of Γ using only those letters. All formulas have finitely many variables, so each is tested by some sufficiently high level.

Suppose Γ is finitely satisfiable and a level had no node. There are only 2^n candidate assignments. For each choose a formula of Γ using those letters that it makes false. This gives a finite subset of Γ no full valuation can satisfy, since its restriction to those letters is one of the unsuccessful assignments. Hence every level has a node.

Taking a prefix keeps the truth of all formulas whose letters are still present, so the family is a tree under restriction. Every node has at most two children. From a node with descendants at arbitrarily high levels choose a child with the same property, which exists because there are finitely many children. Starting from the empty assignment gives an infinite compatible path.

The union of the path’s assignments is a full valuation satisfying every formula of Γ at the level where all its variables are present. Thus Γ is satisfiable. The proof uses countably many enumerated letters and finite branching. With finitely many letters the finite assignment argument alone suffices. Related reading: [Propositional completeness and compactness](https://builds.openlogicproject.org/open-logic-complete.pdf#page=193). The finite-branching argument uses a countable variable enumeration and finite formula support.

25

Relate consistency and existence of a propositional model

Suppose Γ⊨φ in the countable classical propositional language. Then Γ∪{¬φ} has no satisfying valuation. By the contrapositive of compactness some finite subset of this union has no model. Take Δ to be its premises from Γ and also include ¬φ in the test, whether or not that formula was already among them.

The finite set Δ entails φ because Δ∪{¬φ} is unsatisfiable. Finite-premise completeness gives a proof from Δ, and since Δ⊆Γ the same proof is valid from Γ. Thus semantic consequence implies derivability even for an infinite premise set.

Soundness proves the converse. In addition, any finite proof uses only finitely many open premise occurrences, so a derivation from Γ automatically isolates a finite support inside Γ. The semantic result shows such a support also exists whenever entailment holds.

Taking φ=⊥, Γ derives bottom exactly when it has no model. If Γ has a model, bottom is false in it and soundness prevents such a proof. This consistency comparison uses the stated classical propositional calculus and its proved completeness. A different logic requires its own semantic and proof analysis. Related reading: [Propositional completeness and compactness](https://builds.openlogicproject.org/open-logic-complete.pdf#page=193). Classical propositional consistency uses the stated complete and sound calculus.

26

Show what changes without the classical rule

Let worlds be partially ordered. Atom truth persists upward. Bottom is forced nowhere. At each world conjunction requires both operands and disjunction requires a disjunct there. A→B is forced at w if for every v≥w, whenever v forces A it also forces B.

All formula forcing persists upward. The atom, bottom, conjunction and disjunction cases follow from their definitions and induction. For implication the set of worlds above an extension is a subset of those above the original world, so its universal condition stays true.

Induct on a classical-free proof tree at each world. The local connective rules preserve forcing, with disjunction elimination selecting a forced disjunct. Bottom elimination has no world with forced premise. For implication elimination use the current world as one extension. For implication introduction, take an arbitrary extension with the antecedent forced. The retained assumptions persist there and the induction hypothesis gives the consequent.

In a two-world chain w≤v, let P be forced at v and nowhere else. At w, P is not forced and ¬P=P→⊥ is not forced because v forces P and cannot force bottom. Hence P∨¬P is not forced at w. Soundness just proved excludes a closed proof of this formula in the classical-free calculus. Related reading: [Persistent information and the intuitionistic conditional](https://builds.openlogicproject.org/open-logic-complete.pdf#page=819). The two-state model uses upward persistent atoms and the intuitionistic implication clause.

27

Instantiate a universal statement safely

Suppose M,a satisfies ∀x A. Let t be a term and choose the capture-avoiding instance A[t/x], with bound names renamed if needed. The value d of t at a is one of the domain elements quantified over, so M,a[x↦d] satisfies A.

By the formula substitution identity this gives M,a satisfying A[t/x]. That proves the soundness of universal elimination with the stated term condition. If a calculus uses raw substitution, the corresponding term must instead already be free for x in the formula.

Conversely, if M,a satisfies A[t/x], the same identity shows that d is a witness to A under a[x↦d]. Thus M,a satisfies ∃x A, establishing the existential introduction rule with the same care over variable binding.

On {0,1} with R denoting inequality, ∀x∃y R(x,y) is true. A naive replacement of x by y in its inner scope could output ∃y R(y,y), which is false. A fresh bound name z gives the correct instance ∃z R(y,z), preserving the intended free y. Related reading: [Free substitution and variable capture](https://builds.openlogicproject.org/open-logic-complete.pdf#page=222), [Fresh names in quantifier rules](https://forallx.openlogicproject.org/forallxyyc.pdf#page=312). Quantifier instantiation evaluates an admissible term without variable capture.

28

Generalize only an arbitrary free variable

Suppose a sound branch derives A from open assumptions Γ, and the variable x to be generalized is absent from the free variables of every member of Γ. Fix M and an assignment a satisfying Γ. For every domain element d, the update a[x↦d] still satisfies Γ by the free-variable dependence lemma.

The branch’s validity at that updated assignment gives A for each d. Thus M,a satisfies ∀x A. The argument establishes the universal-introduction rule with the stated side condition. An equivalent eigenvariable presentation first chooses a genuinely fresh variable for a displayed instance.

The condition ensures that changing x while keeping the interpretation fixed does not deprive the branch of a premise. Being a variable symbol, or being free in the current conclusion, does not by itself make its value arbitrary under the retained premises.

For example, take a two-element domain with P true only at 0 and an assignment y↦0. The open premise P(y) is true, but ∀y P(y) is false because of the element 1. Generalizing y from that premise would incorrectly include an assignment where the premise fails. Related reading: [Syntax and semantic assignment updates](https://builds.openlogicproject.org/open-logic-complete.pdf#page=236), [Fresh names in quantifier rules](https://forallx.openlogicproject.org/forallxyyc.pdf#page=312). The arbitrary variable must be fresh for the undischarged assumptions.

29

Use an existential witness without keeping its name

Suppose M,a satisfies the retained premises and ∃x A. Choose a witness d such that A holds under a[x↦d]. Use a fresh variable y, absent from the free variables of the retained premises, the target C and the quantified formula, after any necessary bound renaming.

Update a(y) to d. The retained premises are still true. Under this updated assignment the instance A[y/x] is true by substitution and the witness property. If the temporary branch with this one extra assumption derives C by sound steps, C holds under the updated assignment.

Since y is absent from the free variables of C, the truth of C is unchanged when the original assignment is restored. Thus the branch can discharge the label of A[y/x] and conclude C from the retained context and existential premise. The actual witness may depend on the model and assignment.

If we allowed C to be P(y) itself, the argument would incorrectly derive this free formula from ∃x P(x). On {0,1} with P true only at 0 and y assigned 1 the existential premise is true while P(y) is false. A temporary witness cannot be exposed as an arbitrary surviving value. Related reading: [Syntax and semantic assignment updates](https://builds.openlogicproject.org/open-logic-complete.pdf#page=236), [Fresh names in quantifier rules](https://forallx.openlogicproject.org/forallxyyc.pdf#page=312). Existential elimination prevents its temporary witness from controlling the result or outside premises.

30

Use equality as actual identity

In a language with equality, the atomic formula t=s means that both terms have the same domain element as value in the fixed structure and assignment. Reflexivity follows because each term evaluates uniquely to a value identical to itself.

If t and s have the same value, then substituting either for a free variable x inside a term u yields the same value. Both substitutions evaluate u under the same updated assignment at x by the term substitution lemma. Function applications preserve these equal input values.

For a formula A, the same comparison uses the capture-avoiding substitution lemma. The two substituted formulas are interpreted with the same updated assignment and hence have equal truth. A proof rule replacing equals is therefore sound with its stated substitution condition.

A binary relation E with only the axiom ∀x E(x,x) can hold between different elements. On {0,1} use E equal to the full relation and let a unary predicate hold only of 0. Then E(0,1) holds and the predicate value changes between the two arguments. Reflexivity alone supplies no identity-based replacement. Related reading: [Term valuation and quantifier semantics](https://builds.openlogicproject.org/open-logic-complete.pdf#page=229), [Syntax and semantic assignment updates](https://builds.openlogicproject.org/open-logic-complete.pdf#page=236), [Fresh names in quantifier rules](https://forallx.openlogicproject.org/forallxyyc.pdf#page=312). Reflexivity and replacement use actual identity of term interpretations.

31

Change quantifier order only when justified

Fix a structure and the current values of the free variables except for a variable x that will be bound. Under classical semantics, ¬∀x A holds exactly when not every x instance is true. This is equivalent to the existence of a value making A false, which is ∃x ¬A.

Likewise ¬∃x A means that no value makes A true, equivalent to truth of ¬A at every value. Thus it is equivalent to ∀x ¬A. These equalities of truth use the classical interpretation of negation and preserve the assignments of all other free variables.

Choose a two-element domain and binary R(x,y) meaning identity. In ∀x∃y R(x,y), for each x choose y equal to it. The sentence is true. In ∃y∀x R(x,y), the chosen y would have to equal both distinct elements, which is impossible.

Row witnesses do not by themselves supply a common columnDifferent witnesses suffice only for the row-wise claim; The order of quantifiers fixes who chooses first. Every row needs a witness for ∀x∃y, while ∃y∀x needs a value of y common to all rows.Row witnesses do not by themselves supply a common columnRowy=0y=1y=2Witnessesx=01000x=10101x=20012∀x∃y R(x,y): True∃y∀x R(x,y): FalseCommon columns: None
The order of quantifiers fixes who chooses first. Every row needs a witness for ∀x∃y, while ∃y∀x needs a value of y common to all rows.

A finite relation matrix makes quantifier order explicit: a universally chosen row can be followed by a row-specific column, while an existentially chosen column must be fixed before every row.

Exact quantified truth conditions
QuantityExact result
Row witnesses0 → 0 / 1 → 1 / 2 → 2
Common columnsNone
∀x∃y R(x,y)True
∃y∀x R(x,y)False
Exact inputs and supporting calculations
Declared inputs
ParameterValue
R[[1,0,0],[0,1,0],[0,0,1]]

The first quantifier order permits its later witness to depend on the earlier x. The second requires a single common witness. A proposed interchange must show enough structure to supply that uniform choice, instead of relying on the presence of the same two quantifier symbols. Related reading: [Term valuation and quantifier semantics](https://builds.openlogicproject.org/open-logic-complete.pdf#page=229). Swapping quantifiers changes whether the witness may depend on the first choice.

32

Add an explicit definition conservatively

Let T be an old-language theory, and add a new k-ary relation symbol S through the axiom ∀x_1…∀x_k [S(x_1,…,x_k)↔A(x_1,…,x_k)]. The displayed variables are distinct and contain all the free variables of the old-language formula A.

For any old structure M, define the interpretation of S to consist of exactly those tuples at which A is true. The earlier free-variable lemma makes the definition independent of every unused assignment coordinate. The expanded structure satisfies the defining axiom, and that axiom forces exactly this relation in any expansion of M.

Translate each S(t_1,…,t_k) to A with capture-avoiding simultaneous replacement of its displayed variables by the terms. First map the displayed variables in A to fresh distinct placeholders absent from all the terms. Then apply the single-variable substitution identity successively to those placeholders. No inserted term contains a later placeholder, so atom evaluation uses precisely the tuple of original term values. Induction through connectives and quantifiers preserves truth for the resulting translation.

Test an extension by projecting each new valuation backA biconditional gives one expansion per old valuation; There are 3 expansions of 3 old satisfying assignments. All old assignments survive.Test an extension by projecting each new valuation backOld assignmentProjection statusAllowed RP=0, Q=0Excluded by P ∨ Q—P=0, Q=1Survives0P=1, Q=0Survives0P=1, Q=1Survives1Every old model has exactly one expansion.
There are 3 expansions of 3 old satisfying assignments. All old assignments survive.

Conservativity requires that every old model admit at least one expansion. A fresh explicit biconditional fixes the new truth value because its defining formula uses only old symbols. An additional old constraint can exclude a model despite uniqueness among the survivors.

Exact conservativity and uniqueness
QuantityExact result
Old axiom(P ∨ Q)
New constraint(R ↔ (P ∧ Q))
Number of expansions3
Conservative on old valuationsYes
Exactly one expansion for every old valuationYes
Lost old valuationsNone
Exact inputs and supporting calculations
Declared inputs
ParameterValue
old["or","P","Q"]
new["iff","R",["and","P","Q"]]

Every model of T has the unique specified expansion and each expanded model retains the same old sentences. Thus any old-language semantic consequence of the definitional extension was already a consequence of T. The argument uses an explicit old-language definition and does not apply to an arbitrary recursive equation for S. Related reading: [Expanding an explicitly defined relation](https://builds.openlogicproject.org/open-logic-complete.pdf#page=247). A fresh relation receives its unique specified interpretation for every old structure.

33

Compare a new axiom with a new definition

Work first in a language with an unrestricted unary predicate P, and take the empty old theory. Add a new unary symbol Q and the axiom ∃x Q(x). Every old model has a nonempty domain by convention and expands by interpreting Q as the whole domain.

More generally suppose each model of T has an expansion satisfying a new theory U containing T. If an old-language sentence is false in an old model of T, its truth remains false in any expansion that leaves the old symbols fixed. An expanding model of U is then a countermodel, so U has no new old-language consequence.

Now add the further axiom ∀x(Q(x)→P(x)). A witness for Q must satisfy P, so this new extension entails ∃x P(x). The old theory has a nonempty model in which P is empty. It therefore lacked that consequence, and this model cannot expand under the two requirements.

The proof compares model classes and is a semantic conservativity criterion. A statement that no new old-language derivations exist in particular calculi requires an appropriate syntactic translation or adequacy theorem for those calculi. No such claim is inferred just from a change of vocabulary. Related reading: [Expanding an explicitly defined relation](https://builds.openlogicproject.org/open-logic-complete.pdf#page=247). A fresh definable relation preserves old consequences while an independent added axiom can shrink the model class.

34

Establish independence with two models

Let a sound calculus be used for a theory T. If a model of T makes ψ false, soundness excludes a derivation of ψ from T. If another model of T makes ψ true, it makes ¬ψ false under the classical interpretation and excludes a derivation of ¬ψ.

For a concrete example let T assert reflexivity and symmetry of R on its domain, and let ψ assert transitivity. On {0,1,2}, the relation containing every pair satisfies all three conditions, so it is a model of T and ψ.

On the same domain take diagonal pairs and the two directed copies of each edge on the path 0–1–2. The resulting relation is reflexive and symmetric. It fails transitivity at (0,1,2), since 0 and 2 are not directly related.

The two models establish independence of ψ in the stated syntactic sense by soundness. They also show that the separate extensions by ψ and by ¬ψ are each satisfiable. The result concerns this actual theory and rules. Including a transitivity axiom would change which structures remain. Related reading: [Expanding an explicitly defined relation](https://builds.openlogicproject.org/open-logic-complete.pdf#page=247). Two models of the original premises are sufficient to witness separation of the candidate sentence.

35

Decide truth in a fixed finite structure

Let the finite domain have n≥1 elements, and give explicit tables for the relevant symbols and an assignment for the free variables. At an atom evaluate the finite argument term trees and read the corresponding function, relation or equality values. Each Boolean connective combines already computed truth values.

For ∀x A, evaluate A under all n updates of the assignment at x and take the conjunction. For ∃x A take the disjunction. Each recursion step passes to a smaller formula, so the computation terminates even when every branch must be examined.

With L nodes in the syntax tree including term nodes and q quantifier occurrences, each particular tree occurrence is visited at most n^q times, since only its ancestor quantifiers can replicate the visit. The number of visits is bounded by L n^q, with costs for symbol lookup and representation added as needed.

This procedure decides truth in the fixed finite structure and assignment. For a sentence its result is assignment-independent. The scope of universal validity quantifies over possible structures, including infinite ones, and is not settled by termination of this fixed-structure procedure. Related reading: [Term valuation and quantifier semantics](https://builds.openlogicproject.org/open-logic-complete.pdf#page=229). The truth procedure assumes a fixed finite domain and given finite interpretations.

36

Describe a sentence that needs an infinite model

In a language with a unary function f, conjoin ∀x∀y(f(x)=f(y)→x=y) with ∃z∀x ¬(f(x)=z). The first conjunct asserts injectivity, and the second names an element absent from the image while leaving the function itself total.

On a finite domain of size n, the n inputs to an injective self-map have n distinct outputs. They are all in the same n-element domain, so every domain element occurs as an output. Thus injectivity on a finite domain contradicts the second conjunct.

Take the natural numbers including zero and interpret f(n)=n+1. Different inputs give different outputs, and zero has no preimage. This is an explicit infinite model of the conjunction.

Consequently failure to find a finite model can coexist with satisfiability. For a claimed validity one must also consider that its negation may have only infinite countermodels. The example does not settle which other formulas can be decided by a proof system or a special model-class argument. Related reading: [Term valuation and quantifier semantics](https://builds.openlogicproject.org/open-logic-complete.pdf#page=229), [Elementary equivalence and isomorphism](https://builds.openlogicproject.org/open-logic-complete.pdf#page=386). Injectivity forces surjectivity on finite domains, while a successor on the naturals provides the infinite witness.

37

Recognize a proof certificate without deciding every statement

Assume formula strings and finite annotated proof certificates have an effective encoding, and rule applications, arities and side conditions can be checked in finite time. If allowed axioms are only computably enumerable, an occurrence can include a finite stage at which the prescribed enumeration outputs that axiom.

Checking such a certificate is finite, including replay up to each certified enumeration stage. List every finite candidate code in order of increasing length and use a fixed order within each length. For a specified target, accept once a checked certificate has that conclusion from the allowed premises.

If the target is derivable, it has a finite certificate, which eventually appears in the list and is accepted. If it is not derivable the search may continue indefinitely. This is a semidecision of derivability under the stated effectiveness assumptions on the proof system and premises.

A countermodel independently demonstrates non-derivability in a sound system. A finite search log showing no proof yet supplies neither a countermodel nor a universal bound on proof length. A genuine decision procedure must also justify its answer and termination on negative instances. Related reading: [Natural deduction trees and labelled assumptions](https://builds.openlogicproject.org/open-logic-complete.pdf#page=142). Effective presentation is needed for proof enumeration. A negative search result has no fixed stopping bound from that argument.

38

Compare how many formulas and complete theories are available

A language with countably many propositional letters has countably many finite formula strings. For each length the finite tuples over a countable alphabet are countable, and the union over all lengths is countable. The infinitely many distinct letters ensure the formula set is infinite.

A valuation is any infinite binary sequence of values on P_0,P_1,…, so their family has the cardinality of all subsets of the natural numbers. For any proposed list v_0,v_1,…, define v(P_n)=1−v_n(P_n). This differs from the nth entry at P_n and cannot occur in the list.

For each valuation let Th(v) consist of all formulas true under it. If two valuations differ at one letter, exactly one includes that letter in its truth set. Thus the family of distinct complete truth theories Th(v) has the same cardinality as the family of valuations. Each decides every formula between it and its classical negation.

Only countably many finite premise sets can be formed. More directly, a finite set of axioms satisfied by v uses finitely many letters, so flipping an unused letter retains those axioms but changes the corresponding truth theory. No such finite set can determine all the truths of one valuation in this infinite independent language. Related reading: [Diagonal comparison of set sizes](https://builds.openlogicproject.org/open-logic-complete.pdf#page=72). Infinite independent assignments give continuum many complete truth theories. Finite axiom sets form a countable collection.

39

Separate complete truth descriptions from unique structures

Take two infinite domains in the language containing only equality, with no constants or function symbols. Two assignments to a fixed finite list of variables have the same equality pattern if precisely the same pairs among their assigned values are equal.

Atomic formulas compare variable values for equality, so matching patterns give matching truth. The propositional connectives preserve truth agreement by induction. For a quantified formula with bound variable x, consider the list of the other free variables first.

A candidate value for x either equals one of the finitely many existing equality classes or is distinct from all their values. Matching classes provide the first kind of choice in both domains. Since each domain is infinite, the second kind is also realized in both. Thus every extended pattern in one domain can be matched in the other, in both directions.

The induction hypothesis gives the same truth of a quantified body for such matched assignments. This proves agreement on both existential and universal formulas. For a sentence the free-variable pattern is empty, so all infinite domains in this language agree on every sentence. Different cardinalities still prevent a bijection, hence prevent isomorphism. Related reading: [Elementary equivalence and isomorphism](https://builds.openlogicproject.org/open-logic-complete.pdf#page=386). In an infinite pure-equality domain, each finite equality pattern extends by a fresh element when needed.

Compare exact formation, substitution, truth, deduction and finite witness checks. The examples show what syntax and semantics establish under their declared assumptions.

An expression qualifies under a declared formation grammar

A well-formed conjunction with nested terms

The formation tree determines which expressions are formulasA well-formed conjunction with nested terms; All nodes meet the declared signature. The complete typed tree is listed below. Each edge names the required category. Each node names its actual category. Orange identifies the arity or category error.The formation tree determines which expressions are formulasFormulaTermTermFormulaTermTermTermTerm∧FormulaPFormulafTermcTermRFormulaxTermgTermcTermxTermWell-formed
All nodes meet the declared signature. The complete typed tree is listed below. Each edge names the required category. Each node names its actual category. Orange identifies the arity or category error.

A constant or variable can form a term. Functions consume terms and return terms, while predicates consume terms and form formulas. The conjunction constructor requires two formulas rather than arbitrary subexpressions.

Exact formation result
QuantityExact result
Expression(P(f(c)) ∧ R(x, g(c, x)))
Formula statusWell-formed
First errorNone
Function aritiesf: 1, g: 2
Predicate aritiesP: 1, R: 2
Exact inputs and supporting calculations
Declared inputs
ParameterValue
expr["and",["P",["f","c"]],["R","x",["g","c","x"]]]
Complete typed tree
LocationRequired and actual category
RootFormula required · Formula: ∧
Child 1Formula required · Formula: P
Child 2Term required · Term: f
Child 3Term required · Term: c
Child 4Formula required · Formula: R
Child 5Term required · Term: x
Child 6Term required · Term: g
Child 7Term required · Term: c
Child 8Term required · Term: x

Capture avoidance follows actual binder scopes

The original binder would catch the replacement

Follow actual binder scope before substituting a variableThe original binder would catch the replacement; The substitution changes only free occurrences of x. The old binder and its bound occurrences receive a fresh name first.Follow actual binder scope before substituting a variableOccurrenceVariableScopeRoot.body.1xFreeRoot.body.2yBound by RootOriginal: ∀y. R(x, y)After α-renaming: ∀y′. R(x, y′) (y → y′)After substitution: ∀y′. R(y, y′)
The substitution changes only free occurrences of x. The old binder and its bound occurrences receive a fresh name first.

If the replacement variable equals a binder whose body contains a free target occurrence, rename the binder to a fresh variable before substitution. When the binder is itself the target, the substitution cannot enter that scope.

Exact before/after binding scope
QuantityExact result
Original free variablesx
Original bound occurrencesy at Root.body.2
Alpha-renamingy → y′
Intermediate α-schema∀y′. R(x, y′)
Substitution result∀y′. R(y, y′)
Resulting free variablesy
Exact inputs and supporting calculations
Declared inputs
ParameterValue
expr["forall","y",["R","x","y"]]
sub["x","y"]
Original variable occurrences
LocationVariableBinder
Root.body.1xFree
Root.body.2yRoot

One countervaluation refutes a semantic consequence

Modus ponens is a consequence

A countervaluation must satisfy every premiseModus ponens is a consequence; Satisfying the conclusion alone is irrelevant. The decisive rows are exactly the valuations making all premises true.A countervaluation must satisfy every premiseAssignmentPremise 1Premise 2GoalJointCounterexampleP=0, Q=0100NoNoP=0, Q=1101NoNoP=1, Q=0010NoNoP=1, Q=1111YesNoConsequence holds
Satisfying the conclusion alone is irrelevant. The decisive rows are exactly the valuations making all premises true.

A semantic counterexample is a valuation that makes every premise true and the conclusion false. With no jointly satisfying valuation, there cannot be such a counterexample.

Exact consequence test
QuantityExact result
Premises(P → Q), P
ConclusionQ
Number of joint premise rows1
CountervaluationsNone
Valid consequenceYes
Exact inputs and supporting calculations
Declared inputs
ParameterValue
premises[["implies","P","Q"],"P"]
goalQ
Complete valuation table
P,Q(P → Q)PQAll premises trueCounterexample
P=0, Q=0100NoNo
P=0, Q=1101NoNo
P=1, Q=0010NoNo
P=1, Q=1111YesNo

A deduction rule must cite the exact needed premises

Conjunction and implication elimination both succeed

Every deduction line needs exactly its permitted premisesConjunction and implication elimination both succeed; The listed conclusion is justified by all four checked lines.Every deduction line needs exactly its permitted premisesLineExpressionRuleCitesResult1(P ∧ Q)premiseNonePass2Pand-left1Pass3(P → R)premiseNonePass4Rimplies-elim2 · 3PassLine 2: Required conclusion: PLine 4: Requires cited antecedent P and concludes R.
The listed conclusion is justified by all four checked lines.

Check each line against its constructor and exact cited premises. Conjunction elimination selects the declared side. Implication elimination needs the antecedent and gives the consequent.

Exact proof-certificate readout
QuantityExact result
Number of declared lines4
First invalid lineNone
First result detailAll rules cite earlier exact premises.
Exact inputs and supporting calculations
Declared inputs
ParameterValue
lines[["premise",["and","P","Q"],[]],["and-left","P",[1]],["premise",["implies","P","R"],[]],["implies-elim","R",[2,3]]]
Rule checks
LineRuleReferencesResultDiagnostic
1premiseNonePassDeclared premise.
2and-left1PassRequired conclusion: P
3premiseNonePassDeclared premise.
4implies-elim2 · 3PassRequires cited antecedent P and concludes R.

Quantifying by rows and using one common witness differ

Different witnesses suffice only for the row-wise claim

Row witnesses do not by themselves supply a common columnDifferent witnesses suffice only for the row-wise claim; The order of quantifiers fixes who chooses first. Every row needs a witness for ∀x∃y, while ∃y∀x needs a value of y common to all rows.Row witnesses do not by themselves supply a common columnRowy=0y=1y=2Witnessesx=01000x=10101x=20012∀x∃y R(x,y): True∃y∀x R(x,y): FalseCommon columns: None
The order of quantifiers fixes who chooses first. Every row needs a witness for ∀x∃y, while ∃y∀x needs a value of y common to all rows.

A finite relation matrix makes quantifier order explicit: a universally chosen row can be followed by a row-specific column, while an existentially chosen column must be fixed before every row.

Exact quantified truth conditions
QuantityExact result
Row witnesses0 → 0 / 1 → 1 / 2 → 2
Common columnsNone
∀x∃y R(x,y)True
∃y∀x R(x,y)False
Exact inputs and supporting calculations
Declared inputs
ParameterValue
R[[1,0,0],[0,1,0],[0,0,1]]

An explicit fresh definition gives a unique expansion

A biconditional gives one expansion per old valuation

Test an extension by projecting each new valuation backA biconditional gives one expansion per old valuation; There are 3 expansions of 3 old satisfying assignments. All old assignments survive.Test an extension by projecting each new valuation backOld assignmentProjection statusAllowed RP=0, Q=0Excluded by P ∨ Q—P=0, Q=1Survives0P=1, Q=0Survives0P=1, Q=1Survives1Every old model has exactly one expansion.
There are 3 expansions of 3 old satisfying assignments. All old assignments survive.

Conservativity requires that every old model admit at least one expansion. A fresh explicit biconditional fixes the new truth value because its defining formula uses only old symbols. An additional old constraint can exclude a model despite uniqueness among the survivors.

Exact conservativity and uniqueness
QuantityExact result
Old axiom(P ∨ Q)
New constraint(R ↔ (P ∧ Q))
Number of expansions3
Conservative on old valuationsYes
Exactly one expansion for every old valuationYes
Lost old valuationsNone
Exact inputs and supporting calculations
Declared inputs
ParameterValue
old["or","P","Q"]
new["iff","R",["and","P","Q"]]

Worked examples

Parse one nested formal sentence

Under the fully parenthesized grammar, draw the constructor tree of (((P→Q)∧¬R)→(Q∨P)), treating negation as the stated abbreviation. Give each variable’s occurrence count and distinguish the outer connective from the formula’s grammatical brackets.

  1. Expand ¬R as (R→⊥) before parsing. The core string is (((P→Q)∧(R→⊥))→(Q∨P)). The first matching outer bracket encloses a single connective at its top depth, the displayed outer implication.
  2. Read the root as → with two children. The left child ∧ has ordered children → with leaves P,Q and → with leaves R,⊥. The right child ∨ has the ordered leaves Q,P. These parent–child descriptions give all five binary nodes.
  3. The left subtree contains one P, one Q, one R and one ⊥. The right subtree adds one Q and one P. Thus the six tree leaves split as two P occurrences, two Q occurrences, one R and one ⊥.
  4. Brackets specify which nodes belong to which subtrees. They do not themselves add connective nodes or truth conditions. A repeated letter contributes separate occurrences but all its occurrences receive the same value under one valuation.

The root is an implication. Its left child is a conjunction of P→Q and R→⊥, and its right child is Q∨P. P and Q each occur twice, R and ⊥ once.

Evaluate a term and its relation in two structures

Use domain {0,1,2}, constant c=1, unary f(x)=x+1 modulo 3 and predicate E={0,2}. Evaluate E(f(f(c))) and ∀x(E(f(x))→E(x)). Then change f to the identity and evaluate these same sentences.

  1. In the first structure c=1, f(c)=2 and f(f(c))=0. Both function applications are evaluated before the predicate. Since 0 belongs to E={0,2}, this atom is true.
  2. For the universal statement test x=1. Then E(f(1))=E(2) is true, but E(1) is false. The associated implication fails at this value, so the universal formula is false.
  3. With f equal to the identity, f(f(c))=1 and E(1) is false. The universal formula now has each instance E(x)→E(x). Whether or not E(x) is true, this material implication is true.
  4. The domain, constant and predicate are fixed between the two computations. A different interpretation of the single function symbol changes truth while all the term trees and formula strings remain the same.

For the modular successor, E(f(f(c))) is true and the universal statement is false. For the identity function the respective values are false and true.

Prevent a variable from being captured

On {0,1} take R(x,y) to mean x≠y. Substitute the free variable y for x in ∃y R(x,y) using a fresh z. Compare the truth of the correct result with naive text substitution under the assignment y=0.

  1. In ∃y R(x,y) the occurrence of x is free and the occurrence of y is bound. Substituting free y for x directly under the written binder would bind the inserted occurrence.
  2. Rename the original binder and its linked occurrence to the fresh z, obtaining ∃z R(x,z). Substitute y only for the free x. This gives ∃z R(y,z), whose free variable is y.
  3. At the assignment y=0 the element z=1 satisfies the inequality R(0,1), so the correct instance is true. In the naive formula the existential binder controls both argument positions and every candidate would require a value different from itself.
  4. The original assignment to y matters in the correct formula. It has no effect on the naive sentence, which has no free variables. This difference in dependency explains the change in truth.

The correct instance is ∃z R(y,z) and is true when y=0. The naive ∃y R(y,y) is false.

Prove a chain of implications with open premises

From P→Q and Q→R derive P→R. Show the exact labelled assumption discharged and give a valuation showing that R→P need not follow from those same two premises.

  1. Keep the two given implications as open premises. Create a temporary occurrence of P with label u. Apply implication elimination to P→Q and the temporary P to conclude Q.
  2. Use Q→R and that Q in a second implication elimination, giving R. All open assumptions are the original two implications and the temporary P.
  3. Apply implication introduction with label u. The resulting formula is P→R and the two given implications remain open. The new proof has no other open formula from the temporary branch.
  4. For the proposed converse take P and Q false and R true. Both given implications are true because their antecedents are false. R→P is false with true antecedent R and false consequent P. Soundness also rules out a proof of this converse from just those premises.

Assume P temporarily, derive Q and R, and discharge that P to obtain P→R. The premises do not entail R→P, as shown by P=0,Q=0,R=1.

Check a small proof certificate for conjunction

Derive (P∧Q)→(Q∧P) in the chosen natural deduction system with a labelled temporary premise. List every step and tell which formulas remain open at the root.

  1. Open one temporary assumption label u with formula P∧Q. In the first branch use that assumption with right conjunction elimination to obtain Q.
  2. In the second branch use the same labelled temporary formula with left conjunction elimination to obtain P. The proof tree can contain two leaves bearing this label, each designating the same scoped assumption.
  3. Apply conjunction introduction to the proof of Q followed by the proof of P. The resulting formula is Q∧P, with u still the only open assumption label.
  4. Implication introduction discharges the occurrences bearing u and yields (P∧Q)→(Q∧P). The root is now closed. Each step is checked by its actual premise formulas and the order of its conjunct children.

Temporarily assume P∧Q, extract Q and P, form Q∧P and discharge the temporary assumption. The conclusion has no open premises.

Build a proof of excluded middle

Use classical contradiction and the stated rules to derive P∨¬P without premises. Identify the open assumptions just before each discharge and the rule that would be unavailable in the intuitionistic fragment.

  1. Let E abbreviate P∨¬P and open the assumption H=¬E with label u. Under the additional temporary P with label v, left disjunction introduction derives E. Implication elimination with H then derives ⊥.
  2. At this point H and P are the open assumptions. Discharge v by implication introduction to obtain P→⊥, which is ¬P, with H as the remaining open premise.
  3. Right disjunction introduction from ¬P gives E. Applying H again gives ⊥ under H alone. The classical contradiction rule concludes E and discharges u, since H is exactly ¬E.
  4. The first discharge is valid without the classical rule. In the classical-free fragment the last branch permits implication introduction to obtain ¬¬E. The displayed step from that branch to E uses the classical contradiction rule.

The closed derivation uses classical contradiction only at the final inference from bottom under ¬(P∨¬P).

Obtain the same conclusion in two cases

Use premises P∨Q, P→R and Q→R to build a disjunction-elimination proof of R. Then remove Q→R and supply a countervaluation.

  1. The major premise P∨Q is available from the retained context. Create the first temporary branch assuming P with label u. Apply P→R with this assumption to derive R.
  2. In the second branch assume Q with label v and apply Q→R to derive the same R. Both branches use their respective retained implications and have the same conclusion string.
  3. Disjunction elimination on the major premise and the two branches discharges u and v. The resulting R uses only the three original premises. The truth of either disjunct suffices through the corresponding subproof.
  4. If Q→R is absent, take P false, Q true and R false. The disjunction and P→R are both true, while R is false. There can be no corresponding proof from those two premises in the sound calculus.

The three premises derive R by disjunction elimination. Without Q→R, the valuation P=0,Q=1,R=0 refutes the entailment.

Evaluate excluded middle at two ordered worlds

Take worlds w≤v with P forced only at v. Evaluate P, ¬P, P∨¬P and ¬¬(P∨¬P) at each world under the stated forcing rules.

  1. At the upper world v, P is forced by stipulation. Since v itself is one of its extensions and bottom is never forced, P→⊥ fails at v. Thus ¬P is not forced and P∨¬P is forced by its left disjunct.
  2. At w, P is not forced. However v extends w and forces P, so it is a witness against w forcing P→⊥. Thus neither disjunct is forced at w, and the disjunction is not forced there.
  3. Let E=P∨¬P. The world v forces E, making ¬E impossible at v. Since v extends w, the same v is a witness against w forcing ¬E. Neither world therefore forces ¬E.
  4. The implication ¬E→⊥ is forced at each world because no extension forces its antecedent ¬E. This is precisely ¬¬E. Failure to force E at w is compatible with forcing its double negation under the ordered-world definition.

At w none of P, ¬P or P∨¬P is forced, but ¬¬(P∨¬P) is forced. At v, P, the disjunction and its double negation are forced, while ¬P is not.

Compare two quantifier orders on a directed cycle

On domain {0,1,2} let R(x,y) hold only for the edges 0→1, 1→2 and 2→0. Evaluate ∀x∃y R(x,y) and ∃y∀x R(x,y), with explicit witnesses or failures.

  1. The relation has exactly the three cycle edges. For x=0 the witness is y=1, for x=1 it is y=2, and for x=2 it is y=0. This assigns a witness for every x and verifies ∀x∃y R(x,y).
  2. The witness in that sentence may depend on the earlier choice of x. The rule y=x+1 modulo three gives precisely the witnesses listed.
  3. For ∃y∀x R(x,y), a candidate y would have to receive an edge from every x. Each vertex receives one edge only, and in particular R(y,y) is false for each of the three candidates. Thus no candidate satisfies the inner universal statement.
  4. The two formulas have the same relation symbol, domain and variables after binding. Their opposite outcomes arise from the different order of choosing the values, as the explicit witnesses and failures show.

The universal-then-existential sentence is true. The existential-then-universal sentence is false.

Discharge a fresh existential witness

Derive ∃x(P(x)∧Q(x))→∃x P(x) by the chosen natural deduction rules. Mark the witness variable and explain why it disappears from the final conclusion.

  1. Open temporary assumption H=∃x(P(x)∧Q(x)) with label u. Choose a variable y that is fresh for H, the retained context and the intended result ∃x P(x). In a minor branch assume P(y)∧Q(y) with label v.
  2. Conjunction elimination within that branch yields P(y). Existential introduction using the term y yields ∃x P(x). The variable y is absent from the free variables of this result.
  3. Use existential elimination on H and that minor branch to conclude ∃x P(x) while discharging v. The only open formula is still H. The reasoning accepted any witness consistent with H and keeps no claim about a designated free entity.
  4. Finally implication introduction discharges u, yielding ∃x(P(x)∧Q(x))→∃x P(x) with no open premises. Scope checking verifies that neither the target nor any retained hypothesis constrains the fresh witness variable.

The closed proof first discharges the fresh witness branch and then the premise ∃x(P(x)∧Q(x)).

Expand a propositional vocabulary by definition

Add the new letter B with defining axiom B↔(P∧Q). List its value on each old valuation, verify B→Q and explain why this definition yields no new old-language semantic consequences.

  1. The defining biconditional uses the conjunction of both implications. Under each choice of P and Q the truth value of P∧Q is fixed, and the biconditional requires B to equal it.
  2. For (P,Q)=(0,0),(0,1),(1,0),(1,1), the unique B values are respectively 0,0,0,1. These are all old valuations and each extends to one valuation satisfying the new axiom.
  3. If B is true in an extended valuation, Q is true because both original letters are. If B is false, B→Q is true by material implication. Therefore the implication holds in every allowed expansion.
  4. Any old-language formula false at an old valuation stays false after that valuation is expanded. Thus an old sentence that was not a consequence cannot become a consequence solely by introducing this symbol and its defining axiom.

B is true just when both P and Q are true. The definition entails B→Q and has no new semantic consequences in the old language.

Test whether symmetry follows from reflexivity

On two elements give one reflexive symmetric relation and one reflexive nonsymmetric relation. Check the defining sentences and use the two outcomes to prove independence from reflexivity alone.

  1. Use domain {0,1}, and interpret the first relation as R_1={(0,0),(1,1)}. Every element relates to itself, and each listed pair is unchanged by reversal.
  2. For the second structure use R_2={(0,0),(1,1),(0,1)}. Both diagonal pairs remain, so reflexivity holds. The pair (0,1) has no reverse (1,0), so symmetry fails.
  3. The old axiom of reflexivity has both models. If symmetry were derivable from it in a sound system, the second structure would have to satisfy symmetry, which it does not.
  4. If negated symmetry were derivable from reflexivity, the first structure would have to satisfy that negation. It instead satisfies symmetry. The old axiom settles neither sentence by itself.

The identity relation is reflexive and symmetric. Adding just (0,1) gives a reflexive nonsymmetric relation, proving independence.

Try it yourself

  1. Using the grammar that requires each binary connective occurrence to be parenthesized with its two operands, decide whether (P∧(Q→R)) and (P∧Q→R) are formed. Show a parenthesization of the second string’s tokens with a different outer connective.

    Show the answer and reasoning

    The first string is formed. The second has two connectives at depth one and is not formed. One valid alternative is ((P∧Q)→R), whose root is implication.

    In (P∧(Q→R)), the outer pair encloses exactly one connective at its top parsing depth, the conjunction. Its left operand is the atom P and its right operand is (Q→R), a valid binary formula on atoms. In (P∧Q→R), both ∧ and → occur at the same top depth inside the single outer pair. The grammar offers no well-formed split there. Splitting at either connective leaves one required compound operand without its own brackets. One repair is ((P∧Q)→R), grouping the first two operands under conjunction and putting implication at the root. Another is (P∧(Q→R)), whose root was already shown to be conjunction. These groupings can differ in truth. If P is false, the first repaired implication is true, while the grouping with root conjunction is false. Reading the original unformed string would require an added precedence convention that this grammar does not supply.

  2. Give the free variables of ∀x(R(x,y)→∃y S(x,y,z)) and identify which occurrences of x and y are bound. Rename the second quantifier to a fresh symbol and compare the free set.

    Show the answer and reasoning

    The free variables are y and z. The outer ∀x binds both x occurrences. The inner ∃y binds only the y in S. Renaming it to w preserves the free set.

    First R(x,y) has free-variable set {x,y}. Before applying its binder, S(x,y,z) has set {x,y,z}. The inner ∃y removes y from the free set of its own body only, leaving {x,z}. The implication joins the free sets of the two operands, giving {x,y,z}. The outer ∀x removes x, leaving {y,z} free in the whole formula. In the original tree, the x in each atom lies inside the outer scope. The y in R lies outside the inner quantifier and remains free. The y in S is the occurrence controlled by that inner binder. Choose w different from every displayed variable and write ∀x(R(x,y)→∃w S(x,w,z)). The new binder acts only in S and the free variables remain y and z. Each inner witness value can be used for either written bound name.

  3. In the integers interpret a binary symbol f as addition and a unary g as negation. Let s=f(x,g(y)), t=f(y,y), and assign x=2,y=3. Evaluate both s[t/x] and s after updating x to the value of t.

    Show the answer and reasoning

    The replacing term t has value 6 and both interpretations of s give 3.

    At the original assignment, t=f(y,y) evaluates to 3+3=6. Substituting t for x in s replaces only the first argument of f, so the new term is f(f(y,y),g(y)). Evaluate the subterms under the original assignment. The first value is 6 and the second is −3. The resulting sum is 6+(−3)=3. Alternatively update the original assignment at x to the value 6 of t, keeping y=3. Then the unreplaced s=f(x,g(y)) also evaluates to 6+(−3)=3. The evaluation of t occurs before the assignment update by definition. This example has no bound occurrences and so illustrates the term substitution identity directly.

  4. Compute the truth table for P→Q and its converse Q→P. Find a valuation that distinguishes them and give the exact formula for the negation of P→Q in terms of P and Q.

    Show the answer and reasoning

    In the order (0,0),(0,1),(1,0),(1,1), P→Q has values (1,1,0,1), while Q→P has (1,0,1,1). The first implication’s negation is P∧¬Q.

    Material implication P→Q fails only when P is true and Q is false. Thus its four values in the declared order are true, true, false, true. For Q→P the antecedent is Q. The only failure now is when Q is true and P false, giving true, false, true, true in the same fixed order. In particular P=0,Q=1 makes P→Q true and Q→P false. This complete assignment distinguishes the two candidate truths. Negating P→Q selects just its failure row P=1,Q=0. That is exactly when P∧¬Q is true. The equivalence is semantic under the stated two-valued truth rules.

  5. Use only one unary predicate A, give two structures with the same two-element domain in which ∃x A(x) has different truth values, and say which extra information fixes its interpretation.

    Show the answer and reasoning

    Take the same domain {0,1} with A empty in one model and A={0} in the other. The existential sentence is false in the first and true in the second.

    The signature declares A as a unary predicate. A structure must choose a subset of its domain to interpret A, and the grammar allows the atom A(x) in either structure. With domain {0,1} and empty A, no element has the property, so ∃x A(x) is false. Both candidate witnesses have been excluded. With A={0}, the atom is true at x=0. That single assignment to the quantified variable is enough for the existential sentence, even though x=1 fails. The domain and the arity do not determine predicate membership. The structure’s choice of subset fixes it. Further axioms could restrict acceptable subsets without changing the syntax of ∃x A(x).

  6. For Γ={P,¬P}, examine Γ⊨Q by the definition. Compare with the empty-premise claim ⊨Q and explain which valuation test distinguishes them.

    Show the answer and reasoning

    {P,¬P} entails Q vacuously. The claim with no premises fails at any valuation with Q false.

    A valuation satisfying the displayed premises would need P true and ¬P true under the same assignment. The latter requires P false in the two-valued semantics, so there is no such valuation. Semantic entailment asserts that every valuation satisfying all premises satisfies Q. Since the premise class is empty, there is no valuation that could refute this assertion, and Γ⊨Q holds. With no premises, every valuation satisfies the premise set. Choose Q=false and assign P arbitrarily. This is a countervaluation to ⊨Q, which asks whether Q is true under all valuations. The difference lies in the set of permitted valuations. A separate syntactic proof can derive ⊥ from P and ¬P then use bottom elimination, while the semantic argument needs only the absence of a countervaluation.

  7. Determine whether {P→Q,Q} entails P. Supply a complete assignment to P,Q verifying or refuting the claim.

    Show the answer and reasoning

    The entailment fails at P=false and Q=true.

    To test the entailment, seek one assignment making both premises true and the conclusion P false. Set P=0 and Q=1. The premise Q is true directly from the assignment. The implication P→Q is true because the antecedent is false. The requested conclusion P is false at this same assignment. Thus the two premises and the negation of the conclusion can be satisfied together. This is a complete countervaluation to the inference. Knowing that an implication has a true consequent does not determine its antecedent under the material truth condition.

  8. For Γ={P∨Q} decide whether Γ∪{¬P} entails Q and whether Γ entails ¬P→Q. Verify each claim by the same finite truth cases.

    Show the answer and reasoning

    Both Γ∪{¬P}⊨Q and Γ⊨¬P→Q hold.

    Restrict first to valuations satisfying P∨Q. If P=0, the disjunction forces Q=1. In that case ¬P is true and Q is true. These are all permitted valuations of the enlarged premise set. If P=1, the disjunction holds for either Q value. But ¬P is then false, so neither of these valuations satisfies the enlarged premise set. For the implication claim, revisit those same cases. In the first case both ¬P and Q are true, so ¬P→Q is true. In the second case its antecedent ¬P is false, so the implication is true for either value of Q. This accounts for every valuation satisfying Γ. Moving the extra premise into the antecedent makes the same two-valued reasoning explicit.

  9. Construct a derivation of P→(Q→P) with two labelled temporary assumptions. Show which assumption is unused in the inner derivation and verify each resulting context.

    Show the answer and reasoning

    From temporary P and Q, keep P as the result, then discharge Q and P in that order. The inner discharge is vacuous.

    Open a label u with formula P. Under it open another label v with formula Q. The branch to be proved has desired conclusion P and can use the existing u assumption directly. No leaf of that subproof needs the Q formula. Implication introduction may nevertheless discharge its unused label v in the declared calculus, resulting in Q→P with sole surviving label u. At the outer step use implication introduction again to discharge u. Its target is P→(Q→P), and its remaining context is empty. The permitted context at the deepest stage contains both P and Q, while the actual assumption supporting the leaf is just P. The scopes explain why adding and discharging an unused temporary premise is sound.

  10. Use only propositional rules common to classical and intuitionistic natural deduction to prove ¬¬(P∨¬P). Explain which open assumption the final step discharges.

    Show the answer and reasoning

    Assuming H=¬(P∨¬P) leads to bottom by two uses of disjunction introduction. Discharging H proves the required double negation.

    Write E=P∨¬P and assume H=E→⊥ with label u. Under a temporary P with label v, derive E by left disjunction introduction, then apply H to obtain ⊥. Discharge v by implication introduction to infer ¬P under H alone. This step has produced an implication to bottom from a branch where P was assumed. From ¬P infer E by right disjunction introduction, and use H again to infer bottom. The second bottom has only H as an open premise. Discharge u by implication introduction. The result is H→⊥=¬¬E. Each displayed rule belongs to the classical-free fragment. The derivation has no step from doubled negation to E.

  11. For F=(P∧Q)∨(P∧¬Q), for each valuation of P,Q say whether the literal-context lemma proves F or ¬F. Give the resulting explicit sequent P⊢F in the classical calculus.

    Show the answer and reasoning

    The contexts with P=true prove F and those with P=false prove ¬F. The sequent P⊢F follows by a split over Q∨¬Q.

    For P=1,Q=1 the context contains P,Q, so form P∧Q and introduce the left disjunct. For P=1,Q=0 it contains P,¬Q, so form P∧¬Q and introduce the right disjunct. For P=0, either value of Q gives an open premise ¬P. Temporarily assume F. If its left disjunct holds, conjunction elimination gives P, contradicting ¬P. If its right disjunct holds, conjunction elimination again gives P, leading to the same bottom. Disjunction elimination on the assumed F discharges its two case labels to give bottom. Implication introduction discharging F gives ¬F from the false-P literal context, regardless of the other literal. This accounts for all four valuations. To construct P⊢F, keep P open and use the theorem Q∨¬Q as the major premise. The two positive-P constructions already give F under the temporary assumptions Q and ¬Q respectively. Discharge both by disjunction elimination, leaving only P open.

  12. Starting from the derivation of P→P, uniformly replace P by (Q∧R) and state the resulting valid proof. Return to the original conclusion P→P, then change just its consequent letter to Q and refute the resulting P→Q.

    Show the answer and reasoning

    Uniform replacement yields the theorem (Q∧R)→(Q∧R). Changing the original conclusion’s consequent alone to Q would give the invalid P→Q.

    The original proof of P→P opens assumption P, returns exactly P and discharges this same labelled occurrence. Both appearances of the letter in the resulting implication come from that proof pattern. Replace every occurrence of P, including its assumption and return occurrence, with the full formula Q∧R. Open that formula, conclude it directly, and discharge it. The result is (Q∧R)→(Q∧R). Returning to the original conclusion, changing only the consequent letter gives P→Q. The altered return value cannot be obtained from the original assumption leaf P without an additional rule or premise. In fact, take P=true and Q=false. The proposed material implication is false. There is no closed proof in this sound calculus, which confirms that replacing only one of the two occurrences is invalid.

  13. From x=y under actual identity, show why any term f(x) has the same value as f(y) and any declared unary predicate has equal truth on those results. Explain what can fail for a relation E assumed only reflexive.

    Show the answer and reasoning

    Actual equality of x and y entails equality of f(x) and f(y), and the predicate truth agrees on these equal results. Reflexivity alone does not ensure either replacement.

    If x=y holds in the structure under the assignment, both variables denote the same domain element d. The interpretation of f is a function, so evaluating it at d through either variable gives the same element. A unary predicate is interpreted as a subset of the domain. Two equal function results have identical membership in that subset, and hence the two predicate formulas have the same truth value. For a counterexample with E, use the full relation on {0,1}, the identity function f and a predicate P holding only on 0. The relation is reflexive, and E(0,1) holds even though these values differ. At x=0 and y=1 the predicate P(f(x)) is true and P(f(y)) is false. A replacement rule for E would need extra hypotheses relating E to how the predicate and functions treat those elements.

  14. On a nonempty finite structure choose an assignment satisfying P(y) but not ∀x P(x). Identify the free variable in the open premise and the rule’s freshness restriction.

    Show the answer and reasoning

    Use domain {0,1}, P={0} and assignment y=0. P(y) holds while ∀x P(x) fails.

    The model gives P truth for element 0 and falsehood for 1. With y assigned 0, the specific premise P(y) is true. The target ∀x P(x) requires the predicate to hold for both elements. Choosing x=1 shows it fails. The implication from the open premise to the universally quantified result is therefore unsound. The variable y occurs free in the premise P(y), so varying y to range over the domain can change the premise’s truth. It is not arbitrary with respect to that assumption. The universal-introduction rule requires its generalized variable to be absent from the free variables of the retained open premises, or uses an appropriately fresh variable for the displayed instance. That condition forbids this derivation.

  15. In the two-letter language P,Q with sole axiom P, find models with Q true and with Q false. Use soundness to explain what T does and does not prove about Q.

    Show the answer and reasoning

    T={P} is consistent and derives neither Q nor ¬Q. Valuations (P,Q)=(1,1) and (1,0) establish the two failures of entailment.

    Consider the classic two-valued language with P and Q. The valuation making both true satisfies the sole axiom P and makes ¬Q false. Soundness therefore forbids a proof of ¬Q from T. The valuation with P true and Q false also satisfies the axiom. It refutes any proposed consequence Q, and soundness forbids deriving Q from T. Each valuation is a model of T, so T cannot derive bottom in a sound system. This establishes consistency in the stated sense. The theory can derive its own axiom P by using it as a premise. Different compatible values of Q show that consistency and derivability of some sentences do not settle every sentence of the language.

  16. Take the natural numbers starting at zero with f(n)=n+2. Prove injectivity, identify the elements outside its image and check why this is impossible on a finite set of the same codomain and domain.

    Show the answer and reasoning

    For natural numbers starting at zero, f(n)=n+2 is injective and misses exactly 0 and 1. No injective self-map of a finite set can miss a value.

    If f(n)=f(m), then n+2=m+2. Subtracting two gives n=m, establishing injectivity. The formula yields a value in the same domain for every input. No output is less than two, so 0 and 1 have no preimage. Each number k≥2 has preimage k−2, so there are no additional missing elements. With the convention that natural numbers start at one, the missing elements would be 1 and 2 instead. On a finite set of size N, an injective function of the set into itself gives N distinct outputs. Since the codomain has exactly N elements, its image is the whole codomain. The difference is a property of the allowable domain size. The sentence that a unary function is injective and omits a value is satisfiable in this integer example and has no finite model.

  17. Given any enumeration of propositional valuations v_0,v_1,… for letters P_0,P_1,…, build a valuation differing from the nth on P_n. Explain how the corresponding truth theory differs on a sentence from each listed theory.

    Show the answer and reasoning

    Set v(P_n)=1−v_n(P_n). The formula P_n belongs to exactly one of Th(v) and Th(v_n), so the new theory differs from every listed one.

    The proposed enumeration gives a binary value for each letter in each valuation. Define the new valuation on each P_n using the opposite of the nth displayed valuation’s value on that very letter. This defines one value for every letter and therefore a valid assignment on the entire language. It disagrees with v_n at P_n, so it cannot equal v_n for any n, even if some entries in the proposed list repeat. Define Th(v) to contain exactly the formulas true under this assignment. If v(P_n)=1 then P_n is in Th(v) and absent from Th(v_n). If v(P_n)=0 the two membership statements reverse. Thus the same diagonal construction yields a truth theory distinct from all the corresponding listed truth theories. Membership of an actual single-variable formula witnesses each distinction.

  18. In an infinite equality-only domain suppose x,y have different values. Describe the possible equality patterns of triples (x,y,z). Use this to evaluate ∀x∀y(x≠y→∃z(z≠x∧z≠y)) there and on a two-element domain.

    Show the answer and reasoning

    When x≠y, z may equal x, equal y or be distinct from both. The sentence holds in an infinite domain but fails in a two-element domain.

    For a pair of distinct assigned values, equality tests on a third variable have precisely three consistent patterns. The third value equals the first, equals the second or equals neither. It cannot equal both because the first two are distinct. In an infinite set every finite list leaves some element outside it. Thus each of the three patterns is possible, including the fresh element satisfying z≠x and z≠y. If x=y the displayed implication is true because its antecedent is false. If x≠y a fresh z makes the existential consequent true. Hence all assignments to x and y satisfy the inner formula on an infinite domain. On a two-element set choose distinct x and y, exhausting its elements. There is no third value and the existential consequent fails, so the universal sentence is false. A three-element domain already suffices for this particular sentence.

What to carry forward

  • The formation grammar supplies the base cases and inductive steps used to reason about formulas.
  • An admissible substitution corresponds to changing an assignment by a term's evaluated value.
  • Soundness checks what each legal inference preserves. Completeness establishes when a semantic consequence has a derivation.
  • Finite valuation proofs extend to countably many premises through a separate compactness argument.
  • An intuitionistic implication examines how the antecedent and consequent behave at accessible states.
  • Freshness conditions make generalizations independent of accidental restrictions and witnesses local to their deduction.
  • An explicit definition has a unique expansion of each old structure and preserves old-language consequences.
  • Infinite pure-equality structures may agree on every sentence even when their domains have different cardinalities.

References

Sources for the concepts and teaching approaches in this article.

  1. Open Logic Project10 sources
    1. Inductive formation of first-order formulasOpen Logic ProjectPrimary · PDFbuilds.openlogicproject.orgRead source
    2. Free substitution and variable captureOpen Logic ProjectPrimary · PDFbuilds.openlogicproject.orgRead source
    3. Term valuation and quantifier semanticsOpen Logic ProjectPrimary · PDFbuilds.openlogicproject.orgRead source
    4. Syntax and semantic assignment updatesOpen Logic ProjectPrimary · PDFbuilds.openlogicproject.orgRead source
    5. Natural deduction trees and labelled assumptionsOpen Logic ProjectPrimary · PDFbuilds.openlogicproject.orgRead source
    6. Propositional completeness and compactnessOpen Logic ProjectPrimary · PDFbuilds.openlogicproject.orgRead source
    7. Persistent information and the intuitionistic conditionalOpen Logic ProjectPrimary · PDFbuilds.openlogicproject.orgRead source
    8. Expanding an explicitly defined relationOpen Logic ProjectPrimary · PDFbuilds.openlogicproject.orgRead source
    9. Diagonal comparison of set sizesOpen Logic ProjectPrimary · PDFbuilds.openlogicproject.orgRead source
    10. Elementary equivalence and isomorphismOpen Logic ProjectPrimary · PDFbuilds.openlogicproject.orgRead source
  2. P. D. Magnus, Tim Button and collaborators, with Richard Zach2 sources
    1. Truth-table validity and derivabilityP. D. Magnus, Tim Button and collaborators, with Richard ZachPrimary · PDFforallx.openlogicproject.orgRead source
    2. Fresh names in quantifier rulesP. D. Magnus, Tim Button and collaborators, with Richard ZachPrimary · PDFforallx.openlogicproject.orgRead source