lean4-htt/tests/lean/run/grind_human_eval_114.lean
Kim Morrison 9b9ce0c2ac
feat: adjust grind annotations for List.drop (#12170)
This PR adjusts the grind annotations for List.take/drop, and adds two
theorems.

This resolves problems @datokrat encountered while working on
https://github.com/leanprover/human-eval-lean/blob/master/HumanEvalLean/HumanEval114.lean.
2026-01-29 00:27:46 +00:00

5 lines
206 B
Text

example (xs : List Nat) (x : Nat)
(i : Nat) (hi : i < (xs ++ [x]).length)
(h : 1 ≤ (List.drop i xs).sum + x) :
1 ≤ (List.drop i (List.take (xs ++ [x]).length (xs ++ [x]))).sum := by
grind