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>
5 lines
202 B
Text
5 lines
202 B
Text
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
|