HomeHome Metamath Proof Explorer < Previous   Next >
Related theorems
GIF version

Theorem xor 500
Description: Two ways to express "exclusive or". Theorem *5.22 of [WhiteheadRussell] p. 124.
Assertion
Ref Expression
xor (¬ (φψ) ↔ ((φ ∧ ¬ ψ) ∨ (ψ ∧ ¬ φ)))

Proof of Theorem xor
StepHypRef Expression
1 dfbi 499 . 2 ((¬ φψ) ↔ ((¬ φψ) ∨ (¬ ¬ φ ∧ ¬ ψ)))
2 nbbn 498 . 2 ((¬ φψ) ↔ ¬ (φψ))
3 ancom 333 . . . 4 ((ψ ∧ ¬ φ) ↔ (¬ φψ))
4 pm4.13 142 . . . . 5 (φ ↔ ¬ ¬ φ)
54anbi1i 368 . . . 4 ((φ ∧ ¬ ψ) ↔ (¬ ¬ φ ∧ ¬ ψ))
63, 5orbi12i 216 . . 3 (((ψ ∧ ¬ φ) ∨ (φ ∧ ¬ ψ)) ↔ ((¬ φψ) ∨ (¬ ¬ φ ∧ ¬ ψ)))
7 orcom 209 . . 3 (((ψ ∧ ¬ φ) ∨ (φ ∧ ¬ ψ)) ↔ ((φ ∧ ¬ ψ) ∨ (ψ ∧ ¬ φ)))
86, 7bitr3 153 . 2 (((¬ φψ) ∨ (¬ ¬ φ ∧ ¬ ψ)) ↔ ((φ ∧ ¬ ψ) ∨ (ψ ∧ ¬ φ)))
91, 2, 83bitr3 156 1 (¬ (φψ) ↔ ((φ ∧ ¬ ψ) ∨ (ψ ∧ ¬ φ)))
Colors of variables: wff set class
Syntax hints:  ¬ wn 1   ↔ wb 127   ∨ wo 195   ∧ wa 196
This theorem is referenced by:  biass 511
This theorem was proved from axioms:  ax-1 3  ax-2 4  ax-3 5  ax-mp 6
This theorem depends on definitions:  df-bi 128  df-or 197  df-an 198
metamath.org