Module Logtk.Precedence
Precedence (total ordering) on symbols
module Weight : sig ... end
module Constr : sig ... end
type t
Total Ordering on a finite number of symbols, plus a few more data (weight for KBO, status for RPC)
type precedence
= t
val status : t -> ID.t -> symbol_status
Status of the symbol
val arg_coeff : t -> ID.t -> int -> int
Nth argument coefficient of a symbol (for KBO with argument coefficients).
val add_seq : t -> ID.t Sequence.t -> unit
val declare_status : t -> ID.t -> symbol_status -> unit
Change the status of the given precedence
- raises Error
if the symbol is not in the the precedence already
module Seq : sig ... end
include Interfaces.PRINT with type t := t
val weight_modarity : arity:(ID.t -> int) -> weight_fun
val weight_constant : weight_fun
val set_weight : t -> weight_fun -> unit
Change the weight function of the precedence
- since
- 0.5.3
Creation of a precedence from constraints
val create : ?weight:weight_fun -> ?arg_coeff:arg_coeff_fun -> [ `total ] Constr.t -> ID.t list -> t
make a precedence from the given constraints. Constraints near the head of the list are more important than constraints close to the tail. Only the very first constraint is assured to be totally satisfied if constraints do not agree with one another.
val default : ID.t list -> t
default precedence. Default status for symbols is
Lexicographic
.