test-suite/bugs/bug_12770.v
raw| 1 | Require Import PrimInt63 PrimFloat PrimArray ssreflect. |
| 2 | |
| 3 | Open Scope uint63_scope. |
| 4 | |
| 5 | Lemma test : 2 = PrimInt63.add 1 1. |
| 6 | Proof. |
| 7 | set X := 2. |
| 8 | rewrite -[X]/(PrimInt63.add 1 1). |
| 9 | by []. |
| 10 | Qed. |
| 11 | |
| 12 | Open Scope float_scope. |
| 13 | |
| 14 | Lemma test2 : 2 = 1 + 1. |
| 15 | Proof. |
| 16 | set X := 2. |
| 17 | rewrite -[X]/(1 + 1). |
| 18 | by []. |
| 19 | Qed. |
| 20 | |
| 21 | Lemma test3 : [| | 2 |] = [| | 1 + 1 |]. |
| 22 | Proof. |
| 23 | set X := [| | 2 |]. |
| 24 | rewrite -[X]/([| | 1 + 1 |]). |
| 25 | by []. |
| 26 | Qed. |