Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  cfsetsnfsetfo Structured version   Visualization version   GIF version

Theorem cfsetsnfsetfo 44441
Description: The mapping of the class of singleton functions into the class of constant functions is a surjection. (Contributed by AV, 14-Sep-2024.)
Hypotheses
Ref Expression
cfsetsnfsetfv.f 𝐹 = {𝑓 ∣ (𝑓:𝐴𝐵 ∧ ∃𝑏𝐵𝑧𝐴 (𝑓𝑧) = 𝑏)}
cfsetsnfsetfv.g 𝐺 = {𝑥𝑥:{𝑌}⟶𝐵}
cfsetsnfsetfv.h 𝐻 = (𝑔𝐺 ↦ (𝑎𝐴 ↦ (𝑔𝑌)))
Assertion
Ref Expression
cfsetsnfsetfo ((𝐴𝑉𝑌𝐴) → 𝐻:𝐺onto𝐹)
Distinct variable groups:   𝐴,𝑎,𝑔   𝑔,𝐺   𝑔,𝑉   𝑔,𝑌   𝐴,𝑏,𝑓,𝑧   𝑥,𝐵   𝐵,𝑎,𝑏,𝑓   𝑔,𝐹   𝐺,𝑎,𝑏,𝑧   𝑉,𝑎,𝑏,𝑧   𝑌,𝑎,𝑏,𝑓,𝑧   𝑥,𝑌,𝑔,𝑏   𝑓,𝑔,𝑧   𝑧,𝐵   𝑥,𝑏,𝑧   𝐻,𝑏
Allowed substitution hints:   𝐴(𝑥)   𝐵(𝑔)   𝐹(𝑥,𝑧,𝑓,𝑎,𝑏)   𝐺(𝑥,𝑓)   𝐻(𝑥,𝑧,𝑓,𝑔,𝑎)   𝑉(𝑥,𝑓)

Proof of Theorem cfsetsnfsetfo
Dummy variables 𝑚 𝑛 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 cfsetsnfsetfv.f . . 3 𝐹 = {𝑓 ∣ (𝑓:𝐴𝐵 ∧ ∃𝑏𝐵𝑧𝐴 (𝑓𝑧) = 𝑏)}
2 cfsetsnfsetfv.g . . 3 𝐺 = {𝑥𝑥:{𝑌}⟶𝐵}
3 cfsetsnfsetfv.h . . 3 𝐻 = (𝑔𝐺 ↦ (𝑎𝐴 ↦ (𝑔𝑌)))
41, 2, 3cfsetsnfsetf 44439 . 2 ((𝐴𝑉𝑌𝐴) → 𝐻:𝐺𝐹)
5 vex 3426 . . . . 5 𝑚 ∈ V
6 feq1 6565 . . . . . 6 (𝑓 = 𝑚 → (𝑓:𝐴𝐵𝑚:𝐴𝐵))
7 fveq1 6755 . . . . . . . . . 10 (𝑓 = 𝑚 → (𝑓𝑧) = (𝑚𝑧))
87adantr 480 . . . . . . . . 9 ((𝑓 = 𝑚𝑧𝐴) → (𝑓𝑧) = (𝑚𝑧))
98eqeq1d 2740 . . . . . . . 8 ((𝑓 = 𝑚𝑧𝐴) → ((𝑓𝑧) = 𝑏 ↔ (𝑚𝑧) = 𝑏))
109ralbidva 3119 . . . . . . 7 (𝑓 = 𝑚 → (∀𝑧𝐴 (𝑓𝑧) = 𝑏 ↔ ∀𝑧𝐴 (𝑚𝑧) = 𝑏))
1110rexbidv 3225 . . . . . 6 (𝑓 = 𝑚 → (∃𝑏𝐵𝑧𝐴 (𝑓𝑧) = 𝑏 ↔ ∃𝑏𝐵𝑧𝐴 (𝑚𝑧) = 𝑏))
126, 11anbi12d 630 . . . . 5 (𝑓 = 𝑚 → ((𝑓:𝐴𝐵 ∧ ∃𝑏𝐵𝑧𝐴 (𝑓𝑧) = 𝑏) ↔ (𝑚:𝐴𝐵 ∧ ∃𝑏𝐵𝑧𝐴 (𝑚𝑧) = 𝑏)))
135, 12, 1elab2 3606 . . . 4 (𝑚𝐹 ↔ (𝑚:𝐴𝐵 ∧ ∃𝑏𝐵𝑧𝐴 (𝑚𝑧) = 𝑏))
14 simpllr 772 . . . . . . . . . . 11 ((((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ ∀𝑧𝐴 (𝑚𝑧) = 𝑏) ∧ 𝑦 ∈ {𝑌}) → 𝑏𝐵)
15 eqid 2738 . . . . . . . . . . 11 (𝑦 ∈ {𝑌} ↦ 𝑏) = (𝑦 ∈ {𝑌} ↦ 𝑏)
1614, 15fmptd 6970 . . . . . . . . . 10 (((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ ∀𝑧𝐴 (𝑚𝑧) = 𝑏) → (𝑦 ∈ {𝑌} ↦ 𝑏):{𝑌}⟶𝐵)
17 snex 5349 . . . . . . . . . . . 12 {𝑌} ∈ V
1817mptex 7081 . . . . . . . . . . 11 (𝑦 ∈ {𝑌} ↦ 𝑏) ∈ V
19 feq1 6565 . . . . . . . . . . 11 (𝑥 = (𝑦 ∈ {𝑌} ↦ 𝑏) → (𝑥:{𝑌}⟶𝐵 ↔ (𝑦 ∈ {𝑌} ↦ 𝑏):{𝑌}⟶𝐵))
2018, 19, 2elab2 3606 . . . . . . . . . 10 ((𝑦 ∈ {𝑌} ↦ 𝑏) ∈ 𝐺 ↔ (𝑦 ∈ {𝑌} ↦ 𝑏):{𝑌}⟶𝐵)
2116, 20sylibr 233 . . . . . . . . 9 (((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ ∀𝑧𝐴 (𝑚𝑧) = 𝑏) → (𝑦 ∈ {𝑌} ↦ 𝑏) ∈ 𝐺)
22 fveq1 6755 . . . . . . . . . . . 12 (𝑛 = (𝑦 ∈ {𝑌} ↦ 𝑏) → (𝑛𝑌) = ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌))
2322mpteq2dv 5172 . . . . . . . . . . 11 (𝑛 = (𝑦 ∈ {𝑌} ↦ 𝑏) → (𝑎𝐴 ↦ (𝑛𝑌)) = (𝑎𝐴 ↦ ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌)))
2423eqeq2d 2749 . . . . . . . . . 10 (𝑛 = (𝑦 ∈ {𝑌} ↦ 𝑏) → (𝑚 = (𝑎𝐴 ↦ (𝑛𝑌)) ↔ 𝑚 = (𝑎𝐴 ↦ ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌))))
2524adantl 481 . . . . . . . . 9 ((((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ ∀𝑧𝐴 (𝑚𝑧) = 𝑏) ∧ 𝑛 = (𝑦 ∈ {𝑌} ↦ 𝑏)) → (𝑚 = (𝑎𝐴 ↦ (𝑛𝑌)) ↔ 𝑚 = (𝑎𝐴 ↦ ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌))))
26 simpr 484 . . . . . . . . . . . . . 14 ((((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ 𝑧𝐴) ∧ (𝑚𝑧) = 𝑏) → (𝑚𝑧) = 𝑏)
27 eqidd 2739 . . . . . . . . . . . . . . 15 ((((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ 𝑧𝐴) ∧ (𝑚𝑧) = 𝑏) → (𝑎𝐴 ↦ ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌)) = (𝑎𝐴 ↦ ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌)))
28 eqidd 2739 . . . . . . . . . . . . . . . 16 (((((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ 𝑧𝐴) ∧ (𝑚𝑧) = 𝑏) ∧ 𝑎 = 𝑧) → (𝑦 ∈ {𝑌} ↦ 𝑏) = (𝑦 ∈ {𝑌} ↦ 𝑏))
29 eqidd 2739 . . . . . . . . . . . . . . . 16 ((((((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ 𝑧𝐴) ∧ (𝑚𝑧) = 𝑏) ∧ 𝑎 = 𝑧) ∧ 𝑦 = 𝑌) → 𝑏 = 𝑏)
30 snidg 4592 . . . . . . . . . . . . . . . . 17 (𝑌𝐴𝑌 ∈ {𝑌})
3130ad6antlr 733 . . . . . . . . . . . . . . . 16 (((((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ 𝑧𝐴) ∧ (𝑚𝑧) = 𝑏) ∧ 𝑎 = 𝑧) → 𝑌 ∈ {𝑌})
32 simpllr 772 . . . . . . . . . . . . . . . . 17 ((((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ 𝑧𝐴) ∧ (𝑚𝑧) = 𝑏) → 𝑏𝐵)
3332adantr 480 . . . . . . . . . . . . . . . 16 (((((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ 𝑧𝐴) ∧ (𝑚𝑧) = 𝑏) ∧ 𝑎 = 𝑧) → 𝑏𝐵)
3428, 29, 31, 33fvmptd 6864 . . . . . . . . . . . . . . 15 (((((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ 𝑧𝐴) ∧ (𝑚𝑧) = 𝑏) ∧ 𝑎 = 𝑧) → ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌) = 𝑏)
35 simpr 484 . . . . . . . . . . . . . . . 16 (((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ 𝑧𝐴) → 𝑧𝐴)
3635adantr 480 . . . . . . . . . . . . . . 15 ((((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ 𝑧𝐴) ∧ (𝑚𝑧) = 𝑏) → 𝑧𝐴)
3727, 34, 36, 32fvmptd 6864 . . . . . . . . . . . . . 14 ((((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ 𝑧𝐴) ∧ (𝑚𝑧) = 𝑏) → ((𝑎𝐴 ↦ ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌))‘𝑧) = 𝑏)
3826, 37eqtr4d 2781 . . . . . . . . . . . . 13 ((((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ 𝑧𝐴) ∧ (𝑚𝑧) = 𝑏) → (𝑚𝑧) = ((𝑎𝐴 ↦ ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌))‘𝑧))
3938ex 412 . . . . . . . . . . . 12 (((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ 𝑧𝐴) → ((𝑚𝑧) = 𝑏 → (𝑚𝑧) = ((𝑎𝐴 ↦ ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌))‘𝑧)))
4039ralimdva 3102 . . . . . . . . . . 11 ((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) → (∀𝑧𝐴 (𝑚𝑧) = 𝑏 → ∀𝑧𝐴 (𝑚𝑧) = ((𝑎𝐴 ↦ ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌))‘𝑧)))
4140imp 406 . . . . . . . . . 10 (((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ ∀𝑧𝐴 (𝑚𝑧) = 𝑏) → ∀𝑧𝐴 (𝑚𝑧) = ((𝑎𝐴 ↦ ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌))‘𝑧))
42 ffn 6584 . . . . . . . . . . . . . . 15 (𝑚:𝐴𝐵𝑚 Fn 𝐴)
4342adantl 481 . . . . . . . . . . . . . 14 (((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) → 𝑚 Fn 𝐴)
44 nfv 1918 . . . . . . . . . . . . . . 15 𝑎((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵)
45 fvexd 6771 . . . . . . . . . . . . . . 15 ((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑎𝐴) → ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌) ∈ V)
46 eqid 2738 . . . . . . . . . . . . . . 15 (𝑎𝐴 ↦ ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌)) = (𝑎𝐴 ↦ ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌))
4744, 45, 46fnmptd 6558 . . . . . . . . . . . . . 14 (((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) → (𝑎𝐴 ↦ ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌)) Fn 𝐴)
4843, 47jca 511 . . . . . . . . . . . . 13 (((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) → (𝑚 Fn 𝐴 ∧ (𝑎𝐴 ↦ ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌)) Fn 𝐴))
4948adantr 480 . . . . . . . . . . . 12 ((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) → (𝑚 Fn 𝐴 ∧ (𝑎𝐴 ↦ ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌)) Fn 𝐴))
5049adantr 480 . . . . . . . . . . 11 (((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ ∀𝑧𝐴 (𝑚𝑧) = 𝑏) → (𝑚 Fn 𝐴 ∧ (𝑎𝐴 ↦ ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌)) Fn 𝐴))
51 eqfnfv 6891 . . . . . . . . . . 11 ((𝑚 Fn 𝐴 ∧ (𝑎𝐴 ↦ ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌)) Fn 𝐴) → (𝑚 = (𝑎𝐴 ↦ ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌)) ↔ ∀𝑧𝐴 (𝑚𝑧) = ((𝑎𝐴 ↦ ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌))‘𝑧)))
5250, 51syl 17 . . . . . . . . . 10 (((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ ∀𝑧𝐴 (𝑚𝑧) = 𝑏) → (𝑚 = (𝑎𝐴 ↦ ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌)) ↔ ∀𝑧𝐴 (𝑚𝑧) = ((𝑎𝐴 ↦ ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌))‘𝑧)))
5341, 52mpbird 256 . . . . . . . . 9 (((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ ∀𝑧𝐴 (𝑚𝑧) = 𝑏) → 𝑚 = (𝑎𝐴 ↦ ((𝑦 ∈ {𝑌} ↦ 𝑏)‘𝑌)))
5421, 25, 53rspcedvd 3555 . . . . . . . 8 (((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ ∀𝑧𝐴 (𝑚𝑧) = 𝑏) → ∃𝑛𝐺 𝑚 = (𝑎𝐴 ↦ (𝑛𝑌)))
55 simp-4l 779 . . . . . . . . . . 11 (((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ ∀𝑧𝐴 (𝑚𝑧) = 𝑏) → 𝐴𝑉)
561, 2, 3cfsetsnfsetfv 44438 . . . . . . . . . . 11 ((𝐴𝑉𝑛𝐺) → (𝐻𝑛) = (𝑎𝐴 ↦ (𝑛𝑌)))
5755, 56sylan 579 . . . . . . . . . 10 ((((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ ∀𝑧𝐴 (𝑚𝑧) = 𝑏) ∧ 𝑛𝐺) → (𝐻𝑛) = (𝑎𝐴 ↦ (𝑛𝑌)))
5857eqeq2d 2749 . . . . . . . . 9 ((((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ ∀𝑧𝐴 (𝑚𝑧) = 𝑏) ∧ 𝑛𝐺) → (𝑚 = (𝐻𝑛) ↔ 𝑚 = (𝑎𝐴 ↦ (𝑛𝑌))))
5958rexbidva 3224 . . . . . . . 8 (((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ ∀𝑧𝐴 (𝑚𝑧) = 𝑏) → (∃𝑛𝐺 𝑚 = (𝐻𝑛) ↔ ∃𝑛𝐺 𝑚 = (𝑎𝐴 ↦ (𝑛𝑌))))
6054, 59mpbird 256 . . . . . . 7 (((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) ∧ ∀𝑧𝐴 (𝑚𝑧) = 𝑏) → ∃𝑛𝐺 𝑚 = (𝐻𝑛))
6160ex 412 . . . . . 6 ((((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) ∧ 𝑏𝐵) → (∀𝑧𝐴 (𝑚𝑧) = 𝑏 → ∃𝑛𝐺 𝑚 = (𝐻𝑛)))
6261rexlimdva 3212 . . . . 5 (((𝐴𝑉𝑌𝐴) ∧ 𝑚:𝐴𝐵) → (∃𝑏𝐵𝑧𝐴 (𝑚𝑧) = 𝑏 → ∃𝑛𝐺 𝑚 = (𝐻𝑛)))
6362expimpd 453 . . . 4 ((𝐴𝑉𝑌𝐴) → ((𝑚:𝐴𝐵 ∧ ∃𝑏𝐵𝑧𝐴 (𝑚𝑧) = 𝑏) → ∃𝑛𝐺 𝑚 = (𝐻𝑛)))
6413, 63syl5bi 241 . . 3 ((𝐴𝑉𝑌𝐴) → (𝑚𝐹 → ∃𝑛𝐺 𝑚 = (𝐻𝑛)))
6564ralrimiv 3106 . 2 ((𝐴𝑉𝑌𝐴) → ∀𝑚𝐹𝑛𝐺 𝑚 = (𝐻𝑛))
66 dffo3 6960 . 2 (𝐻:𝐺onto𝐹 ↔ (𝐻:𝐺𝐹 ∧ ∀𝑚𝐹𝑛𝐺 𝑚 = (𝐻𝑛)))
674, 65, 66sylanbrc 582 1 ((𝐴𝑉𝑌𝐴) → 𝐻:𝐺onto𝐹)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wcel 2108  {cab 2715  wral 3063  wrex 3064  Vcvv 3422  {csn 4558  cmpt 5153   Fn wfn 6413  wf 6414  ontowfo 6416  cfv 6418
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426
This theorem is referenced by:  cfsetsnfsetf1o  44442
  Copyright terms: Public domain W3C validator