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 |
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.
Equality 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.