Type of booleans
The type of booleans false and true.
In (non-dependent) programming and classical mathematics, predicates are usually thought of as having values in
0 == 1 # False
1 == 1 # True
This is justified by the fact that, in the category
Standard presentation
The type of booleans is usually defined in a type theory as a positive inductive type. The standard presentation is as follows: #m/def/type/ind
- Formation rule
- Introduction rules
- Induction rule
- Judgemental computation rules
Agda
data Bool : Type where
true false : Bool
#state/develop | #lang/en | #SemBr