Metamath Proof Explorer


Theorem cfsetsnfsetf

Description: The mapping of the class of singleton functions into the class of constant functions is a function. (Contributed by AV, 14-Sep-2024)

Ref Expression
Hypotheses cfsetsnfsetfv.f F = f | f : A B b B z A f z = b
cfsetsnfsetfv.g G = x | x : Y B
cfsetsnfsetfv.h H = g G a A g Y
Assertion cfsetsnfsetf A V Y A H : G F

Proof

Step Hyp Ref Expression
1 cfsetsnfsetfv.f F = f | f : A B b B z A f z = b
2 cfsetsnfsetfv.g G = x | x : Y B
3 cfsetsnfsetfv.h H = g G a A g Y
4 simpl A V Y A A V
5 4 adantr A V Y A g G A V
6 5 mptexd A V Y A g G a A g Y V
7 vex g V
8 feq1 x = g x : Y B g : Y B
9 7 8 2 elab2 g G g : Y B
10 9 bilani A V Y A g G g : Y B
11 snidg Y A Y Y
12 11 adantl A V Y A Y Y
13 12 adantr A V Y A g G Y Y
14 10 13 ffvelcdmd A V Y A g G g Y B
15 14 adantr A V Y A g G a A g Y B
16 15 fmpttd A V Y A g G a A g Y : A B
17 eqeq2 b = g Y g Y = b g Y = g Y
18 17 ralbidv b = g Y z A g Y = b z A g Y = g Y
19 18 adantl A V Y A g G b = g Y z A g Y = b z A g Y = g Y
20 eqidd A V Y A g G z A g Y = g Y
21 20 ralrimiva A V Y A g G z A g Y = g Y
22 14 19 21 rspcedvd A V Y A g G b B z A g Y = b
23 16 22 jca A V Y A g G a A g Y : A B b B z A g Y = b
24 feq1 f = a A g Y f : A B a A g Y : A B
25 simpl f = a A g Y z A f = a A g Y
26 eqidd f = a A g Y z A a = z g Y = g Y
27 simpr f = a A g Y z A z A
28 fvexd f = a A g Y z A g Y V
29 nfcv _ a f
30 nfmpt1 _ a a A g Y
31 29 30 nfeq a f = a A g Y
32 nfv a z A
33 31 32 nfan a f = a A g Y z A
34 nfcv _ a z
35 nfcv _ a g Y
36 25 26 27 28 33 34 35 fvmptdf f = a A g Y z A f z = g Y
37 36 eqeq1d f = a A g Y z A f z = b g Y = b
38 37 ralbidva f = a A g Y z A f z = b z A g Y = b
39 38 rexbidv f = a A g Y b B z A f z = b b B z A g Y = b
40 24 39 anbi12d f = a A g Y f : A B b B z A f z = b a A g Y : A B b B z A g Y = b
41 6 23 40 elabd A V Y A g G a A g Y f | f : A B b B z A f z = b
42 41 1 eleqtrrdi A V Y A g G a A g Y F
43 42 3 fmptd A V Y A H : G F