Skip to content

Commit

Permalink
feat: add Context.setConfig (#6072)
Browse files Browse the repository at this point in the history
This PR adds `Lean.Simp.Context.setConfig` function.
  • Loading branch information
leodemoura authored Nov 14, 2024
1 parent 6313210 commit e55b681
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Lean/Meta/Tactic/Simp/Types.lean
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand Down

0 comments on commit e55b681

Please sign in to comment.