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

Theorem indf 12327
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 12324 . 2 ((𝑂 ∈ 𝑉 ∧ 𝐴 ⊆ 𝑂) → ((𝟭‘𝑂)‘𝐴) = (𝑥 ∈ 𝑂 ↦ if(𝑥 ∈ 𝐴, 1, 0)))
2 1re 11309 . . . . 5 1 ∈ ℝ
3 0re 11311 . . . . 5 0 ∈ ℝ
4 ifpr 4654 . . . . 5 ((1 ∈ ℝ ∧ 0 ∈ ℝ) → if(𝑥 ∈ 𝐴, 1, 0) ∈ {1, 0})
52, 3, 4mp2an 705 . . . 4 if(𝑥 ∈ 𝐴, 1, 0) ∈ {1, 0}
6 prcom 4693 . . . 4 {1, 0} = {0, 1}
75, 6eleqtri 2859 . . 3 if(𝑥 ∈ 𝐴, 1, 0) ∈ {0, 1}
87a1i 11 . 2 (((𝑂 ∈ 𝑉 ∧ 𝐴 ⊆ 𝑂) ∧ 𝑥 ∈ 𝑂) → if(𝑥 ∈ 𝐴, 1, 0) ∈ {0, 1})
91, 8fmpt3d 7117 1 ((𝑂 ∈ 𝑉 ∧ 𝐴 ⊆ 𝑂) → ((𝟭‘𝑂)‘𝐴):𝑂⟶{0, 1})
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   ∈ wcel 2145   ⊆ wss 3914  ifcif 4482  {cpr 4586  ⟶wf 6535  ‘cfv 6539  ℝcr 11200  0cc0 11201  1c1 11202  𝟭cind 12321
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-rep 5232  ax-sep 5249  ax-nul 5260  ax-pow 5327  ax-pr 5391  ax-1cn 11259  ax-icn 11260  ax-addcl 11261  ax-addrcl 11262  ax-mulcl 11263  ax-mulrcl 11264  ax-i2m1 11269  ax-1ne0 11270  ax-rnegex 11272  ax-rrecex 11273  ax-cnre 11274
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3900  df-un 3902  df-in 3904  df-ss 3915  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-iota 6495  df-fun 6541  df-fn 6542  df-f 6543  df-f1 6544  df-fo 6545  df-f1o 6546  df-fv 6547  df-ov 7424  df-ind 12322
This theorem is used by:  fvindre  12329  indpi1  12335  indsumin  33429  prodindf  33430  indpreima  33433  indf1ofs  33434  indsupp  33435  indfsd  33436  elrgspnsubrunlem1  33809  gsumind  33907  mplmulmvr  34172  esplylem  34199  esplympl  34200  esplymhp  34201  esplyfv1  34202  esplyfv  34203  esplyfval3  34205  esplyfvaln  34207  esplyind  34208  vieta  34213  breprexpnat  35264  circlemethnat  35271
  Copyright terms: Public domain W3C validator