Zulip Chat Archive

Stream: lean4

Topic: Change Simplifier Options Globally


David E. Narváez (Feb 07 2025 at 15:23):

Some recent changes in the default configuration of the simplifier broke most of the proofs we had. Is there a way to configure the simplifier "globally" so that we do not have to change every use via simp (config := {...})?

Kyle Miller (Feb 07 2025 at 16:12):

Could you please give more details about what broke and what configuration you're wanting to set?

David E. Narváez (Feb 07 2025 at 16:27):

This change set the default for zetaDetla to false and we need it set back to true.

Kyle Miller (Feb 07 2025 at 16:58):

Option 1: write simp +zetaDelta when you need it (no need for the whole (config := { zetaDelta := true }) these days)

Kyle Miller (Feb 07 2025 at 17:00):

Option 2: define your own simp tactic, like

declare_simp_like_tactic zsimp "zsimp " +zetaDelta

and then replace failing simps with zsimps.

Kyle Miller (Feb 07 2025 at 17:01):

Option 3: (big hack, not recommended) make a macro to insert +zsimp in simp when it's not already present.

Kyle Miller (Feb 07 2025 at 17:01):

But to answer your question, no, there's no way to set the global simp configuration, except for this hack in option 3.


Last updated: May 02 2025 at 03:31 UTC