package prbnmcn-basic-structures

  1. Overview
  2. Docs

The finite field of integers modulo 2

type t =
  1. | Zero
  2. | One

The type of integers modulo 2

include Basic_intf.Field_std with type t := t
val zero : t
val add : t -> t -> t
val neg : t -> t
val one : t
val mul : t -> t -> t
val sub : t -> t -> t
val of_int : int -> t
val div : t -> t -> t
val compare : t -> t -> int
val equal : t -> t -> bool
val pp : Format.formatter -> t -> unit
val hash : t -> int
OCaml

Innovation. Community. Security.