package electrod

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

Install

Dune Dependency

Authors

Maintainers

Sources

electrod-1.0.0.tbz
sha256=4da251e58d97c797d6e940e586d225a09715777fbb1b25c5527a6a2e1e3c2d58
sha512=89c45ebd0d3401b17eac4217289ed21ec87135ab5fa62bf63b2bed1ad1435a381e3434582c2ec99c2e6d8d87ce23cecfa7ba14d76234493992ae06879b808dd2

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.