Equality introduction rule 2026-10-31
The reflexivity rule for first-order equality: any well-formed term satisfies without additional premises. Together with the equality elimination rule, it derives symmetry: from and , substitute in the first designated argument position of to obtain . Transitivity follows from and by substitution in the second designated argument position of .
Existential quantification over a finitely named domain Created 2026-10-25 Updated 2026-10-31
Assume with . For the forward implication, open a fresh existential witness, instantiate domain exhaustiveness at it, and split into the equality cases. The equality elimination rule transfers its predicate to the corresponding constant, which supplies the required disjunct. Closing the witness scope is legal because the result contains only the named constants. Conversely each named instance gives the existential by the existential quantifier introduction rule, and cases combine those derivations. The constants need not denote distinct objects. A negated named instance can eliminate one case through contradiction and logical falsity elimination rule.
Introduce a fresh existential witness with . The universal premise gives . In the first case, equality elimination rule gives . In the second, it gives , contradicting ; explosion then supplies the common case conclusion . Close both cases and then the witness scope:
| Line | Open assumptions | Formula | Justification |
|---|---|---|---|
| 1 | 1 | Premise | |
| 2 | 1, 2 | Premise | |
| 3 | 1, 2, 3 | Premise | |
| 4 | 1, 2, 3, 4 | Temporary assumption | |
| 5 | 1, 2, 3, 4 | universal elimination 1; term | |
| 6 | 1, 2, 3, 4, 6 | Temporary assumption | |
| 7 | 1, 2, 3, 4, 6 | equality elimination rule 6, 4 | |
| 8 | 1, 2, 3, 4, 8 | Temporary assumption | |
| 9 | 1, 2, 3, 4, 8 | equality elimination rule 8, 4 | |
| 10 | 1, 2, 3, 4, 8 | negation elimination rule 9, 3 | |
| 11 | 1, 2, 3, 4, 8 | explosion 10 | |
| 12 | 1, 2, 3, 4 | disjunction elimination 5, 6, 7, 8, 11 | |
| 13 | 1, 2, 3 | existential elimination 2, 4, 12; fresh |
HenceFor both uses of equality elimination rule, the formula template is . At the final existential elimination, is fresh in all three original premises and absent from , so the eigenvariable condition holds. No additional assumption that the constants and denote distinct objects is needed.
Use reflexivity to obtain . In equality elimination rule, take to be , and replace the designated first occurrence of using the premise :
The equality introduction rule is reflexivity: any well-formed first-order term is equal to itself, with no premises. The equality elimination rule permits replacement of equals in a first-order formula:In the second rule, write and as the results of substituting and into the same designated free occurrences of a variable in . Both substitutions must avoid variable capture. The rule preserves the surrounding assumptions. This expresses first-order equality rather than treating equality as an arbitrary relation symbol.
Eliminate the existential premise with fresh witness . Its first conjunct gives and its second gives . For a fresh arbitrary , one direction of the desired logical biconditional follows by universal elimination. For the other, must be reversed before transporting to using the supplied oriented equality elimination rule.
| Line | Context | Formula | Justification |
|---|---|---|---|
| 1 | Premise | ||
| 2 | Temporary assumption | ||
| 3 | conjunction elimination rule on 2 | ||
| 4 | conjunction elimination rule on 2 | ||
| 5 | universal elimination on 4; instantiate at | ||
| 6 | Temporary assumption | ||
| 7 | equality introduction rule | ||
| 8 | equality elimination rule on 6, 7 | ||
| 9 | equality elimination rule on 8, 3 | ||
| 10 | implication introduction rule on 9; discharge 6 | ||
| 11 | biconditional introduction rule on 5, 10 | ||
| 12 | universal introduction on 11; fresh | ||
| 13 | existential quantifier introduction rule on 12; witness | ||
| 14 | existential quantifier elimination rule on 1, 13; discharge 2; fresh |
Here is absent from every open assumption when line 12 uses universal introduction. In line 13 the existential quantifier binds the witness position occupied by ; the conclusion then has no free , allowing line 14 to close its witness subproof. HenceThe premise says an object satisfying exists and every object satisfying equals it. The logical biconditional adds the converse explicitly: every object equal to that witness also satisfies .
Use the equality introduction rule to prove . In the equality elimination rule, choose the first-order formula to be . Substituting for in its first position proves symmetry:
| Line | Context | Formula | Justification |
|---|---|---|---|
| 1 | Premise | ||
| 2 | equality introduction rule | ||
| 3 | equality elimination rule on 1, 2 |
The premise limits every possible existential witness to the objects named by ; it does not assert that these constants name distinct objects. Instantiate it at a fresh witness , then apply disjunction elimination. In the first case equality elimination rule transfers to ; in the second it transfers to , contradicting the assumed negation. The full natural deduction derivation isThe sibling case subproofs end before the witness subproof closes. At line 13, is absent from and from all surrounding assumptions, so no witness escape occurs. The final two applications of implication introduction giveThe logical falsity elimination rule is needed to complete the contradictory second case with the same conclusion as the first case.
Choose fresh arbitrary eigenvariables . Under , use the equality elimination rule to transport to . For the reverse direction, first derive by the symmetry derivation above. In full natural deduction form:All temporary assumptions are discharged before either universal quantifier introduction rule application, so both eigenvariable conditions hold. No premises remain:
For transitivity of first-order equality, take to be . The equality elimination rule applied to and givesFor symmetry of first-order equality, first obtain by the equality introduction rule. Now take to be and substitute using :These choices of formula show exactly which occurrence is replaced, so neither argument assumes the property it is establishing.
The equality introduction rule is reflexivity, with no premise. The equality elimination rule is substitution of equal first-order terms into a first-order formula:The indicated substitution must be capture-avoiding substitution in first-order logic: the first-order terms must be free for the replaced variable. One can designate a particular argument occurrence by choosing appropriately; the rule does not demand replacing every occurrence of an identical-looking term in a formula.
Choose distinct fresh parameters . Within the assumption , equality elimination rule gives the forward implication directly. Derive the reverse equality explicitly before using it for the reverse implication:The equality assumption is discharged before either universal quantifier introduction rule. There are then no undischarged assumptions, so both eigenvariable condition requirements hold. The final universal theorem expresses that equal arguments are interchangeable in the predicate in both directions.
1 | a = b assumption
2 | | P(a) assumption
3 | | P(b) =-elim 1,2
4 | P(a) → P(b) →-intro 2–3
5 | a = a =-intro
6 | b = a =-elim 1,5; φ(u) := (u = a)
7 | | P(b) assumption
8 | | P(a) =-elim 6,7
9 | P(b) → P(a) →-intro 7–8
10 | (P(a) → P(b)) ∧ (P(b) → P(a)) ∧-intro 4,9
11 a = b → ((P(a) → P(b)) ∧ (P(b) → P(a))) →-intro 1–10
12 ∀y. a = y → ((P(a) → P(y)) ∧ (P(y) → P(a))) ∀-intro 11, b fresh
13 ∀x. ∀y. x = y → ((P(x) → P(y)) ∧ (P(y) → P(x))) ∀-intro 12, a freshEquality introduction rule is reflexivity; equality elimination rule permits substitution of equals in a formula:Terms substituted into must be free for substitution, so no variable becomes captured. The notation means substitution into the same designated free variable positions of one formula; other occurrences may remain fixed. These rules express first-order equality without assuming symmetry or transitivity as additional axioms.
Let abbreviate the universal premise, and put . The constants need not denote distinct elements. Use a fresh witness for the existential, then the justified three-case disjunction elimination from (i):
1 ∀x (x=c0 ∨ x=c1 ∨ x=c2) premise H
2 | ¬Q(c0) assume
3 | | ∃x Q(x) assume
4 | | | Q(u) fresh witness for 3
5 | | | u=c0 ∨ u=c1 ∨ u=c2 ∀-elim, 1
6 | | | | u=c0 first case
7 | | | | Q(c0) =-elim, 6 and 4
8 | | | | ⊥ ¬-elim, 7 and 2
9 | | | | K ⊥-elim, 8
10 | | | | u=c1 second case
11 | | | | Q(c1) =-elim, 10 and 4
12 | | | | K ∨-intro-L, 11
13 | | | | u=c2 third case
14 | | | | Q(c2) =-elim, 13 and 4
15 | | | | K ∨-intro-R, 14
16 | | | K 3-cases, 5, subproofs 6–9, 10–12, 13–15
17 | | K ∃-elim, 3, subproof 4–16
18 | (∃x Q(x)) → K →-intro, discharge 3–17
19 ¬Q(c0) → ((∃x Q(x)) → K) →-intro, discharge 2–18Equality elimination rule has exactly the forward orientation displayed in Figure 4: substitute the equal constant for in . At line 17 the fresh witness is absent from , and the remaining assumption. This proves the required sequent without assuming that the universe has exactly three distinct objects.
Let abbreviate , and group the three equality alternatives on the left. The proof uses the binary disjunction elimination rule twice, so no unproved three-way derived rule is needed.
| Line | Formula | Justification |
|---|---|---|
| 1 | Premise | |
| 2 | Assume for the first implication | |
| 3 | Assume for the second implication | |
| 4 | Assume with fresh witness name | |
| 5 | Universal quantifier elimination rule, 1 | |
| 6 | Assume the first outer case | |
| 7 | Assume the first inner case | |
| 8 | Equality elimination rule, 7 and 4 | |
| 9 | Negation elimination rule, 2 and 8 | |
| 10 | Logical falsity elimination rule, 9 | |
| 11 | Assume the second inner case | |
| 12 | Equality elimination rule, 11 and 4 | |
| 13 | Disjunction introduction rule, left, 12 | |
| 14 | Disjunction elimination rule, 6, 7–10 and 11–13 | |
| 15 | Assume the second outer case | |
| 16 | Equality elimination rule, 15 and 4 | |
| 17 | Disjunction introduction rule, right, 16 | |
| 18 | Disjunction elimination rule, 5, 6–14 and 15–17 | |
| 19 | Existential quantifier elimination rule, 3 and 4–18 | |
| 20 | Implication introduction rule, discharging 3–19 | |
| 21 | Implication introduction rule, discharging 2–20 |
The witness name is absent from and from every assumption remaining after line 19, so the existential elimination is legal. Each equality is used in the forward direction supplied by the printed equality rule. The three named constants need not denote distinct objects: the case proof requires only that they exhaust the domain. This is existential quantification over a finitely named domain followed by exclusion of the first case.
Choose arbitrary fresh variables and assume under label . The conjunction elimination rule gives and . Apply the disjunction elimination rule to the equality disjunction.
In the case , the supplied symmetry rule gives , and the equality elimination rule applied to gives . Disjunction introduction rule gives . In the case , equality elimination rule applied directly to gives ; the other disjunction introduction rule gives the same conclusion . Discharge the two equality case assumptions by disjunction elimination rule.
Discharge with the implication introduction rule. There are now no undischarged assumptions. Use the universal quantifier introduction rule successively for , then , then , yieldingFreshness holds at every generalization because the sole temporary assumption has already been discharged; the arbitrary variables are not tied to any premise.