Compare commits

...

1 Commits

Author SHA1 Message Date
Kim Morrison
cb5b0333ca chore: better hypothesis for Vector.getElem_take 2025-03-12 14:51:49 +11:00

View File

@@ -2838,7 +2838,7 @@ theorem swap_comm (xs : Vector α n) {i j : Nat} {hi hj} :
/-! ### take -/
@[simp] theorem getElem_take (xs : Vector α n) (j : Nat) (hi : i < min n j) :
@[simp] theorem getElem_take (xs : Vector α n) (j : Nat) (hi : i < min j n) :
(xs.take j)[i] = xs[i] := by
cases xs
simp