File tree Expand file tree Collapse file tree
Mathlib/Tactic/TacticAnalysis Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import Mathlib.Tactic.ExtractGoal
88import Mathlib.Tactic.MinImports
99import Lean.Elab.Tactic.Meta
1010import Lean.Elab.Command
11+ import Aesop
1112
1213/-!
1314# Tactic linters
@@ -322,6 +323,24 @@ def tryAtEachStepAesop := tryAtEachStep
322323 fun _ _ => return ⟨TSyntax.raw <|
323324 mkNode `Aesop.Frontend.Parser.aesopTactic #[mkAtom "aesop" , mkNullNode]⟩
324325
326+ /-- Run `simp_all` at every step in proofs, reporting where it succeeds. -/
327+ register_option linter.tacticAnalysis.tryAtEachStepSimpAll : Bool := {
328+ defValue := false
329+ }
330+
331+ @ [tacticAnalysis linter.tacticAnalysis.tryAtEachStepSimpAll,
332+ inherit_doc linter.tacticAnalysis.tryAtEachStepSimpAll]
333+ def tryAtEachStepSimpAll := tryAtEachStep (fun _ => `(tactic| simp_all))
334+
335+ /-- Run `aesop` at every step in proofs, reporting where it succeeds. -/
336+ register_option linter.tacticAnalysis.tryAtEachStepAesop : Bool := {
337+ defValue := false
338+ }
339+
340+ @ [tacticAnalysis linter.tacticAnalysis.tryAtEachStepAesop,
341+ inherit_doc linter.tacticAnalysis.tryAtEachStepAesop]
342+ def tryAtEachStepAesop := tryAtEachStep (fun _ => `(tactic| aesop))
343+
325344/-- Run `grind +premises` at every step in proofs, reporting where it succeeds. -/
326345register_option linter.tacticAnalysis.tryAtEachStepGrindPremises : Bool := {
327346 defValue := false
You can’t perform that action at this time.
0 commit comments