lean4-htt/tests/lean/run/rwRegression.lean
2024-02-28 23:14:15 +00:00

9 lines
369 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
@[simp] theorem getElem_pop (a : Array α) (i : Nat) (hi : i < a.pop.size) :
a.pop[i] = a[i]'(Nat.lt_of_lt_of_le (a.size_pop ▸ hi) (Nat.sub_le _ _)) :=
sorry
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