Skip to content

Commit 516b35b

Browse files
committed
.
1 parent c149cf6 commit 516b35b

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Mathlib/Tactic/TacticAnalysis/Declarations.lean

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import Mathlib.Tactic.ExtractGoal
88
import Mathlib.Tactic.MinImports
99
import Lean.Elab.Tactic.Meta
1010
import 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. -/
326345
register_option linter.tacticAnalysis.tryAtEachStepGrindPremises : Bool := {
327346
defValue := false

0 commit comments

Comments
 (0)