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

Theorem fsetfocdm 8607
Description: The class of functions with a given domain that is a set and a given codomain is mapped, through evaluation at a point of the domain, onto the codomain. (Contributed by AV, 15-Sep-2024.)
Hypotheses
Ref Expression
fsetfocdm.f 𝐹 = {𝑓𝑓:𝐴𝐵}
fsetfocdm.s 𝑆 = (𝑔𝐹 ↦ (𝑔𝑋))
Assertion
Ref Expression
fsetfocdm ((𝐴𝑉𝑋𝐴) → 𝑆:𝐹onto𝐵)
Distinct variable groups:   𝐴,𝑓,𝑔   𝐵,𝑓,𝑔   𝑔,𝐹   𝑔,𝑋   𝑓,𝐹   𝑆,𝑔   𝑓,𝑉,𝑔   𝑓,𝑋
Allowed substitution hint:   𝑆(𝑓)

Proof of Theorem fsetfocdm
Dummy variables 𝑥 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fsetfocdm.f . . . 4 𝐹 = {𝑓𝑓:𝐴𝐵}
2 fsetfocdm.s . . . 4 𝑆 = (𝑔𝐹 ↦ (𝑔𝑋))
31, 2fsetfcdm 8606 . . 3 (𝑋𝐴𝑆:𝐹𝐵)
43adantl 481 . 2 ((𝐴𝑉𝑋𝐴) → 𝑆:𝐹𝐵)
5 simplr 765 . . . . . 6 ((((𝐴𝑉𝑋𝐴) ∧ 𝑔𝐵) ∧ 𝑥𝐴) → 𝑔𝐵)
6 eqid 2738 . . . . . 6 (𝑥𝐴𝑔) = (𝑥𝐴𝑔)
75, 6fmptd 6970 . . . . 5 (((𝐴𝑉𝑋𝐴) ∧ 𝑔𝐵) → (𝑥𝐴𝑔):𝐴𝐵)
8 simpll 763 . . . . . . 7 (((𝐴𝑉𝑋𝐴) ∧ 𝑔𝐵) → 𝐴𝑉)
98mptexd 7082 . . . . . 6 (((𝐴𝑉𝑋𝐴) ∧ 𝑔𝐵) → (𝑥𝐴𝑔) ∈ V)
10 feq1 6565 . . . . . . 7 (𝑓 = (𝑥𝐴𝑔) → (𝑓:𝐴𝐵 ↔ (𝑥𝐴𝑔):𝐴𝐵))
1110, 1elab2g 3604 . . . . . 6 ((𝑥𝐴𝑔) ∈ V → ((𝑥𝐴𝑔) ∈ 𝐹 ↔ (𝑥𝐴𝑔):𝐴𝐵))
129, 11syl 17 . . . . 5 (((𝐴𝑉𝑋𝐴) ∧ 𝑔𝐵) → ((𝑥𝐴𝑔) ∈ 𝐹 ↔ (𝑥𝐴𝑔):𝐴𝐵))
137, 12mpbird 256 . . . 4 (((𝐴𝑉𝑋𝐴) ∧ 𝑔𝐵) → (𝑥𝐴𝑔) ∈ 𝐹)
14 fveq2 6756 . . . . . 6 ( = (𝑥𝐴𝑔) → (𝑆) = (𝑆‘(𝑥𝐴𝑔)))
1514eqeq2d 2749 . . . . 5 ( = (𝑥𝐴𝑔) → (𝑔 = (𝑆) ↔ 𝑔 = (𝑆‘(𝑥𝐴𝑔))))
1615adantl 481 . . . 4 ((((𝐴𝑉𝑋𝐴) ∧ 𝑔𝐵) ∧ = (𝑥𝐴𝑔)) → (𝑔 = (𝑆) ↔ 𝑔 = (𝑆‘(𝑥𝐴𝑔))))
17 fveq1 6755 . . . . . . . . 9 (𝑔 = 𝑓 → (𝑔𝑋) = (𝑓𝑋))
1817cbvmptv 5183 . . . . . . . 8 (𝑔𝐹 ↦ (𝑔𝑋)) = (𝑓𝐹 ↦ (𝑓𝑋))
192, 18eqtri 2766 . . . . . . 7 𝑆 = (𝑓𝐹 ↦ (𝑓𝑋))
2019a1i 11 . . . . . 6 (((𝐴𝑉𝑋𝐴) ∧ 𝑔𝐵) → 𝑆 = (𝑓𝐹 ↦ (𝑓𝑋)))
21 fveq1 6755 . . . . . . 7 (𝑓 = (𝑥𝐴𝑔) → (𝑓𝑋) = ((𝑥𝐴𝑔)‘𝑋))
2221adantl 481 . . . . . 6 ((((𝐴𝑉𝑋𝐴) ∧ 𝑔𝐵) ∧ 𝑓 = (𝑥𝐴𝑔)) → (𝑓𝑋) = ((𝑥𝐴𝑔)‘𝑋))
23 fvexd 6771 . . . . . 6 (((𝐴𝑉𝑋𝐴) ∧ 𝑔𝐵) → ((𝑥𝐴𝑔)‘𝑋) ∈ V)
2420, 22, 13, 23fvmptd 6864 . . . . 5 (((𝐴𝑉𝑋𝐴) ∧ 𝑔𝐵) → (𝑆‘(𝑥𝐴𝑔)) = ((𝑥𝐴𝑔)‘𝑋))
25 eqidd 2739 . . . . . . 7 ((𝐴𝑉𝑋𝐴) → (𝑥𝐴𝑔) = (𝑥𝐴𝑔))
26 eqidd 2739 . . . . . . 7 (((𝐴𝑉𝑋𝐴) ∧ 𝑥 = 𝑋) → 𝑔 = 𝑔)
27 simpr 484 . . . . . . 7 ((𝐴𝑉𝑋𝐴) → 𝑋𝐴)
28 vex 3426 . . . . . . . 8 𝑔 ∈ V
2928a1i 11 . . . . . . 7 ((𝐴𝑉𝑋𝐴) → 𝑔 ∈ V)
3025, 26, 27, 29fvmptd 6864 . . . . . 6 ((𝐴𝑉𝑋𝐴) → ((𝑥𝐴𝑔)‘𝑋) = 𝑔)
3130adantr 480 . . . . 5 (((𝐴𝑉𝑋𝐴) ∧ 𝑔𝐵) → ((𝑥𝐴𝑔)‘𝑋) = 𝑔)
3224, 31eqtr2d 2779 . . . 4 (((𝐴𝑉𝑋𝐴) ∧ 𝑔𝐵) → 𝑔 = (𝑆‘(𝑥𝐴𝑔)))
3313, 16, 32rspcedvd 3555 . . 3 (((𝐴𝑉𝑋𝐴) ∧ 𝑔𝐵) → ∃𝐹 𝑔 = (𝑆))
3433ralrimiva 3107 . 2 ((𝐴𝑉𝑋𝐴) → ∀𝑔𝐵𝐹 𝑔 = (𝑆))
35 dffo3 6960 . 2 (𝑆:𝐹onto𝐵 ↔ (𝑆:𝐹𝐵 ∧ ∀𝑔𝐵𝐹 𝑔 = (𝑆)))
364, 34, 35sylanbrc 582 1 ((𝐴𝑉𝑋𝐴) → 𝑆:𝐹onto𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wcel 2108  {cab 2715  wral 3063  wrex 3064  Vcvv 3422  cmpt 5153  wf 6414  ontowfo 6416  cfv 6418
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-rep 5205  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-sbc 3712  df-csb 3829  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-iun 4923  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-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426
This theorem is referenced by:  fsetprcnex  8608
  Copyright terms: Public domain W3C validator