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

Theorem iunfo 10623
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 8022 . . . 4 2nd :V–onto→V
2 fof 6796 . . . 4 (2nd :V–onto→V → 2nd :V⟶V)
3 ffn 6709 . . . 4 (2nd :V⟶V → 2nd Fn V)
41, 2, 3mp2b 10 . . 3 2nd Fn V
5 ssv 3955 . . 3 𝑇 ⊆ V
6 fnssres 6662 . . 3 ((2nd Fn V ∧ 𝑇 ⊆ V) → (2nd ↾ 𝑇) Fn 𝑇)
74, 5, 6mp2an 705 . 2 (2nd ↾ 𝑇) Fn 𝑇
8 df-ima 5664 . . 3 (2nd “ 𝑇) = ran (2nd ↾ 𝑇)
9 iunfo.1 . . . . . . . . . . 11 𝑇 = ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵)
109eleq2i 2853 . . . . . . . . . 10 (𝑧 ∈ 𝑇 ↔ 𝑧 ∈ ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵))
11 eliun 4955 . . . . . . . . . 10 (𝑧 ∈ ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵) ↔ ∃𝑥 ∈ 𝐴 𝑧 ∈ ({𝑥} × 𝐵))
1210, 11bitri 278 . . . . . . . . 9 (𝑧 ∈ 𝑇 ↔ ∃𝑥 ∈ 𝐴 𝑧 ∈ ({𝑥} × 𝐵))
13 xp2nd 8034 . . . . . . . . . . 11 (𝑧 ∈ ({𝑥} × 𝐵) → (2nd ‘𝑧) ∈ 𝐵)
14 eleq1 2849 . . . . . . . . . . 11 ((2nd ‘𝑧) = 𝑦 → ((2nd ‘𝑧) ∈ 𝐵 ↔ 𝑦 ∈ 𝐵))
1513, 14imbitrid 247 . . . . . . . . . 10 ((2nd ‘𝑧) = 𝑦 → (𝑧 ∈ ({𝑥} × 𝐵) → 𝑦 ∈ 𝐵))
1615reximdv 3178 . . . . . . . . 9 ((2nd ‘𝑧) = 𝑦 → (∃𝑥 ∈ 𝐴 𝑧 ∈ ({𝑥} × 𝐵) → ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵))
1712, 16biimtrid 245 . . . . . . . 8 ((2nd ‘𝑧) = 𝑦 → (𝑧 ∈ 𝑇 → ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵))
1817impcom 413 . . . . . . 7 ((𝑧 ∈ 𝑇 ∧ (2nd ‘𝑧) = 𝑦) → ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵)
1918rexlimiva 3156 . . . . . 6 (∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦 → ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵)
20 nfiu1 4986 . . . . . . . . 9 Ⅎ𝑥∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵)
219, 20nfcxfr 2921 . . . . . . . 8 Ⅎ𝑥𝑇
22 nfv 1947 . . . . . . . 8 Ⅎ𝑥(2nd ‘𝑧) = 𝑦
2321, 22nfrexw 3311 . . . . . . 7 Ⅎ𝑥∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦
24 ssiun2 5006 . . . . . . . . . . . 12 (𝑥 ∈ 𝐴 → ({𝑥} × 𝐵) ⊆ ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵))
2524adantr 486 . . . . . . . . . . 11 ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ({𝑥} × 𝐵) ⊆ ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵))
26 vsnid 4624 . . . . . . . . . . . . 13 𝑥 ∈ {𝑥}
27 opelxp 5687 . . . . . . . . . . . . 13 (⟨𝑥, 𝑦⟩ ∈ ({𝑥} × 𝐵) ↔ (𝑥 ∈ {𝑥} ∧ 𝑦 ∈ 𝐵))
2826, 27mpbiran 722 . . . . . . . . . . . 12 (⟨𝑥, 𝑦⟩ ∈ ({𝑥} × 𝐵) ↔ 𝑦 ∈ 𝐵)
2928bilanri 512 . . . . . . . . . . 11 ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ⟨𝑥, 𝑦⟩ ∈ ({𝑥} × 𝐵))
3025, 29sseldd 3932 . . . . . . . . . 10 ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ⟨𝑥, 𝑦⟩ ∈ ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵))
3130, 9eleqtrrdi 2872 . . . . . . . . 9 ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ⟨𝑥, 𝑦⟩ ∈ 𝑇)
32 vex 3455 . . . . . . . . . 10 𝑥 ∈ V
33 vex 3455 . . . . . . . . . 10 𝑦 ∈ V
3432, 33op2nd 8010 . . . . . . . . 9 (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦
35 fveqeq2 6894 . . . . . . . . . 10 (𝑧 = ⟨𝑥, 𝑦⟩ → ((2nd ‘𝑧) = 𝑦 ↔ (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦))
3635rspcev 3577 . . . . . . . . 9 ((⟨𝑥, 𝑦⟩ ∈ 𝑇 ∧ (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦) → ∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦)
3731, 34, 36sylancl 598 . . . . . . . 8 ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦)
3837ex 418 . . . . . . 7 (𝑥 ∈ 𝐴 → (𝑦 ∈ 𝐵 → ∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦))
3923, 38rexlimi 3263 . . . . . 6 (∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵 → ∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦)
4019, 39impbii 212 . . . . 5 (∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦 ↔ ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵)
41 fvelimab 6957 . . . . . 6 ((2nd Fn V ∧ 𝑇 ⊆ V) → (𝑦 ∈ (2nd “ 𝑇) ↔ ∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦))
424, 5, 41mp2an 705 . . . . 5 (𝑦 ∈ (2nd “ 𝑇) ↔ ∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦)
43 eliun 4955 . . . . 5 (𝑦 ∈ ∪ 𝑥 ∈ 𝐴 𝐵 ↔ ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵)
4440, 42, 433bitr4i 306 . . . 4 (𝑦 ∈ (2nd “ 𝑇) ↔ 𝑦 ∈ ∪ 𝑥 ∈ 𝐴 𝐵)
4544eqriv 2758 . . 3 (2nd “ 𝑇) = ∪ 𝑥 ∈ 𝐴 𝐵
468, 45eqtr3i 2786 . 2 ran (2nd ↾ 𝑇) = ∪ 𝑥 ∈ 𝐴 𝐵
47 df-fo 6544 . 2 ((2nd ↾ 𝑇):𝑇–onto→∪ 𝑥 ∈ 𝐴 𝐵 ↔ ((2nd ↾ 𝑇) Fn 𝑇 ∧ ran (2nd ↾ 𝑇) = ∪ 𝑥 ∈ 𝐴 𝐵))
487, 46, 47mpbir2an 724 1 (2nd ↾ 𝑇):𝑇–onto→∪ 𝑥 ∈ 𝐴 𝐵
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ↔ wb 209   ∧ wa 401   = wceq 1570   ∈ wcel 2145  ∃wrex 3087  Vcvv 3451   ⊆ wss 3899  {csn 4584  ⟨cop 4590  ∪ ciun 4951   × cxp 5649  ran crn 5652   ↾ cres 5653   “ cima 5654   Fn wfn 6533  ⟶wf 6534  –onto→wfo 6536  ‘cfv 6538  2nd c2nd 8000
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-sep 5249  ax-nul 5260  ax-pr 5391  ax-un 7751
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-rab 3414  df-v 3453  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-iota 6494  df-fun 6540  df-fn 6541  df-f 6542  df-fo 6544  df-fv 6546  df-2nd 8002
This theorem is used by:  iundomg  10625  2ndresdjuf1o  33244
  Copyright terms: Public domain W3C validator