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

Theorem fconst5 6964
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 5781 . . . 4 (𝐹 = (𝐴 × {𝐵}) → ran 𝐹 = ran (𝐴 × {𝐵}))
2 rnxp 6003 . . . . 5 (𝐴 ≠ ∅ → ran (𝐴 × {𝐵}) = {𝐵})
32eqeq2d 2769 . . . 4 (𝐴 ≠ ∅ → (ran 𝐹 = ran (𝐴 × {𝐵}) ↔ ran 𝐹 = {𝐵}))
41, 3syl5ib 247 . . 3 (𝐴 ≠ ∅ → (𝐹 = (𝐴 × {𝐵}) → ran 𝐹 = {𝐵}))
54adantl 485 . 2 ((𝐹 Fn 𝐴𝐴 ≠ ∅) → (𝐹 = (𝐴 × {𝐵}) → ran 𝐹 = {𝐵}))
6 df-fo 6345 . . . . . . 7 (𝐹:𝐴onto→{𝐵} ↔ (𝐹 Fn 𝐴 ∧ ran 𝐹 = {𝐵}))
7 fof 6580 . . . . . . 7 (𝐹:𝐴onto→{𝐵} → 𝐹:𝐴⟶{𝐵})
86, 7sylbir 238 . . . . . 6 ((𝐹 Fn 𝐴 ∧ ran 𝐹 = {𝐵}) → 𝐹:𝐴⟶{𝐵})
9 fconst2g 6961 . . . . . 6 (𝐵 ∈ V → (𝐹:𝐴⟶{𝐵} ↔ 𝐹 = (𝐴 × {𝐵})))
108, 9syl5ib 247 . . . . 5 (𝐵 ∈ V → ((𝐹 Fn 𝐴 ∧ ran 𝐹 = {𝐵}) → 𝐹 = (𝐴 × {𝐵})))
1110expd 419 . . . 4 (𝐵 ∈ V → (𝐹 Fn 𝐴 → (ran 𝐹 = {𝐵} → 𝐹 = (𝐴 × {𝐵}))))
1211adantrd 495 . . 3 (𝐵 ∈ V → ((𝐹 Fn 𝐴𝐴 ≠ ∅) → (ran 𝐹 = {𝐵} → 𝐹 = (𝐴 × {𝐵}))))
13 fnrel 6439 . . . . 5 (𝐹 Fn 𝐴 → Rel 𝐹)
14 snprc 4613 . . . . . 6 𝐵 ∈ V ↔ {𝐵} = ∅)
15 relrn0 5814 . . . . . . . . . 10 (Rel 𝐹 → (𝐹 = ∅ ↔ ran 𝐹 = ∅))
1615biimprd 251 . . . . . . . . 9 (Rel 𝐹 → (ran 𝐹 = ∅ → 𝐹 = ∅))
1716adantl 485 . . . . . . . 8 (({𝐵} = ∅ ∧ Rel 𝐹) → (ran 𝐹 = ∅ → 𝐹 = ∅))
18 eqeq2 2770 . . . . . . . . 9 ({𝐵} = ∅ → (ran 𝐹 = {𝐵} ↔ ran 𝐹 = ∅))
1918adantr 484 . . . . . . . 8 (({𝐵} = ∅ ∧ Rel 𝐹) → (ran 𝐹 = {𝐵} ↔ ran 𝐹 = ∅))
20 xpeq2 5548 . . . . . . . . . . 11 ({𝐵} = ∅ → (𝐴 × {𝐵}) = (𝐴 × ∅))
21 xp0 5991 . . . . . . . . . . 11 (𝐴 × ∅) = ∅
2220, 21eqtrdi 2809 . . . . . . . . . 10 ({𝐵} = ∅ → (𝐴 × {𝐵}) = ∅)
2322eqeq2d 2769 . . . . . . . . 9 ({𝐵} = ∅ → (𝐹 = (𝐴 × {𝐵}) ↔ 𝐹 = ∅))
2423adantr 484 . . . . . . . 8 (({𝐵} = ∅ ∧ Rel 𝐹) → (𝐹 = (𝐴 × {𝐵}) ↔ 𝐹 = ∅))
2517, 19, 243imtr4d 297 . . . . . . 7 (({𝐵} = ∅ ∧ Rel 𝐹) → (ran 𝐹 = {𝐵} → 𝐹 = (𝐴 × {𝐵})))
2625ex 416 . . . . . 6 ({𝐵} = ∅ → (Rel 𝐹 → (ran 𝐹 = {𝐵} → 𝐹 = (𝐴 × {𝐵}))))
2714, 26sylbi 220 . . . . 5 𝐵 ∈ V → (Rel 𝐹 → (ran 𝐹 = {𝐵} → 𝐹 = (𝐴 × {𝐵}))))
2813, 27syl5 34 . . . 4 𝐵 ∈ V → (𝐹 Fn 𝐴 → (ran 𝐹 = {𝐵} → 𝐹 = (𝐴 × {𝐵}))))
2928adantrd 495 . . 3 𝐵 ∈ V → ((𝐹 Fn 𝐴𝐴 ≠ ∅) → (ran 𝐹 = {𝐵} → 𝐹 = (𝐴 × {𝐵}))))
3012, 29pm2.61i 185 . 2 ((𝐹 Fn 𝐴𝐴 ≠ ∅) → (ran 𝐹 = {𝐵} → 𝐹 = (𝐴 × {𝐵})))
315, 30impbid 215 1 ((𝐹 Fn 𝐴𝐴 ≠ ∅) → (𝐹 = (𝐴 × {𝐵}) ↔ ran 𝐹 = {𝐵}))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399   = wceq 1538  wcel 2111  wne 2951  Vcvv 3409  c0 4227  {csn 4525   × cxp 5525  ran crn 5528  Rel wrel 5532   Fn wfn 6334  wf 6335  ontowfo 6337
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 2729  ax-sep 5172  ax-nul 5179  ax-pr 5301
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-fal 1551  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2557  df-eu 2588  df-clab 2736  df-cleq 2750  df-clel 2830  df-nfc 2901  df-ne 2952  df-ral 3075  df-rex 3076  df-rab 3079  df-v 3411  df-sbc 3699  df-csb 3808  df-dif 3863  df-un 3865  df-in 3867  df-ss 3877  df-nul 4228  df-if 4424  df-sn 4526  df-pr 4528  df-op 4532  df-uni 4802  df-br 5036  df-opab 5098  df-mpt 5116  df-id 5433  df-xp 5533  df-rel 5534  df-cnv 5535  df-co 5536  df-dm 5537  df-rn 5538  df-res 5539  df-ima 5540  df-iota 6298  df-fun 6341  df-fn 6342  df-f 6343  df-fo 6345  df-fv 6347
This theorem is referenced by:  rnmptcOLD  6966  nvo00  28648  zar0ring  31353  esumnul  31539  esum0  31540  volsupnfl  35408
  Copyright terms: Public domain W3C validator