https://github.com/EasyCrypt/easycrypt
Raw File
Tip revision: fc07a369c06d62559c2e8cf00fd6ec6f2e8f4a3a authored by Pierre-Yves Strub on 29 March 2022, 08:01:08 UTC
License change: CeCILL B/C -> MIT
Tip revision: fc07a36
Pervasive.ec
(* -------------------------------------------------------------------- *)
type unit.

op tt : unit.

(* -------------------------------------------------------------------- *)
type bool.

op false : bool.
op true  : bool.

op [!]  : bool -> bool.
op (||) : bool -> bool -> bool.
op (\/) : bool -> bool -> bool.
op (&&) : bool -> bool -> bool.
op (/\) : bool -> bool -> bool.
op (=>) : bool -> bool -> bool.
op (<=>): bool -> bool -> bool.

(* -------------------------------------------------------------------- *)
op (=) ['a]: 'a -> 'a -> bool.

(* -------------------------------------------------------------------- *)
type int.

(* -------------------------------------------------------------------- *)
type real.

(* -------------------------------------------------------------------- *)
type 'a distr.

op mu: 'a distr -> ('a -> bool) -> real.

(* -------------------------------------------------------------------- *)
op witness : 'a.                (* All types are inhabited in EC *)
back to top