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

Theorem indf 12225
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 12222 . 2 ((𝑂𝑉𝐴𝑂) → ((𝟭‘𝑂)‘𝐴) = (𝑥𝑂 ↦ if(𝑥𝐴, 1, 0)))
2 1re 11209 . . . . 5 1 ∈ ℝ
3 0re 11211 . . . . 5 0 ∈ ℝ
4 ifpr 4660 . . . . 5 ((1 ∈ ℝ ∧ 0 ∈ ℝ) → if(𝑥𝐴, 1, 0) ∈ {1, 0})
52, 3, 4mp2an 704 . . . 4 if(𝑥𝐴, 1, 0) ∈ {1, 0}
6 prcom 4699 . . . 4 {1, 0} = {0, 1}
75, 6eleqtri 2861 . . 3 if(𝑥𝐴, 1, 0) ∈ {0, 1}
87a1i 11 . 2 (((𝑂𝑉𝐴𝑂) ∧ 𝑥𝑂) → if(𝑥𝐴, 1, 0) ∈ {0, 1})
91, 8fmpt3d 7113 1 ((𝑂𝑉𝐴𝑂) → ((𝟭‘𝑂)‘𝐴):𝑂⟶{0, 1})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 400  wcel 2143  wss 3906  ifcif 4488  {cpr 4592  wf 6534  cfv 6538  cr 11100  0cc0 11101  1c1 11102  𝟭cind 12219
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1825  ax-4 1839  ax-5 1940  ax-6 1997  ax-7 2038  ax-8 2145  ax-9 2153  ax-10 2176  ax-11 2192  ax-12 2213  ax-ext 2735  ax-rep 5239  ax-sep 5258  ax-nul 5270  ax-pow 5338  ax-pr 5406  ax-1cn 11159  ax-icn 11160  ax-addcl 11161  ax-addrcl 11162  ax-mulcl 11163  ax-mulrcl 11164  ax-i2m1 11169  ax-1ne0 11170  ax-rnegex 11172  ax-rrecex 11173  ax-cnre 11174
This theorem depends on definitions:  df-bi 210  df-an 401  df-or 861  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1810  df-nf 1814  df-sb 2097  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2838  df-nfc 2912  df-ne 2959  df-ral 3080  df-rex 3090  df-reu 3370  df-rab 3417  df-v 3457  df-sbc 3746  df-csb 3855  df-dif 3909  df-un 3911  df-in 3913  df-ss 3923  df-nul 4288  df-if 4489  df-pw 4565  df-sn 4591  df-pr 4593  df-op 4597  df-uni 4874  df-iun 4959  df-br 5111  df-opab 5175  df-mpt 5194  df-id 5558  df-xp 5669  df-rel 5670  df-cnv 5671  df-co 5672  df-dm 5673  df-rn 5674  df-res 5675  df-ima 5676  df-iota 6494  df-fun 6540  df-fn 6541  df-f 6542  df-f1 6543  df-fo 6544  df-f1o 6545  df-fv 6546  df-ov 7415  df-ind 12220
This theorem is referenced by:  fvindre  12227  indpi1  12233  indsumin  33162  prodindf  33163  indpreima  33166  indf1ofs  33167  indsupp  33168  indfsd  33169  elrgspnsubrunlem1  33548  gsumind  33646  mplmulmvr  33910  esplylem  33937  esplympl  33938  esplymhp  33939  esplyfv1  33940  esplyfv  33941  esplyfval3  33943  esplyfvaln  33945  esplyind  33946  vieta  33951  breprexpnat  35002  circlemethnat  35009
  Copyright terms: Public domain W3C validator