-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
grind_pattern
command (#6470)
This PR introduces a command for specifying patterns used in the heuristic instantiation of global theorems in the `grind` tactic. Note that this PR only adds the parser.
- Loading branch information
1 parent
a781f98
commit 9c0ef2a
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/- | ||
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Leonardo de Moura | ||
-/ | ||
prelude | ||
import Lean.Parser.Command | ||
|
||
namespace Lean.Parser.Command | ||
/-! | ||
Builtin parsers for `grind` related commands | ||
-/ | ||
@[builtin_command_parser] def grindPattern := leading_parser | ||
"grind_pattern " >> ident >> darrow >> sepBy1 termParser "," | ||
end Lean.Parser.Command |