Common — library colibrilib.q_model — module ZarithModel

The same fractions are a model of the trusted rationals of Zarith (zarith.Q)

325
module ZarithModel
326
use int.Int
327
use real.RealInfix
328
use real.FromInt
329
use QModel
330
331
clone colibrilib.zarith.Q {… begin (* cloned colibrilib.zarith.Q *) Valid (37ms) (cvc5) lemma
Q.equal_is_eq
val
Q.make
int int : t val
Q.make_exact
int int : t val function
Q.of_bigint
int : t val
Q.of_int
int63 : t val function
Q.sign
t : int63 val
Q.compare
t t : int63 val
Q.neg
t : t end
}
with
332
type t = t, function real = real,
333
val equal = eq, val leq = le, val lt = lt,
334
val add = add, val sub = sub, val mul = mul, val div = div,
335
val abs = qabs,
336
lemma equal_is_eq
337
end