Skip to content

Commit

Permalink
Revert "Adapt to coq/coq#19530 (#794)" (#799)
Browse files Browse the repository at this point in the history
This reverts commit 8688af9.
  • Loading branch information
andres-erbsen authored Jan 9, 2025
1 parent 5736832 commit b19278e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions compcert/lib/IEEE754_extra.v
Original file line number Diff line number Diff line change
Expand Up @@ -992,8 +992,6 @@ Remark bounded_Bexact_inverse:
emin <= e <= emax - prec <-> bounded prec emax Bexact_inverse_mantissa e = true.
Proof.
intros. unfold bounded, canonical_mantissa. rewrite andb_true_iff.
rewrite ?Z.eqb_compare.
fold (Zeq_bool (fexp (Z.pos (digits2_pos Bexact_inverse_mantissa) + e)) e).
rewrite <- Zeq_is_eq_bool. rewrite <- Zle_is_le_bool.
rewrite Bexact_inverse_mantissa_digits2_pos.
unfold fexp, FLT_exp, emin. lia.
Expand Down
2 changes: 0 additions & 2 deletions progs/verif_union.v
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ rewrite andb_true_iff in H.
destruct H as [H H0].
apply Z.leb_le in H0.
unfold SpecFloat.canonical_mantissa in H.
rewrite ?Z.eqb_compare in H.
apply Zeq_bool_eq in H.
unfold FLT.FLT_exp in H.
rewrite Digits.Zpos_digits2_pos in H.
Expand Down Expand Up @@ -220,7 +219,6 @@ destruct e0 as [H' ?H].
assert (-149 <= e). {
clear - H'.
unfold SpecFloat.canonical_mantissa in H'.
rewrite ?Z.eqb_compare in H'.
apply Zeq_bool_eq in H'.
unfold FLT.FLT_exp in H'.
rewrite Digits.Zpos_digits2_pos in H'.
Expand Down
2 changes: 0 additions & 2 deletions progs64/verif_union.v
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ rewrite andb_true_iff in H.
destruct H as [H H0].
apply Z.leb_le in H0.
unfold SpecFloat.canonical_mantissa in H.
rewrite ?Z.eqb_compare in H.
apply Zeq_bool_eq in H.
unfold FLT.FLT_exp in H.
rewrite Digits.Zpos_digits2_pos in H.
Expand Down Expand Up @@ -221,7 +220,6 @@ destruct e0 as [H' ?H].
assert (-149 <= e). {
clear - H'.
unfold SpecFloat.canonical_mantissa in H'.
rewrite ?Z.eqb_compare in H'.
apply Zeq_bool_eq in H'.
unfold FLT.FLT_exp in H'.
rewrite Digits.Zpos_digits2_pos in H'.
Expand Down

0 comments on commit b19278e

Please sign in to comment.