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 48484
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 488 . . . . . 6 ((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) → 𝐴 ∈ 𝑉)
21adantr 486 . . . . 5 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → 𝐴 ∈ 𝑉)
32mptexd 7271 . . . 4 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∈ V)
4 vex 3460 . . . . . . . . . 10 𝑔 ∈ V
5 feq1 6727 . . . . . . . . . 10 (𝑥 = 𝑔 → (𝑥:{𝑌}⟶𝐵 ↔ 𝑔:{𝑌}⟶𝐵))
6 cfsetsnfsetfv.g . . . . . . . . . 10 𝐺 = {𝑥 ∣ 𝑥:{𝑌}⟶𝐵}
74, 5, 6elab2 3641 . . . . . . . . 9 (𝑔 ∈ 𝐺 ↔ 𝑔:{𝑌}⟶𝐵)
87bilani 510 . . . . . . . 8 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → 𝑔:{𝑌}⟶𝐵)
9 snidg 4624 . . . . . . . . . 10 (𝑌 ∈ 𝐴 → 𝑌 ∈ {𝑌})
109adantl 487 . . . . . . . . 9 ((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) → 𝑌 ∈ {𝑌})
1110adantr 486 . . . . . . . 8 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → 𝑌 ∈ {𝑌})
128, 11ffvelcdmd 7127 . . . . . . 7 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → (𝑔‘𝑌) ∈ 𝐵)
1312adantr 486 . . . . . 6 ((((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) ∧ 𝑎 ∈ 𝐴) → (𝑔‘𝑌) ∈ 𝐵)
1413fmpttd 7157 . . . . 5 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)):𝐴⟶𝐵)
15 eqeq2 2781 . . . . . . . 8 (𝑏 = (𝑔‘𝑌) → ((𝑔‘𝑌) = 𝑏 ↔ (𝑔‘𝑌) = (𝑔‘𝑌)))
1615ralbidv 3195 . . . . . . 7 (𝑏 = (𝑔‘𝑌) → (∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = 𝑏 ↔ ∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = (𝑔‘𝑌)))
1716adantl 487 . . . . . 6 ((((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) ∧ 𝑏 = (𝑔‘𝑌)) → (∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = 𝑏 ↔ ∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = (𝑔‘𝑌)))
18 eqidd 2770 . . . . . . 7 ((((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) ∧ 𝑧 ∈ 𝐴) → (𝑔‘𝑌) = (𝑔‘𝑌))
1918ralrimiva 3164 . . . . . 6 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → ∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = (𝑔‘𝑌))
2012, 17, 19rspcedvd 3584 . . . . 5 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → ∃𝑏 ∈ 𝐵 ∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = 𝑏)
2114, 20jca 521 . . . 4 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → ((𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)):𝐴⟶𝐵 ∧ ∃𝑏 ∈ 𝐵 ∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = 𝑏))
22 feq1 6727 . . . . 5 (𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) → (𝑓:𝐴⟶𝐵 ↔ (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)):𝐴⟶𝐵))
23 simpl 488 . . . . . . . . 9 ((𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∧ 𝑧 ∈ 𝐴) → 𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)))
24 eqidd 2770 . . . . . . . . 9 (((𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∧ 𝑧 ∈ 𝐴) ∧ 𝑎 = 𝑧) → (𝑔‘𝑌) = (𝑔‘𝑌))
25 simpr 490 . . . . . . . . 9 ((𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∧ 𝑧 ∈ 𝐴) → 𝑧 ∈ 𝐴)
26 fvexd 6941 . . . . . . . . 9 ((𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∧ 𝑧 ∈ 𝐴) → (𝑔‘𝑌) ∈ V)
27 nfcv 2932 . . . . . . . . . . 11 Ⅎ𝑎𝑓
28 nfmpt1 5213 . . . . . . . . . . 11 Ⅎ𝑎(𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌))
2927, 28nfeq 2945 . . . . . . . . . 10 Ⅎ𝑎 𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌))
30 nfv 1951 . . . . . . . . . 10 Ⅎ𝑎 𝑧 ∈ 𝐴
3129, 30nfan 1936 . . . . . . . . 9 Ⅎ𝑎(𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∧ 𝑧 ∈ 𝐴)
32 nfcv 2932 . . . . . . . . 9 Ⅎ𝑎𝑧
33 nfcv 2932 . . . . . . . . 9 Ⅎ𝑎(𝑔‘𝑌)
3423, 24, 25, 26, 31, 32, 33fvmptdf 7041 . . . . . . . 8 ((𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∧ 𝑧 ∈ 𝐴) → (𝑓‘𝑧) = (𝑔‘𝑌))
3534eqeq1d 2771 . . . . . . 7 ((𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∧ 𝑧 ∈ 𝐴) → ((𝑓‘𝑧) = 𝑏 ↔ (𝑔‘𝑌) = 𝑏))
3635ralbidva 3193 . . . . . 6 (𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) → (∀𝑧 ∈ 𝐴 (𝑓‘𝑧) = 𝑏 ↔ ∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = 𝑏))
3736rexbidv 3196 . . . . 5 (𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) → (∃𝑏 ∈ 𝐵 ∀𝑧 ∈ 𝐴 (𝑓‘𝑧) = 𝑏 ↔ ∃𝑏 ∈ 𝐵 ∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = 𝑏))
3822, 37anbi12d 644 . . . 4 (𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) → ((𝑓:𝐴⟶𝐵 ∧ ∃𝑏 ∈ 𝐵 ∀𝑧 ∈ 𝐴 (𝑓‘𝑧) = 𝑏) ↔ ((𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)):𝐴⟶𝐵 ∧ ∃𝑏 ∈ 𝐵 ∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = 𝑏)))
393, 21, 38elabd 3640 . . 3 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∈ {𝑓 ∣ (𝑓:𝐴⟶𝐵 ∧ ∃𝑏 ∈ 𝐵 ∀𝑧 ∈ 𝐴 (𝑓‘𝑧) = 𝑏)})
40 cfsetsnfsetfv.f . . 3 𝐹 = {𝑓 ∣ (𝑓:𝐴⟶𝐵 ∧ ∃𝑏 ∈ 𝐵 ∀𝑧 ∈ 𝐴 (𝑓‘𝑧) = 𝑏)}
4139, 40eleqtrrdi 2881 . 2 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∈ 𝐹)
42 cfsetsnfsetfv.h . 2 𝐻 = (𝑔 ∈ 𝐺 ↦ (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)))
4341, 42fmptd 7156 1 ((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) → 𝐻:𝐺⟶𝐹)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1572   ∈ wcel 2151  {cab 2747  ∀wral 3086  ∃wrex 3096  Vcvv 3456  {csn 4590   ↦ cmpt 5195  ⟶wf 6569  ‘cfv 6573
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-rep 5241  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-sbc 3745  df-csb 3854  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-iun 4961  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 6527  df-fun 6575  df-fn 6576  df-f 6577  df-f1 6578  df-fo 6579  df-f1o 6580  df-fv 6581
This theorem is used by:  cfsetsnfsetf1  48485  cfsetsnfsetfo  48486
  Copyright terms: Public domain W3C validator