Zulip Chat Archive

Stream: general

Topic: Sum.in[lr].inj in aesop


Martin Dvořák (Feb 20 2026 at 17:26):

How can I make aesop apply Sum.inl.inj and Sum.inr.inj to things it discovers itself?
I mean, the proof isn't a part of the context before calling aesop but after aesop runs, it has added a proof of Sum.inl x = Sum.inl y into the context. I want aesop to proceed to inferring x = y and close the goal with the knowledge.

Michael Rothgang (Feb 20 2026 at 17:31):

Does adding these lemmas to the aesop call do the trick? (Totally untested.)

Martin Dvořák (Feb 20 2026 at 17:32):

None of the "usual tricks" works for me.

Martin Dvořák (Feb 20 2026 at 17:32):

It needs to be done later than when aesop tends to apply these lemmas by default.

František Silváši 🦉 (Feb 20 2026 at 18:10):

Maybe add safe forward Sum.inl_injective? (This might also need add simp Function.Injective combined.)

Martin Dvořák (Feb 20 2026 at 18:18):

It doesn't help. What I probably need is to run another simp phase at the end, or duplicate the rules to be not only in the simp phase but also in the other phase.

Yury G. Kudryashov (Feb 21 2026 at 04:09):

Do you have an #mwe?


Last updated: Feb 28 2026 at 14:05 UTC