MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  xor Structured version   Visualization version   GIF version

Theorem xor 1008
Description: Two ways to express exclusive disjunction (df-xor 1496). Theorem *5.22 of [WhiteheadRussell] p. 124. (Contributed by NM, 3-Jan-2005.) (Proof shortened by Wolf Lammen, 22-Jan-2013.)
Assertion
Ref Expression
xor (¬ (𝜑𝜓) ↔ ((𝜑 ∧ ¬ 𝜓) ∨ (𝜓 ∧ ¬ 𝜑)))

Proof of Theorem xor
StepHypRef Expression
1 iman 402 . . . 4 ((𝜑𝜓) ↔ ¬ (𝜑 ∧ ¬ 𝜓))
2 iman 402 . . . 4 ((𝜓𝜑) ↔ ¬ (𝜓 ∧ ¬ 𝜑))
31, 2anbi12i 626 . . 3 (((𝜑𝜓) ∧ (𝜓𝜑)) ↔ (¬ (𝜑 ∧ ¬ 𝜓) ∧ ¬ (𝜓 ∧ ¬ 𝜑)))
4 dfbi2 475 . . 3 ((𝜑𝜓) ↔ ((𝜑𝜓) ∧ (𝜓𝜑)))
5 ioran 977 . . 3 (¬ ((𝜑 ∧ ¬ 𝜓) ∨ (𝜓 ∧ ¬ 𝜑)) ↔ (¬ (𝜑 ∧ ¬ 𝜓) ∧ ¬ (𝜓 ∧ ¬ 𝜑)))
63, 4, 53bitr4ri 305 . 2 (¬ ((𝜑 ∧ ¬ 𝜓) ∨ (𝜓 ∧ ¬ 𝜑)) ↔ (𝜑𝜓))
76con1bii 358 1 (¬ (𝜑𝜓) ↔ ((𝜑 ∧ ¬ 𝜓) ∨ (𝜓 ∧ ¬ 𝜑)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 207  wa 396  wo 841
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 842
This theorem is referenced by:  pm5.24  1042  excxor  1500  elsymdif  4223  rpnnen2lem12  15568  ist0-3  21883  eliuniincex  41256  eliincex  41257  abnotataxb  43033  ldepslinc  44462
  Copyright terms: Public domain W3C validator