Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  indval2 Structured version   Visualization version   GIF version

Theorem indval2 31982
Description: Alternate value of the indicator function generator. (Contributed by Thierry Arnoux, 2-Feb-2017.)
Assertion
Ref Expression
indval2 ((𝑂𝑉𝐴𝑂) → ((𝟭‘𝑂)‘𝐴) = ((𝐴 × {1}) ∪ ((𝑂𝐴) × {0})))

Proof of Theorem indval2
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 dfmpt3 6567 . . . 4 (𝑥𝑂 ↦ if(𝑥𝐴, 1, 0)) = 𝑥𝑂 ({𝑥} × {if(𝑥𝐴, 1, 0)})
2 indval 31981 . . . 4 ((𝑂𝑉𝐴𝑂) → ((𝟭‘𝑂)‘𝐴) = (𝑥𝑂 ↦ if(𝑥𝐴, 1, 0)))
3 undif 4415 . . . . . . 7 (𝐴𝑂 ↔ (𝐴 ∪ (𝑂𝐴)) = 𝑂)
43biimpi 215 . . . . . 6 (𝐴𝑂 → (𝐴 ∪ (𝑂𝐴)) = 𝑂)
54adantl 482 . . . . 5 ((𝑂𝑉𝐴𝑂) → (𝐴 ∪ (𝑂𝐴)) = 𝑂)
65iuneq1d 4951 . . . 4 ((𝑂𝑉𝐴𝑂) → 𝑥 ∈ (𝐴 ∪ (𝑂𝐴))({𝑥} × {if(𝑥𝐴, 1, 0)}) = 𝑥𝑂 ({𝑥} × {if(𝑥𝐴, 1, 0)}))
71, 2, 63eqtr4a 2804 . . 3 ((𝑂𝑉𝐴𝑂) → ((𝟭‘𝑂)‘𝐴) = 𝑥 ∈ (𝐴 ∪ (𝑂𝐴))({𝑥} × {if(𝑥𝐴, 1, 0)}))
8 iunxun 5023 . . 3 𝑥 ∈ (𝐴 ∪ (𝑂𝐴))({𝑥} × {if(𝑥𝐴, 1, 0)}) = ( 𝑥𝐴 ({𝑥} × {if(𝑥𝐴, 1, 0)}) ∪ 𝑥 ∈ (𝑂𝐴)({𝑥} × {if(𝑥𝐴, 1, 0)}))
97, 8eqtrdi 2794 . 2 ((𝑂𝑉𝐴𝑂) → ((𝟭‘𝑂)‘𝐴) = ( 𝑥𝐴 ({𝑥} × {if(𝑥𝐴, 1, 0)}) ∪ 𝑥 ∈ (𝑂𝐴)({𝑥} × {if(𝑥𝐴, 1, 0)})))
10 iftrue 4465 . . . . . . 7 (𝑥𝐴 → if(𝑥𝐴, 1, 0) = 1)
1110sneqd 4573 . . . . . 6 (𝑥𝐴 → {if(𝑥𝐴, 1, 0)} = {1})
1211xpeq2d 5619 . . . . 5 (𝑥𝐴 → ({𝑥} × {if(𝑥𝐴, 1, 0)}) = ({𝑥} × {1}))
1312iuneq2i 4945 . . . 4 𝑥𝐴 ({𝑥} × {if(𝑥𝐴, 1, 0)}) = 𝑥𝐴 ({𝑥} × {1})
14 iunxpconst 5659 . . . 4 𝑥𝐴 ({𝑥} × {1}) = (𝐴 × {1})
1513, 14eqtri 2766 . . 3 𝑥𝐴 ({𝑥} × {if(𝑥𝐴, 1, 0)}) = (𝐴 × {1})
16 eldifn 4062 . . . . . . 7 (𝑥 ∈ (𝑂𝐴) → ¬ 𝑥𝐴)
17 iffalse 4468 . . . . . . . 8 𝑥𝐴 → if(𝑥𝐴, 1, 0) = 0)
1817sneqd 4573 . . . . . . 7 𝑥𝐴 → {if(𝑥𝐴, 1, 0)} = {0})
1916, 18syl 17 . . . . . 6 (𝑥 ∈ (𝑂𝐴) → {if(𝑥𝐴, 1, 0)} = {0})
2019xpeq2d 5619 . . . . 5 (𝑥 ∈ (𝑂𝐴) → ({𝑥} × {if(𝑥𝐴, 1, 0)}) = ({𝑥} × {0}))
2120iuneq2i 4945 . . . 4 𝑥 ∈ (𝑂𝐴)({𝑥} × {if(𝑥𝐴, 1, 0)}) = 𝑥 ∈ (𝑂𝐴)({𝑥} × {0})
22 iunxpconst 5659 . . . 4 𝑥 ∈ (𝑂𝐴)({𝑥} × {0}) = ((𝑂𝐴) × {0})
2321, 22eqtri 2766 . . 3 𝑥 ∈ (𝑂𝐴)({𝑥} × {if(𝑥𝐴, 1, 0)}) = ((𝑂𝐴) × {0})
2415, 23uneq12i 4095 . 2 ( 𝑥𝐴 ({𝑥} × {if(𝑥𝐴, 1, 0)}) ∪ 𝑥 ∈ (𝑂𝐴)({𝑥} × {if(𝑥𝐴, 1, 0)})) = ((𝐴 × {1}) ∪ ((𝑂𝐴) × {0}))
259, 24eqtrdi 2794 1 ((𝑂𝑉𝐴𝑂) → ((𝟭‘𝑂)‘𝐴) = ((𝐴 × {1}) ∪ ((𝑂𝐴) × {0})))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 396   = wceq 1539  wcel 2106  cdif 3884  cun 3885  wss 3887  ifcif 4459  {csn 4561   ciun 4924  cmpt 5157   × cxp 5587  cfv 6433  0cc0 10871  1c1 10872  𝟭cind 31978
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-rep 5209  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-ind 31979
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator