fix: generate equation theorems under the definition-time defeq options This PR makes the generation of equation theorems such as `f.eq_1` use the values that `backward.isDefEq.respectTransparency`, `backward.isDefEq.respectTransparency.types`, `backward.whnf.reducibleClassField`, and `smartUnfolding` had where `f` was defined. Previously, a definition whose equation theorems can only be generated under a local `set_option` failed with "failed to generate equational theorem" when the theorems were first requested from an importing module. The options are added to `eqnAffectingOptions`, whose non-default values are stored with the definition and restored when its equation theorems are realized. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This is the repository for Lean 4.
See Install Lean.
Please read our Contribution Guidelines first.
See Building Lean.