Reference · Natural numbers
rainbow.math.nat.linear-order
Executable decision data, min/max, and three-way comparison for Nat.
logic/decidable-relation
logic/decidable-relation.{u} :
(A : Type u) (relation : A → A → Prop)
→ Type ulogic/decidable-equality
logic/decidable-equality.{u} :
(A : Sort u)
→ Sort [:imax [:param u] [:max [:succ [:zero]] [:param u]]]logic/if-data
logic/if-data.{u} :
(A : Sort u) (condition : Prop) (decision : data/Bool) (x₁ x₂ : A)
→ Aorder/min-operation
order/min-operation.{u} :
(A : Type u) (dictionary : A → A → A) (x₁ x₂ : A)
→ Aorder/max-operation
order/max-operation.{u} :
(A : Type u) (dictionary : A → A → A) (x₁ x₂ : A)
→ Aorder/le-class
order/le-class.{u} :
(A : Type u) (relation : A → A → Prop) (x₁ x₂ : A)
→ Proporder/lt-class
order/lt-class.{u} :
(A : Type u) (relation : A → A → Prop) (x₁ x₂ : A)
→ Propnat/decide-at-most
nat/decide-at-most : (x₁ x₂ : ℕ) → data/Bool
ℕ = data/Nat
nat/decide-strict-below
nat/decide-strict-below : (x₁ x₂ : ℕ) → data/Bool
ℕ = data/Nat
nat/decide-equality
nat/decide-equality : (x₁ x₂ : ℕ) → data/Bool
ℕ = data/Nat
nat/min
nat/min : (x₁ x₂ : ℕ) → ℕ
ℕ = data/Nat
nat/max
nat/max : (x₁ x₂ : ℕ) → ℕ
ℕ = data/Nat
order/compare-operation
order/compare-operation.{u} :
(A : Type u) (dictionary : A → A → order/Ordering) (x₁ x₂ : A)
→ order/Orderingorder/compare-from-less-equal
order/compare-from-less-equal.{u} :
(A : Type u) (left right : A) (less-than : A → A → Prop) (less-decision : data/Bool)
(equality-decision : A → A → data/Bool)
→ order/Orderingnat/ordering
nat/ordering : (x₁ x₂ : ℕ) → order/Ordering
ℕ = data/Nat