package electrod

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

Install

Dune Dependency

Authors

Maintainers

Sources

electrod-0.7.1.tbz
sha256=e5d2278c99128621110cd015dafcbcae9792bbf2c8bb09d7b02c57d50fa28075
sha512=e08ecf720d35b6ee72f37d780cc3da22f61e22314ffd093ff3314fb89684b863b5c96c97375d48bcb4ba2838ec8f61a495105c989f292c5dbcd095e14f52bdba

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.