rewrite
does not find seeming exact match with primitive projections
#18871
Labels
kind: bug
An error, flaw, fault or unintended behaviour.
part: primitive records
The primitive record and primitive projection mechanism.
part: rewriting tactics
The rewrite, autorewrite, rewrite_strat, and setoid_rewrite tactics.
wellknown: unfolded primitive projections
Description of the problem
I got curious what the situation with primitive projections is like these days, so I tried out what it would be like to use this feature for pairs. In Ascii.v I hit what looks like a real footgun. A match-goal-with calling rewrite with the matched term then has the rewrite fail to find that term in the goal, and manually performing the same invocation of rewrite fails similarly. Almost 2/3 of stdlib (by cloc) still builds, though.
Small Coq file to illustrate the bug
Cherry-pick the linked commit for actual repro.
Version of Coq where this bug occurs
632031c
Last version of Coq where the bug did not occur
No response
The text was updated successfully, but these errors were encountered: