https://github.com/EasyCrypt/easycrypt
Raw File
Tip revision: cd974a77f59ee803c453d808feb78c05cf2c229e authored by Pierre-Yves Strub on 23 January 2023, 10:23:53 UTC
[theories]: ring with generic (choice based) inverse
Tip revision: cd974a7
CoreReal.ec
(* -------------------------------------------------------------------- *)
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