This PR adds a `+locals` configuration option to the `grind` tactic that automatically adds all definitions from the current file as e-match theorems. This provides a convenient alternative to manually adding `[local grind]` attributes to each definition. In the form `grind? +locals`, it is also helpful for discovering which local declarations it may be useful to add `[local grind]` attributes to. Example usage: ```lean def foo (n : Nat) : Nat := n + 1 -- Without +locals, grind doesn't know about foo example (n : Nat) : foo n = n + 1 := by grind -- fails -- With +locals, grind can use the equation example (n : Nat) : foo n = n + 1 := by grind +locals -- succeeds ``` Instance definitions and internal details are filtered out. 🤖 Prepared with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| bench | ||
| bench-radar | ||
| compiler | ||
| elabissues | ||
| ir | ||
| lake | ||
| lean | ||
| pkg | ||
| playground | ||
| plugin | ||
| simpperf | ||
| .gitignore | ||
| common.sh | ||
| lakefile.toml | ||
| lean-toolchain | ||