lean4-htt/tests/lean/run/grind_sort_intern.lean
Leonardo de Moura 35764213fc
fix: grind sort internalization (#10477)
This PR ensures sorts are internalized by `grind`.
2025-09-20 18:31:20 +00:00

16 lines
325 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.

def f (α : Sort u) (_ : α) : Nat := 0
theorem feq : f (List α) x = 0 := rfl
/--
error: `grind` failed
case grind
h : ¬f Prop True = 0
⊢ False
-/
#guard_msgs in
example: f Prop True = 0 := by
grind -verbose [feq] -- must not produce error `Prop` has not been internalized
example: f Prop True = 0 := by
grind [f]