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

Theorem foconst 6584
 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 6500 . . . . 5 (𝐹:𝐴⟶{𝐵} → Rel 𝐹)
2 relrn0 5821 . . . . . 6 (Rel 𝐹 → (𝐹 = ∅ ↔ ran 𝐹 = ∅))
32necon3abid 3049 . . . . 5 (Rel 𝐹 → (𝐹 ≠ ∅ ↔ ¬ ran 𝐹 = ∅))
41, 3syl 17 . . . 4 (𝐹:𝐴⟶{𝐵} → (𝐹 ≠ ∅ ↔ ¬ ran 𝐹 = ∅))
5 frn 6501 . . . . . 6 (𝐹:𝐴⟶{𝐵} → ran 𝐹 ⊆ {𝐵})
6 sssn 4740 . . . . . 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 6575 . 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 3013   ⊆ wss 3918  ∅c0 4274  {csn 4548  ran crn 5537  Rel wrel 5541  ⟶wf 6332  –onto→wfo 6334 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 1912  ax-6 1971  ax-7 2016  ax-8 2117  ax-9 2125  ax-10 2146  ax-11 2162  ax-12 2179  ax-ext 2796  ax-sep 5184  ax-nul 5191  ax-pr 5311 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 2071  df-mo 2624  df-eu 2655  df-clab 2803  df-cleq 2817  df-clel 2896  df-nfc 2964  df-ne 3014  df-rab 3141  df-v 3481  df-dif 3921  df-un 3923  df-in 3925  df-ss 3935  df-nul 4275  df-if 4449  df-sn 4549  df-pr 4551  df-op 4555  df-br 5048  df-opab 5110  df-xp 5542  df-rel 5543  df-cnv 5544  df-dm 5546  df-rn 5547  df-fun 6338  df-fn 6339  df-f 6340  df-fo 6342 This theorem is referenced by: (None)
 Copyright terms: Public domain W3C validator