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

Theorem exfo 6873
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 6871 . . . 4 (𝑓:𝐴onto𝐵 ↔ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥))
2 dff4 6869 . . . . . 6 (𝑓:𝐴𝐵 ↔ (𝑓 ⊆ (𝐴 × 𝐵) ∧ ∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦))
32simprbi 499 . . . . 5 (𝑓:𝐴𝐵 → ∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦)
43anim1i 616 . . . 4 ((𝑓:𝐴𝐵 ∧ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥) → (∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 ∧ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥))
51, 4sylbi 219 . . 3 (𝑓:𝐴onto𝐵 → (∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 ∧ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥))
65eximi 1835 . 2 (∃𝑓 𝑓:𝐴onto𝐵 → ∃𝑓(∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 ∧ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥))
7 brinxp 5632 . . . . . . . . . . . 12 ((𝑥𝐴𝑦𝐵) → (𝑥𝑓𝑦𝑥(𝑓 ∩ (𝐴 × 𝐵))𝑦))
87reubidva 3390 . . . . . . . . . . 11 (𝑥𝐴 → (∃!𝑦𝐵 𝑥𝑓𝑦 ↔ ∃!𝑦𝐵 𝑥(𝑓 ∩ (𝐴 × 𝐵))𝑦))
98biimpd 231 . . . . . . . . . 10 (𝑥𝐴 → (∃!𝑦𝐵 𝑥𝑓𝑦 → ∃!𝑦𝐵 𝑥(𝑓 ∩ (𝐴 × 𝐵))𝑦))
109ralimia 3160 . . . . . . . . 9 (∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 → ∀𝑥𝐴 ∃!𝑦𝐵 𝑥(𝑓 ∩ (𝐴 × 𝐵))𝑦)
11 inss2 4208 . . . . . . . . 9 (𝑓 ∩ (𝐴 × 𝐵)) ⊆ (𝐴 × 𝐵)
1210, 11jctil 522 . . . . . . . 8 (∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 → ((𝑓 ∩ (𝐴 × 𝐵)) ⊆ (𝐴 × 𝐵) ∧ ∀𝑥𝐴 ∃!𝑦𝐵 𝑥(𝑓 ∩ (𝐴 × 𝐵))𝑦))
13 dff4 6869 . . . . . . . 8 ((𝑓 ∩ (𝐴 × 𝐵)):𝐴𝐵 ↔ ((𝑓 ∩ (𝐴 × 𝐵)) ⊆ (𝐴 × 𝐵) ∧ ∀𝑥𝐴 ∃!𝑦𝐵 𝑥(𝑓 ∩ (𝐴 × 𝐵))𝑦))
1412, 13sylibr 236 . . . . . . 7 (∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 → (𝑓 ∩ (𝐴 × 𝐵)):𝐴𝐵)
15 rninxp 6038 . . . . . . . 8 (ran (𝑓 ∩ (𝐴 × 𝐵)) = 𝐵 ↔ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥)
1615biimpri 230 . . . . . . 7 (∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥 → ran (𝑓 ∩ (𝐴 × 𝐵)) = 𝐵)
1714, 16anim12i 614 . . . . . 6 ((∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 ∧ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥) → ((𝑓 ∩ (𝐴 × 𝐵)):𝐴𝐵 ∧ ran (𝑓 ∩ (𝐴 × 𝐵)) = 𝐵))
18 dffo2 6596 . . . . . 6 ((𝑓 ∩ (𝐴 × 𝐵)):𝐴onto𝐵 ↔ ((𝑓 ∩ (𝐴 × 𝐵)):𝐴𝐵 ∧ ran (𝑓 ∩ (𝐴 × 𝐵)) = 𝐵))
1917, 18sylibr 236 . . . . 5 ((∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 ∧ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥) → (𝑓 ∩ (𝐴 × 𝐵)):𝐴onto𝐵)
20 vex 3499 . . . . . . 7 𝑓 ∈ V
2120inex1 5223 . . . . . 6 (𝑓 ∩ (𝐴 × 𝐵)) ∈ V
22 foeq1 6588 . . . . . 6 (𝑔 = (𝑓 ∩ (𝐴 × 𝐵)) → (𝑔:𝐴onto𝐵 ↔ (𝑓 ∩ (𝐴 × 𝐵)):𝐴onto𝐵))
2321, 22spcev 3609 . . . . 5 ((𝑓 ∩ (𝐴 × 𝐵)):𝐴onto𝐵 → ∃𝑔 𝑔:𝐴onto𝐵)
2419, 23syl 17 . . . 4 ((∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 ∧ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥) → ∃𝑔 𝑔:𝐴onto𝐵)
2524exlimiv 1931 . . 3 (∃𝑓(∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 ∧ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥) → ∃𝑔 𝑔:𝐴onto𝐵)
26 foeq1 6588 . . . 4 (𝑔 = 𝑓 → (𝑔:𝐴onto𝐵𝑓:𝐴onto𝐵))
2726cbvexvw 2044 . . 3 (∃𝑔 𝑔:𝐴onto𝐵 ↔ ∃𝑓 𝑓:𝐴onto𝐵)
2825, 27sylib 220 . 2 (∃𝑓(∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 ∧ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥) → ∃𝑓 𝑓:𝐴onto𝐵)
296, 28impbii 211 1 (∃𝑓 𝑓:𝐴onto𝐵 ↔ ∃𝑓(∀𝑥𝐴 ∃!𝑦𝐵 𝑥𝑓𝑦 ∧ ∀𝑥𝐵𝑦𝐴 𝑦𝑓𝑥))
Colors of variables: wff setvar class
Syntax hints:  wb 208  wa 398   = wceq 1537  wex 1780  wcel 2114  wral 3140  wrex 3141  ∃!wreu 3142  cin 3937  wss 3938   class class class wbr 5068   × cxp 5555  ran crn 5558  wf 6353  ontowfo 6355
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2795  ax-sep 5205  ax-nul 5212  ax-pr 5332
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2802  df-cleq 2816  df-clel 2895  df-nfc 2965  df-ne 3019  df-ral 3145  df-rex 3146  df-reu 3147  df-rab 3149  df-v 3498  df-sbc 3775  df-dif 3941  df-un 3943  df-in 3945  df-ss 3954  df-nul 4294  df-if 4470  df-sn 4570  df-pr 4572  df-op 4576  df-uni 4841  df-br 5069  df-opab 5131  df-mpt 5149  df-id 5462  df-xp 5563  df-rel 5564  df-cnv 5565  df-co 5566  df-dm 5567  df-rn 5568  df-res 5569  df-ima 5570  df-iota 6316  df-fun 6359  df-fn 6360  df-f 6361  df-fo 6363  df-fv 6365
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator