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

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

Proof of Theorem cfsetsnfsetf1
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 44552 . 2 ((𝐴𝑉𝑌𝐴) → 𝐻:𝐺𝐹)
51, 2, 3cfsetsnfsetfv 44551 . . . . . 6 ((𝐴𝑉𝑚𝐺) → (𝐻𝑚) = (𝑎𝐴 ↦ (𝑚𝑌)))
65ad2ant2r 744 . . . . 5 (((𝐴𝑉𝑌𝐴) ∧ (𝑚𝐺𝑛𝐺)) → (𝐻𝑚) = (𝑎𝐴 ↦ (𝑚𝑌)))
71, 2, 3cfsetsnfsetfv 44551 . . . . . 6 ((𝐴𝑉𝑛𝐺) → (𝐻𝑛) = (𝑎𝐴 ↦ (𝑛𝑌)))
87ad2ant2rl 746 . . . . 5 (((𝐴𝑉𝑌𝐴) ∧ (𝑚𝐺𝑛𝐺)) → (𝐻𝑛) = (𝑎𝐴 ↦ (𝑛𝑌)))
96, 8eqeq12d 2754 . . . 4 (((𝐴𝑉𝑌𝐴) ∧ (𝑚𝐺𝑛𝐺)) → ((𝐻𝑚) = (𝐻𝑛) ↔ (𝑎𝐴 ↦ (𝑚𝑌)) = (𝑎𝐴 ↦ (𝑛𝑌))))
10 fvexd 6789 . . . . . . 7 ((((𝐴𝑉𝑌𝐴) ∧ (𝑚𝐺𝑛𝐺)) ∧ 𝑎𝐴) → (𝑚𝑌) ∈ V)
1110ralrimiva 3103 . . . . . 6 (((𝐴𝑉𝑌𝐴) ∧ (𝑚𝐺𝑛𝐺)) → ∀𝑎𝐴 (𝑚𝑌) ∈ V)
12 mpteqb 6894 . . . . . 6 (∀𝑎𝐴 (𝑚𝑌) ∈ V → ((𝑎𝐴 ↦ (𝑚𝑌)) = (𝑎𝐴 ↦ (𝑛𝑌)) ↔ ∀𝑎𝐴 (𝑚𝑌) = (𝑛𝑌)))
1311, 12syl 17 . . . . 5 (((𝐴𝑉𝑌𝐴) ∧ (𝑚𝐺𝑛𝐺)) → ((𝑎𝐴 ↦ (𝑚𝑌)) = (𝑎𝐴 ↦ (𝑛𝑌)) ↔ ∀𝑎𝐴 (𝑚𝑌) = (𝑛𝑌)))
14 simplr 766 . . . . . . 7 (((𝐴𝑉𝑌𝐴) ∧ (𝑚𝐺𝑛𝐺)) → 𝑌𝐴)
15 idd 24 . . . . . . 7 ((((𝐴𝑉𝑌𝐴) ∧ (𝑚𝐺𝑛𝐺)) ∧ 𝑎 = 𝑌) → ((𝑚𝑌) = (𝑛𝑌) → (𝑚𝑌) = (𝑛𝑌)))
1614, 15rspcimdv 3551 . . . . . 6 (((𝐴𝑉𝑌𝐴) ∧ (𝑚𝐺𝑛𝐺)) → (∀𝑎𝐴 (𝑚𝑌) = (𝑛𝑌) → (𝑚𝑌) = (𝑛𝑌)))
17 vex 3436 . . . . . . . . . 10 𝑚 ∈ V
18 feq1 6581 . . . . . . . . . 10 (𝑥 = 𝑚 → (𝑥:{𝑌}⟶𝐵𝑚:{𝑌}⟶𝐵))
1917, 18, 2elab2 3613 . . . . . . . . 9 (𝑚𝐺𝑚:{𝑌}⟶𝐵)
20 vex 3436 . . . . . . . . . 10 𝑛 ∈ V
21 feq1 6581 . . . . . . . . . 10 (𝑥 = 𝑛 → (𝑥:{𝑌}⟶𝐵𝑛:{𝑌}⟶𝐵))
2220, 21, 2elab2 3613 . . . . . . . . 9 (𝑛𝐺𝑛:{𝑌}⟶𝐵)
2319, 22anbi12i 627 . . . . . . . 8 ((𝑚𝐺𝑛𝐺) ↔ (𝑚:{𝑌}⟶𝐵𝑛:{𝑌}⟶𝐵))
24 simp3 1137 . . . . . . . . . . 11 (((𝐴𝑉𝑌𝐴) ∧ (𝑚:{𝑌}⟶𝐵𝑛:{𝑌}⟶𝐵) ∧ (𝑚𝑌) = (𝑛𝑌)) → (𝑚𝑌) = (𝑛𝑌))
25 simp1r 1197 . . . . . . . . . . . 12 (((𝐴𝑉𝑌𝐴) ∧ (𝑚:{𝑌}⟶𝐵𝑛:{𝑌}⟶𝐵) ∧ (𝑚𝑌) = (𝑛𝑌)) → 𝑌𝐴)
26 fveq2 6774 . . . . . . . . . . . . . 14 (𝑦 = 𝑌 → (𝑚𝑦) = (𝑚𝑌))
27 fveq2 6774 . . . . . . . . . . . . . 14 (𝑦 = 𝑌 → (𝑛𝑦) = (𝑛𝑌))
2826, 27eqeq12d 2754 . . . . . . . . . . . . 13 (𝑦 = 𝑌 → ((𝑚𝑦) = (𝑛𝑦) ↔ (𝑚𝑌) = (𝑛𝑌)))
2928ralsng 4609 . . . . . . . . . . . 12 (𝑌𝐴 → (∀𝑦 ∈ {𝑌} (𝑚𝑦) = (𝑛𝑦) ↔ (𝑚𝑌) = (𝑛𝑌)))
3025, 29syl 17 . . . . . . . . . . 11 (((𝐴𝑉𝑌𝐴) ∧ (𝑚:{𝑌}⟶𝐵𝑛:{𝑌}⟶𝐵) ∧ (𝑚𝑌) = (𝑛𝑌)) → (∀𝑦 ∈ {𝑌} (𝑚𝑦) = (𝑛𝑦) ↔ (𝑚𝑌) = (𝑛𝑌)))
3124, 30mpbird 256 . . . . . . . . . 10 (((𝐴𝑉𝑌𝐴) ∧ (𝑚:{𝑌}⟶𝐵𝑛:{𝑌}⟶𝐵) ∧ (𝑚𝑌) = (𝑛𝑌)) → ∀𝑦 ∈ {𝑌} (𝑚𝑦) = (𝑛𝑦))
32 ffn 6600 . . . . . . . . . . . . 13 (𝑚:{𝑌}⟶𝐵𝑚 Fn {𝑌})
33 ffn 6600 . . . . . . . . . . . . 13 (𝑛:{𝑌}⟶𝐵𝑛 Fn {𝑌})
3432, 33anim12i 613 . . . . . . . . . . . 12 ((𝑚:{𝑌}⟶𝐵𝑛:{𝑌}⟶𝐵) → (𝑚 Fn {𝑌} ∧ 𝑛 Fn {𝑌}))
35343ad2ant2 1133 . . . . . . . . . . 11 (((𝐴𝑉𝑌𝐴) ∧ (𝑚:{𝑌}⟶𝐵𝑛:{𝑌}⟶𝐵) ∧ (𝑚𝑌) = (𝑛𝑌)) → (𝑚 Fn {𝑌} ∧ 𝑛 Fn {𝑌}))
36 eqfnfv 6909 . . . . . . . . . . 11 ((𝑚 Fn {𝑌} ∧ 𝑛 Fn {𝑌}) → (𝑚 = 𝑛 ↔ ∀𝑦 ∈ {𝑌} (𝑚𝑦) = (𝑛𝑦)))
3735, 36syl 17 . . . . . . . . . 10 (((𝐴𝑉𝑌𝐴) ∧ (𝑚:{𝑌}⟶𝐵𝑛:{𝑌}⟶𝐵) ∧ (𝑚𝑌) = (𝑛𝑌)) → (𝑚 = 𝑛 ↔ ∀𝑦 ∈ {𝑌} (𝑚𝑦) = (𝑛𝑦)))
3831, 37mpbird 256 . . . . . . . . 9 (((𝐴𝑉𝑌𝐴) ∧ (𝑚:{𝑌}⟶𝐵𝑛:{𝑌}⟶𝐵) ∧ (𝑚𝑌) = (𝑛𝑌)) → 𝑚 = 𝑛)
39383exp 1118 . . . . . . . 8 ((𝐴𝑉𝑌𝐴) → ((𝑚:{𝑌}⟶𝐵𝑛:{𝑌}⟶𝐵) → ((𝑚𝑌) = (𝑛𝑌) → 𝑚 = 𝑛)))
4023, 39syl5bi 241 . . . . . . 7 ((𝐴𝑉𝑌𝐴) → ((𝑚𝐺𝑛𝐺) → ((𝑚𝑌) = (𝑛𝑌) → 𝑚 = 𝑛)))
4140imp 407 . . . . . 6 (((𝐴𝑉𝑌𝐴) ∧ (𝑚𝐺𝑛𝐺)) → ((𝑚𝑌) = (𝑛𝑌) → 𝑚 = 𝑛))
4216, 41syld 47 . . . . 5 (((𝐴𝑉𝑌𝐴) ∧ (𝑚𝐺𝑛𝐺)) → (∀𝑎𝐴 (𝑚𝑌) = (𝑛𝑌) → 𝑚 = 𝑛))
4313, 42sylbid 239 . . . 4 (((𝐴𝑉𝑌𝐴) ∧ (𝑚𝐺𝑛𝐺)) → ((𝑎𝐴 ↦ (𝑚𝑌)) = (𝑎𝐴 ↦ (𝑛𝑌)) → 𝑚 = 𝑛))
449, 43sylbid 239 . . 3 (((𝐴𝑉𝑌𝐴) ∧ (𝑚𝐺𝑛𝐺)) → ((𝐻𝑚) = (𝐻𝑛) → 𝑚 = 𝑛))
4544ralrimivva 3123 . 2 ((𝐴𝑉𝑌𝐴) → ∀𝑚𝐺𝑛𝐺 ((𝐻𝑚) = (𝐻𝑛) → 𝑚 = 𝑛))
46 dff13 7128 . 2 (𝐻:𝐺1-1𝐹 ↔ (𝐻:𝐺𝐹 ∧ ∀𝑚𝐺𝑛𝐺 ((𝐻𝑚) = (𝐻𝑛) → 𝑚 = 𝑛)))
474, 45, 46sylanbrc 583 1 ((𝐴𝑉𝑌𝐴) → 𝐻:𝐺1-1𝐹)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  w3a 1086   = wceq 1539  wcel 2106  {cab 2715  wral 3064  wrex 3065  Vcvv 3432  {csn 4561  cmpt 5157   Fn wfn 6428  wf 6429  1-1wf1 6430  cfv 6433
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-rep 5209  ax-sep 5223  ax-nul 5230  ax-pr 5352
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441
This theorem is referenced by:  cfsetsnfsetf1o  44555
  Copyright terms: Public domain W3C validator