Compare commits

...

1 Commits

Author SHA1 Message Date
Leonardo de Moura
b615221bd5 doc: ! modifier in grind parameters
This PR adds a doc string for the `!` parameter modifier in `grind`.
2025-09-20 00:58:46 -07:00

View File

@@ -182,7 +182,10 @@ namespace Lean.Parser.Tactic
syntax grindErase := "-" ident
syntax grindLemma := ppGroup((Attr.grindMod ppSpace)? ident)
-- `!` for enabling minimal indexable subexpression restriction
/--
The `!` modifier instructs `grind` to consider only minimal indexable subexpressions
when selecting patterns.
-/
syntax grindLemmaMin := ppGroup("!" (Attr.grindMod ppSpace)? ident)
syntax grindParam := grindErase <|> grindLemma <|> grindLemmaMin