Mentions légales du service

Skip to content
Snippets Groups Projects
Commit c587be38 authored by Guillaume Melquiond's avatar Guillaume Melquiond
Browse files

Add some axioms for floating-point arithmetic.

In particular, they are now sufficient to prove that the difference of two
nonnegative floating-point numbers do not overflow.
parent d53499b5
No related branches found
No related tags found
No related merge requests found
...@@ -54,6 +54,15 @@ theory GenFloat ...@@ -54,6 +54,15 @@ theory GenFloat
axiom Round_monotonic : axiom Round_monotonic :
forall m:mode, x y:real. x <= y -> round m x <= round m y forall m:mode, x y:real. x <= y -> round m x <= round m y
axiom Round_idempotent :
forall m1 m2:mode, x:real. round m1 (round m2 x) = round m2 x
axiom Round_value :
forall m:mode, x:t. round m (value x) = value x
axiom Bounded_value :
forall x:t. abs (value x) <= max
function max_representable_integer : int function max_representable_integer : int
axiom Exact_rounding_for_integers: axiom Exact_rounding_for_integers:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment