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

Theorem exfo 7141
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 7139 . . . 4 (𝑓:𝐴⟶onto𝐵 ↔ (𝑓:𝐴⟶𝐵 ∧ ∀𝑥 ∈ 𝐵 ∃𝑦 ∈ 𝐴 𝑦𝑓𝑥))
2 dff4 7137 . . . . . 6 (𝑓:𝐴⟶𝐵 ↔ (𝑓 ⊆ (𝐴 × 𝐵) ∧ ∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦))
32simprbi 503 . . . . 5 (𝑓:𝐴⟶𝐵 → ∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦)
43anim1i 627 . . . 4 ((𝑓:𝐴⟶𝐵 ∧ ∀𝑥 ∈ 𝐵 ∃𝑦 ∈ 𝐴 𝑦𝑓𝑥) → (∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 ∧ ∀𝑥 ∈ 𝐵 ∃𝑦 ∈ 𝐴 𝑦𝑓𝑥))
51, 4sylbi 220 . . 3 (𝑓:𝐴⟶onto𝐵 → (∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 ∧ ∀𝑥 ∈ 𝐵 ∃𝑦 ∈ 𝐴 𝑦𝑓𝑥))
65eximi 1870 . 2 (∃𝑓 𝑓:𝐴⟶onto𝐵 → ∃𝑓(∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 ∧ ∀𝑥 ∈ 𝐵 ∃𝑦 ∈ 𝐴 𝑦𝑓𝑥))
7 brinxp 5741 . . . . . . . . . . . 12 ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → (𝑥𝑓𝑦 ↔ 𝑥(𝑓 ∩ (𝐴 × 𝐵))𝑦))
87reubidva 3385 . . . . . . . . . . 11 (𝑥 ∈ 𝐴 → (∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 ↔ ∃!𝑦 ∈ 𝐵 𝑥(𝑓 ∩ (𝐴 × 𝐵))𝑦))
98biimpd 232 . . . . . . . . . 10 (𝑥 ∈ 𝐴 → (∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 → ∃!𝑦 ∈ 𝐵 𝑥(𝑓 ∩ (𝐴 × 𝐵))𝑦))
109ralimia 3106 . . . . . . . . 9 (∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 → ∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥(𝑓 ∩ (𝐴 × 𝐵))𝑦)
11 inss2 4139 . . . . . . . . 9 (𝑓 ∩ (𝐴 × 𝐵)) ⊆ (𝐴 × 𝐵)
1210, 11jctil 529 . . . . . . . 8 (∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 → ((𝑓 ∩ (𝐴 × 𝐵)) ⊆ (𝐴 × 𝐵) ∧ ∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥(𝑓 ∩ (𝐴 × 𝐵))𝑦))
13 dff4 7137 . . . . . . . 8 ((𝑓 ∩ (𝐴 × 𝐵)):𝐴⟶𝐵 ↔ ((𝑓 ∩ (𝐴 × 𝐵)) ⊆ (𝐴 × 𝐵) ∧ ∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥(𝑓 ∩ (𝐴 × 𝐵))𝑦))
1412, 13sylibr 237 . . . . . . 7 (∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 → (𝑓 ∩ (𝐴 × 𝐵)):𝐴⟶𝐵)
15 rninxp 6193 . . . . . . . 8 (ran (𝑓 ∩ (𝐴 × 𝐵)) = 𝐵 ↔ ∀𝑥 ∈ 𝐵 ∃𝑦 ∈ 𝐴 𝑦𝑓𝑥)
1615biimpri 231 . . . . . . 7 (∀𝑥 ∈ 𝐵 ∃𝑦 ∈ 𝐴 𝑦𝑓𝑥 → ran (𝑓 ∩ (𝐴 × 𝐵)) = 𝐵)
1714, 16anim12i 625 . . . . . 6 ((∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 ∧ ∀𝑥 ∈ 𝐵 ∃𝑦 ∈ 𝐴 𝑦𝑓𝑥) → ((𝑓 ∩ (𝐴 × 𝐵)):𝐴⟶𝐵 ∧ ran (𝑓 ∩ (𝐴 × 𝐵)) = 𝐵))
18 dffo2 6834 . . . . . 6 ((𝑓 ∩ (𝐴 × 𝐵)):𝐴⟶onto𝐵 ↔ ((𝑓 ∩ (𝐴 × 𝐵)):𝐴⟶𝐵 ∧ ran (𝑓 ∩ (𝐴 × 𝐵)) = 𝐵))
1917, 18sylibr 237 . . . . 5 ((∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 ∧ ∀𝑥 ∈ 𝐵 ∃𝑦 ∈ 𝐴 𝑦𝑓𝑥) → (𝑓 ∩ (𝐴 × 𝐵)):𝐴⟶onto𝐵)
20 vex 3460 . . . . . . 7 𝑓 ∈ V
2120inex1 5287 . . . . . 6 (𝑓 ∩ (𝐴 × 𝐵)) ∈ V
22 foeq1 6826 . . . . . 6 (𝑔 = (𝑓 ∩ (𝐴 × 𝐵)) → (𝑔:𝐴⟶onto𝐵 ↔ (𝑓 ∩ (𝐴 × 𝐵)):𝐴⟶onto𝐵))
2321, 22spcev 3566 . . . . 5 ((𝑓 ∩ (𝐴 × 𝐵)):𝐴⟶onto𝐵 → ∃𝑔 𝑔:𝐴⟶onto𝐵)
2419, 23syl 18 . . . 4 ((∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 ∧ ∀𝑥 ∈ 𝐵 ∃𝑦 ∈ 𝐴 𝑦𝑓𝑥) → ∃𝑔 𝑔:𝐴⟶onto𝐵)
2524exlimiv 1967 . . 3 (∃𝑓(∀𝑥 ∈ 𝐴 ∃!𝑦 ∈ 𝐵 𝑥𝑓𝑦 ∧ ∀𝑥 ∈ 𝐵 ∃𝑦 ∈ 𝐴 𝑦𝑓𝑥) → ∃𝑔 𝑔:𝐴⟶onto𝐵)
26 foeq1 6826 . . . 4 (𝑔 = 𝑓 → (𝑔:𝐴⟶onto𝐵 ↔ 𝑓:𝐴⟶onto𝐵))
2726cbvexvw 2074 . . 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 1572  ∃wex 1814   ∈ wcel 2151  ∀wral 3086  ∃wrex 3096  ∃!wreu 3369   ⊆ wss 3902   ∩ cin 4094   class class class wbr 5111   × cxp 5659  ran crn 5662  ⟶wf 6566  ⟶ontowfo 6568
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-10 2184  ax-11 2201  ax-12 2220  ax-ext 2741  ax-sep 5258  ax-nul 5269  ax-pr 5401
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 1815  df-nf 1819  df-sb 2105  df-mo 2571  df-eu 2601  df-clab 2748  df-cleq 2761  df-clel 2845  df-nfc 2919  df-ne 2966  df-ral 3087  df-rex 3097  df-reu 3372  df-rab 3419  df-v 3458  df-ss 3903  df-dif 4052  df-in 4096  df-un 4156  df-nul 4284  df-if 4488  df-sn 4591  df-pr 4593  df-op 4844  df-uni 4876  df-br 5112  df-opab 5177  df-mpt 5196  df-id 5556  df-xp 5667  df-rel 5668  df-cnv 5669  df-co 5670  df-dm 5671  df-rn 5672  df-res 5673  df-ima 5674  df-iota 6524  df-fun 6572  df-fn 6573  df-f 6574  df-fo 6576  df-fv 6578
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator