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

Theorem iunfo 10630
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 8026 . . . 4 2nd :V–onto→V
2 fof 6801 . . . 4 (2nd :V–onto→V → 2nd :V⟶V)
3 ffn 6714 . . . 4 (2nd :V⟶V → 2nd Fn V)
41, 2, 3mp2b 10 . . 3 2nd Fn V
5 ssv 3933 . . 3 𝑇 ⊆ V
6 fnssres 6667 . . 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 2852 . . . . . . . . . 10 (𝑧 ∈ 𝑇 ↔ 𝑧 ∈ ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵))
11 eliun 4954 . . . . . . . . . 10 (𝑧 ∈ ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵) ↔ ∃𝑥 ∈ 𝐴 𝑧 ∈ ({𝑥} × 𝐵))
1210, 11bitri 278 . . . . . . . . 9 (𝑧 ∈ 𝑇 ↔ ∃𝑥 ∈ 𝐴 𝑧 ∈ ({𝑥} × 𝐵))
13 xp2nd 8038 . . . . . . . . . . 11 (𝑧 ∈ ({𝑥} × 𝐵) → (2nd ‘𝑧) ∈ 𝐵)
14 eleq1 2848 . . . . . . . . . . 11 ((2nd ‘𝑧) = 𝑦 → ((2nd ‘𝑧) ∈ 𝐵 ↔ 𝑦 ∈ 𝐵))
1513, 14imbitrid 247 . . . . . . . . . 10 ((2nd ‘𝑧) = 𝑦 → (𝑧 ∈ ({𝑥} × 𝐵) → 𝑦 ∈ 𝐵))
1615reximdv 3177 . . . . . . . . 9 ((2nd ‘𝑧) = 𝑦 → (∃𝑥 ∈ 𝐴 𝑧 ∈ ({𝑥} × 𝐵) → ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵))
1712, 16biimtrid 245 . . . . . . . 8 ((2nd ‘𝑧) = 𝑦 → (𝑧 ∈ 𝑇 → ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵))
1817impcom 413 . . . . . . 7 ((𝑧 ∈ 𝑇 ∧ (2nd ‘𝑧) = 𝑦) → ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵)
1918rexlimiva 3155 . . . . . 6 (∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦 → ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵)
20 nfiu1 4985 . . . . . . . . 9 Ⅎ𝑥∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵)
219, 20nfcxfr 2920 . . . . . . . 8 Ⅎ𝑥𝑇
22 nfv 1946 . . . . . . . 8 Ⅎ𝑥(2nd ‘𝑧) = 𝑦
2321, 22nfrexw 3310 . . . . . . 7 Ⅎ𝑥∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦
24 ssiun2 5005 . . . . . . . . . . . 12 (𝑥 ∈ 𝐴 → ({𝑥} × 𝐵) ⊆ ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵))
2524adantr 486 . . . . . . . . . . 11 ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ({𝑥} × 𝐵) ⊆ ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵))
26 vsnid 4620 . . . . . . . . . . . . 13 𝑥 ∈ {𝑥}
27 opelxp 5687 . . . . . . . . . . . . 13 (⟨𝑥, 𝑦⟩ ∈ ({𝑥} × 𝐵) ↔ (𝑥 ∈ {𝑥} ∧ 𝑦 ∈ 𝐵))
2826, 27mpbiran 722 . . . . . . . . . . . 12 (⟨𝑥, 𝑦⟩ ∈ ({𝑥} × 𝐵) ↔ 𝑦 ∈ 𝐵)
2928bilanri 512 . . . . . . . . . . 11 ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ⟨𝑥, 𝑦⟩ ∈ ({𝑥} × 𝐵))
3025, 29sseldd 3910 . . . . . . . . . 10 ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ⟨𝑥, 𝑦⟩ ∈ ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵))
3130, 9eleqtrrdi 2871 . . . . . . . . 9 ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ⟨𝑥, 𝑦⟩ ∈ 𝑇)
32 vex 3454 . . . . . . . . . 10 𝑥 ∈ V
33 vex 3454 . . . . . . . . . 10 𝑦 ∈ V
3432, 33op2nd 8014 . . . . . . . . 9 (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦
35 fveqeq2 6899 . . . . . . . . . 10 (𝑧 = ⟨𝑥, 𝑦⟩ → ((2nd ‘𝑧) = 𝑦 ↔ (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦))
3635rspcev 3576 . . . . . . . . 9 ((⟨𝑥, 𝑦⟩ ∈ 𝑇 ∧ (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦) → ∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦)
3731, 34, 36sylancl 598 . . . . . . . 8 ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦)
3837ex 418 . . . . . . 7 (𝑥 ∈ 𝐴 → (𝑦 ∈ 𝐵 → ∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦))
3923, 38rexlimi 3262 . . . . . 6 (∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵 → ∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦)
4019, 39impbii 212 . . . . 5 (∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦 ↔ ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵)
41 fvelimab 6962 . . . . . 6 ((2nd Fn V ∧ 𝑇 ⊆ V) → (𝑦 ∈ (2nd “ 𝑇) ↔ ∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦))
424, 5, 41mp2an 705 . . . . 5 (𝑦 ∈ (2nd “ 𝑇) ↔ ∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦)
43 eliun 4954 . . . . 5 (𝑦 ∈ ∪ 𝑥 ∈ 𝐴 𝐵 ↔ ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵)
4440, 42, 433bitr4i 306 . . . 4 (𝑦 ∈ (2nd “ 𝑇) ↔ 𝑦 ∈ ∪ 𝑥 ∈ 𝐴 𝐵)
4544eqriv 2757 . . 3 (2nd “ 𝑇) = ∪ 𝑥 ∈ 𝐴 𝐵
468, 45eqtr3i 2785 . 2 ran (2nd ↾ 𝑇) = ∪ 𝑥 ∈ 𝐴 𝐵
47 df-fo 6549 . 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 1569   ∈ wcel 2144  ∃wrex 3086  Vcvv 3450   ⊆ wss 3896  {csn 4584  ⟨cop 4834  ∪ ciun 4950   × cxp 5649  ran crn 5652   ↾ cres 5653   “ cima 5654   Fn wfn 6538  ⟶wf 6539  –onto→wfo 6541  ‘cfv 6543  2nd c2nd 8004
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-sep 5248  ax-nul 5259  ax-pr 5391  ax-un 7755
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-ss 3897  df-dif 4046  df-in 4090  df-un 4150  df-nul 4278  df-if 4482  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  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 6497  df-fun 6545  df-fn 6546  df-f 6547  df-fo 6549  df-fv 6551  df-2nd 8006
This theorem is used by:  iundomg  10632  2ndresdjuf1o  33295
  Copyright terms: Public domain W3C validator