lean4-htt/tests/lean/run/rwRegression.lean
Kim Morrison 3c11cca3cb
feat: upstream lemmas about basic List/Array operations (#4059)
This PR upstreams lemmas about List/Array operations already defined in
Lean from std/batteries.

Happy to take suggestions about increasing or decreasing scope.

---------

Co-authored-by: Mario Carneiro <di.gama@gmail.com>
2024-05-06 03:52:33 +00:00

5 lines
202 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.

namespace Array
theorem ex {as : Array α} (h : i < size as) (hlt: i < size (pop as)) :
as[i] = (pop as)[i] := by
rw [getElem_pop] -- should close the goal, proof should be found by unification