leanprover-community / aesop

White-box automation for Lean 4
Apache License 2.0
155 stars 25 forks source link

feat: print first goal after safe prefix in terminal mode #139

Closed semorrison closed 1 month ago

semorrison commented 1 month ago

When in terminal mode, print the (first) goal after the terminal prefix as part of the error message, so we get an indication of what progress aesop made, and where it got stuck.

Too often I write a structure where some auto_param field is not successfully filled in by aesop, and it's presumably just because a @[simp] lemma is missing. But to see the goal (and hence deduce the missing simp lemma), I have to add field := by aesop. I think with this change we'll just be able to see what we need immediately.

JLimperg commented 1 month ago

Ideas for improvements from our Zulip conversation: