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

Theorem fconst5 7063
Description: Two ways to express that a function is constant. (Contributed by NM, 27-Nov-2007.)
Assertion
Ref Expression
fconst5 ((𝐹 Fn 𝐴𝐴 ≠ ∅) → (𝐹 = (𝐴 × {𝐵}) ↔ ran 𝐹 = {𝐵}))

Proof of Theorem fconst5
StepHypRef Expression
1 rneq 5834 . . . 4 (𝐹 = (𝐴 × {𝐵}) → ran 𝐹 = ran (𝐴 × {𝐵}))
2 rnxp 6062 . . . . 5 (𝐴 ≠ ∅ → ran (𝐴 × {𝐵}) = {𝐵})
32eqeq2d 2749 . . . 4 (𝐴 ≠ ∅ → (ran 𝐹 = ran (𝐴 × {𝐵}) ↔ ran 𝐹 = {𝐵}))
41, 3syl5ib 243 . . 3 (𝐴 ≠ ∅ → (𝐹 = (𝐴 × {𝐵}) → ran 𝐹 = {𝐵}))
54adantl 481 . 2 ((𝐹 Fn 𝐴𝐴 ≠ ∅) → (𝐹 = (𝐴 × {𝐵}) → ran 𝐹 = {𝐵}))
6 df-fo 6424 . . . . . . 7 (𝐹:𝐴onto→{𝐵} ↔ (𝐹 Fn 𝐴 ∧ ran 𝐹 = {𝐵}))
7 fof 6672 . . . . . . 7 (𝐹:𝐴onto→{𝐵} → 𝐹:𝐴⟶{𝐵})
86, 7sylbir 234 . . . . . 6 ((𝐹 Fn 𝐴 ∧ ran 𝐹 = {𝐵}) → 𝐹:𝐴⟶{𝐵})
9 fconst2g 7060 . . . . . 6 (𝐵 ∈ V → (𝐹:𝐴⟶{𝐵} ↔ 𝐹 = (𝐴 × {𝐵})))
108, 9syl5ib 243 . . . . 5 (𝐵 ∈ V → ((𝐹 Fn 𝐴 ∧ ran 𝐹 = {𝐵}) → 𝐹 = (𝐴 × {𝐵})))
1110expd 415 . . . 4 (𝐵 ∈ V → (𝐹 Fn 𝐴 → (ran 𝐹 = {𝐵} → 𝐹 = (𝐴 × {𝐵}))))
1211adantrd 491 . . 3 (𝐵 ∈ V → ((𝐹 Fn 𝐴𝐴 ≠ ∅) → (ran 𝐹 = {𝐵} → 𝐹 = (𝐴 × {𝐵}))))
13 fnrel 6519 . . . . 5 (𝐹 Fn 𝐴 → Rel 𝐹)
14 snprc 4650 . . . . . 6 𝐵 ∈ V ↔ {𝐵} = ∅)
15 relrn0 5867 . . . . . . . . . 10 (Rel 𝐹 → (𝐹 = ∅ ↔ ran 𝐹 = ∅))
1615biimprd 247 . . . . . . . . 9 (Rel 𝐹 → (ran 𝐹 = ∅ → 𝐹 = ∅))
1716adantl 481 . . . . . . . 8 (({𝐵} = ∅ ∧ Rel 𝐹) → (ran 𝐹 = ∅ → 𝐹 = ∅))
18 eqeq2 2750 . . . . . . . . 9 ({𝐵} = ∅ → (ran 𝐹 = {𝐵} ↔ ran 𝐹 = ∅))
1918adantr 480 . . . . . . . 8 (({𝐵} = ∅ ∧ Rel 𝐹) → (ran 𝐹 = {𝐵} ↔ ran 𝐹 = ∅))
20 xpeq2 5601 . . . . . . . . . . 11 ({𝐵} = ∅ → (𝐴 × {𝐵}) = (𝐴 × ∅))
21 xp0 6050 . . . . . . . . . . 11 (𝐴 × ∅) = ∅
2220, 21eqtrdi 2795 . . . . . . . . . 10 ({𝐵} = ∅ → (𝐴 × {𝐵}) = ∅)
2322eqeq2d 2749 . . . . . . . . 9 ({𝐵} = ∅ → (𝐹 = (𝐴 × {𝐵}) ↔ 𝐹 = ∅))
2423adantr 480 . . . . . . . 8 (({𝐵} = ∅ ∧ Rel 𝐹) → (𝐹 = (𝐴 × {𝐵}) ↔ 𝐹 = ∅))
2517, 19, 243imtr4d 293 . . . . . . 7 (({𝐵} = ∅ ∧ Rel 𝐹) → (ran 𝐹 = {𝐵} → 𝐹 = (𝐴 × {𝐵})))
2625ex 412 . . . . . 6 ({𝐵} = ∅ → (Rel 𝐹 → (ran 𝐹 = {𝐵} → 𝐹 = (𝐴 × {𝐵}))))
2714, 26sylbi 216 . . . . 5 𝐵 ∈ V → (Rel 𝐹 → (ran 𝐹 = {𝐵} → 𝐹 = (𝐴 × {𝐵}))))
2813, 27syl5 34 . . . 4 𝐵 ∈ V → (𝐹 Fn 𝐴 → (ran 𝐹 = {𝐵} → 𝐹 = (𝐴 × {𝐵}))))
2928adantrd 491 . . 3 𝐵 ∈ V → ((𝐹 Fn 𝐴𝐴 ≠ ∅) → (ran 𝐹 = {𝐵} → 𝐹 = (𝐴 × {𝐵}))))
3012, 29pm2.61i 182 . 2 ((𝐹 Fn 𝐴𝐴 ≠ ∅) → (ran 𝐹 = {𝐵} → 𝐹 = (𝐴 × {𝐵})))
315, 30impbid 211 1 ((𝐹 Fn 𝐴𝐴 ≠ ∅) → (𝐹 = (𝐴 × {𝐵}) ↔ ran 𝐹 = {𝐵}))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395   = wceq 1539  wcel 2108  wne 2942  Vcvv 3422  c0 4253  {csn 4558   × cxp 5578  ran crn 5581  Rel wrel 5585   Fn wfn 6413  wf 6414  ontowfo 6416
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-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-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-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-fo 6424  df-fv 6426
This theorem is referenced by:  rnmptcOLD  7065  nvo00  29024  zar0ring  31730  esumnul  31916  esum0  31917  volsupnfl  35749
  Copyright terms: Public domain W3C validator