lean4-htt/tests
Leonardo de Moura 2ed77f3b26
feat: attribute [grind] (#6545)
This PR introduces the parametric attribute `[grind]` for annotating
theorems and definitions. It also replaces `[grind_eq]` with `[grind
=]`. For definitions, `[grind]` is equivalent to `[grind =]`.

The new attribute supports the following variants:

- **`[grind =]`**: Uses the left-hand side of the theorem's conclusion
as the pattern for E-matching.
- **`[grind =_]`**: Uses the right-hand side of the theorem's conclusion
as the pattern for E-matching.
- **`[grind _=_]`**: Creates two patterns. One for the left-hand side
and one for the right-hand side.
- **`[grind →]`**: Searches for (multi-)patterns in the theorem's
antecedents, stopping once a usable multi-pattern is found.
- **`[grind ←]`**: Searches for (multi-)patterns in the theorem's
conclusion, stopping once a usable multi-pattern is found.
- **`[grind]`**: Searches for (multi-)patterns in both the theorem's
conclusion and antecedents. It starts with the conclusion and stops once
a usable multi-pattern is found.

The `grind_pattern` command remains available for cases where these
attributes do not yield the desired result.
2025-01-06 03:05:20 +00:00
..
bench chore: remove deprecated aliases for Int.tdiv and Int.tmod (#6322) 2024-12-08 05:19:42 +00:00
compiler feat: Simp.Config.implicitDefEqProofs (#4595) 2024-11-29 22:29:27 +00:00
elabissues
ir
lean feat: attribute [grind] (#6545) 2025-01-06 03:05:20 +00:00
pkg feat: Lean.loadPlugin (#6130) 2024-11-27 09:56:31 +00:00
playground
plugin
simpperf
.gitignore
common.sh test: do not filter output for non-diff tests (#6308) 2024-12-04 17:49:35 +00:00
lean-toolchain