This PR fixes `grind?` to include term parameters (like `[show P by
tac]`) in its suggestions. Previously, these were being dropped because
term arguments are stored in `extraFacts` and not tracked via E-matching
like named lemmas.
For example, `grind? [show False by exact h]` now correctly suggests
`grind only [show False by exact h]` instead of just `grind only`.
🤖 Prepared with Claude Code
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
15 lines
499 B
Text
15 lines
499 B
Text
/-!
|
|
# Test that `grind?` includes term parameters in its suggestion
|
|
|
|
When a user provides term arguments to `grind?`, they should be included
|
|
in the suggestion even if they are not tracked via E-matching.
|
|
-/
|
|
|
|
-- Test: Term argument should be included in suggestion
|
|
-- The term `show False by exact h` is passed as argument and should appear in output
|
|
/--
|
|
info: Try this:
|
|
[apply] grind only [show False by exact h]
|
|
-/
|
|
#guard_msgs in
|
|
example (h : False) : False := by grind? [show False by exact h]
|