Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Aesop/Frontend/Tactic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ clauses are:
`(simp_config := { zeta := false })` makes Aesop use
`simp (config := { zeta := false })`.
-/
syntax (name := aesopTactic) "aesop" Aesop.tactic_clause* : tactic
syntax (name := aesopTactic) "aesop" (ppSpace colGt Aesop.tactic_clause)* : tactic

@[inherit_doc aesopTactic]
syntax (name := aesopTactic?) "aesop?" Aesop.tactic_clause* : tactic
syntax (name := aesopTactic?) "aesop?" (ppSpace colGt Aesop.tactic_clause)* : tactic

meta initialize do
Batteries.Linter.UnreachableTactic.addIgnoreTacticKind ``aesopTactic
Expand Down
22 changes: 22 additions & 0 deletions AesopTest/Indent.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/-
Copyright (c) 2025 Alex Best. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alex Best, Jannis Limperg
-/

import Aesop

/-! Test case for clause indentation. We require Aesop tactic clauses to be on
the same line or indented, to prevent Aesop from mistaking the following
tactics for clauses. -/

example : ∃ n : Nat, n ^ 2 = 4 ∧ ∃ n : Nat, n ^ 2 = 9 ∧ True := by
aesop
(config := { maxRuleApplications := 1, warnOnNonterminal := false })
(exists 2)
(exists 3)

example : ∃ n : Nat, n ^ 2 = 4 ∧ ∃ n : Nat, n ^ 2 = 9 ∧ True := by
aesop (config := { maxRuleApplications := 1, warnOnNonterminal := false })
(exists 2)
(exists 3)