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

Theorem refun0 22574
Description: Adding the empty set preserves refinements. (Contributed by Thierry Arnoux, 31-Jan-2020.)
Assertion
Ref Expression
refun0 ((𝐴Ref𝐵𝐵 ≠ ∅) → (𝐴 ∪ {∅})Ref𝐵)

Proof of Theorem refun0
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eqid 2738 . . . 4 𝐴 = 𝐴
2 eqid 2738 . . . 4 𝐵 = 𝐵
31, 2refbas 22569 . . 3 (𝐴Ref𝐵 𝐵 = 𝐴)
43adantr 480 . 2 ((𝐴Ref𝐵𝐵 ≠ ∅) → 𝐵 = 𝐴)
5 elun 4079 . . . 4 (𝑥 ∈ (𝐴 ∪ {∅}) ↔ (𝑥𝐴𝑥 ∈ {∅}))
6 refssex 22570 . . . . . 6 ((𝐴Ref𝐵𝑥𝐴) → ∃𝑦𝐵 𝑥𝑦)
76adantlr 711 . . . . 5 (((𝐴Ref𝐵𝐵 ≠ ∅) ∧ 𝑥𝐴) → ∃𝑦𝐵 𝑥𝑦)
8 0ss 4327 . . . . . . . . 9 ∅ ⊆ 𝑦
98a1i 11 . . . . . . . 8 ((𝐴Ref𝐵𝑦𝐵) → ∅ ⊆ 𝑦)
109reximdva0 4282 . . . . . . 7 ((𝐴Ref𝐵𝐵 ≠ ∅) → ∃𝑦𝐵 ∅ ⊆ 𝑦)
1110adantr 480 . . . . . 6 (((𝐴Ref𝐵𝐵 ≠ ∅) ∧ 𝑥 ∈ {∅}) → ∃𝑦𝐵 ∅ ⊆ 𝑦)
12 elsni 4575 . . . . . . . 8 (𝑥 ∈ {∅} → 𝑥 = ∅)
13 sseq1 3942 . . . . . . . . 9 (𝑥 = ∅ → (𝑥𝑦 ↔ ∅ ⊆ 𝑦))
1413rexbidv 3225 . . . . . . . 8 (𝑥 = ∅ → (∃𝑦𝐵 𝑥𝑦 ↔ ∃𝑦𝐵 ∅ ⊆ 𝑦))
1512, 14syl 17 . . . . . . 7 (𝑥 ∈ {∅} → (∃𝑦𝐵 𝑥𝑦 ↔ ∃𝑦𝐵 ∅ ⊆ 𝑦))
1615adantl 481 . . . . . 6 (((𝐴Ref𝐵𝐵 ≠ ∅) ∧ 𝑥 ∈ {∅}) → (∃𝑦𝐵 𝑥𝑦 ↔ ∃𝑦𝐵 ∅ ⊆ 𝑦))
1711, 16mpbird 256 . . . . 5 (((𝐴Ref𝐵𝐵 ≠ ∅) ∧ 𝑥 ∈ {∅}) → ∃𝑦𝐵 𝑥𝑦)
187, 17jaodan 954 . . . 4 (((𝐴Ref𝐵𝐵 ≠ ∅) ∧ (𝑥𝐴𝑥 ∈ {∅})) → ∃𝑦𝐵 𝑥𝑦)
195, 18sylan2b 593 . . 3 (((𝐴Ref𝐵𝐵 ≠ ∅) ∧ 𝑥 ∈ (𝐴 ∪ {∅})) → ∃𝑦𝐵 𝑥𝑦)
2019ralrimiva 3107 . 2 ((𝐴Ref𝐵𝐵 ≠ ∅) → ∀𝑥 ∈ (𝐴 ∪ {∅})∃𝑦𝐵 𝑥𝑦)
21 refrel 22567 . . . . . 6 Rel Ref
2221brrelex1i 5634 . . . . 5 (𝐴Ref𝐵𝐴 ∈ V)
23 p0ex 5302 . . . . 5 {∅} ∈ V
24 unexg 7577 . . . . 5 ((𝐴 ∈ V ∧ {∅} ∈ V) → (𝐴 ∪ {∅}) ∈ V)
2522, 23, 24sylancl 585 . . . 4 (𝐴Ref𝐵 → (𝐴 ∪ {∅}) ∈ V)
26 uniun 4861 . . . . . 6 (𝐴 ∪ {∅}) = ( 𝐴 {∅})
27 0ex 5226 . . . . . . . 8 ∅ ∈ V
2827unisn 4858 . . . . . . 7 {∅} = ∅
2928uneq2i 4090 . . . . . 6 ( 𝐴 {∅}) = ( 𝐴 ∪ ∅)
30 un0 4321 . . . . . 6 ( 𝐴 ∪ ∅) = 𝐴
3126, 29, 303eqtrri 2771 . . . . 5 𝐴 = (𝐴 ∪ {∅})
3231, 2isref 22568 . . . 4 ((𝐴 ∪ {∅}) ∈ V → ((𝐴 ∪ {∅})Ref𝐵 ↔ ( 𝐵 = 𝐴 ∧ ∀𝑥 ∈ (𝐴 ∪ {∅})∃𝑦𝐵 𝑥𝑦)))
3325, 32syl 17 . . 3 (𝐴Ref𝐵 → ((𝐴 ∪ {∅})Ref𝐵 ↔ ( 𝐵 = 𝐴 ∧ ∀𝑥 ∈ (𝐴 ∪ {∅})∃𝑦𝐵 𝑥𝑦)))
3433adantr 480 . 2 ((𝐴Ref𝐵𝐵 ≠ ∅) → ((𝐴 ∪ {∅})Ref𝐵 ↔ ( 𝐵 = 𝐴 ∧ ∀𝑥 ∈ (𝐴 ∪ {∅})∃𝑦𝐵 𝑥𝑦)))
354, 20, 34mpbir2and 709 1 ((𝐴Ref𝐵𝐵 ≠ ∅) → (𝐴 ∪ {∅})Ref𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  wo 843   = wceq 1539  wcel 2108  wne 2942  wral 3063  wrex 3064  Vcvv 3422  cun 3881  wss 3883  c0 4253  {csn 4558   cuni 4836   class class class wbr 5070  Refcref 22561
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-ne 2943  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-xp 5586  df-rel 5587  df-ref 22564
This theorem is referenced by:  locfinref  31693
  Copyright terms: Public domain W3C validator