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

Theorem exfo 7093
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 7091 . . . 4 (𝑓:𝐴–onto→𝐵 ↔ (𝑓:𝐴⟶𝐵 ∧ ∀𝑥 ∈ 𝐵 ∃𝑦 ∈ 𝐴 𝑦𝑓𝑥))
2 dff4 7089 . . . . . 6 (𝑓:𝐴⟶𝐵 ↔ (𝑓 ⊆ (𝐴 × 𝐵) ∧ ∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦))
32simprbi 503 . . . . 5 (𝑓:𝐴⟶𝐵 → ∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦)
43anim1i 627 . . . 4 ((𝑓:𝐴⟶𝐵 ∧ ∀𝑥 ∈ 𝐵 ∃𝑦 ∈ 𝐴 𝑦𝑓𝑥) → (∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 ∧ ∀𝑥 ∈ 𝐵 ∃𝑦 ∈ 𝐴 𝑦𝑓𝑥))
51, 4sylbi 220 . . 3 (𝑓:𝐴–onto→𝐵 → (∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 ∧ ∀𝑥 ∈ 𝐵 ∃𝑦 ∈ 𝐴 𝑦𝑓𝑥))
65eximi 1868 . 2 (∃𝑓 𝑓:𝐴–onto→𝐵 → ∃𝑓(∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 ∧ ∀𝑥 ∈ 𝐵 ∃𝑦 ∈ 𝐴 𝑦𝑓𝑥))
7 brinxp 5726 . . . . . . . . . . . 12 ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → (𝑥𝑓𝑦 ↔ 𝑥(𝑓 ∩ (𝐴 × 𝐵))𝑦))
87reubidva 3379 . . . . . . . . . . 11 (𝑥 ∈ 𝐴 → (∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 ↔ ∃!𝑦 ∈ 𝐵 𝑥(𝑓 ∩ (𝐴 × 𝐵))𝑦))
98biimpd 232 . . . . . . . . . 10 (𝑥 ∈ 𝐴 → (∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 → ∃!𝑦 ∈ 𝐵 𝑥(𝑓 ∩ (𝐴 × 𝐵))𝑦))
109ralimia 3096 . . . . . . . . 9 (∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 → ∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥(𝑓 ∩ (𝐴 × 𝐵))𝑦)
11 inss2 4182 . . . . . . . . 9 (𝑓 ∩ (𝐴 × 𝐵)) ⊆ (𝐴 × 𝐵)
1210, 11jctil 529 . . . . . . . 8 (∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 → ((𝑓 ∩ (𝐴 × 𝐵)) ⊆ (𝐴 × 𝐵) ∧ ∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥(𝑓 ∩ (𝐴 × 𝐵))𝑦))
13 dff4 7089 . . . . . . . 8 ((𝑓 ∩ (𝐴 × 𝐵)):𝐴⟶𝐵 ↔ ((𝑓 ∩ (𝐴 × 𝐵)) ⊆ (𝐴 × 𝐵) ∧ ∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥(𝑓 ∩ (𝐴 × 𝐵))𝑦))
1412, 13sylibr 237 . . . . . . 7 (∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 → (𝑓 ∩ (𝐴 × 𝐵)):𝐴⟶𝐵)
15 rninxp 6166 . . . . . . . 8 (ran (𝑓 ∩ (𝐴 × 𝐵)) = 𝐵 ↔ ∀𝑥 ∈ 𝐵 ∃𝑦 ∈ 𝐴 𝑦𝑓𝑥)
1615biimpri 231 . . . . . . 7 (∀𝑥 ∈ 𝐵 ∃𝑦 ∈ 𝐴 𝑦𝑓𝑥 → ran (𝑓 ∩ (𝐴 × 𝐵)) = 𝐵)
1714, 16anim12i 625 . . . . . 6 ((∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 ∧ ∀𝑥 ∈ 𝐵 ∃𝑦 ∈ 𝐴 𝑦𝑓𝑥) → ((𝑓 ∩ (𝐴 × 𝐵)):𝐴⟶𝐵 ∧ ran (𝑓 ∩ (𝐴 × 𝐵)) = 𝐵))
18 dffo2 6788 . . . . . 6 ((𝑓 ∩ (𝐴 × 𝐵)):𝐴–onto→𝐵 ↔ ((𝑓 ∩ (𝐴 × 𝐵)):𝐴⟶𝐵 ∧ ran (𝑓 ∩ (𝐴 × 𝐵)) = 𝐵))
1917, 18sylibr 237 . . . . 5 ((∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 ∧ ∀𝑥 ∈ 𝐵 ∃𝑦 ∈ 𝐴 𝑦𝑓𝑥) → (𝑓 ∩ (𝐴 × 𝐵)):𝐴–onto→𝐵)
20 vex 3454 . . . . . . 7 𝑓 ∈ V
2120inex1 5276 . . . . . 6 (𝑓 ∩ (𝐴 × 𝐵)) ∈ V
22 foeq1 6780 . . . . . 6 (𝑔 = (𝑓 ∩ (𝐴 × 𝐵)) → (𝑔:𝐴–onto→𝐵 ↔ (𝑓 ∩ (𝐴 × 𝐵)):𝐴–onto→𝐵))
2321, 22spcev 3560 . . . . 5 ((𝑓 ∩ (𝐴 × 𝐵)):𝐴–onto→𝐵 → ∃𝑔 𝑔:𝐴–onto→𝐵)
2419, 23syl 18 . . . 4 ((∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 ∧ ∀𝑥 ∈ 𝐵 ∃𝑦 ∈ 𝐴 𝑦𝑓𝑥) → ∃𝑔 𝑔:𝐴–onto→𝐵)
2524exlimiv 1963 . . 3 (∃𝑓(∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 ∧ ∀𝑥 ∈ 𝐵 ∃𝑦 ∈ 𝐴 𝑦𝑓𝑥) → ∃𝑔 𝑔:𝐴–onto→𝐵)
26 foeq1 6780 . . . 4 (𝑔 = 𝑓 → (𝑔:𝐴–onto→𝐵 ↔ 𝑓:𝐴–onto→𝐵))
2726cbvexvw 2070 . . 3 (∃𝑔 𝑔:𝐴–onto→𝐵 ↔ ∃𝑓 𝑓:𝐴–onto→𝐵)
2825, 27sylib 221 . 2 (∃𝑓(∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 ∧ ∀𝑥 ∈ 𝐵 ∃𝑦 ∈ 𝐴 𝑦𝑓𝑥) → ∃𝑓 𝑓:𝐴–onto→𝐵)
296, 28impbii 212 1 (∃𝑓 𝑓:𝐴–onto→𝐵 ↔ ∃𝑓(∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 ∧ ∀𝑥 ∈ 𝐵 ∃𝑦 ∈ 𝐴 𝑦𝑓𝑥))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ↔ wb 209   ∧ wa 401   = wceq 1570  ∃wex 1812   ∈ wcel 2145  ∀wral 3076  ∃wrex 3086  ∃!wreu 3363   ∩ cin 3897   ⊆ wss 3898   class class class wbr 5102   × cxp 5645  ran crn 5648  ⟶wf 6523  –onto→wfo 6525
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 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2732  ax-sep 5248  ax-nul 5259  ax-pr 5390
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 2100  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-reu 3366  df-rab 3413  df-v 3452  df-dif 3901  df-un 3903  df-in 3905  df-ss 3915  df-nul 4279  df-if 4482  df-sn 4584  df-pr 4586  df-op 4590  df-uni 4867  df-br 5103  df-opab 5167  df-mpt 5186  df-id 5542  df-xp 5653  df-rel 5654  df-cnv 5655  df-co 5656  df-dm 5657  df-rn 5658  df-res 5659  df-ima 5660  df-iota 6483  df-fun 6529  df-fn 6530  df-f 6531  df-fo 6533  df-fv 6535
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator