Equations
- Bool.instDecidableLeBoolInstLEBool x y = inferInstanceAs (Decidable (x = true → y = true))
Equations
- Bool.instDecidableLtBoolInstLTBool x y = inferInstanceAs (Decidable ((!x && y) = true))
and #
or #
xor #
le/lt #
min/max #
injectivity lemmas #
toNat #
convert a Bool
to a Nat
, false -> 0
, true -> 1
Equations
- Bool.toNat b = bif b then 1 else 0
Instances For
@[inline, reducible, deprecated Bool.toNat_le]