Metamath Proof Explorer


Theorem wl-spae

Description: Prove an instance of sp from ax-13 and Tarski's FOL only, without distinct variable conditions. The antecedent A. x x = y holds in a multi-object universe only if y is substituted for x , or vice versa, i.e. both variables are effectively the same. The converse -. A. x x = y indicates that both variables are distinct, and it so provides a simple translation of a distinct variable condition to a logical term. In case studies A. x x = y and -. A. x x = y can help eliminating distinct variable conditions.

The antecedent A. x x = y is expressed in the theorem's name by the abbreviation ae standing for 'all equal'.

Note that we cannot provide a logical predicate telling us directly whether a logical expression contains a particular variable, as such a construct would usually contradict ax-12 .

Note that this theorem is also provable from ax-12 alone, so you can pick the axiom it is based on.

Compare this result to 19.3v and spaev having distinct variable conditions, but a smaller footprint on axiom usage. (Contributed by Wolf Lammen, 5-Apr-2021)

Ref Expression
Assertion wl-spae xx=yx=y

Proof

Step Hyp Ref Expression
1 aeveq xx=zx=y
2 1 adantl y=zxx=zx=y
3 2 a1d y=zxx=zxx=yx=y
4 ax13v ¬x=yy=zxy=z
5 equtrr y=zx=yx=z
6 5 al2imi xy=zxx=yxx=z
7 6 con3d xy=z¬xx=z¬xx=y
8 4 7 syl6 ¬x=yy=z¬xx=z¬xx=y
9 8 com13 ¬xx=zy=z¬x=y¬xx=y
10 9 impcom y=z¬xx=z¬x=y¬xx=y
11 10 con4d y=z¬xx=zxx=yx=y
12 3 11 pm2.61dan y=zxx=yx=y
13 ax6evr zy=z
14 12 13 exlimiiv xx=yx=y