| 1 |
(* 9e6b28c04ad98369a012faf3bd4d630cf123a473 *) |
| 2 |
Record foo := { bar : Type }. |
| 3 |
Arguments bar _ / . |
| 4 |
Definition baz (x : Type) := x. |
| 5 |
Arguments baz / : simpl nomatch. |
| 6 |
Goal forall x, baz (bar x) = baz (bar x). |
| 7 |
Proof. |
| 8 |
assert_succeeds |
| 9 |
(repeat simpl; match goal with |
| 10 |
| [ |- forall x : foo, (let (bar) := x in bar) = (let (bar) := x in bar) ] => idtac |
| 11 |
| [ |- ?G ] => fail 1 G |
| 12 |
end). (* success *) |
| 13 |
repeat cbn; match goal with |
| 14 |
| [ |- forall x : foo, (let (bar) := x in bar) = (let (bar) := x in bar) ] => idtac |
| 15 |
| [ |- ?G ] => fail 1 G |
| 16 |
end. (* Tactic failure: (forall x : foo, baz (let (bar) := x in bar) = baz (let (bar) := x in bar)). *) |
| 17 |
Abort. |