lean4-htt/tests/lean/run/1299.lean

11 lines
383 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.

@[simp] theorem getElem_fin [GetElem Cont Nat Elem Dom] (a : Cont) (i : Fin n) (h : Dom a i) :
a[i] = a[i.1] := rfl
@[simp] theorem getElem?_fin [GetElem? Cont Nat Elem Dom] (a : Cont) (i : Fin n) :
a[i]? = a[i.1]? := rfl
example (a : Array α) (i : Fin a.size) : a[i] = a[i.1] := by
simp
example (a : Array α) (i : Fin a.size) : a[i] = a[i.1] := by
rw [getElem_fin]