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 41812
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 1484 . 2 ((𝜑𝜓) ↔ ¬ (𝜑𝜓))
2 xor2 1510 . . . 4 ((𝜑𝜓) ↔ ((𝜑𝜓) ∧ ¬ (𝜑𝜓)))
32rbaibr 537 . . 3 (¬ (𝜑𝜓) → ((𝜑𝜓) ↔ (𝜑𝜓)))
42bibi2i 337 . . . 4 (((𝜑𝜓) ↔ (𝜑𝜓)) ↔ ((𝜑𝜓) ↔ ((𝜑𝜓) ∧ ¬ (𝜑𝜓))))
5 pm4.71 557 . . . . 5 (((𝜑𝜓) → ¬ (𝜑𝜓)) ↔ ((𝜑𝜓) ↔ ((𝜑𝜓) ∧ ¬ (𝜑𝜓))))
6 simpl 482 . . . . . . . 8 ((𝜑𝜓) → 𝜑)
76orcd 869 . . . . . . 7 ((𝜑𝜓) → (𝜑𝜓))
87con3i 154 . . . . . 6 (¬ (𝜑𝜓) → ¬ (𝜑𝜓))
9 id 22 . . . . . 6 (¬ (𝜑𝜓) → ¬ (𝜑𝜓))
108, 9ja 186 . . . . 5 (((𝜑𝜓) → ¬ (𝜑𝜓)) → ¬ (𝜑𝜓))
115, 10sylbir 234 . . . 4 (((𝜑𝜓) ↔ ((𝜑𝜓) ∧ ¬ (𝜑𝜓))) → ¬ (𝜑𝜓))
124, 11sylbi 216 . . 3 (((𝜑𝜓) ↔ (𝜑𝜓)) → ¬ (𝜑𝜓))
133, 12impbii 208 . 2 (¬ (𝜑𝜓) ↔ ((𝜑𝜓) ↔ (𝜑𝜓)))
141, 13bitri 274 1 ((𝜑𝜓) ↔ ((𝜑𝜓) ↔ (𝜑𝜓)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wo 843  wnan 1483  wxo 1503
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 206  df-an 396  df-or 844  df-nan 1484  df-xor 1504
This theorem is referenced by:  undisjrab  41813
  Copyright terms: Public domain W3C validator