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 48221
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 7230 . . . 4 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∈ V)
4 vex 3454 . . . . . . . . . 10 𝑔 ∈ V
5 feq1 6687 . . . . . . . . . 10 (𝑥 = 𝑔 → (𝑥:{𝑌}⟶𝐵 ↔ 𝑔:{𝑌}⟶𝐵))
6 cfsetsnfsetfv.g . . . . . . . . . 10 𝐺 = {𝑥 ∣ 𝑥:{𝑌}⟶𝐵}
74, 5, 6elab2 3635 . . . . . . . . 9 (𝑔 ∈ 𝐺 ↔ 𝑔:{𝑌}⟶𝐵)
87bilani 510 . . . . . . . 8 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → 𝑔:{𝑌}⟶𝐵)
9 snidg 4617 . . . . . . . . . 10 (𝑌 ∈ 𝐴 → 𝑌 ∈ {𝑌})
109adantl 487 . . . . . . . . 9 ((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) → 𝑌 ∈ {𝑌})
1110adantr 486 . . . . . . . 8 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → 𝑌 ∈ {𝑌})
128, 11ffvelcdmd 7085 . . . . . . 7 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → (𝑔‘𝑌) ∈ 𝐵)
1312adantr 486 . . . . . 6 ((((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) ∧ 𝑎 ∈ 𝐴) → (𝑔‘𝑌) ∈ 𝐵)
1413fmpttd 7115 . . . . 5 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)):𝐴⟶𝐵)
15 eqeq2 2772 . . . . . . . 8 (𝑏 = (𝑔‘𝑌) → ((𝑔‘𝑌) = 𝑏 ↔ (𝑔‘𝑌) = (𝑔‘𝑌)))
1615ralbidv 3185 . . . . . . 7 (𝑏 = (𝑔‘𝑌) → (∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = 𝑏 ↔ ∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = (𝑔‘𝑌)))
1716adantl 487 . . . . . 6 ((((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) ∧ 𝑏 = (𝑔‘𝑌)) → (∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = 𝑏 ↔ ∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = (𝑔‘𝑌)))
18 eqidd 2761 . . . . . . 7 ((((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) ∧ 𝑧 ∈ 𝐴) → (𝑔‘𝑌) = (𝑔‘𝑌))
1918ralrimiva 3154 . . . . . 6 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → ∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = (𝑔‘𝑌))
2012, 17, 19rspcedvd 3578 . . . . 5 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → ∃𝑏 ∈ 𝐵 ∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = 𝑏)
2114, 20jca 521 . . . 4 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → ((𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)):𝐴⟶𝐵 ∧ ∃𝑏 ∈ 𝐵 ∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = 𝑏))
22 feq1 6687 . . . . 5 (𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) → (𝑓:𝐴⟶𝐵 ↔ (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)):𝐴⟶𝐵))
23 simpl 488 . . . . . . . . 9 ((𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∧ 𝑧 ∈ 𝐴) → 𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)))
24 eqidd 2761 . . . . . . . . 9 (((𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∧ 𝑧 ∈ 𝐴) ∧ 𝑎 = 𝑧) → (𝑔‘𝑌) = (𝑔‘𝑌))
25 simpr 490 . . . . . . . . 9 ((𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∧ 𝑧 ∈ 𝐴) → 𝑧 ∈ 𝐴)
26 fvexd 6900 . . . . . . . . 9 ((𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∧ 𝑧 ∈ 𝐴) → (𝑔‘𝑌) ∈ V)
27 nfcv 2922 . . . . . . . . . . 11 Ⅎ𝑎𝑓
28 nfmpt1 5203 . . . . . . . . . . 11 Ⅎ𝑎(𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌))
2927, 28nfeq 2935 . . . . . . . . . 10 Ⅎ𝑎 𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌))
30 nfv 1946 . . . . . . . . . 10 Ⅎ𝑎 𝑧 ∈ 𝐴
3129, 30nfan 1931 . . . . . . . . 9 Ⅎ𝑎(𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∧ 𝑧 ∈ 𝐴)
32 nfcv 2922 . . . . . . . . 9 Ⅎ𝑎𝑧
33 nfcv 2922 . . . . . . . . 9 Ⅎ𝑎(𝑔‘𝑌)
3423, 24, 25, 26, 31, 32, 33fvmptdf 7000 . . . . . . . 8 ((𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∧ 𝑧 ∈ 𝐴) → (𝑓‘𝑧) = (𝑔‘𝑌))
3534eqeq1d 2762 . . . . . . 7 ((𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∧ 𝑧 ∈ 𝐴) → ((𝑓‘𝑧) = 𝑏 ↔ (𝑔‘𝑌) = 𝑏))
3635ralbidva 3183 . . . . . 6 (𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) → (∀𝑧 ∈ 𝐴 (𝑓‘𝑧) = 𝑏 ↔ ∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = 𝑏))
3736rexbidv 3186 . . . . 5 (𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) → (∃𝑏 ∈ 𝐵 ∀𝑧 ∈ 𝐴 (𝑓‘𝑧) = 𝑏 ↔ ∃𝑏 ∈ 𝐵 ∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = 𝑏))
3822, 37anbi12d 644 . . . 4 (𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) → ((𝑓:𝐴⟶𝐵 ∧ ∃𝑏 ∈ 𝐵 ∀𝑧 ∈ 𝐴 (𝑓‘𝑧) = 𝑏) ↔ ((𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)):𝐴⟶𝐵 ∧ ∃𝑏 ∈ 𝐵 ∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = 𝑏)))
393, 21, 38elabd 3634 . . 3 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∈ {𝑓 ∣ (𝑓:𝐴⟶𝐵 ∧ ∃𝑏 ∈ 𝐵 ∀𝑧 ∈ 𝐴 (𝑓‘𝑧) = 𝑏)})
40 cfsetsnfsetfv.f . . 3 𝐹 = {𝑓 ∣ (𝑓:𝐴⟶𝐵 ∧ ∃𝑏 ∈ 𝐵 ∀𝑧 ∈ 𝐴 (𝑓‘𝑧) = 𝑏)}
4139, 40eleqtrrdi 2871 . 2 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∈ 𝐹)
42 cfsetsnfsetfv.h . 2 𝐻 = (𝑔 ∈ 𝐺 ↦ (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)))
4341, 42fmptd 7114 1 ((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) → 𝐻:𝐺⟶𝐹)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1569   ∈ wcel 2144  {cab 2738  ∀wral 3076  ∃wrex 3086  Vcvv 3450  {csn 4584   ↦ cmpt 5185  ⟶wf 6534  ‘cfv 6538
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-rep 5231  ax-sep 5248  ax-nul 5259  ax-pr 5390
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-ral 3077  df-rex 3087  df-reu 3366  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  df-id 5545  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-rn 5661  df-res 5662  df-ima 5663  df-iota 6494  df-fun 6540  df-fn 6541  df-f 6542  df-f1 6543  df-fo 6544  df-f1o 6545  df-fv 6546
This theorem is used by:  cfsetsnfsetf1  48222  cfsetsnfsetfo  48223
  Copyright terms: Public domain W3C validator