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

Theorem iunfo 10662
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 8056 . . . 4 2nd :V⟶ontoV
2 fof 6826 . . . 4 (2nd :V⟶ontoV → 2nd :V⟶V)
3 ffn 6739 . . . 4 (2nd :V⟶V → 2nd Fn V)
41, 2, 3mp2b 10 . . 3 2nd Fn V
5 ssv 3937 . . 3 𝑇 ⊆ V
6 fnssres 6692 . . 3 ((2nd Fn V ∧ 𝑇 ⊆ V) → (2nd ↾ 𝑇) Fn 𝑇)
74, 5, 6mp2an 705 . 2 (2nd ↾ 𝑇) Fn 𝑇
8 df-ima 5671 . . 3 (2nd “ 𝑇) = ran (2nd ↾ 𝑇)
9 iunfo.1 . . . . . . . . . . 11 𝑇 = ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵)
109eleq2i 2856 . . . . . . . . . 10 (𝑧 ∈ 𝑇 ↔ 𝑧 ∈ ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵))
11 eliun 4960 . . . . . . . . . 10 (𝑧 ∈ ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵) ↔ ∃𝑥 ∈ 𝐴 𝑧 ∈ ({𝑥} × 𝐵))
1210, 11bitri 278 . . . . . . . . 9 (𝑧 ∈ 𝑇 ↔ ∃𝑥 ∈ 𝐴 𝑧 ∈ ({𝑥} × 𝐵))
13 xp2nd 8068 . . . . . . . . . . 11 (𝑧 ∈ ({𝑥} × 𝐵) → (2nd ‘𝑧) ∈ 𝐵)
14 eleq1 2852 . . . . . . . . . . 11 ((2nd ‘𝑧) = 𝑦 → ((2nd ‘𝑧) ∈ 𝐵 ↔ 𝑦 ∈ 𝐵))
1513, 14imbitrid 247 . . . . . . . . . 10 ((2nd ‘𝑧) = 𝑦 → (𝑧 ∈ ({𝑥} × 𝐵) → 𝑦 ∈ 𝐵))
1615reximdv 3181 . . . . . . . . 9 ((2nd ‘𝑧) = 𝑦 → (∃𝑥 ∈ 𝐴 𝑧 ∈ ({𝑥} × 𝐵) → ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵))
1712, 16biimtrid 245 . . . . . . . 8 ((2nd ‘𝑧) = 𝑦 → (𝑧 ∈ 𝑇 → ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵))
1817impcom 413 . . . . . . 7 ((𝑧 ∈ 𝑇 ∧ (2nd ‘𝑧) = 𝑦) → ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵)
1918rexlimiva 3159 . . . . . 6 (∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦 → ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵)
20 nfiu1 4991 . . . . . . . . 9 Ⅎ𝑥∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵)
219, 20nfcxfr 2924 . . . . . . . 8 Ⅎ𝑥𝑇
22 nfv 1949 . . . . . . . 8 Ⅎ𝑥(2nd ‘𝑧) = 𝑦
2321, 22nfrexw 3314 . . . . . . 7 Ⅎ𝑥∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦
24 ssiun2 5011 . . . . . . . . . . . 12 (𝑥 ∈ 𝐴 → ({𝑥} × 𝐵) ⊆ ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵))
2524adantr 486 . . . . . . . . . . 11 ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ({𝑥} × 𝐵) ⊆ ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵))
26 vsnid 4625 . . . . . . . . . . . . 13 𝑥 ∈ {𝑥}
27 opelxp 5694 . . . . . . . . . . . . 13 (⟨𝑥, 𝑦⟩ ∈ ({𝑥} × 𝐵) ↔ (𝑥 ∈ {𝑥} ∧ 𝑦 ∈ 𝐵))
2826, 27mpbiran 722 . . . . . . . . . . . 12 (⟨𝑥, 𝑦⟩ ∈ ({𝑥} × 𝐵) ↔ 𝑦 ∈ 𝐵)
2928bilanri 512 . . . . . . . . . . 11 ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ⟨𝑥, 𝑦⟩ ∈ ({𝑥} × 𝐵))
3025, 29sseldd 3914 . . . . . . . . . 10 ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ⟨𝑥, 𝑦⟩ ∈ ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵))
3130, 9eleqtrrdi 2875 . . . . . . . . 9 ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ⟨𝑥, 𝑦⟩ ∈ 𝑇)
32 vex 3458 . . . . . . . . . 10 𝑥 ∈ V
33 vex 3458 . . . . . . . . . 10 𝑦 ∈ V
3432, 33op2nd 8044 . . . . . . . . 9 (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦
35 fveqeq2 6925 . . . . . . . . . 10 (𝑧 = ⟨𝑥, 𝑦⟩ → ((2nd ‘𝑧) = 𝑦 ↔ (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦))
3635rspcev 3580 . . . . . . . . 9 ((⟨𝑥, 𝑦⟩ ∈ 𝑇 ∧ (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦) → ∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦)
3731, 34, 36sylancl 598 . . . . . . . 8 ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦)
3837ex 418 . . . . . . 7 (𝑥 ∈ 𝐴 → (𝑦 ∈ 𝐵 → ∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦))
3923, 38rexlimi 3266 . . . . . 6 (∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵 → ∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦)
4019, 39impbii 212 . . . . 5 (∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦 ↔ ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵)
41 fvelimab 6988 . . . . . 6 ((2nd Fn V ∧ 𝑇 ⊆ V) → (𝑦 ∈ (2nd “ 𝑇) ↔ ∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦))
424, 5, 41mp2an 705 . . . . 5 (𝑦 ∈ (2nd “ 𝑇) ↔ ∃𝑧 ∈ 𝑇 (2nd ‘𝑧) = 𝑦)
43 eliun 4960 . . . . 5 (𝑦 ∈ ∪ 𝑥 ∈ 𝐴 𝐵 ↔ ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵)
4440, 42, 433bitr4i 306 . . . 4 (𝑦 ∈ (2nd “ 𝑇) ↔ 𝑦 ∈ ∪ 𝑥 ∈ 𝐴 𝐵)
4544eqriv 2760 . . 3 (2nd “ 𝑇) = ∪ 𝑥 ∈ 𝐴 𝐵
468, 45eqtr3i 2788 . 2 ran (2nd ↾ 𝑇) = ∪ 𝑥 ∈ 𝐴 𝐵
47 df-fo 6572 . 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 2147  ∃wrex 3090  Vcvv 3454   ⊆ wss 3900  {csn 4588  ⟨cop 4840  ∪ ciun 4956   × cxp 5656  ran crn 5659   ↾ cres 5660   “ cima 5661   Fn wfn 6561  ⟶wf 6562  ⟶ontowfo 6564  ‘cfv 6566  2nd c2nd 8034
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5255  ax-nul 5266  ax-pr 5398  ax-un 7783
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 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-rab 3417  df-v 3456  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-sn 4589  df-pr 4591  df-op 4841  df-uni 4873  df-iun 4958  df-br 5109  df-opab 5174  df-mpt 5193  df-id 5553  df-xp 5664  df-rel 5665  df-cnv 5666  df-co 5667  df-dm 5668  df-rn 5669  df-res 5670  df-ima 5671  df-iota 6520  df-fun 6568  df-fn 6569  df-f 6570  df-fo 6572  df-fv 6574  df-2nd 8036
This theorem is used by:  iundomg  10664  2ndresdjuf1o  33342
  Copyright terms: Public domain W3C validator