| 1 |
#[projections(primitive)] |
| 2 |
Record r := R { f : unit }. |
| 3 |
|
| 4 |
Definition rv := {| f := tt |}. |
| 5 |
|
| 6 |
Module Reduction. |
| 7 |
Ltac syn_eq := lazymatch goal with |- tt = tt => reflexivity end. |
| 8 |
|
| 9 |
Goal rv.(f) = tt. |
| 10 |
Proof. |
| 11 |
Succeed lazy; syn_eq. |
| 12 |
Fail with_strategy opaque [f] lazy; syn_eq. |
| 13 |
|
| 14 |
Succeed cbn; syn_eq. |
| 15 |
Fail with_strategy opaque [f] cbn; syn_eq. |
| 16 |
|
| 17 |
Succeed simpl; syn_eq. |
| 18 |
Fail with_strategy opaque [f] simpl; syn_eq. |
| 19 |
|
| 20 |
Succeed cbv; syn_eq. |
| 21 |
Fail with_strategy opaque [f] cbv; syn_eq. |
| 22 |
Abort. |
| 23 |
End Reduction. |