lean4-htt/tests/lean/run/1302.lean
2022-07-11 12:11:10 -07:00

13 lines
410 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 get_cons_zero {as : List α} : (a :: as).get ⟨0, Nat.zero_lt_succ _⟩ = a := rfl
example (a b c : α) : [a, b, c].get ⟨0, by simp⟩ = a := by
simp
example (a : Bool) : (a :: as).get ⟨0, by simp_arith⟩ = a := by
simp
example (a : Bool) : (a :: as).get ⟨0, by simp_arith⟩ = a := by
simp
example (a b c : α) : [a, b, c].get ⟨0, by simp⟩ = a := by
rw [get_cons_zero]