Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  cfsetsnfsetf Structured version   Visualization version   GIF version

Theorem cfsetsnfsetf 44503
Description: The mapping of the class of singleton functions into the class of constant functions is a function. (Contributed by AV, 14-Sep-2024.)
Hypotheses
Ref Expression
cfsetsnfsetfv.f 𝐹 = {𝑓 ∣ (𝑓:𝐴𝐵 ∧ ∃𝑏𝐵𝑧𝐴 (𝑓𝑧) = 𝑏)}
cfsetsnfsetfv.g 𝐺 = {𝑥𝑥:{𝑌}⟶𝐵}
cfsetsnfsetfv.h 𝐻 = (𝑔𝐺 ↦ (𝑎𝐴 ↦ (𝑔𝑌)))
Assertion
Ref Expression
cfsetsnfsetf ((𝐴𝑉𝑌𝐴) → 𝐻:𝐺𝐹)
Distinct variable groups:   𝐴,𝑎,𝑔   𝑔,𝐺   𝑔,𝑉   𝑔,𝑌   𝐴,𝑏,𝑓,𝑧   𝑥,𝐵   𝐵,𝑎,𝑏,𝑓   𝑔,𝐹   𝐺,𝑎,𝑏,𝑧   𝑉,𝑎,𝑏,𝑧   𝑌,𝑎,𝑏,𝑓,𝑧   𝑥,𝑌,𝑔   𝑔,𝑏,𝑓,𝑧
Allowed substitution hints:   𝐴(𝑥)   𝐵(𝑧,𝑔)   𝐹(𝑥,𝑧,𝑓,𝑎,𝑏)   𝐺(𝑥,𝑓)   𝐻(𝑥,𝑧,𝑓,𝑔,𝑎,𝑏)   𝑉(𝑥,𝑓)

