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

Theorem uniprg 4836
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 4837 to prove it from uniprg 4836. (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 3412 . . . . . . . . 9 𝑦 ∈ V
21elpr 4564 . . . . . . . 8 (𝑦 ∈ {𝐴, 𝐵} ↔ (𝑦 = 𝐴𝑦 = 𝐵))
32anbi2i 626 . . . . . . 7 ((𝑥𝑦𝑦 ∈ {𝐴, 𝐵}) ↔ (𝑥𝑦 ∧ (𝑦 = 𝐴𝑦 = 𝐵)))
4 ancom 464 . . . . . . . 8 ((𝑥𝑦 ∧ (𝑦 = 𝐴𝑦 = 𝐵)) ↔ ((𝑦 = 𝐴𝑦 = 𝐵) ∧ 𝑥𝑦))
5 andir 1009 . . . . . . . 8 (((𝑦 = 𝐴𝑦 = 𝐵) ∧ 𝑥𝑦) ↔ ((𝑦 = 𝐴𝑥𝑦) ∨ (𝑦 = 𝐵𝑥𝑦)))
64, 5bitri 278 . . . . . . 7 ((𝑥𝑦 ∧ (𝑦 = 𝐴𝑦 = 𝐵)) ↔ ((𝑦 = 𝐴𝑥𝑦) ∨ (𝑦 = 𝐵𝑥𝑦)))
73, 6bitri 278 . . . . . 6 ((𝑥𝑦𝑦 ∈ {𝐴, 𝐵}) ↔ ((𝑦 = 𝐴𝑥𝑦) ∨ (𝑦 = 𝐵𝑥𝑦)))
87exbii 1855 . . . . 5 (∃𝑦(𝑥𝑦𝑦 ∈ {𝐴, 𝐵}) ↔ ∃𝑦((𝑦 = 𝐴𝑥𝑦) ∨ (𝑦 = 𝐵𝑥𝑦)))
9 19.43 1890 . . . . 5 (∃𝑦((𝑦 = 𝐴𝑥𝑦) ∨ (𝑦 = 𝐵𝑥𝑦)) ↔ (∃𝑦(𝑦 = 𝐴𝑥𝑦) ∨ ∃𝑦(𝑦 = 𝐵𝑥𝑦)))
108, 9bitri 278 . . . 4 (∃𝑦(𝑥𝑦𝑦 ∈ {𝐴, 𝐵}) ↔ (∃𝑦(𝑦 = 𝐴𝑥𝑦) ∨ ∃𝑦(𝑦 = 𝐵𝑥𝑦)))
11 clel3g 3569 . . . . . . 7 (𝐴𝑉 → (𝑥𝐴 ↔ ∃𝑦(𝑦 = 𝐴𝑥𝑦)))
1211bicomd 226 . . . . . 6 (𝐴𝑉 → (∃𝑦(𝑦 = 𝐴𝑥𝑦) ↔ 𝑥𝐴))
1312adantr 484 . . . . 5 ((𝐴𝑉𝐵𝑊) → (∃𝑦(𝑦 = 𝐴𝑥𝑦) ↔ 𝑥𝐴))
14 clel3g 3569 . . . . . . 7 (𝐵𝑊 → (𝑥𝐵 ↔ ∃𝑦(𝑦 = 𝐵𝑥𝑦)))
1514bicomd 226 . . . . . 6 (𝐵𝑊 → (∃𝑦(𝑦 = 𝐵𝑥𝑦) ↔ 𝑥𝐵))
1615adantl 485 . . . . 5 ((𝐴𝑉𝐵𝑊) → (∃𝑦(𝑦 = 𝐵𝑥𝑦) ↔ 𝑥𝐵))
1713, 16orbi12d 919 . . . 4 ((𝐴𝑉𝐵𝑊) → ((∃𝑦(𝑦 = 𝐴𝑥𝑦) ∨ ∃𝑦(𝑦 = 𝐵𝑥𝑦)) ↔ (𝑥𝐴𝑥𝐵)))
1810, 17syl5bb 286 . . 3 ((𝐴𝑉𝐵𝑊) → (∃𝑦(𝑥𝑦𝑦 ∈ {𝐴, 𝐵}) ↔ (𝑥𝐴𝑥𝐵)))
1918abbidv 2807 . 2 ((𝐴𝑉𝐵𝑊) → {𝑥 ∣ ∃𝑦(𝑥𝑦𝑦 ∈ {𝐴, 𝐵})} = {𝑥 ∣ (𝑥𝐴𝑥𝐵)})
20 df-uni 4820 . 2 {𝐴, 𝐵} = {𝑥 ∣ ∃𝑦(𝑥𝑦𝑦 ∈ {𝐴, 𝐵})}
21 df-un 3871 . 2 (𝐴𝐵) = {𝑥 ∣ (𝑥𝐴𝑥𝐵)}
2219, 20, 213eqtr4g 2803 1 ((𝐴𝑉𝐵𝑊) → {𝐴, 𝐵} = (𝐴𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399  wo 847   = wceq 1543  wex 1787  wcel 2110  {cab 2714  cun 3864  {cpr 4543   cuni 4819
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2112  ax-9 2120  ax-ext 2708
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-tru 1546  df-ex 1788  df-sb 2071  df-clab 2715  df-cleq 2729  df-clel 2816  df-v 3410  df-un 3871  df-sn 4542  df-pr 4544  df-uni 4820
This theorem is referenced by:  unipr  4837  unisng  4840  wunun  10324  tskun  10400  gruun  10420  mrcun  17125  unopn  21800  indistopon  21898  unconn  22326  limcun  24792  sshjval3  29435  prsiga  31811  unelsiga  31814  unelldsys  31838  measxun2  31890  measssd  31895  carsgsigalem  31994  carsgclctun  32000  pmeasmono  32003  probun  32098  indispconn  32909  bj-prmoore  35021  kelac2  40593  mnuund  41569  fourierdlem70  43392  fourierdlem71  43393  saluncl  43533  prsal  43534  meadjun  43675  omeunle  43729  toplatjoin  45961
  Copyright terms: Public domain W3C validator