package electrod

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

Install

Dune Dependency

Authors

Maintainers

Sources

electrod-0.3.2.tbz
sha256=c58502de17f5b8d739963b5b5d7c761883305bc2b6464fc37769aae4bb31a28c
sha512=bc15032cbda06b0eb64d55cc7800d6c992c0823bb86609ddc5e56744fd0c76ea25b4f4ad7cafdee6fcaa2f109e48ca99f4270919f9a2ea4c7bf53f30b0ee3677

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.