summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/Memdata.v3
-rw-r--r--lib/Floats.v6
2 files changed, 3 insertions, 6 deletions
diff --git a/common/Memdata.v b/common/Memdata.v
index 8bbb404..94a9917 100644
--- a/common/Memdata.v
+++ b/common/Memdata.v
@@ -442,8 +442,7 @@ Lemma decode_float32_cast:
forall l,
Float.singleoffloat (decode_float Mfloat32 l) = decode_float Mfloat32 l.
Proof.
- intros; unfold decode_float. rewrite <- Float.single_of_bits_of_single.
- rewrite Float.bits_of_single_of_bits. auto.
+ intros; unfold decode_float. rewrite Float.singleoffloat_of_bits. auto.
Qed.
(** * Encoding and decoding values *)
diff --git a/lib/Floats.v b/lib/Floats.v
index 5c20cdd..c9dda09 100644
--- a/lib/Floats.v
+++ b/lib/Floats.v
@@ -70,16 +70,14 @@ Axiom cmp_le_lt_eq:
Axiom cmp_ge_gt_eq:
forall f1 f2, cmp Cge f1 f2 = cmp Cgt f1 f2 || cmp Ceq f1 f2.
-Axiom bits_of_double_of_bits:
- forall n, bits_of_double (double_of_bits n) = n.
Axiom double_of_bits_of_double:
forall f, double_of_bits (bits_of_double f) = f.
-Axiom bits_of_single_of_bits:
- forall n, bits_of_single (single_of_bits n) = n.
Axiom single_of_bits_of_single:
forall f, single_of_bits (bits_of_single f) = singleoffloat f.
Axiom bits_of_singleoffloat:
forall f, bits_of_single (singleoffloat f) = bits_of_single f.
+Axiom singleoffloat_of_bits:
+ forall b, singleoffloat (single_of_bits b) = single_of_bits b.
End Float.