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

Theorem symdif2 1690
Description: Two ways of expressing symmetric difference.
Assertion
Ref Expression
symdif2 ((AB) ∪ (BA)) = {x∣ ¬ (xAxB)}
Distinct variable group(s):   x,A   x,B

Proof of Theorem symdif2
StepHypRef Expression
1 elun 1601 . . 3 (x ∈ ((AB) ∪ (BA)) ↔ (x ∈ (AB) ∨ x ∈ (BA)))
2 eldif 1496 . . . . 5 (x ∈ (AB) ↔ (xA ∧ ¬ xB))
3 pm4.13 142 . . . . . 6 (xA ↔ ¬ ¬ xA)
43anbi1i 368 . . . . 5 ((xA ∧ ¬ xB) ↔ (¬ ¬ xA ∧ ¬ xB))
52, 4bitr 151 . . . 4 (x ∈ (AB) ↔ (¬ ¬ xA ∧ ¬ xB))
6 eldif 1496 . . . . 5 (x ∈ (BA) ↔ (xB ∧ ¬ xA))
7 ancom 333 . . . . 5 ((xB ∧ ¬ xA) ↔ (¬ xAxB))
86, 7bitr 151 . . . 4 (x ∈ (BA) ↔ (¬ xAxB))
95, 8orbi12i 216 . . 3 ((x ∈ (AB) ∨ x ∈ (BA)) ↔ ((¬ ¬ xA ∧ ¬ xB) ∨ (¬ xAxB)))
10 orcom 209 . . . . 5 (((¬ ¬ xA ∧ ¬ xB) ∨ (¬ xAxB)) ↔ ((¬ xAxB) ∨ (¬ ¬ xA ∧ ¬ xB)))
11 dfbi 499 . . . . 5 ((¬ xAxB) ↔ ((¬ xAxB) ∨ (¬ ¬ xA ∧ ¬ xB)))
1210, 11bitr4 154 . . . 4 (((¬ ¬ xA ∧ ¬ xB) ∨ (¬ xAxB)) ↔ (¬ xAxB))
13 nbbn 498 . . . 4 ((¬ xAxB) ↔ ¬ (xAxB))
1412, 13bitr 151 . . 3 (((¬ ¬ xA ∧ ¬ xB) ∨ (¬ xAxB)) ↔ ¬ (xAxB))
151, 9, 143bitr 155 . 2 (x ∈ ((AB) ∪ (BA)) ↔ ¬ (xAxB))
1615biabri 1180 1 ((AB) ∪ (BA)) = {x∣ ¬ (xAxB)}
Colors of variables: wff set class
Syntax hints:  ¬ wn 1   ↔ wb 127   ∨ wo 195   ∧ wa 196  {cab 1090   = wceq 1091   ∈ wcel 1092   ∖ cdif 1484   ∪ cun 1485
This theorem was proved from axioms:  ax-1 3  ax-2 4  ax-3 5  ax-mp 6  ax-4 673  ax-5 674  ax-6 675  ax-7 676  ax-gen 677  ax-8 798  ax-9 799  ax-10 800  ax-11 801  ax-12 802  ax-16 922  ax-17 925  ax-ext 1074
This theorem depends on definitions:  df-bi 128  df-or 197  df-an 198  df-ex 679  df-sb 853  df-clab 1093  df-cleq 1097  df-clel 1099  df-v 1349  df-dif 1489  df-un 1490
metamath.org