lean4-htt/src
Kim Morrison ada53633dc
feat: add grind.unusedLemmaThreshold option to report unused E-matching activations (#12805)
This PR adds a `set_option grind.unusedLemmaThreshold` that, when set to
N > 0
and `grind` succeeds, reports E-matching lemmas that were activated at
least N
times but do not appear in the final proof term. This helps identify
`@[grind]`
annotations that fire frequently without contributing to proofs.

🤖 Prepared with Claude Code

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 02:57:37 +00:00
..
bin perf: separate meta and non-meta initializers (#12016) 2026-02-26 08:05:19 +00:00
cmake chore: reformat all cmake files (#12218) 2026-01-28 18:23:08 +00:00
include/lean feat: non exponential codegen for reset-reuse (#12665) 2026-02-26 09:35:45 +00:00
Init feat: add grind.unusedLemmaThreshold option to report unused E-matching activations (#12805) 2026-03-10 02:57:37 +00:00
initialize
kernel perf: fuse fvar substitution into instantiateMVars (#12233) 2026-03-09 17:05:21 +00:00
lake feat: bundle leantar with Lean (#12822) 2026-03-09 20:10:59 +00:00
Lean feat: add grind.unusedLemmaThreshold option to report unused E-matching activations (#12805) 2026-03-10 02:57:37 +00:00
LeanChecker feat: add declaration name to leanchecker error messages (#12525) 2026-02-17 16:08:00 +00:00
library perf: fuse fvar substitution into instantiateMVars (#12233) 2026-03-09 17:05:21 +00:00
runtime feat: unify name demangling with single Lean implementation (#12539) 2026-03-06 12:29:35 +00:00
shell chore: move test suite setup to tests/CMakeLists.txt (#12278) 2026-02-03 13:22:20 +00:00
Std feat: use unicode(...) in Init/Notation and elsewhere (#10384) 2026-03-09 22:17:32 +00:00
util chore: update to c++20 (#12117) 2026-02-11 01:17:40 +00:00
cadical.mk
CMakeLists.txt feat: bundle leantar with Lean (#12822) 2026-03-09 20:10:59 +00:00
config.h.in
githash.h.in
Init.lean chore: shake core (#12276) 2026-02-05 09:10:32 +00:00
lakefile.toml.in chore: turn on new do elaborator in Core (#12656) 2026-03-09 12:38:33 +00:00
lean-toolchain chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
Lean.lean refactor: move getOriginalConstKind? into its own module to avoid future import cycle (#12265) 2026-02-01 16:18:51 +00:00
lean.mk.in
Leanc.lean
LeanChecker.lean feat: re-integrate lean4checker as leanchecker (#11887) 2026-01-08 09:41:33 +00:00
out
Std.lean
stdlib.make.in chore: clean up stdlib.make.in (#12614) 2026-02-20 16:59:34 +00:00
stdlib_flags.h chore: turn on new do elaborator in Core (#12656) 2026-03-09 12:38:33 +00:00
version.h.in