package electrod

  1. Overview
  2. Docs

The domain represents the set of relation declarations.

type t

Virtually: a map between relation names and their definition as sets of tuples.

val empty : t

Constructor.

val add : Name.t -> Relation.t -> t -> t

Adds an asociation to the domain. The name must not be in the domain already.

val mem : Name.t -> t -> bool

Checks whether a name is already bound in the map.

Accessors

val get_exn : Name.t -> t -> Relation.t

May raise Not_found.

val get : Name.t -> t -> Relation.t option

May rather return None.

val univ_atoms : t -> Tuple_set.t

Returns the set of atoms in univ, represented as a Tuple_set.t

val to_list : t -> (Name.t * Relation.t) list

Returns the map as an association list

val of_list : (Name.t * Relation.t) list -> t
val equal : t -> t -> bool
val must : Name.t -> t -> Tuple_set.t

Returns the "may" and "must" tuple sets associated to a relation name.

val may : Name.t -> t -> Tuple_set.t
val sup : Name.t -> t -> Tuple_set.t
val musts : ?with_univ_and_ident:bool -> t -> (Name.t, Tuple_set.t) Containers.List.Assoc.t

Returns the association list between relation names and their "must" set.

val arities : t -> (Name.t, int) Containers.List.Assoc.t

Returns the association list between relation names and their arity.

Returns a new domain where atoms and relations have been renamed.

val update_domain_with_instance : t -> Instance.t -> t

For every entry in inst, update_domain_with_instance dom inst replaces the corresponding relation in dom with the exact scope given by inst.

include Intf.Print.S with type t := t
val pp : t Fmtc.t
val to_string : t -> string
OCaml

Innovation. Community. Security.