package prbnmcn-basic-structures

  1. Overview
  2. Docs

Algebra over a ring

module R : sig ... end
type t
val zero : t
val add : t -> t -> t
val neg : t -> t
val smul : R.t -> t -> t
val mul : t -> t -> t

mul should distribute over addition. Not necessarily associative, nor commutative, nor unital.