Zulip Chat Archive
Stream: lean4
Topic: rw failing due to missing typeclass
Ruben Van de Velde (Sep 02 2025 at 08:09):
is another case of the dreaded "Tactic rewrite failed: Did not find an occurrence of the pattern" error when the pattern is clearly there, due to a missing typeclass. I know by now that I can figure out what's wrong by explicitly specifying arguments until the error changes to "failed to synthesize", but it still would be great to have a better error message by default. Is anyone working on this?
Aaron Liu (Sep 02 2025 at 10:16):
This might be possible I have an idea
Kyle Miller (Sep 02 2025 at 11:01):
lean4#7172 is an experiment from earlier this year, but I haven't had much of a chance to test it out and I got busy with other things in the meantime. Example output is here:
I'd be happy to hear about any other ideas to address this.
Last updated: Dec 20 2025 at 21:32 UTC