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

Theorem indf 12220
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 12217 . 2 ((𝑂𝑉𝐴𝑂) → ((𝟭‘𝑂)‘𝐴) = (𝑥𝑂 ↦ if(𝑥𝐴, 1, 0)))
2 1re 11204 . . . . 5 1 ∈ ℝ
3 0re 11206 . . . . 5 0 ∈ ℝ
4 ifpr 4661 . . . . 5 ((1 ∈ ℝ ∧ 0 ∈ ℝ) → if(𝑥𝐴, 1, 0) ∈ {1, 0})
52, 3, 4mp2an 704 . . . 4 if(𝑥𝐴, 1, 0) ∈ {1, 0}
6 prcom 4700 . . . 4 {1, 0} = {0, 1}
75, 6eleqtri 2867 . . 3 if(𝑥𝐴, 1, 0) ∈ {0, 1}
87a1i 11 . 2 (((𝑂𝑉𝐴𝑂) ∧ 𝑥𝑂) → if(𝑥𝐴, 1, 0) ∈ {0, 1})
91, 8fmpt3d 7109 1 ((𝑂𝑉𝐴𝑂) → ((𝟭‘𝑂)‘𝐴):𝑂⟶{0, 1})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 400  wcel 2149  wss 3913  ifcif 4489  {cpr 4593  wf 6529  cfv 6533  cr 11095  0cc0 11096  1c1 11097  𝟭cind 12214
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1822  ax-4 1836  ax-5 1937  ax-6 1994  ax-7 2035  ax-8 2151  ax-9 2159  ax-10 2182  ax-11 2198  ax-12 2219  ax-ext 2741  ax-rep 5239  ax-sep 5258  ax-nul 5268  ax-pow 5334  ax-pr 5402  ax-1cn 11154  ax-icn 11155  ax-addcl 11156  ax-addrcl 11157  ax-mulcl 11158  ax-mulrcl 11159  ax-i2m1 11164  ax-1ne0 11165  ax-rnegex 11167  ax-rrecex 11168  ax-cnre 11169
This theorem depends on definitions:  df-bi 210  df-an 401  df-or 861  df-3an 1103  df-tru 1570  df-fal 1580  df-ex 1807  df-nf 1811  df-sb 2098  df-mo 2573  df-eu 2603  df-clab 2748  df-cleq 2761  df-clel 2844  df-nfc 2918  df-ne 2965  df-ral 3086  df-rex 3096  df-reu 3377  df-rab 3424  df-v 3465  df-sbc 3754  df-csb 3862  df-dif 3916  df-un 3918  df-in 3920  df-ss 3930  df-nul 4295  df-if 4490  df-pw 4566  df-sn 4592  df-pr 4594  df-op 4598  df-uni 4874  df-iun 4959  df-br 5111  df-opab 5175  df-mpt 5194  df-id 5554  df-xp 5665  df-rel 5666  df-cnv 5667  df-co 5668  df-dm 5669  df-rn 5670  df-res 5671  df-ima 5672  df-iota 6489  df-fun 6535  df-fn 6536  df-f 6537  df-f1 6538  df-fo 6539  df-f1o 6540  df-fv 6541  df-ov 7411  df-ind 12215
This theorem is referenced by:  fvindre  12222  indpi1  12228  indsumin  33118  prodindf  33119  indpreima  33122  indf1ofs  33123  indsupp  33124  indfsd  33125  elrgspnsubrunlem1  33504  gsumind  33604  mplmulmvr  33870  esplylem  33897  esplympl  33898  esplymhp  33899  esplyfv1  33900  esplyfv  33901  esplyfval3  33903  esplyfvaln  33905  esplyind  33906  vieta  33911  breprexpnat  34962  circlemethnat  34969
  Copyright terms: Public domain W3C validator