Proof of Theorem cfsetsnfsetf
StepHypRef Expression
1 simpl 482 . . . . . 6 ((𝐴𝑉𝑌𝐴) → 𝐴𝑉)
21adantr 480 . . . . 5 (((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) → 𝐴𝑉)
32mptexd 7094 . . . 4 (((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) → (𝑎𝐴 ↦ (𝑔𝑌)) ∈ V)
4 vex 3434 . . . . . . . . . . 11 𝑔 ∈ V
5 feq1 6577 . . . . . . . . . . 11 (𝑥 = 𝑔 → (𝑥:{𝑌}⟶𝐵𝑔:{𝑌}⟶𝐵))
6 cfsetsnfsetfv.g . . . . . . . . . . 11 𝐺 = {𝑥𝑥:{𝑌}⟶𝐵}
74, 5, 6elab2 3614 . . . . . . . . . 10 (𝑔𝐺𝑔:{𝑌}⟶𝐵)
87biimpi 215 . . . . . . . . 9 (𝑔𝐺𝑔:{𝑌}⟶𝐵)
98adantl 481 . . . . . . . 8 (((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) → 𝑔:{𝑌}⟶𝐵)
10 snidg 4600 . . . . . . . . . 10 (𝑌𝐴𝑌 ∈ {𝑌})
1110adantl 481 . . . . . . . . 9 ((𝐴𝑉𝑌𝐴) → 𝑌 ∈ {𝑌})
1211adantr 480 . . . . . . . 8 (((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) → 𝑌 ∈ {𝑌})
139, 12ffvelrnd 6956 . . . . . . 7 (((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) → (𝑔𝑌) ∈ 𝐵)
1413adantr 480 . . . . . 6 ((((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) ∧ 𝑎𝐴) → (𝑔𝑌) ∈ 𝐵)
1514fmpttd 6983 . . . . 5 (((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) → (𝑎𝐴 ↦ (𝑔𝑌)):𝐴𝐵)
16 eqeq2 2751 . . . . . . . 8 (𝑏 = (𝑔𝑌) → ((𝑔𝑌) = 𝑏 ↔ (𝑔𝑌) = (𝑔𝑌)))
1716ralbidv 3122 . . . . . . 7 (𝑏 = (𝑔𝑌) → (∀𝑧𝐴 (𝑔𝑌) = 𝑏 ↔ ∀𝑧𝐴 (𝑔𝑌) = (𝑔𝑌)))
1817adantl 481 . . . . . 6 ((((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) ∧ 𝑏 = (𝑔𝑌)) → (∀𝑧𝐴 (𝑔𝑌) = 𝑏 ↔ ∀𝑧𝐴 (𝑔𝑌) = (𝑔𝑌)))
19 eqidd 2740 . . . . . . 7 ((((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) ∧ 𝑧𝐴) → (𝑔𝑌) = (𝑔𝑌))
2019ralrimiva 3109 . . . . . 6 (((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) → ∀𝑧𝐴 (𝑔𝑌) = (𝑔𝑌))
2113, 18, 20rspcedvd 3563 . . . . 5 (((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) → ∃𝑏𝐵𝑧𝐴 (𝑔𝑌) = 𝑏)
2215, 21jca 511 . . . 4 (((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) → ((𝑎𝐴 ↦ (𝑔𝑌)):𝐴𝐵 ∧ ∃𝑏𝐵𝑧𝐴 (𝑔𝑌) = 𝑏))
23 feq1 6577 . . . . 5 (𝑓 = (𝑎𝐴 ↦ (𝑔𝑌)) → (𝑓:𝐴𝐵 ↔ (𝑎𝐴 ↦ (𝑔𝑌)):𝐴𝐵))
24 simpl 482 . . . . . . . . 9 ((𝑓 = (𝑎𝐴 ↦ (𝑔𝑌)) ∧ 𝑧𝐴) → 𝑓 = (𝑎𝐴 ↦ (𝑔𝑌)))
25 eqidd 2740 . . . . . . . . 9 (((𝑓 = (𝑎𝐴 ↦ (𝑔𝑌)) ∧ 𝑧𝐴) ∧ 𝑎 = 𝑧) → (𝑔𝑌) = (𝑔𝑌))
26 simpr 484 . . . . . . . . 9 ((𝑓 = (𝑎𝐴 ↦ (𝑔𝑌)) ∧ 𝑧𝐴) → 𝑧𝐴)
27 fvexd 6783 . . . . . . . . 9 ((𝑓 = (𝑎𝐴 ↦ (𝑔𝑌)) ∧ 𝑧𝐴) → (𝑔𝑌) ∈ V)
28 nfcv 2908 . . . . . . . . . . 11 𝑎𝑓
29 nfmpt1 5186 . . . . . . . . . . 11 𝑎(𝑎𝐴 ↦ (𝑔𝑌))
3028, 29nfeq 2921 . . . . . . . . . 10 𝑎 𝑓 = (𝑎𝐴 ↦ (𝑔𝑌))
31 nfv 1920 . . . . . . . . . 10 𝑎 𝑧𝐴
3230, 31nfan 1905 . . . . . . . . 9 𝑎(𝑓 = (𝑎𝐴 ↦ (𝑔𝑌)) ∧ 𝑧𝐴)
33 nfcv 2908 . . . . . . . . 9 𝑎𝑧
34 nfcv 2908 . . . . . . . . 9 𝑎(𝑔𝑌)
3524, 25, 26, 27, 32, 33, 34fvmptdf 6875 . . . . . . . 8 ((𝑓 = (𝑎𝐴 ↦ (𝑔𝑌)) ∧ 𝑧𝐴) → (𝑓𝑧) = (𝑔𝑌))
3635eqeq1d 2741 . . . . . . 7 ((𝑓 = (𝑎𝐴 ↦ (𝑔𝑌)) ∧ 𝑧𝐴) → ((𝑓𝑧) = 𝑏 ↔ (𝑔𝑌) = 𝑏))
3736ralbidva 3121 . . . . . 6 (𝑓 = (𝑎𝐴 ↦ (𝑔𝑌)) → (∀𝑧𝐴 (𝑓𝑧) = 𝑏 ↔ ∀𝑧𝐴 (𝑔𝑌) = 𝑏))
3837rexbidv 3227 . . . . 5 (𝑓 = (𝑎𝐴 ↦ (𝑔𝑌)) → (∃𝑏𝐵𝑧𝐴 (𝑓𝑧) = 𝑏 ↔ ∃𝑏𝐵𝑧𝐴 (𝑔𝑌) = 𝑏))
3923, 38anbi12d 630 . . . 4 (𝑓 = (𝑎𝐴 ↦ (𝑔𝑌)) → ((𝑓:𝐴𝐵 ∧ ∃𝑏𝐵𝑧𝐴 (𝑓𝑧) = 𝑏) ↔ ((𝑎𝐴 ↦ (𝑔𝑌)):𝐴𝐵 ∧ ∃𝑏𝐵𝑧𝐴 (𝑔𝑌) = 𝑏)))
403, 22, 39elabd 3613 . . 3 (((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) → (𝑎𝐴 ↦ (𝑔𝑌)) ∈ {𝑓 ∣ (𝑓:𝐴𝐵 ∧ ∃𝑏𝐵𝑧𝐴 (𝑓𝑧) = 𝑏)})
41 cfsetsnfsetfv.f . . 3 𝐹 = {𝑓 ∣ (𝑓:𝐴𝐵 ∧ ∃𝑏𝐵𝑧𝐴 (𝑓𝑧) = 𝑏)}
4240, 41eleqtrrdi 2851 . 2 (((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) → (𝑎𝐴 ↦ (𝑔𝑌)) ∈ 𝐹)
43 cfsetsnfsetfv.h . 2 𝐻 = (𝑔𝐺 ↦ (𝑎𝐴 ↦ (𝑔𝑌)))
4442, 43fmptd 6982 1 ((𝐴𝑉𝑌𝐴) → 𝐻:𝐺𝐹)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1541  wcel 2109  {cab 2716  wral 3065  wrex 3066  Vcvv 3430  {csn 4566  cmpt 5161  wf 6426  cfv 6430
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1801  ax-4 1815  ax-5 1916  ax-6 1974  ax-7 2014  ax-8 2111  ax-9 2119  ax-10 2140  ax-11 2157  ax-12 2174  ax-ext 2710  ax-rep 5213  ax-sep 5226  ax-nul 5233  ax-pr 5355
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1544  df-fal 1554  df-ex 1786  df-nf 1790  df-sb 2071  df-mo 2541  df-eu 2570  df-clab 2717  df-cleq 2731  df-clel 2817  df-nfc 2890  df-ne 2945  df-ral 3070  df-rex 3071  df-reu 3072  df-rab 3074  df-v 3432  df-sbc 3720  df-csb 3837  df-dif 3894  df-un 3896  df-in 3898  df-ss 3908  df-nul 4262  df-if 4465  df-sn 4567  df-pr 4569  df-op 4573  df-uni 4845  df-iun 4931  df-br 5079  df-opab 5141  df-mpt 5162  df-id 5488  df-xp 5594  df-rel 5595  df-cnv 5596  df-co 5597  df-dm 5598  df-rn 5599  df-res 5600  df-ima 5601  df-iota 6388  df-fun 6432  df-fn 6433  df-f 6434  df-f1 6435  df-fo 6436  df-f1o 6437  df-fv 6438
This theorem is referenced by:  cfsetsnfsetf1  44504  cfsetsnfsetfo  44505
  Copyright terms: Public domain W3C validator