Parameter Make.2-R
exceptionNOT_VALID of react_error
val name : t -> stringReturns the name of a rewrite rule.
val make : name:string -> lhs:Big.t -> rhs:Big.t -> ?conds:ac list -> label -> Fun.t option -> tCreate a new reaction rule.
val to_string : t -> stringString representation of a rewrite rule.
val is_valid : t -> boolValidity check.
val is_valid_exn : t -> boolSame as
is_validbut an exception is raised instead of returningfalse.- raises NOT_VALID
when the reaction rule is not valid.
val string_of_react_err : react_error -> stringConvert to string the output of the validity check.
val is_enabled : Big.t -> t -> boolis_enabled b rchecks if rewrite rulercan be applied to bigraphb.
val filter_iso : (Big.t * label * t list) list -> (Big.t * label * t list) listMerge isomorphic occurrences
val apply : Big.t -> t list -> Big.t optionApply a list of reaction rules in sequence. Non-enabled rules are ignored.
val fix : Big.t -> t list -> Big.t * intfix b r_listapplies the rewrite rules in listr_listto bigraphbuntil a fixed pointb'is reached. The result is fixed pointb'and the number of rewriting steps performed. Note,bis returned when no rewriting is performed.
val step : Big.t -> t list -> (Big.t * label * t list) list * intAll the possible evolutions in one step. Total number of occurrences also returned.
module Memo : sig ... endMemoised interface