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

Theorem indf 12319
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 12316 . 2 ((𝑂 ∈ 𝑉 ∧ 𝐴 ⊆ 𝑂) → ((𝟭‘𝑂)‘𝐴) = (𝑥 ∈ 𝑂 ↦ if(𝑥 ∈ 𝐴, 1, 0)))
2 1re 11301 . . . . 5 1 ∈ ℝ
3 0re 11303 . . . . 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 7114 1 ((𝑂 ∈ 𝑉 ∧ 𝐴 ⊆ 𝑂) → ((𝟭‘𝑂)‘𝐴):𝑂⟶{0, 1})
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   ∈ wcel 2145   ⊆ wss 3899  ifcif 4482  {cpr 4586  ⟶wf 6533  ‘cfv 6537  ℝcr 11192  0cc0 11193  1c1 11194  𝟭cind 12313
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 11251  ax-icn 11252  ax-addcl 11253  ax-addrcl 11254  ax-mulcl 11255  ax-mulrcl 11256  ax-i2m1 11261  ax-1ne0 11262  ax-rnegex 11264  ax-rrecex 11265  ax-cnre 11266
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 3902  df-un 3904  df-in 3906  df-ss 3916  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 6493  df-fun 6539  df-fn 6540  df-f 6541  df-f1 6542  df-fo 6543  df-f1o 6544  df-fv 6545  df-ov 7421  df-ind 12314
This theorem is used by:  fvindre  12321  indpi1  12327  indsumin  33421  prodindf  33422  indpreima  33425  indf1ofs  33426  indsupp  33427  indfsd  33428  elrgspnsubrunlem1  33801  gsumind  33899  mplmulmvr  34164  esplylem  34191  esplympl  34192  esplymhp  34193  esplyfv1  34194  esplyfv  34195  esplyfval3  34197  esplyfvaln  34199  esplyind  34200  vieta  34205  breprexpnat  35256  circlemethnat  35263
  Copyright terms: Public domain W3C validator