module Stdlib.Trait.Natural; import Stdlib.Data.Nat.Base open using {Nat}; import Stdlib.Data.Fixity open; trait type Natural A := mkNatural { syntax operator + additive; + : A -> A -> A; syntax operator * multiplicative; * : A -> A -> A; div : A -> A -> A; mod : A -> A -> A; builtin from-nat fromNat : Nat -> A }; open Natural public;Last modified on 2023-11-29 16:11 UTC