diff options
author | Guillaume Melquiond <guillaume.melquiond@inria.fr> | 2015-09-22 15:41:50 +0200 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@inria.fr> | 2015-09-22 15:41:50 +0200 |
commit | 0af966a42eb60e9af43f9a450d924758a83946c6 (patch) | |
tree | 2bef73e80a8a80da1c47deee66dc825feac45bdd /flocq/Core/Fcore_FIX.v | |
parent | c212ab7a8adea516db72f17d818393629dbde1b3 (diff) | |
download | compcert-0af966a42eb60e9af43f9a450d924758a83946c6.tar.gz compcert-0af966a42eb60e9af43f9a450d924758a83946c6.zip |
Upgrade to Flocq 2.5.0.
Note: this version of Flocq is compatible with both Coq 8.4 and 8.5.
Diffstat (limited to 'flocq/Core/Fcore_FIX.v')
-rw-r--r-- | flocq/Core/Fcore_FIX.v | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/flocq/Core/Fcore_FIX.v b/flocq/Core/Fcore_FIX.v index a3b8d4d0..e224a64a 100644 --- a/flocq/Core/Fcore_FIX.v +++ b/flocq/Core/Fcore_FIX.v @@ -22,6 +22,7 @@ Require Import Fcore_Raux. Require Import Fcore_defs. Require Import Fcore_rnd. Require Import Fcore_generic_fmt. +Require Import Fcore_ulp. Require Import Fcore_rnd_ne. Section RND_FIX. @@ -84,4 +85,16 @@ intros ex ey H. apply Zle_refl. Qed. +Theorem ulp_FIX: forall x, ulp beta FIX_exp x = bpow emin. +Proof. +intros x; unfold ulp. +case Req_bool_spec; intros Zx. +case (negligible_exp_spec FIX_exp). +intros T; specialize (T (emin-1)%Z); contradict T. +unfold FIX_exp; omega. +intros n _; reflexivity. +reflexivity. +Qed. + + End RND_FIX. |