MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  foconst Structured version   Visualization version   GIF version

Theorem foconst 6578
Description: A nonzero constant function is onto. (Contributed by NM, 12-Jan-2007.)
Assertion
Ref Expression
foconst ((𝐹:𝐴⟶{𝐵} ∧ 𝐹 ≠ ∅) → 𝐹:𝐴onto→{𝐵})

Proof of Theorem foconst
StepHypRef Expression
1 frel 6492 . . . . 5 (𝐹:𝐴⟶{𝐵} → Rel 𝐹)
2 relrn0 5805 . . . . . 6 (Rel 𝐹 → (𝐹 = ∅ ↔ ran 𝐹 = ∅))
32necon3abid 3023 . . . . 5 (Rel 𝐹 → (𝐹 ≠ ∅ ↔ ¬ ran 𝐹 = ∅))
41, 3syl 17 . . . 4 (𝐹:𝐴⟶{𝐵} → (𝐹 ≠ ∅ ↔ ¬ ran 𝐹 = ∅))
5 frn 6493 . . . . . 6 (𝐹:𝐴⟶{𝐵} → ran 𝐹 ⊆ {𝐵})
6 sssn 4719 . . . . . 6 (ran 𝐹 ⊆ {𝐵} ↔ (ran 𝐹 = ∅ ∨ ran 𝐹 = {𝐵}))
75, 6sylib 221 . . . . 5 (𝐹:𝐴⟶{𝐵} → (ran 𝐹 = ∅ ∨ ran 𝐹 = {𝐵}))
87ord 861 . . . 4 (𝐹:𝐴⟶{𝐵} → (¬ ran 𝐹 = ∅ → ran 𝐹 = {𝐵}))
94, 8sylbid 243 . . 3 (𝐹:𝐴⟶{𝐵} → (𝐹 ≠ ∅ → ran 𝐹 = {𝐵}))
109imdistani 572 . 2 ((𝐹:𝐴⟶{𝐵} ∧ 𝐹 ≠ ∅) → (𝐹:𝐴⟶{𝐵} ∧ ran 𝐹 = {𝐵}))
11 dffo2 6569 . 2 (𝐹:𝐴onto→{𝐵} ↔ (𝐹:𝐴⟶{𝐵} ∧ ran 𝐹 = {𝐵}))
1210, 11sylibr 237 1 ((𝐹:𝐴⟶{𝐵} ∧ 𝐹 ≠ ∅) → 𝐹:𝐴onto→{𝐵})
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399  wo 844   = wceq 1538  wne 2987  wss 3881  c0 4243  {csn 4525  ran crn 5520  Rel wrel 5524  wf 6320  ontowfo 6322
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pr 5295
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-v 3443  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-nul 4244  df-if 4426  df-sn 4526  df-pr 4528  df-op 4532  df-br 5031  df-opab 5093  df-xp 5525  df-rel 5526  df-cnv 5527  df-dm 5529  df-rn 5530  df-fun 6326  df-fn 6327  df-f 6328  df-fo 6330
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator