Zulip Chat Archive

Stream: lean4

Topic: trace_simp / simp +trace / ...?


Vasiliy Yorkin (Nov 28 2025 at 09:32):

Hi!
I want to understand which lemmas the simp tactic used when simplifying a given (sub)goal. Is there a way to find this out?

example : ¬(p  q)  p  ¬q := by
    intro h_npq
    simp at h_npq
    assumption

Max Nowak 🐉 (Nov 28 2025 at 09:34):

You can use simp? and look at the infoview

Max Nowak 🐉 (Nov 28 2025 at 09:35):

And a bit more advanced, but you can use show_term MY_TACTIC to show the proof term generated by the tactic

Vasiliy Yorkin (Nov 28 2025 at 09:35):

thank you!

Aaron Liu (Nov 28 2025 at 11:06):

You can set_option trace.Meta.Tactic.simp true


Last updated: Dec 20 2025 at 21:32 UTC