test-suite/bugs/bug_17871.v
raw| 1 | Require Import PrimFloat. |
| 2 | |
| 3 | Definition foo : { x : float | x = 1%float }. |
| 4 | Proof. |
| 5 | eexists. |
| 6 | Set Printing All. |
| 7 | native_compute. |
| 8 | (* was giving |
| 9 | @eq 0x0.05555897461p-1022%float 0x0.05555897461p-1022%float 0x1p+0%float *) |
| 10 | Abort. |
| 11 | |
| 12 | Definition foo x y : ((x =? 0.0) = (y =? 0.0))%float. |
| 13 | Proof. |
| 14 | native_cast_no_check (eq_refl (x =? 0.0))%float. |
| 15 | Fail Defined. |
| 16 | Abort. |
| 17 | |
| 18 | (* the above was succeeding allowing |
| 19 | Goal False. |
| 20 | Proof. now generalize (foo 0.0 1.0). Qed. |
| 21 | *) |