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 48072
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 7222 . . . 4 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∈ V)
4 vex 3455 . . . . . . . . . 10 𝑔 ∈ V
5 feq1 6679 . . . . . . . . . 10 (𝑥 = 𝑔 → (𝑥:{𝑌}⟶𝐵 ↔ 𝑔:{𝑌}⟶𝐵))
6 cfsetsnfsetfv.g . . . . . . . . . 10 𝐺 = {𝑥 ∣ 𝑥:{𝑌}⟶𝐵}
74, 5, 6elab2 3636 . . . . . . . . 9 (𝑔 ∈ 𝐺 ↔ 𝑔:{𝑌}⟶𝐵)
87bilani 510 . . . . . . . 8 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → 𝑔:{𝑌}⟶𝐵)
9 snidg 4621 . . . . . . . . . 10 (𝑌 ∈ 𝐴 → 𝑌 ∈ {𝑌})
109adantl 487 . . . . . . . . 9 ((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) → 𝑌 ∈ {𝑌})
1110adantr 486 . . . . . . . 8 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → 𝑌 ∈ {𝑌})
128, 11ffvelcdmd 7077 . . . . . . 7 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → (𝑔‘𝑌) ∈ 𝐵)
1312adantr 486 . . . . . 6 ((((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) ∧ 𝑎 ∈ 𝐴) → (𝑔‘𝑌) ∈ 𝐵)
1413fmpttd 7107 . . . . 5 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)):𝐴⟶𝐵)
15 eqeq2 2773 . . . . . . . 8 (𝑏 = (𝑔‘𝑌) → ((𝑔‘𝑌) = 𝑏 ↔ (𝑔‘𝑌) = (𝑔‘𝑌)))
1615ralbidv 3186 . . . . . . 7 (𝑏 = (𝑔‘𝑌) → (∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = 𝑏 ↔ ∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = (𝑔‘𝑌)))
1716adantl 487 . . . . . 6 ((((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) ∧ 𝑏 = (𝑔‘𝑌)) → (∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = 𝑏 ↔ ∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = (𝑔‘𝑌)))
18 eqidd 2762 . . . . . . 7 ((((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) ∧ 𝑧 ∈ 𝐴) → (𝑔‘𝑌) = (𝑔‘𝑌))
1918ralrimiva 3155 . . . . . 6 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → ∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = (𝑔‘𝑌))
2012, 17, 19rspcedvd 3579 . . . . 5 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → ∃𝑏 ∈ 𝐵 ∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = 𝑏)
2114, 20jca 521 . . . 4 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → ((𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)):𝐴⟶𝐵 ∧ ∃𝑏 ∈ 𝐵 ∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = 𝑏))
22 feq1 6679 . . . . 5 (𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) → (𝑓:𝐴⟶𝐵 ↔ (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)):𝐴⟶𝐵))
23 simpl 488 . . . . . . . . 9 ((𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∧ 𝑧 ∈ 𝐴) → 𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)))
24 eqidd 2762 . . . . . . . . 9 (((𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∧ 𝑧 ∈ 𝐴) ∧ 𝑎 = 𝑧) → (𝑔‘𝑌) = (𝑔‘𝑌))
25 simpr 490 . . . . . . . . 9 ((𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∧ 𝑧 ∈ 𝐴) → 𝑧 ∈ 𝐴)
26 fvexd 6892 . . . . . . . . 9 ((𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∧ 𝑧 ∈ 𝐴) → (𝑔‘𝑌) ∈ V)
27 nfcv 2923 . . . . . . . . . . 11 Ⅎ𝑎𝑓
28 nfmpt1 5204 . . . . . . . . . . 11 Ⅎ𝑎(𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌))
2927, 28nfeq 2936 . . . . . . . . . 10 Ⅎ𝑎 𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌))
30 nfv 1947 . . . . . . . . . 10 Ⅎ𝑎 𝑧 ∈ 𝐴
3129, 30nfan 1932 . . . . . . . . 9 Ⅎ𝑎(𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∧ 𝑧 ∈ 𝐴)
32 nfcv 2923 . . . . . . . . 9 Ⅎ𝑎𝑧
33 nfcv 2923 . . . . . . . . 9 Ⅎ𝑎(𝑔‘𝑌)
3423, 24, 25, 26, 31, 32, 33fvmptdf 6992 . . . . . . . 8 ((𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∧ 𝑧 ∈ 𝐴) → (𝑓‘𝑧) = (𝑔‘𝑌))
3534eqeq1d 2763 . . . . . . 7 ((𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∧ 𝑧 ∈ 𝐴) → ((𝑓‘𝑧) = 𝑏 ↔ (𝑔‘𝑌) = 𝑏))
3635ralbidva 3184 . . . . . 6 (𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) → (∀𝑧 ∈ 𝐴 (𝑓‘𝑧) = 𝑏 ↔ ∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = 𝑏))
3736rexbidv 3187 . . . . 5 (𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) → (∃𝑏 ∈ 𝐵 ∀𝑧 ∈ 𝐴 (𝑓‘𝑧) = 𝑏 ↔ ∃𝑏 ∈ 𝐵 ∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = 𝑏))
3822, 37anbi12d 644 . . . 4 (𝑓 = (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) → ((𝑓:𝐴⟶𝐵 ∧ ∃𝑏 ∈ 𝐵 ∀𝑧 ∈ 𝐴 (𝑓‘𝑧) = 𝑏) ↔ ((𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)):𝐴⟶𝐵 ∧ ∃𝑏 ∈ 𝐵 ∀𝑧 ∈ 𝐴 (𝑔‘𝑌) = 𝑏)))
393, 21, 38elabd 3635 . . 3 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∈ {𝑓 ∣ (𝑓:𝐴⟶𝐵 ∧ ∃𝑏 ∈ 𝐵 ∀𝑧 ∈ 𝐴 (𝑓‘𝑧) = 𝑏)})
40 cfsetsnfsetfv.f . . 3 𝐹 = {𝑓 ∣ (𝑓:𝐴⟶𝐵 ∧ ∃𝑏 ∈ 𝐵 ∀𝑧 ∈ 𝐴 (𝑓‘𝑧) = 𝑏)}
4139, 40eleqtrrdi 2872 . 2 (((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) ∧ 𝑔 ∈ 𝐺) → (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)) ∈ 𝐹)
42 cfsetsnfsetfv.h . 2 𝐻 = (𝑔 ∈ 𝐺 ↦ (𝑎 ∈ 𝐴 ↦ (𝑔‘𝑌)))
4341, 42fmptd 7106 1 ((𝐴 ∈ 𝑉 ∧ 𝑌 ∈ 𝐴) → 𝐻:𝐺⟶𝐹)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1570   ∈ wcel 2145  {cab 2739  ∀wral 3077  ∃wrex 3087  Vcvv 3451  {csn 4584   ↦ cmpt 5186  ⟶wf 6527  ‘cfv 6531
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-rep 5232  ax-sep 5249  ax-nul 5260  ax-pr 5391
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-iota 6487  df-fun 6533  df-fn 6534  df-f 6535  df-f1 6536  df-fo 6537  df-f1o 6538  df-fv 6539
This theorem is used by:  cfsetsnfsetf1  48073  cfsetsnfsetfo  48074
  Copyright terms: Public domain W3C validator