(************************************************************************) (* * The Rocq Prover / The Rocq Development Team *) (* v * Copyright INRIA, CNRS and contributors *) (* eqn list -> unit (** [empty] is the system with no equation *) val empty : system (** [set_constant i c s] returns the equation [i] of the system [s] where the constant a0 is set to [c] *) val set_constant : id -> int -> system -> eqn (** [make_mon i x a s] augments the system [s] with the equation a.x = 0 indexed by i *) val make_mon : id -> var -> int -> system -> system (** [merge s1 s2] returns a system [s] such that the equation i is obtained by adding of the equations s1(i) and s2(i) i.e. s(i) = s1(i) + s2(i) NB: the operation is only well-defined if the variables in s1(i) and s2(i) is disjoint *) val merge : system -> system -> system (** [solution] assigns a value to each variable *) type solution = (var * int) list (** [output_solutions o l] outputs the list of solutions *) val output_solutions : out_channel -> solution list -> unit (** [solve_and_enum l] solves the system of equations and enumerate all the solutions *) val solve_and_enum : eqn list -> solution list