Idris2Doc : Data.Trichotomy

Data.Trichotomy

(source)

Definitions

dataTrichotomy : (a->a->Type) ->a->a->Type
  Trichotomy formalises the fact that three relations are mutually
exclusive. A value of type `Trichotomy lt m n` proofs, that
exactly one of the relations `lt m n`, `m === n`, or `lt n m` holds.

All proofs held by a value of type `Trichotomous` are erased, so
at runtime such values get optimized to numbers 0, 1, or 2
respectively.

Totality: total
Visibility: public export
Constructors:
LT : (0_ : ltvw) -> (0_ : Not (v=w)) -> (0_ : Not (ltwv)) ->Trichotomyltvw
EQ : (0_ : Not (ltvw)) -> (0_ : v=w) -> (0_ : Not (ltwv)) ->Trichotomyltvw
GT : (0_ : Not (ltvw)) -> (0_ : Not (v=w)) -> (0_ : ltwv) ->Trichotomyltvw

Hints:
Eq (Trichotomyltmn)
Ord (Trichotomyltmn)
Show (Trichotomyltmn)
toOrdering : Trichotomyltmn->Ordering
Totality: total
Visibility: public export