library colibrilib.ring — module AtomThe atoms: an abstract type with a strict total order (trusted: the comparison of the nodes of colibri2)
module Atom10use int.Int11use mach.int.Int631213type t1415predicate lt t t1617axiom lt_irrefl: forall a. not (lt a a)18axiom lt_trans: forall a b c. lt a b -> lt b c -> lt a c19axiom lt_total: forall a b. lt a b \/ a = b \/ lt b a2021val compare (a b:t) : int6322ensures { result < 0 <-> lt a b }23ensures { result = 0 <-> a = b }24ensures { result > 0 <-> lt b a }2526val equal (a b:t) : bool27ensures { result <-> a = b }28end29