diff --git a/src/Lean/Meta/Tactic/Simp/Types.lean b/src/Lean/Meta/Tactic/Simp/Types.lean index 5eb059fac687..87f538c10bdd 100644 --- a/src/Lean/Meta/Tactic/Simp/Types.lean +++ b/src/Lean/Meta/Tactic/Simp/Types.lean @@ -121,6 +121,9 @@ def mkContext (config : Config := {}) (simpTheorems : SimpTheoremsArray := {}) ( let config ← updateArith config return { config, simpTheorems, congrTheorems } +def Context.setConfig (context : Context) (config : Config) : Context := + { context with config } + def Context.setSimpTheorems (c : Context) (simpTheorems : SimpTheoremsArray) : Context := { c with simpTheorems }