test-suite/bugs/bug_9930.v
raw| 1 | Set Primitive Projections. |
| 2 | Record params := { width : nat }. |
| 3 | Definition p : params := Build_params 64. |
| 4 | |
| 5 | Lemma foo : width p = 0 -> width p = 0. |
| 6 | intros. |
| 7 | let e := lazymatch type of H with ?e = 0 => e end in |
| 8 | change tt with tt in H; |
| 9 | let E := lazymatch type of H with ?E = 0 => E end in |
| 10 | idtac "before:" e; idtac "after :" E; |
| 11 | (* before: (width p) *) |
| 12 | (* after : (width p) *) |
| 13 | tryif constr_eq e E then exact H else idtac. |
| 14 | Qed. |