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

Theorem iunfo 10681
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 8075 . . . 4 2nd :V⟶ontoV
2 fof 6844 . . . 4 (2nd :V⟶ontoV → 2nd :V⟶V)
3 ffn 6757 . . . 4 (2nd :V⟶V → 2nd Fn V)
41, 2, 3mp2b 10 . . 3 2nd Fn V
5 ssv 3944 . . 3 𝑇 ⊆ V
6 fnssres 6708 . . 3 ((2nd Fn V ∧ 𝑇 ⊆ V) → (2nd ↾ 𝑇) Fn 𝑇)
74, 5, 6mp2an 705 . 2 (2nd ↾ 𝑇) Fn 𝑇
8 df-ima 5679 . . 3 (2nd “ 𝑇) = ran (2nd ↾ 𝑇)
9 iunfo.1 . . . . . . . . . . 11 𝑇 = ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵)
109eleq2i 2867 . . . . . . . . . 10 (𝑧 ∈ 𝑇 ↔ 𝑧 ∈ ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵))
11 eliun 4968 . . . . . . . . . 10 (𝑧 ∈ ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵) ↔ ∃𝑥 ∈ 𝐴 𝑧 ∈ ({𝑥} × 𝐵))
1210, 11bitri 278 . . . . . . . . 9 (𝑧 ∈ 𝑇 ↔ ∃𝑥 ∈ 𝐴 𝑧 ∈ ({𝑥} × 𝐵))
13 xp2nd 8087 . . . . . . . . . . 11 (𝑧 ∈ ({𝑥} × 𝐵) → (2nd ‘𝑧) ∈ 𝐵)
14 eleq1 2863 . . . . . . . . . . 11 ((2nd ‘𝑧) = 𝑦 → ((2nd ‘𝑧) ∈ 𝐵 ↔ 𝑦 ∈ 𝐵))
1513, 14imbitrid 247 . . . . . . . . . 10 ((2nd ‘𝑧) = 𝑦 → (𝑧 ∈ ({𝑥} × 𝐵) → 𝑦 ∈ 𝐵))
1615reximdv 3192 . . . . . . . . 9 ((2nd ‘𝑧) = 𝑦 → (∃𝑥 ∈ 𝐴 𝑧 ∈ ({𝑥} × 𝐵) → ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵))
1712, 16biimtrid 245 . . . . . . . 8 ((2nd ‘𝑧) = 𝑦 → (𝑧 ∈ 𝑇 → ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵))
1817impcom 413 . . . . . . 7 ((𝑧 ∈ 𝑇 ∧ (2nd ‘𝑧) = 𝑦) → ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵)
1918rexlimiva 3170 . . . . . 6 (∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦 → ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵)
20 nfiu1 4999 . . . . . . . . 9 Ⅎ𝑥∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵)
219, 20nfcxfr 2935 . . . . . . . 8 Ⅎ𝑥𝑇
22 nfv 1956 . . . . . . . 8 Ⅎ𝑥(2nd ‘𝑧) = 𝑦
2321, 22nfrexw 3322 . . . . . . 7 Ⅎ𝑥∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦
24 ssiun2 5019 . . . . . . . . . . . 12 (𝑥 ∈ 𝐴 → ({𝑥} × 𝐵) ⊆ ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵))
2524adantr 486 . . . . . . . . . . 11 ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ({𝑥} × 𝐵) ⊆ ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵))
26 vsnid 4632 . . . . . . . . . . . . 13 𝑥 ∈ {𝑥}
27 opelxp 5702 . . . . . . . . . . . . 13 (⟨𝑥, 𝑦⟩ ∈ ({𝑥} × 𝐵) ↔ (𝑥 ∈ {𝑥} ∧ 𝑦 ∈ 𝐵))
2826, 27mpbiran 722 . . . . . . . . . . . 12 (⟨𝑥, 𝑦⟩ ∈ ({𝑥} × 𝐵) ↔ 𝑦 ∈ 𝐵)
2928bilanri 512 . . . . . . . . . . 11 ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ⟨𝑥, 𝑦⟩ ∈ ({𝑥} × 𝐵))
3025, 29sseldd 3921 . . . . . . . . . 10 ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ⟨𝑥, 𝑦⟩ ∈ ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵))
3130, 9eleqtrrdi 2886 . . . . . . . . 9 ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ⟨𝑥, 𝑦⟩ ∈ 𝑇)
32 vex 3465 . . . . . . . . . 10 𝑥 ∈ V
33 vex 3465 . . . . . . . . . 10 𝑦 ∈ V
3432, 33op2nd 8063 . . . . . . . . 9 (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦
35 fveqeq2 6943 . . . . . . . . . 10 (𝑧 = ⟨𝑥, 𝑦⟩ → ((2nd ‘𝑧) = 𝑦 ↔ (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦))
3635rspcev 3587 . . . . . . . . 9 ((⟨𝑥, 𝑦⟩ ∈ 𝑇 ∧ (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦) → ∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦)
3731, 34, 36sylancl 598 . . . . . . . 8 ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦)
3837ex 418 . . . . . . 7 (𝑥 ∈ 𝐴 → (𝑦 ∈ 𝐵 → ∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦))
3923, 38rexlimi 3274 . . . . . 6 (∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵 → ∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦)
4019, 39impbii 212 . . . . 5 (∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦 ↔ ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵)
41 fvelimab 7006 . . . . . 6 ((2nd Fn V ∧ 𝑇 ⊆ V) → (𝑦 ∈ (2nd “ 𝑇) ↔ ∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦))
424, 5, 41mp2an 705 . . . . 5 (𝑦 ∈ (2nd “ 𝑇) ↔ ∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦)
43 eliun 4968 . . . . 5 (𝑦 ∈ ∪ 𝑥 ∈ 𝐴 𝐵 ↔ ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵)
4440, 42, 433bitr4i 306 . . . 4 (𝑦 ∈ (2nd “ 𝑇) ↔ 𝑦 ∈ ∪ 𝑥 ∈ 𝐴 𝐵)
4544eqriv 2771 . . 3 (2nd “ 𝑇) = ∪ 𝑥 ∈ 𝐴 𝐵
468, 45eqtr3i 2799 . 2 ran (2nd ↾ 𝑇) = ∪ 𝑥 ∈ 𝐴 𝐵
47 df-fo 6585 . 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 1572   ∈ wcel 2156  ∃wrex 3101  Vcvv 3461   ⊆ wss 3907  {csn 4595  ⟨cop 4848  ∪ ciun 4964   × cxp 5664  ran crn 5667   ↾ cres 5668   “ cima 5669   Fn wfn 6574  ⟶wf 6575  ⟶ontowfo 6577  ‘cfv 6579  2nd c2nd 8053
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-10 2189  ax-11 2206  ax-12 2225  ax-ext 2746  ax-sep 5263  ax-nul 5274  ax-pr 5406  ax-un 7802
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1819  df-nf 1823  df-sb 2110  df-mo 2576  df-eu 2606  df-clab 2753  df-cleq 2766  df-clel 2850  df-nfc 2924  df-ne 2971  df-ral 3092  df-rex 3102  df-rab 3424  df-v 3463  df-ss 3908  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289  df-if 4493  df-sn 4596  df-pr 4598  df-op 4849  df-uni 4881  df-iun 4966  df-br 5117  df-opab 5182  df-mpt 5201  df-id 5561  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-res 5678  df-ima 5679  df-iota 6533  df-fun 6581  df-fn 6582  df-f 6583  df-fo 6585  df-fv 6587  df-2nd 8055
This theorem is used by:  iundomg  10683  2ndresdjuf1o  33482
  Copyright terms: Public domain W3C validator