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/Tuple/index.html

Module Libelectrod.TupleSource

Tuples of atoms.

Sourcetype t

invariant: atoms <> empty

Sourceval of_list1 : Atom.t list -> t

Builds a tuple out of a non-empty list of atoms.

Sourceval tuple1 : Atom.t -> t

Builds a 1-tuple out of an atom.

Sourceval arity : t -> int

Returns the arity of the tuple.

Sourceval (@@@) : t -> t -> t

t1 @@@ t2 yields the concatenation of t1 followed by t2 (useful to compute the flat product of bounds/tuple sets).

Sourceval concat : t list -> t

Concatenation of a list of tuples. Fails if the list is empty.

Sourceval compare : t -> t -> int
Sourceval equal : t -> t -> bool
Sourceval hash : t -> int
Sourceval transpose : t -> t

Transposes a pair.

Sourceval ith : int -> t -> Atom.t

i-th element of a tuple.

Sourceval is_in_join : t -> t -> t -> bool

is_in_join tuple t1 t2 says whether tuple is the concatenation of t1 (minus the last column) and t2 (minus the ifrst column).

Sourceval join : t -> t -> t

Joins two tuples (getting rid of the last and first columns (resp.))

Sourceval split : t -> int -> t * t

split t lg splits a tuple into two, the first being of length lg.

Sourceval all_different : t -> bool

all_different t tells whether all atoms in a tuple are different.

Sourceval to_1tuples : t -> t list

to_1tuples t splits a tuple into as many 1-tuples at its length.

Sourceval to_ntuples : int -> t -> t list

to_ntuples n t splits a tuple into n-tuples (length must be a multiple of n).

Sourceval to_list : t -> Atom.t list

to_list t produces a list of atoms.

include Intf.Print.S with type t := t
Sourceval pp : t Fmtc.t
Sourceval to_string : t -> string
Sourcemodule Set : CCSet.S with type elt = t
OCaml

Innovation. Community. Security.