Zulip Chat Archive
Stream: new members
Topic: Connection between list.nth and list.nth_le
Martin Dvořák (Feb 24 2022 at 11:45):
Without further ado, I am stuck on:
example (T : Type) (lis : list T) (n : ℕ) (hn : n < lis.length) (val : T) (h : lis.nth_le n hn = val) :
lis.nth n = some val :=
begin
sorry,
end
Eric Wieser (Feb 24 2022 at 12:01):
rw ←h
seems like the obvious start
Last updated: Dec 20 2023 at 11:08 UTC