lean4-htt/tests/lean/run/grind_question_mark_suggestions.lean
Leonardo de Moura 3e86729ee0
feat: grind? using finish? infrastructure (#11057)
This PR implements `grind?` using the new `grind => finish?`
infrastructure.
2025-11-02 05:00:50 +00:00

23 lines
485 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import Lean
set_library_suggestions Lean.LibrarySuggestions.sineQuaNonSelector
-- Test that grind? +suggestions does NOT include +suggestions in its output
/--
info: Try this:
[apply] grind only
-/
#guard_msgs in
example {x y : Nat} (h : x = y) : y = x := by
grind? +suggestions
def f (x : α) := x
/--
info: Try these:
[apply] grind only [f]
[apply] grind => instantiate only [f]
-/
#guard_msgs in
example {x y : Nat} (h : x = y) : x = f y := by
grind? +suggestions [f]