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

Theorem fconst5 7155
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 5891 . . . 4 (𝐹 = (𝐴 × {𝐵}) → ran 𝐹 = ran (𝐴 × {𝐵}))
2 rnxp 6122 . . . . 5 (𝐴 ≠ ∅ → ran (𝐴 × {𝐵}) = {𝐵})
32eqeq2d 2747 . . . 4 (𝐴 ≠ ∅ → (ran 𝐹 = ran (𝐴 × {𝐵}) ↔ ran 𝐹 = {𝐵}))
41, 3imbitrid 243 . . 3 (𝐴 ≠ ∅ → (𝐹 = (𝐴 × {𝐵}) → ran 𝐹 = {𝐵}))
54adantl 482 . 2 ((𝐹 Fn 𝐴𝐴 ≠ ∅) → (𝐹 = (𝐴 × {𝐵}) → ran 𝐹 = {𝐵}))
6 df-fo 6502 . . . . . . 7 (𝐹:𝐴onto→{𝐵} ↔ (𝐹 Fn 𝐴 ∧ ran 𝐹 = {𝐵}))
7 fof 6756 . . . . . . 7 (𝐹:𝐴onto→{𝐵} → 𝐹:𝐴⟶{𝐵})
86, 7sylbir 234 . . . . . 6 ((𝐹 Fn 𝐴 ∧ ran 𝐹 = {𝐵}) → 𝐹:𝐴⟶{𝐵})
9 fconst2g 7152 . . . . . 6 (𝐵 ∈ V → (𝐹:𝐴⟶{𝐵} ↔ 𝐹 = (𝐴 × {𝐵})))
108, 9imbitrid 243 . . . . 5 (𝐵 ∈ V → ((𝐹 Fn 𝐴 ∧ ran 𝐹 = {𝐵}) → 𝐹 = (𝐴 × {𝐵})))
1110expd 416 . . . 4 (𝐵 ∈ V → (𝐹 Fn 𝐴 → (ran 𝐹 = {𝐵} → 𝐹 = (𝐴 × {𝐵}))))
1211adantrd 492 . . 3 (𝐵 ∈ V → ((𝐹 Fn 𝐴𝐴 ≠ ∅) → (ran 𝐹 = {𝐵} → 𝐹 = (𝐴 × {𝐵}))))
13 fnrel 6604 . . . . 5 (𝐹 Fn 𝐴 → Rel 𝐹)
14 snprc 4678 . . . . . 6 𝐵 ∈ V ↔ {𝐵} = ∅)
15 relrn0 5924 . . . . . . . . . 10 (Rel 𝐹 → (𝐹 = ∅ ↔ ran 𝐹 = ∅))
1615biimprd 247 . . . . . . . . 9 (Rel 𝐹 → (ran 𝐹 = ∅ → 𝐹 = ∅))
1716adantl 482 . . . . . . . 8 (({𝐵} = ∅ ∧ Rel 𝐹) → (ran 𝐹 = ∅ → 𝐹 = ∅))
18 eqeq2 2748 . . . . . . . . 9 ({𝐵} = ∅ → (ran 𝐹 = {𝐵} ↔ ran 𝐹 = ∅))
1918adantr 481 . . . . . . . 8 (({𝐵} = ∅ ∧ Rel 𝐹) → (ran 𝐹 = {𝐵} ↔ ran 𝐹 = ∅))
20 xpeq2 5654 . . . . . . . . . . 11 ({𝐵} = ∅ → (𝐴 × {𝐵}) = (𝐴 × ∅))
21 xp0 6110 . . . . . . . . . . 11 (𝐴 × ∅) = ∅
2220, 21eqtrdi 2792 . . . . . . . . . 10 ({𝐵} = ∅ → (𝐴 × {𝐵}) = ∅)
2322eqeq2d 2747 . . . . . . . . 9 ({𝐵} = ∅ → (𝐹 = (𝐴 × {𝐵}) ↔ 𝐹 = ∅))
2423adantr 481 . . . . . . . 8 (({𝐵} = ∅ ∧ Rel 𝐹) → (𝐹 = (𝐴 × {𝐵}) ↔ 𝐹 = ∅))
2517, 19, 243imtr4d 293 . . . . . . 7 (({𝐵} = ∅ ∧ Rel 𝐹) → (ran 𝐹 = {𝐵} → 𝐹 = (𝐴 × {𝐵})))
2625ex 413 . . . . . 6 ({𝐵} = ∅ → (Rel 𝐹 → (ran 𝐹 = {𝐵} → 𝐹 = (𝐴 × {𝐵}))))
2714, 26sylbi 216 . . . . 5 𝐵 ∈ V → (Rel 𝐹 → (ran 𝐹 = {𝐵} → 𝐹 = (𝐴 × {𝐵}))))
2813, 27syl5 34 . . . 4 𝐵 ∈ V → (𝐹 Fn 𝐴 → (ran 𝐹 = {𝐵} → 𝐹 = (𝐴 × {𝐵}))))
2928adantrd 492 . . 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 396   = wceq 1541  wcel 2106  wne 2943  Vcvv 3445  c0 4282  {csn 4586   × cxp 5631  ran crn 5634  Rel wrel 5638   Fn wfn 6491  wf 6492  ontowfo 6494
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 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2707  ax-sep 5256  ax-nul 5263  ax-pr 5384
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 846  df-3an 1089  df-tru 1544  df-fal 1554  df-ex 1782  df-nf 1786  df-sb 2068  df-mo 2538  df-eu 2567  df-clab 2714  df-cleq 2728  df-clel 2814  df-nfc 2889  df-ne 2944  df-ral 3065  df-rex 3074  df-rab 3408  df-v 3447  df-sbc 3740  df-csb 3856  df-dif 3913  df-un 3915  df-in 3917  df-ss 3927  df-nul 4283  df-if 4487  df-sn 4587  df-pr 4589  df-op 4593  df-uni 4866  df-br 5106  df-opab 5168  df-mpt 5189  df-id 5531  df-xp 5639  df-rel 5640  df-cnv 5641  df-co 5642  df-dm 5643  df-rn 5644  df-res 5645  df-ima 5646  df-iota 6448  df-fun 6498  df-fn 6499  df-f 6500  df-fo 6502  df-fv 6504
This theorem is referenced by:  rnmptcOLD  7157  nvo00  29703  zar0ring  32459  esumnul  32647  esum0  32648  volsupnfl  36123
  Copyright terms: Public domain W3C validator