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

Definition df-xor 1544
Description: Define exclusive disjunction (logical "xor"). Return true if either the left or right, but not both, are true. After we define the constant true ⊤ (df-tru 1575) and the constant false ⊥ (df-fal 1585), we will be able to prove these truth table values: ((⊤ ⊻ ⊤) ↔ ⊥) (truxortru 1617), ((⊤ ⊻ ⊥) ↔ ⊤) (truxorfal 1618), ((⊥ ⊻ ⊤) ↔ ⊤) (falxortru 1619), and ((⊥ ⊻ ⊥) ↔ ⊥) (falxorfal 1620). Contrast with ∧ (df-an 402), ∨ (df-or 862), → (wi 4), and ⊼ (df-nan 1524). (Contributed by FL, 22-Nov-2010.)
Assertion
Ref Expression
df-xor ((𝜑 ⊻ 𝜓) ↔ ¬ (𝜑 ↔ 𝜓))

Detailed syntax breakdown of Definition df-xor
StepHypRef Expression
1 wph . . 3 wff 𝜑
2 wps . . 3 wff 𝜓
31, 2wxo 1543 . 2 wff (𝜑 ⊻ 𝜓)
41, 2wb 209 . . 3 wff (𝜑 ↔ 𝜓)
54wn 3 . 2 wff ¬ (𝜑 ↔ 𝜓)
63, 5wb 209 1 wff ((𝜑 ⊻ 𝜓) ↔ ¬ (𝜑 ↔ 𝜓))
Colors of variables:    wff setvar class
This definition is used by:  xnor  1545  xorcom  1546  xorass  1547  excxor  1548  xor2  1549  xorneg2  1553  xorbi12i  1556  xorbi12d  1557  anxordi  1558  xorexmid  1559  truxortru  1617  truxorfal  1618  falxorfal  1620  hadbi  1630  had0  1636  elsymdifxor  4210  sadadd2lem2  16673  f1omvdco3  19731  bj-bixor  37701  wl-df3xor2  38686  wl-3xorbi  38690  wl-2xor  38700  tsxo3  39363  tsxo4  39364  oneptri  44603  ifpxorxorb  44856  or3or  45367  axorbtnotaiffb  48329  axorbciffatcxorb  48331  aisbnaxb  48337  abnotbtaxb  48341  abnotataxb  48342  afv2orxorb  48654
  Copyright terms: Public domain W3C validator