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 44257
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 486 . . . . . 6 ((𝐴𝑉𝑌𝐴) → 𝐴𝑉)
21adantr 484 . . . . 5 (((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) → 𝐴𝑉)
32mptexd 7061 . . . 4 (((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) → (𝑎𝐴 ↦ (𝑔𝑌)) ∈ V)
4 vex 3426 . . . . . . . . . . 11 𝑔 ∈ V
5 feq1 6547 . . . . . . . . . . 11 (𝑥 = 𝑔 → (𝑥:{𝑌}⟶𝐵𝑔:{𝑌}⟶𝐵))
6 cfsetsnfsetfv.g . . . . . . . . . . 11 𝐺 = {𝑥𝑥:{𝑌}⟶𝐵}
74, 5, 6elab2 3605 . . . . . . . . . 10 (𝑔𝐺𝑔:{𝑌}⟶𝐵)
87biimpi 219 . . . . . . . . 9 (𝑔𝐺𝑔:{𝑌}⟶𝐵)
98adantl 485 . . . . . . . 8 (((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) → 𝑔:{𝑌}⟶𝐵)
10 snidg 4591 . . . . . . . . . 10 (𝑌𝐴𝑌 ∈ {𝑌})
1110adantl 485 . . . . . . . . 9 ((𝐴𝑉𝑌𝐴) → 𝑌 ∈ {𝑌})
1211adantr 484 . . . . . . . 8 (((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) → 𝑌 ∈ {𝑌})
139, 12ffvelrnd 6926 . . . . . . 7 (((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) → (𝑔𝑌) ∈ 𝐵)
1413adantr 484 . . . . . 6 ((((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) ∧ 𝑎𝐴) → (𝑔𝑌) ∈ 𝐵)
1514fmpttd 6953 . . . . 5 (((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) → (𝑎𝐴 ↦ (𝑔𝑌)):𝐴𝐵)
16 eqeq2 2751 . . . . . . . 8 (𝑏 = (𝑔𝑌) → ((𝑔𝑌) = 𝑏 ↔ (𝑔𝑌) = (𝑔𝑌)))
1716ralbidv 3120 . . . . . . 7 (𝑏 = (𝑔𝑌) → (∀𝑧𝐴 (𝑔𝑌) = 𝑏 ↔ ∀𝑧𝐴 (𝑔𝑌) = (𝑔𝑌)))
1817adantl 485 . . . . . 6 ((((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) ∧ 𝑏 = (𝑔𝑌)) → (∀𝑧𝐴 (𝑔𝑌) = 𝑏 ↔ ∀𝑧𝐴 (𝑔𝑌) = (𝑔𝑌)))
19 eqidd 2740 . . . . . . 7 ((((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) ∧ 𝑧𝐴) → (𝑔𝑌) = (𝑔𝑌))
2019ralrimiva 3107 . . . . . 6 (((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) → ∀𝑧𝐴 (𝑔𝑌) = (𝑔𝑌))
2113, 18, 20rspcedvd 3554 . . . . 5 (((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) → ∃𝑏𝐵𝑧𝐴 (𝑔𝑌) = 𝑏)
2215, 21jca 515 . . . 4 (((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) → ((𝑎𝐴 ↦ (𝑔𝑌)):𝐴𝐵 ∧ ∃𝑏𝐵𝑧𝐴 (𝑔𝑌) = 𝑏))
23 feq1 6547 . . . . 5 (𝑓 = (𝑎𝐴 ↦ (𝑔𝑌)) → (𝑓:𝐴𝐵 ↔ (𝑎𝐴 ↦ (𝑔𝑌)):𝐴𝐵))
24 simpl 486 . . . . . . . . 9 ((𝑓 = (𝑎𝐴 ↦ (𝑔𝑌)) ∧ 𝑧𝐴) → 𝑓 = (𝑎𝐴 ↦ (𝑔𝑌)))
25 eqidd 2740 . . . . . . . . 9 (((𝑓 = (𝑎𝐴 ↦ (𝑔𝑌)) ∧ 𝑧𝐴) ∧ 𝑎 = 𝑧) → (𝑔𝑌) = (𝑔𝑌))
26 simpr 488 . . . . . . . . 9 ((𝑓 = (𝑎𝐴 ↦ (𝑔𝑌)) ∧ 𝑧𝐴) → 𝑧𝐴)
27 fvexd 6753 . . . . . . . . 9 ((𝑓 = (𝑎𝐴 ↦ (𝑔𝑌)) ∧ 𝑧𝐴) → (𝑔𝑌) ∈ V)
28 nfcv 2906 . . . . . . . . . . 11 𝑎𝑓
29 nfmpt1 5169 . . . . . . . . . . 11 𝑎(𝑎𝐴 ↦ (𝑔𝑌))
3028, 29nfeq 2919 . . . . . . . . . 10 𝑎 𝑓 = (𝑎𝐴 ↦ (𝑔𝑌))
31 nfv 1922 . . . . . . . . . 10 𝑎 𝑧𝐴
3230, 31nfan 1907 . . . . . . . . 9 𝑎(𝑓 = (𝑎𝐴 ↦ (𝑔𝑌)) ∧ 𝑧𝐴)
33 nfcv 2906 . . . . . . . . 9 𝑎𝑧
34 nfcv 2906 . . . . . . . . 9 𝑎(𝑔𝑌)
3524, 25, 26, 27, 32, 33, 34fvmptdf 6845 . . . . . . . 8 ((𝑓 = (𝑎𝐴 ↦ (𝑔𝑌)) ∧ 𝑧𝐴) → (𝑓𝑧) = (𝑔𝑌))
3635eqeq1d 2741 . . . . . . 7 ((𝑓 = (𝑎𝐴 ↦ (𝑔𝑌)) ∧ 𝑧𝐴) → ((𝑓𝑧) = 𝑏 ↔ (𝑔𝑌) = 𝑏))
3736ralbidva 3119 . . . . . 6 (𝑓 = (𝑎𝐴 ↦ (𝑔𝑌)) → (∀𝑧𝐴 (𝑓𝑧) = 𝑏 ↔ ∀𝑧𝐴 (𝑔𝑌) = 𝑏))
3837rexbidv 3225 . . . . 5 (𝑓 = (𝑎𝐴 ↦ (𝑔𝑌)) → (∃𝑏𝐵𝑧𝐴 (𝑓𝑧) = 𝑏 ↔ ∃𝑏𝐵𝑧𝐴 (𝑔𝑌) = 𝑏))
3923, 38anbi12d 634 . . . 4 (𝑓 = (𝑎𝐴 ↦ (𝑔𝑌)) → ((𝑓:𝐴𝐵 ∧ ∃𝑏𝐵𝑧𝐴 (𝑓𝑧) = 𝑏) ↔ ((𝑎𝐴 ↦ (𝑔𝑌)):𝐴𝐵 ∧ ∃𝑏𝐵𝑧𝐴 (𝑔𝑌) = 𝑏)))
403, 22, 39elabd 3604 . . 3 (((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) → (𝑎𝐴 ↦ (𝑔𝑌)) ∈ {𝑓 ∣ (𝑓:𝐴𝐵 ∧ ∃𝑏𝐵𝑧𝐴 (𝑓𝑧) = 𝑏)})
41 cfsetsnfsetfv.f . . 3 𝐹 = {𝑓 ∣ (𝑓:𝐴𝐵 ∧ ∃𝑏𝐵𝑧𝐴 (𝑓𝑧) = 𝑏)}
4240, 41eleqtrrdi 2851 . 2 (((𝐴𝑉𝑌𝐴) ∧ 𝑔𝐺) → (𝑎𝐴 ↦ (𝑔𝑌)) ∈ 𝐹)
43 cfsetsnfsetfv.h . 2 𝐻 = (𝑔𝐺 ↦ (𝑎𝐴 ↦ (𝑔𝑌)))
4442, 43fmptd 6952 1 ((𝐴𝑉𝑌𝐴) → 𝐻:𝐺𝐹)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399   = wceq 1543  wcel 2112  {cab 2716  wral 3063  wrex 3064  Vcvv 3422  {csn 4557  cmpt 5151  wf 6396  cfv 6400
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2114  ax-9 2122  ax-10 2143  ax-11 2160  ax-12 2177  ax-ext 2710  ax-rep 5195  ax-sep 5208  ax-nul 5215  ax-pr 5338
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2073  df-mo 2541  df-eu 2570  df-clab 2717  df-cleq 2731  df-clel 2818  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3711  df-csb 3828  df-dif 3885  df-un 3887  df-in 3889  df-ss 3899  df-nul 4254  df-if 4456  df-sn 4558  df-pr 4560  df-op 4564  df-uni 4836  df-iun 4922  df-br 5070  df-opab 5132  df-mpt 5152  df-id 5471  df-xp 5574  df-rel 5575  df-cnv 5576  df-co 5577  df-dm 5578  df-rn 5579  df-res 5580  df-ima 5581  df-iota 6358  df-fun 6402  df-fn 6403  df-f 6404  df-f1 6405  df-fo 6406  df-f1o 6407  df-fv 6408
This theorem is referenced by:  cfsetsnfsetf1  44258  cfsetsnfsetfo  44259
  Copyright terms: Public domain W3C validator