https://github.com/EasyCrypt/easycrypt
Tip revision: f7b8664dcf5237042389e655a2e37b09177167f5 authored by Alley Stoughton on 30 June 2021, 15:32:30 UTC
Added Above Threshold and Report Noisy Max examples, which check
Added Above Threshold and Report Noisy Max examples, which check
Tip revision: f7b8664
Pervasive.ec
(* --------------------------------------------------------------------
* Copyright (c) - 2012--2016 - IMDEA Software Institute
* Copyright (c) - 2012--2018 - Inria
* Copyright (c) - 2012--2018 - Ecole Polytechnique
*
* Distributed under the terms of the CeCILL-B-V1 license
* -------------------------------------------------------------------- *)
(* -------------------------------------------------------------------- *)
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 *)