Characteristic function
Set
context | X |
context | A⊆X |
definiendum | χA:X→{0,1} |
definiendum | χA(x):={1if x∈A0else |
The complement Ac is taken w.r.t. X.
Discussion
The symbols “0,1” here are essentially placeholders. One could choose any set of two distinct elements as codomain.
Reference
Wikipedia: Characteristic function