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

Theorem iunfo 9361
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 7189 . . . 4 2nd :V–onto→V
2 fof 6115 . . . 4 (2nd :V–onto→V → 2nd :V⟶V)
3 ffn 6045 . . . 4 (2nd :V⟶V → 2nd Fn V)
41, 2, 3mp2b 10 . . 3 2nd Fn V
5 ssv 3625 . . 3 𝑇 ⊆ V
6 fnssres 6004 . . 3 ((2nd Fn V ∧ 𝑇 ⊆ V) → (2nd𝑇) Fn 𝑇)
74, 5, 6mp2an 708 . 2 (2nd𝑇) Fn 𝑇
8 df-ima 5127 . . 3 (2nd𝑇) = ran (2nd𝑇)
9 iunfo.1 . . . . . . . . . . 11 𝑇 = 𝑥𝐴 ({𝑥} × 𝐵)
109eleq2i 2693 . . . . . . . . . 10 (𝑧𝑇𝑧 𝑥𝐴 ({𝑥} × 𝐵))
11 eliun 4524 . . . . . . . . . 10 (𝑧 𝑥𝐴 ({𝑥} × 𝐵) ↔ ∃𝑥𝐴 𝑧 ∈ ({𝑥} × 𝐵))
1210, 11bitri 264 . . . . . . . . 9 (𝑧𝑇 ↔ ∃𝑥𝐴 𝑧 ∈ ({𝑥} × 𝐵))
13 xp2nd 7199 . . . . . . . . . . 11 (𝑧 ∈ ({𝑥} × 𝐵) → (2nd𝑧) ∈ 𝐵)
14 eleq1 2689 . . . . . . . . . . 11 ((2nd𝑧) = 𝑦 → ((2nd𝑧) ∈ 𝐵𝑦𝐵))
1513, 14syl5ib 234 . . . . . . . . . 10 ((2nd𝑧) = 𝑦 → (𝑧 ∈ ({𝑥} × 𝐵) → 𝑦𝐵))
1615reximdv 3016 . . . . . . . . 9 ((2nd𝑧) = 𝑦 → (∃𝑥𝐴 𝑧 ∈ ({𝑥} × 𝐵) → ∃𝑥𝐴 𝑦𝐵))
1712, 16syl5bi 232 . . . . . . . 8 ((2nd𝑧) = 𝑦 → (𝑧𝑇 → ∃𝑥𝐴 𝑦𝐵))
1817impcom 446 . . . . . . 7 ((𝑧𝑇 ∧ (2nd𝑧) = 𝑦) → ∃𝑥𝐴 𝑦𝐵)
1918rexlimiva 3028 . . . . . 6 (∃𝑧𝑇 (2nd𝑧) = 𝑦 → ∃𝑥𝐴 𝑦𝐵)
20 nfiu1 4550 . . . . . . . . 9 𝑥 𝑥𝐴 ({𝑥} × 𝐵)
219, 20nfcxfr 2762 . . . . . . . 8 𝑥𝑇
22 nfv 1843 . . . . . . . 8 𝑥(2nd𝑧) = 𝑦
2321, 22nfrex 3007 . . . . . . 7 𝑥𝑧𝑇 (2nd𝑧) = 𝑦
24 ssiun2 4563 . . . . . . . . . . . 12 (𝑥𝐴 → ({𝑥} × 𝐵) ⊆ 𝑥𝐴 ({𝑥} × 𝐵))
2524adantr 481 . . . . . . . . . . 11 ((𝑥𝐴𝑦𝐵) → ({𝑥} × 𝐵) ⊆ 𝑥𝐴 ({𝑥} × 𝐵))
26 simpr 477 . . . . . . . . . . . 12 ((𝑥𝐴𝑦𝐵) → 𝑦𝐵)
27 vsnid 4209 . . . . . . . . . . . . 13 𝑥 ∈ {𝑥}
28 opelxp 5146 . . . . . . . . . . . . 13 (⟨𝑥, 𝑦⟩ ∈ ({𝑥} × 𝐵) ↔ (𝑥 ∈ {𝑥} ∧ 𝑦𝐵))
2927, 28mpbiran 953 . . . . . . . . . . . 12 (⟨𝑥, 𝑦⟩ ∈ ({𝑥} × 𝐵) ↔ 𝑦𝐵)
3026, 29sylibr 224 . . . . . . . . . . 11 ((𝑥𝐴𝑦𝐵) → ⟨𝑥, 𝑦⟩ ∈ ({𝑥} × 𝐵))
3125, 30sseldd 3604 . . . . . . . . . 10 ((𝑥𝐴𝑦𝐵) → ⟨𝑥, 𝑦⟩ ∈ 𝑥𝐴 ({𝑥} × 𝐵))
3231, 9syl6eleqr 2712 . . . . . . . . 9 ((𝑥𝐴𝑦𝐵) → ⟨𝑥, 𝑦⟩ ∈ 𝑇)
33 vex 3203 . . . . . . . . . 10 𝑥 ∈ V
34 vex 3203 . . . . . . . . . 10 𝑦 ∈ V
3533, 34op2nd 7177 . . . . . . . . 9 (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦
36 fveq2 6191 . . . . . . . . . . 11 (𝑧 = ⟨𝑥, 𝑦⟩ → (2nd𝑧) = (2nd ‘⟨𝑥, 𝑦⟩))
3736eqeq1d 2624 . . . . . . . . . 10 (𝑧 = ⟨𝑥, 𝑦⟩ → ((2nd𝑧) = 𝑦 ↔ (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦))
3837rspcev 3309 . . . . . . . . 9 ((⟨𝑥, 𝑦⟩ ∈ 𝑇 ∧ (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦) → ∃𝑧𝑇 (2nd𝑧) = 𝑦)
3932, 35, 38sylancl 694 . . . . . . . 8 ((𝑥𝐴𝑦𝐵) → ∃𝑧𝑇 (2nd𝑧) = 𝑦)
4039ex 450 . . . . . . 7 (𝑥𝐴 → (𝑦𝐵 → ∃𝑧𝑇 (2nd𝑧) = 𝑦))
4123, 40rexlimi 3024 . . . . . 6 (∃𝑥𝐴 𝑦𝐵 → ∃𝑧𝑇 (2nd𝑧) = 𝑦)
4219, 41impbii 199 . . . . 5 (∃𝑧𝑇 (2nd𝑧) = 𝑦 ↔ ∃𝑥𝐴 𝑦𝐵)
43 fvelimab 6253 . . . . . 6 ((2nd Fn V ∧ 𝑇 ⊆ V) → (𝑦 ∈ (2nd𝑇) ↔ ∃𝑧𝑇 (2nd𝑧) = 𝑦))
444, 5, 43mp2an 708 . . . . 5 (𝑦 ∈ (2nd𝑇) ↔ ∃𝑧𝑇 (2nd𝑧) = 𝑦)
45 eliun 4524 . . . . 5 (𝑦 𝑥𝐴 𝐵 ↔ ∃𝑥𝐴 𝑦𝐵)
4642, 44, 453bitr4i 292 . . . 4 (𝑦 ∈ (2nd𝑇) ↔ 𝑦 𝑥𝐴 𝐵)
4746eqriv 2619 . . 3 (2nd𝑇) = 𝑥𝐴 𝐵
488, 47eqtr3i 2646 . 2 ran (2nd𝑇) = 𝑥𝐴 𝐵
49 df-fo 5894 . 2 ((2nd𝑇):𝑇onto 𝑥𝐴 𝐵 ↔ ((2nd𝑇) Fn 𝑇 ∧ ran (2nd𝑇) = 𝑥𝐴 𝐵))
507, 48, 49mpbir2an 955 1 (2nd𝑇):𝑇onto 𝑥𝐴 𝐵
Colors of variables: wff setvar class
Syntax hints:  wb 196  wa 384   = wceq 1483  wcel 1990  wrex 2913  Vcvv 3200  wss 3574  {csn 4177  cop 4183   ciun 4520   × cxp 5112  ran crn 5115  cres 5116  cima 5117   Fn wfn 5883  wf 5884  ontowfo 5886  cfv 5888  2nd c2nd 7167
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-8 1992  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602  ax-sep 4781  ax-nul 4789  ax-pow 4843  ax-pr 4906  ax-un 6949
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1039  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-eu 2474  df-mo 2475  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ral 2917  df-rex 2918  df-rab 2921  df-v 3202  df-sbc 3436  df-dif 3577  df-un 3579  df-in 3581  df-ss 3588  df-nul 3916  df-if 4087  df-sn 4178  df-pr 4180  df-op 4184  df-uni 4437  df-iun 4522  df-br 4654  df-opab 4713  df-mpt 4730  df-id 5024  df-xp 5120  df-rel 5121  df-cnv 5122  df-co 5123  df-dm 5124  df-rn 5125  df-res 5126  df-ima 5127  df-iota 5851  df-fun 5890  df-fn 5891  df-f 5892  df-fo 5894  df-fv 5896  df-2nd 7169
This theorem is referenced by:  iundomg  9363
  Copyright terms: Public domain W3C validator