package dolmen

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include Smtlib_Int with type t := t
include Smtlib_Arith_Common with type t := t
type cst

The type of term constants.

val mk : string -> t

Build a constant. The literal is passed as a string to avoid overflow caused by the limited precision of native number formats.

val minus : t -> t

Arithmetic unary minus/negation.

val add : t -> t -> t

Arithmetic addition.

val sub : t -> t -> t

Arithmetic substraction

val mul : t -> t -> t

Arithmetic multiplication

val lt : t -> t -> t

Arithmetic "less than" comparison.

val le : t -> t -> t

Arithmetic "less or equal" comparison.

val gt : t -> t -> t

Arithmetic "greater than" comparison.

val ge : t -> t -> t

Arithmetic "greater or equal" comparison.

val div' : cst

Constant for the division.

val div : t -> t -> t

Euclidian division. See Smtlib theory for a full description.

val rem' : cst

Constant for the remainder.

val rem : t -> t -> t

Euclidian integer remainder See Smtlib theory for a full description.

val abs : t -> t

Arithmetic absolute value.

val divisible : string -> t -> t

Arithmetic divisibility predicate. Indexed over constant integers (represented as strings, see int).

val to_real : t -> t

Conversion from an integer term to a real term.