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

Theorem uniprg 4881
Description: The union of a pair is the union of its members. Proposition 5.7 of [TakeutiZaring] p. 16. (Contributed by NM, 25-Aug-2006.) Avoid using unipr 4882 to prove it from uniprg 4881. (Revised by BJ, 1-Sep-2024.)
Assertion
Ref Expression
uniprg ((𝐴𝑉𝐵𝑊) → {𝐴, 𝐵} = (𝐴𝐵))

Proof of Theorem uniprg
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 vex 3448 . . . . . . . . 9 𝑦 ∈ V
21elpr 4608 . . . . . . . 8 (𝑦 ∈ {𝐴, 𝐵} ↔ (𝑦 = 𝐴𝑦 = 𝐵))
32anbi2i 624 . . . . . . 7 ((𝑥𝑦𝑦 ∈ {𝐴, 𝐵}) ↔ (𝑥𝑦 ∧ (𝑦 = 𝐴𝑦 = 𝐵)))
4 ancom 462 . . . . . . . 8 ((𝑥𝑦 ∧ (𝑦 = 𝐴𝑦 = 𝐵)) ↔ ((𝑦 = 𝐴𝑦 = 𝐵) ∧ 𝑥𝑦))
5 andir 1008 . . . . . . . 8 (((𝑦 = 𝐴𝑦 = 𝐵) ∧ 𝑥𝑦) ↔ ((𝑦 = 𝐴𝑥𝑦) ∨ (𝑦 = 𝐵𝑥𝑦)))
64, 5bitri 275 . . . . . . 7 ((𝑥𝑦 ∧ (𝑦 = 𝐴𝑦 = 𝐵)) ↔ ((𝑦 = 𝐴𝑥𝑦) ∨ (𝑦 = 𝐵𝑥𝑦)))
73, 6bitri 275 . . . . . 6 ((𝑥𝑦𝑦 ∈ {𝐴, 𝐵}) ↔ ((𝑦 = 𝐴𝑥𝑦) ∨ (𝑦 = 𝐵𝑥𝑦)))
87exbii 1851 . . . . 5 (∃𝑦(𝑥𝑦𝑦 ∈ {𝐴, 𝐵}) ↔ ∃𝑦((𝑦 = 𝐴𝑥𝑦) ∨ (𝑦 = 𝐵𝑥𝑦)))
9 19.43 1886 . . . . 5 (∃𝑦((𝑦 = 𝐴𝑥𝑦) ∨ (𝑦 = 𝐵𝑥𝑦)) ↔ (∃𝑦(𝑦 = 𝐴𝑥𝑦) ∨ ∃𝑦(𝑦 = 𝐵𝑥𝑦)))
108, 9bitri 275 . . . 4 (∃𝑦(𝑥𝑦𝑦 ∈ {𝐴, 𝐵}) ↔ (∃𝑦(𝑦 = 𝐴𝑥𝑦) ∨ ∃𝑦(𝑦 = 𝐵𝑥𝑦)))
11 clel3g 3611 . . . . . . 7 (𝐴𝑉 → (𝑥𝐴 ↔ ∃𝑦(𝑦 = 𝐴𝑥𝑦)))
1211bicomd 222 . . . . . 6 (𝐴𝑉 → (∃𝑦(𝑦 = 𝐴𝑥𝑦) ↔ 𝑥𝐴))
1312adantr 482 . . . . 5 ((𝐴𝑉𝐵𝑊) → (∃𝑦(𝑦 = 𝐴𝑥𝑦) ↔ 𝑥𝐴))
14 clel3g 3611 . . . . . . 7 (𝐵𝑊 → (𝑥𝐵 ↔ ∃𝑦(𝑦 = 𝐵𝑥𝑦)))
1514bicomd 222 . . . . . 6 (𝐵𝑊 → (∃𝑦(𝑦 = 𝐵𝑥𝑦) ↔ 𝑥𝐵))
1615adantl 483 . . . . 5 ((𝐴𝑉𝐵𝑊) → (∃𝑦(𝑦 = 𝐵𝑥𝑦) ↔ 𝑥𝐵))
1713, 16orbi12d 918 . . . 4 ((𝐴𝑉𝐵𝑊) → ((∃𝑦(𝑦 = 𝐴𝑥𝑦) ∨ ∃𝑦(𝑦 = 𝐵𝑥𝑦)) ↔ (𝑥𝐴𝑥𝐵)))
1810, 17bitrid 283 . . 3 ((𝐴𝑉𝐵𝑊) → (∃𝑦(𝑥𝑦𝑦 ∈ {𝐴, 𝐵}) ↔ (𝑥𝐴𝑥𝐵)))
1918abbidv 2807 . 2 ((𝐴𝑉𝐵𝑊) → {𝑥 ∣ ∃𝑦(𝑥𝑦𝑦 ∈ {𝐴, 𝐵})} = {𝑥 ∣ (𝑥𝐴𝑥𝐵)})
20 df-uni 4865 . 2 {𝐴, 𝐵} = {𝑥 ∣ ∃𝑦(𝑥𝑦𝑦 ∈ {𝐴, 𝐵})}
21 df-un 3914 . 2 (𝐴𝐵) = {𝑥 ∣ (𝑥𝐴𝑥𝐵)}
2219, 20, 213eqtr4g 2803 1 ((𝐴𝑉𝐵𝑊) → {𝐴, 𝐵} = (𝐴𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 397  wo 846   = wceq 1542  wex 1782  wcel 2107  {cab 2715  cun 3907  {cpr 4587   cuni 4864
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2109  ax-9 2117  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 847  df-tru 1545  df-ex 1783  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2816  df-v 3446  df-un 3914  df-sn 4586  df-pr 4588  df-uni 4865
This theorem is referenced by:  unipr  4882  unisng  4885  wunun  10580  tskun  10656  gruun  10676  mrcun  17438  unopn  22180  indistopon  22279  unconn  22708  limcun  25187  sshjval3  30101  prsiga  32510  unelsiga  32513  unelldsys  32537  measxun2  32589  measssd  32594  carsgsigalem  32695  carsgclctun  32701  pmeasmono  32704  probun  32799  indispconn  33608  bj-prmoore  35517  kelac2  41294  mnuund  42359  fourierdlem70  44208  fourierdlem71  44209  saluncl  44349  prsal  44350  meadjun  44494  omeunle  44548  toplatjoin  46818
  Copyright terms: Public domain W3C validator