ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  fconstfvm GIF version

Theorem fconstfvm 5379
Description: A constant function expressed in terms of its functionality, domain, and value. See also fconst2 5378. (Contributed by Jim Kingdon, 8-Jan-2019.)
Assertion
Ref Expression
fconstfvm (∃𝑦 𝑦𝐴 → (𝐹:𝐴⟶{𝐵} ↔ (𝐹 Fn 𝐴 ∧ ∀𝑥𝐴 (𝐹𝑥) = 𝐵)))
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵   𝑥,𝐹   𝑦,𝐴
Allowed substitution hints:   𝐵(𝑦)   𝐹(𝑦)

Proof of Theorem fconstfvm
Dummy variables 𝑤 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ffn 5046 . . 3 (𝐹:𝐴⟶{𝐵} → 𝐹 Fn 𝐴)
2 fvconst 5351 . . . 4 ((𝐹:𝐴⟶{𝐵} ∧ 𝑥𝐴) → (𝐹𝑥) = 𝐵)
32ralrimiva 2392 . . 3 (𝐹:𝐴⟶{𝐵} → ∀𝑥𝐴 (𝐹𝑥) = 𝐵)
41, 3jca 290 . 2 (𝐹:𝐴⟶{𝐵} → (𝐹 Fn 𝐴 ∧ ∀𝑥𝐴 (𝐹𝑥) = 𝐵))
5 fvelrnb 5221 . . . . . . . . 9 (𝐹 Fn 𝐴 → (𝑤 ∈ ran 𝐹 ↔ ∃𝑧𝐴 (𝐹𝑧) = 𝑤))
6 fveq2 5178 . . . . . . . . . . . . . 14 (𝑥 = 𝑧 → (𝐹𝑥) = (𝐹𝑧))
76eqeq1d 2048 . . . . . . . . . . . . 13 (𝑥 = 𝑧 → ((𝐹𝑥) = 𝐵 ↔ (𝐹𝑧) = 𝐵))
87rspccva 2655 . . . . . . . . . . . 12 ((∀𝑥𝐴 (𝐹𝑥) = 𝐵𝑧𝐴) → (𝐹𝑧) = 𝐵)
98eqeq1d 2048 . . . . . . . . . . 11 ((∀𝑥𝐴 (𝐹𝑥) = 𝐵𝑧𝐴) → ((𝐹𝑧) = 𝑤𝐵 = 𝑤))
109rexbidva 2323 . . . . . . . . . 10 (∀𝑥𝐴 (𝐹𝑥) = 𝐵 → (∃𝑧𝐴 (𝐹𝑧) = 𝑤 ↔ ∃𝑧𝐴 𝐵 = 𝑤))
11 r19.9rmv 3313 . . . . . . . . . . 11 (∃𝑦 𝑦𝐴 → (𝐵 = 𝑤 ↔ ∃𝑧𝐴 𝐵 = 𝑤))
1211bicomd 129 . . . . . . . . . 10 (∃𝑦 𝑦𝐴 → (∃𝑧𝐴 𝐵 = 𝑤𝐵 = 𝑤))
1310, 12sylan9bbr 436 . . . . . . . . 9 ((∃𝑦 𝑦𝐴 ∧ ∀𝑥𝐴 (𝐹𝑥) = 𝐵) → (∃𝑧𝐴 (𝐹𝑧) = 𝑤𝐵 = 𝑤))
145, 13sylan9bbr 436 . . . . . . . 8 (((∃𝑦 𝑦𝐴 ∧ ∀𝑥𝐴 (𝐹𝑥) = 𝐵) ∧ 𝐹 Fn 𝐴) → (𝑤 ∈ ran 𝐹𝐵 = 𝑤))
15 velsn 3392 . . . . . . . . 9 (𝑤 ∈ {𝐵} ↔ 𝑤 = 𝐵)
16 eqcom 2042 . . . . . . . . 9 (𝑤 = 𝐵𝐵 = 𝑤)
1715, 16bitr2i 174 . . . . . . . 8 (𝐵 = 𝑤𝑤 ∈ {𝐵})
1814, 17syl6bb 185 . . . . . . 7 (((∃𝑦 𝑦𝐴 ∧ ∀𝑥𝐴 (𝐹𝑥) = 𝐵) ∧ 𝐹 Fn 𝐴) → (𝑤 ∈ ran 𝐹𝑤 ∈ {𝐵}))
1918eqrdv 2038 . . . . . 6 (((∃𝑦 𝑦𝐴 ∧ ∀𝑥𝐴 (𝐹𝑥) = 𝐵) ∧ 𝐹 Fn 𝐴) → ran 𝐹 = {𝐵})
2019an32s 502 . . . . 5 (((∃𝑦 𝑦𝐴𝐹 Fn 𝐴) ∧ ∀𝑥𝐴 (𝐹𝑥) = 𝐵) → ran 𝐹 = {𝐵})
2120exp31 346 . . . 4 (∃𝑦 𝑦𝐴 → (𝐹 Fn 𝐴 → (∀𝑥𝐴 (𝐹𝑥) = 𝐵 → ran 𝐹 = {𝐵})))
2221imdistand 421 . . 3 (∃𝑦 𝑦𝐴 → ((𝐹 Fn 𝐴 ∧ ∀𝑥𝐴 (𝐹𝑥) = 𝐵) → (𝐹 Fn 𝐴 ∧ ran 𝐹 = {𝐵})))
23 df-fo 4908 . . . 4 (𝐹:𝐴onto→{𝐵} ↔ (𝐹 Fn 𝐴 ∧ ran 𝐹 = {𝐵}))
24 fof 5106 . . . 4 (𝐹:𝐴onto→{𝐵} → 𝐹:𝐴⟶{𝐵})
2523, 24sylbir 125 . . 3 ((𝐹 Fn 𝐴 ∧ ran 𝐹 = {𝐵}) → 𝐹:𝐴⟶{𝐵})
2622, 25syl6 29 . 2 (∃𝑦 𝑦𝐴 → ((𝐹 Fn 𝐴 ∧ ∀𝑥𝐴 (𝐹𝑥) = 𝐵) → 𝐹:𝐴⟶{𝐵}))
274, 26impbid2 131 1 (∃𝑦 𝑦𝐴 → (𝐹:𝐴⟶{𝐵} ↔ (𝐹 Fn 𝐴 ∧ ∀𝑥𝐴 (𝐹𝑥) = 𝐵)))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 97  wb 98   = wceq 1243  wex 1381  wcel 1393  wral 2306  wrex 2307  {csn 3375  ran crn 4346   Fn wfn 4897  wf 4898  ontowfo 4900  cfv 4902
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 99  ax-ia2 100  ax-ia3 101  ax-io 630  ax-5 1336  ax-7 1337  ax-gen 1338  ax-ie1 1382  ax-ie2 1383  ax-8 1395  ax-10 1396  ax-11 1397  ax-i12 1398  ax-bndl 1399  ax-4 1400  ax-14 1405  ax-17 1419  ax-i9 1423  ax-ial 1427  ax-i5r 1428  ax-ext 2022  ax-sep 3875  ax-pow 3927  ax-pr 3944
This theorem depends on definitions:  df-bi 110  df-3an 887  df-tru 1246  df-nf 1350  df-sb 1646  df-eu 1903  df-mo 1904  df-clab 2027  df-cleq 2033  df-clel 2036  df-nfc 2167  df-ral 2311  df-rex 2312  df-v 2559  df-sbc 2765  df-un 2922  df-in 2924  df-ss 2931  df-pw 3361  df-sn 3381  df-pr 3382  df-op 3384  df-uni 3581  df-br 3765  df-opab 3819  df-mpt 3820  df-id 4030  df-xp 4351  df-rel 4352  df-cnv 4353  df-co 4354  df-dm 4355  df-rn 4356  df-iota 4867  df-fun 4904  df-fn 4905  df-f 4906  df-fo 4908  df-fv 4910
This theorem is referenced by:  fconst3m  5380
  Copyright terms: Public domain W3C validator