Users' Mathboxes Mathbox for Steve Rodriguez < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  nanorxor Structured version   Visualization version   GIF version

Theorem nanorxor 37526
Description: 'nand' is equivalent to the equivalence of inclusive and exclusive or. (Contributed by Steve Rodriguez, 28-Feb-2020.)
Assertion
Ref Expression
nanorxor ((𝜑𝜓) ↔ ((𝜑𝜓) ↔ (𝜑𝜓)))

Proof of Theorem nanorxor
StepHypRef Expression
1 df-nan 1440 . 2 ((𝜑𝜓) ↔ ¬ (𝜑𝜓))
2 xor2 1462 . . . 4 ((𝜑𝜓) ↔ ((𝜑𝜓) ∧ ¬ (𝜑𝜓)))
32rbaibr 944 . . 3 (¬ (𝜑𝜓) → ((𝜑𝜓) ↔ (𝜑𝜓)))
42bibi2i 326 . . . 4 (((𝜑𝜓) ↔ (𝜑𝜓)) ↔ ((𝜑𝜓) ↔ ((𝜑𝜓) ∧ ¬ (𝜑𝜓))))
5 pm4.71 660 . . . . 5 (((𝜑𝜓) → ¬ (𝜑𝜓)) ↔ ((𝜑𝜓) ↔ ((𝜑𝜓) ∧ ¬ (𝜑𝜓))))
6 simpl 472 . . . . . . . 8 ((𝜑𝜓) → 𝜑)
76orcd 406 . . . . . . 7 ((𝜑𝜓) → (𝜑𝜓))
87con3i 149 . . . . . 6 (¬ (𝜑𝜓) → ¬ (𝜑𝜓))
9 id 22 . . . . . 6 (¬ (𝜑𝜓) → ¬ (𝜑𝜓))
108, 9ja 172 . . . . 5 (((𝜑𝜓) → ¬ (𝜑𝜓)) → ¬ (𝜑𝜓))
115, 10sylbir 224 . . . 4 (((𝜑𝜓) ↔ ((𝜑𝜓) ∧ ¬ (𝜑𝜓))) → ¬ (𝜑𝜓))
124, 11sylbi 206 . . 3 (((𝜑𝜓) ↔ (𝜑𝜓)) → ¬ (𝜑𝜓))
133, 12impbii 198 . 2 (¬ (𝜑𝜓) ↔ ((𝜑𝜓) ↔ (𝜑𝜓)))
141, 13bitri 263 1 ((𝜑𝜓) ↔ ((𝜑𝜓) ↔ (𝜑𝜓)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 195  wo 382  wa 383  wnan 1439  wxo 1456
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 196  df-or 384  df-an 385  df-nan 1440  df-xor 1457
This theorem is referenced by:  undisjrab  37527
  Copyright terms: Public domain W3C validator