library colibrilib.env — module EnvThe environment of LRA: the e–graph and the real values
module Env91use real.RealInfix92use option.Option93use colibrilib.ring.Atom94use colibrilib.stda.StdA as A95use export State96use export RealValue97
The value of the real nodes of d
function m (d: envp 'm) : Atom.t -> real = real_value d.model100
Egraph.find_def: the representative
val find_def (d: envp 'm) (n:Atom.t) : Atom.t103ensures { live d -> d.m result = d.m n }104
Egraph.is_equal
val is_equal (d: envp 'm) (a b:Atom.t) : bool107ensures { result -> live d -> d.m a = d.m b }108
Egraph.merge
val merge (d: env) (a b:Atom.t) : unit111requires { live d -> d.m a = d.m b }112writes { d.state }113
RealValue.get: the value of the node, if known
val value (d: envp 'm) (n:Atom.t) : option A.t116ensures { match result with117| Some c -> live d -> d.m n = A.real c118| None -> true119end }120
The registered node of the value c (RealValue.node and Egraph.register)
val cst_node (d: env) (c:A.t) : Atom.t124writes { d.state }125ensures { live d -> d.m result = A.real c }126end127