doc: ! modifier in grind parameters (#10474)

This PR adds a doc string for the `!` parameter modifier in `grind`.
This commit is contained in:
Leonardo de Moura 2025-09-20 01:06:05 -07:00 committed by GitHub
parent 9b842b7554
commit ec7add0b48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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