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

Theorem exfo 6963
Description: A relation equivalent to the existence of an onto mapping. The right-hand 𝑓 is not necessarily a function. (Contributed by NM, 20-Mar-2007.)
Assertion
Ref Expression
exfo (∃𝑓 𝑓:𝐴onto𝐵 ↔ ∃𝑓(∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 ∧ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥))
Distinct variable groups:   𝑥,𝑓,𝑦,𝐴   𝐵,𝑓,𝑥,𝑦

Proof of Theorem exfo
Dummy variable 𝑔 is distinct from all other variables.
StepHypRef Expression
1 dffo4 6961 . . . 4 (𝑓:𝐴onto𝐵 ↔ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥))
2 dff4 6959 . . . . . 6 (𝑓:𝐴𝐵 ↔ (𝑓 ⊆ (𝐴 × 𝐵) ∧ ∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦))
32simprbi 496 . . . . 5 (𝑓:𝐴𝐵 → ∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦)
43anim1i 614 . . . 4 ((𝑓:𝐴𝐵 ∧ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥) → (∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 ∧ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥))
51, 4sylbi 216 . . 3 (𝑓:𝐴onto𝐵 → (∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 ∧ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥))
65eximi 1838 . 2 (∃𝑓 𝑓:𝐴onto𝐵 → ∃𝑓(∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 ∧ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥))
7 brinxp 5656 . . . . . . . . . . . 12 ((𝑥𝐴𝑦𝐵) → (𝑥𝑓𝑦𝑥(𝑓 ∩ (𝐴 × 𝐵))𝑦))
87reubidva 3314 . . . . . . . . . . 11 (𝑥𝐴 → (∃!𝑦𝐵 𝑥𝑓𝑦 ↔ ∃!𝑦𝐵 𝑥(𝑓 ∩ (𝐴 × 𝐵))𝑦))
98biimpd 228 . . . . . . . . . 10 (𝑥𝐴 → (∃!𝑦𝐵 𝑥𝑓𝑦 → ∃!𝑦𝐵 𝑥(𝑓 ∩ (𝐴 × 𝐵))𝑦))
109ralimia 3084 . . . . . . . . 9 (∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 → ∀𝑥𝐴 ∃!𝑦𝐵 𝑥(𝑓 ∩ (𝐴 × 𝐵))𝑦)
11 inss2 4160 . . . . . . . . 9 (𝑓 ∩ (𝐴 × 𝐵)) ⊆ (𝐴 × 𝐵)
1210, 11jctil 519 . . . . . . . 8 (∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 → ((𝑓 ∩ (𝐴 × 𝐵)) ⊆ (𝐴 × 𝐵) ∧ ∀𝑥𝐴 ∃!𝑦𝐵 𝑥(𝑓 ∩ (𝐴 × 𝐵))𝑦))
13 dff4 6959 . . . . . . . 8 ((𝑓 ∩ (𝐴 × 𝐵)):𝐴𝐵 ↔ ((𝑓 ∩ (𝐴 × 𝐵)) ⊆ (𝐴 × 𝐵) ∧ ∀𝑥𝐴 ∃!𝑦𝐵 𝑥(𝑓 ∩ (𝐴 × 𝐵))𝑦))
1412, 13sylibr 233 . . . . . . 7 (∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 → (𝑓 ∩ (𝐴 × 𝐵)):𝐴𝐵)
15 rninxp 6071 . . . . . . . 8 (ran (𝑓 ∩ (𝐴 × 𝐵)) = 𝐵 ↔ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥)
1615biimpri 227 . . . . . . 7 (∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥 → ran (𝑓 ∩ (𝐴 × 𝐵)) = 𝐵)
1714, 16anim12i 612 . . . . . 6 ((∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 ∧ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥) → ((𝑓 ∩ (𝐴 × 𝐵)):𝐴𝐵 ∧ ran (𝑓 ∩ (𝐴 × 𝐵)) = 𝐵))
18 dffo2 6676 . . . . . 6 ((𝑓 ∩ (𝐴 × 𝐵)):𝐴onto𝐵 ↔ ((𝑓 ∩ (𝐴 × 𝐵)):𝐴𝐵 ∧ ran (𝑓 ∩ (𝐴 × 𝐵)) = 𝐵))
1917, 18sylibr 233 . . . . 5 ((∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 ∧ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥) → (𝑓 ∩ (𝐴 × 𝐵)):𝐴onto𝐵)
20 vex 3426 . . . . . . 7 𝑓 ∈ V
2120inex1 5236 . . . . . 6 (𝑓 ∩ (𝐴 × 𝐵)) ∈ V
22 foeq1 6668 . . . . . 6 (𝑔 = (𝑓 ∩ (𝐴 × 𝐵)) → (𝑔:𝐴onto𝐵 ↔ (𝑓 ∩ (𝐴 × 𝐵)):𝐴onto𝐵))
2321, 22spcev 3535 . . . . 5 ((𝑓 ∩ (𝐴 × 𝐵)):𝐴onto𝐵 → ∃𝑔 𝑔:𝐴onto𝐵)
2419, 23syl 17 . . . 4 ((∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 ∧ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥) → ∃𝑔 𝑔:𝐴onto𝐵)
2524exlimiv 1934 . . 3 (∃𝑓(∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 ∧ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥) → ∃𝑔 𝑔:𝐴onto𝐵)
26 foeq1 6668 . . . 4 (𝑔 = 𝑓 → (𝑔:𝐴onto𝐵𝑓:𝐴onto𝐵))
2726cbvexvw 2041 . . 3 (∃𝑔 𝑔:𝐴onto𝐵 ↔ ∃𝑓 𝑓:𝐴onto𝐵)
2825, 27sylib 217 . 2 (∃𝑓(∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 ∧ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥) → ∃𝑓 𝑓:𝐴onto𝐵)
296, 28impbii 208 1 (∃𝑓 𝑓:𝐴onto𝐵 ↔ ∃𝑓(∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 ∧ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥))
Colors of variables: wff setvar class
Syntax hints:  wb 205  wa 395   = wceq 1539  wex 1783  wcel 2108  wral 3063  wrex 3064  ∃!wreu 3065  cin 3882  wss 3883   class class class wbr 5070   × cxp 5578  ran crn 5581  wf 6414  ontowfo 6416
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-fo 6424  df-fv 6426
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator