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

Theorem iunfo 10226
Description: Existence of an onto function from a disjoint union to a union. (Contributed by Mario Carneiro, 24-Jun-2013.) (Revised by Mario Carneiro, 18-Jan-2014.)
Hypothesis
Ref Expression
iunfo.1 𝑇 = 𝑥𝐴 ({𝑥} × 𝐵)
Assertion
Ref Expression
iunfo (2nd𝑇):𝑇onto 𝑥𝐴 𝐵
Distinct variable group:   𝑥,𝐴
Allowed substitution hints:   𝐵(𝑥)   𝑇(𝑥)

Proof of Theorem iunfo
Dummy variables 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fo2nd 7825 . . . 4 2nd :V–onto→V
2 fof 6672 . . . 4 (2nd :V–onto→V → 2nd :V⟶V)
3 ffn 6584 . . . 4 (2nd :V⟶V → 2nd Fn V)
41, 2, 3mp2b 10 . . 3 2nd Fn V
5 ssv 3941 . . 3 𝑇 ⊆ V
6 fnssres 6539 . . 3 ((2nd Fn V ∧ 𝑇 ⊆ V) → (2nd𝑇) Fn 𝑇)
74, 5, 6mp2an 688 . 2 (2nd𝑇) Fn 𝑇
8 df-ima 5593 . . 3 (2nd𝑇) = ran (2nd𝑇)
9 iunfo.1 . . . . . . . . . . 11 𝑇 = 𝑥𝐴 ({𝑥} × 𝐵)
109eleq2i 2830 . . . . . . . . . 10 (𝑧𝑇𝑧 𝑥𝐴 ({𝑥} × 𝐵))
11 eliun 4925 . . . . . . . . . 10 (𝑧 𝑥𝐴 ({𝑥} × 𝐵) ↔ ∃𝑥𝐴 𝑧 ∈ ({𝑥} × 𝐵))
1210, 11bitri 274 . . . . . . . . 9 (𝑧𝑇 ↔ ∃𝑥𝐴 𝑧 ∈ ({𝑥} × 𝐵))
13 xp2nd 7837 . . . . . . . . . . 11 (𝑧 ∈ ({𝑥} × 𝐵) → (2nd𝑧) ∈ 𝐵)
14 eleq1 2826 . . . . . . . . . . 11 ((2nd𝑧) = 𝑦 → ((2nd𝑧) ∈ 𝐵𝑦𝐵))
1513, 14syl5ib 243 . . . . . . . . . 10 ((2nd𝑧) = 𝑦 → (𝑧 ∈ ({𝑥} × 𝐵) → 𝑦𝐵))
1615reximdv 3201 . . . . . . . . 9 ((2nd𝑧) = 𝑦 → (∃𝑥𝐴 𝑧 ∈ ({𝑥} × 𝐵) → ∃𝑥𝐴 𝑦𝐵))
1712, 16syl5bi 241 . . . . . . . 8 ((2nd𝑧) = 𝑦 → (𝑧𝑇 → ∃𝑥𝐴 𝑦𝐵))
1817impcom 407 . . . . . . 7 ((𝑧𝑇 ∧ (2nd𝑧) = 𝑦) → ∃𝑥𝐴 𝑦𝐵)
1918rexlimiva 3209 . . . . . 6 (∃𝑧𝑇 (2nd𝑧) = 𝑦 → ∃𝑥𝐴 𝑦𝐵)
20 nfiu1 4955 . . . . . . . . 9 𝑥 𝑥𝐴 ({𝑥} × 𝐵)
219, 20nfcxfr 2904 . . . . . . . 8 𝑥𝑇
22 nfv 1918 . . . . . . . 8 𝑥(2nd𝑧) = 𝑦
2321, 22nfrex 3237 . . . . . . 7 𝑥𝑧𝑇 (2nd𝑧) = 𝑦
24 ssiun2 4973 . . . . . . . . . . . 12 (𝑥𝐴 → ({𝑥} × 𝐵) ⊆ 𝑥𝐴 ({𝑥} × 𝐵))
2524adantr 480 . . . . . . . . . . 11 ((𝑥𝐴𝑦𝐵) → ({𝑥} × 𝐵) ⊆ 𝑥𝐴 ({𝑥} × 𝐵))
26 simpr 484 . . . . . . . . . . . 12 ((𝑥𝐴𝑦𝐵) → 𝑦𝐵)
27 vsnid 4595 . . . . . . . . . . . . 13 𝑥 ∈ {𝑥}
28 opelxp 5616 . . . . . . . . . . . . 13 (⟨𝑥, 𝑦⟩ ∈ ({𝑥} × 𝐵) ↔ (𝑥 ∈ {𝑥} ∧ 𝑦𝐵))
2927, 28mpbiran 705 . . . . . . . . . . . 12 (⟨𝑥, 𝑦⟩ ∈ ({𝑥} × 𝐵) ↔ 𝑦𝐵)
3026, 29sylibr 233 . . . . . . . . . . 11 ((𝑥𝐴𝑦𝐵) → ⟨𝑥, 𝑦⟩ ∈ ({𝑥} × 𝐵))
3125, 30sseldd 3918 . . . . . . . . . 10 ((𝑥𝐴𝑦𝐵) → ⟨𝑥, 𝑦⟩ ∈ 𝑥𝐴 ({𝑥} × 𝐵))
3231, 9eleqtrrdi 2850 . . . . . . . . 9 ((𝑥𝐴𝑦𝐵) → ⟨𝑥, 𝑦⟩ ∈ 𝑇)
33 vex 3426 . . . . . . . . . 10 𝑥 ∈ V
34 vex 3426 . . . . . . . . . 10 𝑦 ∈ V
3533, 34op2nd 7813 . . . . . . . . 9 (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦
36 fveqeq2 6765 . . . . . . . . . 10 (𝑧 = ⟨𝑥, 𝑦⟩ → ((2nd𝑧) = 𝑦 ↔ (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦))
3736rspcev 3552 . . . . . . . . 9 ((⟨𝑥, 𝑦⟩ ∈ 𝑇 ∧ (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦) → ∃𝑧𝑇 (2nd𝑧) = 𝑦)
3832, 35, 37sylancl 585 . . . . . . . 8 ((𝑥𝐴𝑦𝐵) → ∃𝑧𝑇 (2nd𝑧) = 𝑦)
3938ex 412 . . . . . . 7 (𝑥𝐴 → (𝑦𝐵 → ∃𝑧𝑇 (2nd𝑧) = 𝑦))
4023, 39rexlimi 3243 . . . . . 6 (∃𝑥𝐴 𝑦𝐵 → ∃𝑧𝑇 (2nd𝑧) = 𝑦)
4119, 40impbii 208 . . . . 5 (∃𝑧𝑇 (2nd𝑧) = 𝑦 ↔ ∃𝑥𝐴 𝑦𝐵)
42 fvelimab 6823 . . . . . 6 ((2nd Fn V ∧ 𝑇 ⊆ V) → (𝑦 ∈ (2nd𝑇) ↔ ∃𝑧𝑇 (2nd𝑧) = 𝑦))
434, 5, 42mp2an 688 . . . . 5 (𝑦 ∈ (2nd𝑇) ↔ ∃𝑧𝑇 (2nd𝑧) = 𝑦)
44 eliun 4925 . . . . 5 (𝑦 𝑥𝐴 𝐵 ↔ ∃𝑥𝐴 𝑦𝐵)
4541, 43, 443bitr4i 302 . . . 4 (𝑦 ∈ (2nd𝑇) ↔ 𝑦 𝑥𝐴 𝐵)
4645eqriv 2735 . . 3 (2nd𝑇) = 𝑥𝐴 𝐵
478, 46eqtr3i 2768 . 2 ran (2nd𝑇) = 𝑥𝐴 𝐵
48 df-fo 6424 . 2 ((2nd𝑇):𝑇onto 𝑥𝐴 𝐵 ↔ ((2nd𝑇) Fn 𝑇 ∧ ran (2nd𝑇) = 𝑥𝐴 𝐵))
497, 47, 48mpbir2an 707 1 (2nd𝑇):𝑇onto 𝑥𝐴 𝐵
Colors of variables: wff setvar class
Syntax hints:  wb 205  wa 395   = wceq 1539  wcel 2108  wrex 3064  Vcvv 3422  wss 3883  {csn 4558  cop 4564   ciun 4921   × cxp 5578  ran crn 5581  cres 5582  cima 5583   Fn wfn 6413  wf 6414  ontowfo 6416  cfv 6418  2nd c2nd 7803
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-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  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-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  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-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-fo 6424  df-fv 6426  df-2nd 7805
This theorem is referenced by:  iundomg  10228  2ndresdjuf1o  30888
  Copyright terms: Public domain W3C validator