Definition
Discreteness in constructive mathematics refers to decidable equality. It is the property that any two elements of a type can be computationally distinguished or identified in finite time.
Formal Statement
A type is discrete if:
Properties
- Strictness: This is a much stronger condition than merely being a set.
- Hedberg’s Theorem: If a type has decidable equality, it is necessarily a set (an hSet).
- Examples:
- , , and finite types are discrete.
- (Real Numbers) is not discrete. We cannot decide if a computed real number equals in finite time.