Metamath Proof Explorer


Theorem wl-2xor

Description: In the recursive scheme

"(n+1)-xor" <-> if- ( ph , -. "n-xor" , "n-xor" )

we set n = 1 to formally arrive at an expression for "2-xor". It is based on "1-xor", that is known to be equivalent to its only input (see wl-1xor ). (Contributed by Wolf Lammen, 11-May-2024)

Ref Expression
Assertion wl-2xor if-φ¬ψψφψ

Proof

Step Hyp Ref Expression
1 ifpdfbi ¬φψif-¬φψ¬ψ
2 df-xor φψ¬φψ
3 nbbn ¬φψ¬φψ
4 2 3 bitr4i φψ¬φψ
5 ifpn if-φ¬ψψif-¬φψ¬ψ
6 1 4 5 3bitr4ri if-φ¬ψψφψ