https://github.com/EasyCrypt/easycrypt
Raw File
Tip revision: 8aa82eab0051a774c5bdaadad88869c196c38a50 authored by Pierre-Yves Strub on 29 March 2022, 10:28:41 UTC
[matching]: when crossing a binder, update the env. accordingly
Tip revision: 8aa82ea
CoreReal.ec
(* --------------------------------------------------------------------
 * Copyright (c) - 2012--2016 - IMDEA Software Institute
 * Copyright (c) - 2012--2021 - Inria
 * Copyright (c) - 2012--2021 - Ecole Polytechnique
 *
 * Distributed under the terms of the CeCILL-B-V1 license
 * -------------------------------------------------------------------- *)

(* -------------------------------------------------------------------- *)
op from_int: int -> real.
op zero = from_int 0.
op one  = from_int 1.
op add  : real -> real -> real.
op opp  : real -> real.
op mul  : real -> real -> real.
op inv  : real -> real.

op lt : real -> real -> bool.
op le = fun x y => lt x y \/ x = y.

(* -------------------------------------------------------------------- *)

back to top