package electrod

  1. Overview
  2. Docs
Formal analysis for the Electrod formal pivot language

Install

Dune Dependency

Authors

Maintainers

Sources

electrod-0.2.3.tbz
sha256=7371c45e28b84a1955d117ef2c798d545febb87c74f596b6efe24965e4b28f31
sha512=e579db68ac05e30b0985f7d90080a82697de18c12e818d48bd7029cea8844571423f08d5881accbf8a0cbeb7df7de9b5b95ff5fe813330a6c92448a0901cdfe7

doc/electrod.libelectrod/Libelectrod/Relation/index.html

Module Libelectrod.RelationSource

Type of relations.

Sourcetype t =
  1. | Const of {
    1. name : Name.t;
    2. arity : int;
    3. scope : Scope.t;
    }
  2. | Var of {
    1. name : Name.t;
    2. arity : int;
    3. scope : Scope.t;
    4. fby : Scope.t option;
    }

A relation is either static (const) or dynamic (var). In the latter case, it may either be specified in a unique scope or with a scope for the initial instant and then a scope for all other instants. The arity is compulsorily specified by the user for empty bounds and optionally otherwise.

Sourceval const : Name.t -> int -> Scope.t -> t

Constructors

Sourceval var : Name.t -> int -> Scope.t -> Scope.t option -> t
Sourceval arity : t -> int

Arity of the relation. (> 0)

Sourceval name : t -> Name.t
Sourceval equal : t -> t -> bool
Sourceval is_set : t -> bool

Tells whether the relation is a set or a relation of arity > 1.

Sourceval is_nary : t -> bool
Sourceval is_const : t -> bool
Sourceval is_var : t -> bool
Sourceval scope : t -> Scope.t

Returns the scope of a relation (for variable relations: not fby!)

Sourceval must : t -> Tuple_set.t
Sourceval may : t -> Tuple_set.t
Sourceval sup : t -> Tuple_set.t
Sourceval pp : ?print_name:bool -> Containers.Format.formatter -> t -> unit
Sourceval to_string : ?print_name:bool -> t -> string
OCaml

Innovation. Community. Security.