leanprover-community / mathlib

  • Home
  • Zulip archive
  • API documentation
  • Lean web editor
  • Links

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: May 02 2025 at 03:31 UTC

Theme Simple by wildflame © 2016 Powered by jekyll