lean4-htt/tests/lean/grind/mvar.lean
Kim Morrison b2ea6b6a02
feat: initial @[grind] attributes for List/Array/Vector (#8136)
This PR adds an initial set of `@[grind]` annotations for
`List`/`Array`/`Vector`, enough to set up some regression tests using
`grind` in proofs about `List`. More annotations to follow.
2025-04-28 13:48:20 +00:00

14 lines
519 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.

open List
-- Failing with:
-- [issue] unexpected metavariable during internalization
-- ?α
-- `grind` is not supposed to be used in goals containing metavariables.
-- [issue] type error constructing proof for Array.eq_empty_of_append_eq_empty
-- when assigning metavariable ?xs with
-- l₁
-- has type
-- List α : Type u_1
-- but is expected to have type
-- Array ?α : Type ?u.430
theorem dropLast_concat : dropLast (l₁ ++ [b]) = l₁ := by grind (gen := 6)