| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > df-ind | Structured version Visualization version GIF version | ||
| Description: Define the indicator function generator. It generates an indicator function ((𝟭‘𝑂)‘𝐴) for a given domain 𝑂 and a given subset 𝐴 of the domain, see indval 12217. In contrast to the definitions and notations in Wikipedia and [Lang2] p. 3, the domain and the subset are always mentioned explicitly. (Contributed by Thierry Arnoux, 20-Jan-2017.) |
| Ref | Expression |
|---|---|
| df-ind | ⊢ 𝟭 = (𝑜 ∈ V ↦ (𝑎 ∈ 𝒫 𝑜 ↦ (𝑥 ∈ 𝑜 ↦ if(𝑥 ∈ 𝑎, 1, 0)))) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | cind 12214 | . 2 class 𝟭 | |
| 2 | vo | . . 3 setvar 𝑜 | |
| 3 | cvv 3463 | . . 3 class V | |
| 4 | va | . . . 4 setvar 𝑎 | |
| 5 | 2 | cv 1566 | . . . . 5 class 𝑜 |
| 6 | 5 | cpw 4564 | . . . 4 class 𝒫 𝑜 |
| 7 | vx | . . . . 5 setvar 𝑥 | |
| 8 | 7, 4 | wel 2150 | . . . . . 6 wff 𝑥 ∈ 𝑎 |
| 9 | c1 11097 | . . . . . 6 class 1 | |
| 10 | cc0 11096 | . . . . . 6 class 0 | |
| 11 | 8, 9, 10 | cif 4489 | . . . . 5 class if(𝑥 ∈ 𝑎, 1, 0) |
| 12 | 7, 5, 11 | cmpt 5193 | . . . 4 class (𝑥 ∈ 𝑜 ↦ if(𝑥 ∈ 𝑎, 1, 0)) |
| 13 | 4, 6, 12 | cmpt 5193 | . . 3 class (𝑎 ∈ 𝒫 𝑜 ↦ (𝑥 ∈ 𝑜 ↦ if(𝑥 ∈ 𝑎, 1, 0))) |
| 14 | 2, 3, 13 | cmpt 5193 | . 2 class (𝑜 ∈ V ↦ (𝑎 ∈ 𝒫 𝑜 ↦ (𝑥 ∈ 𝑜 ↦ if(𝑥 ∈ 𝑎, 1, 0)))) |
| 15 | 1, 14 | wceq 1567 | 1 wff 𝟭 = (𝑜 ∈ V ↦ (𝑎 ∈ 𝒫 𝑜 ↦ (𝑥 ∈ 𝑜 ↦ if(𝑥 ∈ 𝑎, 1, 0)))) |
| Colors of variables: wff setvar class |
| This definition is referenced by: indv 12216 |
| Copyright terms: Public domain | W3C validator |