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

Theorem indf 12195
Description: An indicator function as a function with domain and codomain. (Contributed by Thierry Arnoux, 13-Aug-2017.)
Assertion
Ref Expression
indf ((𝑂𝑉𝐴𝑂) → ((𝟭‘𝑂)‘𝐴):𝑂⟶{0, 1})

Proof of Theorem indf
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 indval 12192 . 2 ((𝑂𝑉𝐴𝑂) → ((𝟭‘𝑂)‘𝐴) = (𝑥𝑂 ↦ if(𝑥𝐴, 1, 0)))
2 1re 11175 . . . . 5 1 ∈ ℝ
3 0re 11177 . . . . 5 0 ∈ ℝ
4 ifpr 4649 . . . . 5 ((1 ∈ ℝ ∧ 0 ∈ ℝ) → if(𝑥𝐴, 1, 0) ∈ {1, 0})
52, 3, 4mp2an 702 . . . 4 if(𝑥𝐴, 1, 0) ∈ {1, 0}
6 prcom 4688 . . . 4 {1, 0} = {0, 1}
75, 6eleqtri 2859 . . 3 if(𝑥𝐴, 1, 0) ∈ {0, 1}
87a1i 11 . 2 (((𝑂𝑉𝐴𝑂) ∧ 𝑥𝑂) → if(𝑥𝐴, 1, 0) ∈ {0, 1})
91, 8fmpt3d 7092 1 ((𝑂𝑉𝐴𝑂) → ((𝟭‘𝑂)‘𝐴):𝑂⟶{0, 1})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399  wcel 2141  wss 3902  ifcif 4477  {cpr 4581  wf 6512  cfv 6516  cr 11066  0cc0 11067  1c1 11068  𝟭cind 12189
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1814  ax-4 1828  ax-5 1929  ax-6 1986  ax-7 2027  ax-8 2143  ax-9 2151  ax-10 2174  ax-11 2190  ax-12 2211  ax-ext 2733  ax-rep 5224  ax-sep 5243  ax-nul 5253  ax-pow 5319  ax-pr 5387  ax-1cn 11125  ax-icn 11126  ax-addcl 11127  ax-addrcl 11128  ax-mulcl 11129  ax-mulrcl 11130  ax-i2m1 11135  ax-1ne0 11136  ax-rnegex 11138  ax-rrecex 11139  ax-cnre 11140
This theorem depends on definitions:  df-bi 209  df-an 400  df-or 859  df-3an 1099  df-tru 1562  df-fal 1572  df-ex 1799  df-nf 1803  df-sb 2090  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3076  df-rex 3086  df-reu 3367  df-rab 3414  df-v 3455  df-sbc 3743  df-csb 3851  df-dif 3905  df-un 3907  df-in 3909  df-ss 3919  df-nul 4284  df-if 4478  df-pw 4554  df-sn 4580  df-pr 4582  df-op 4586  df-uni 4863  df-iun 4948  df-br 5098  df-opab 5160  df-mpt 5179  df-id 5538  df-xp 5649  df-rel 5650  df-cnv 5651  df-co 5652  df-dm 5653  df-rn 5654  df-res 5655  df-ima 5656  df-iota 6472  df-fun 6518  df-fn 6519  df-f 6520  df-f1 6521  df-fo 6522  df-f1o 6523  df-fv 6524  df-ov 7394  df-ind 12190
This theorem is referenced by:  fvindre  12197  indpi1  12203  indsumin  33000  prodindf  33001  indpreima  33004  indf1ofs  33005  indsupp  33006  indfsd  33007  elrgspnsubrunlem1  33389  gsumind  33492  mplmulmvr  33797  esplylem  33824  esplympl  33825  esplymhp  33826  esplyfv1  33827  esplyfv  33828  esplyfval3  33830  esplyfvaln  33832  esplyind  33833  vieta  33838  breprexpnat  34889  circlemethnat  34896
  Copyright terms: Public domain W3C validator