Zulip Chat Archive

Stream: lean4

Topic: Unhelpful list deprecations


Eric Wieser (Sep 01 2025 at 09:06):

What's the intended replacement here?

import Lean

example := @List.get?_eq_some_iff

The deprecation message says

`List.get?_eq_some_iff` has been deprecated: Use `a[i]?` instead.

which isn't very helpful, as the first is a lemma and the second is a definition!

Henrik Böving (Sep 01 2025 at 09:09):

The corresponding getElem lemma.

Eric Wieser (Sep 01 2025 at 09:09):

Could the deprecations be changed to refer to those lemmas?

Henrik Böving (Sep 01 2025 at 09:12):

I guess? They are also up for deletion anyway though.

Kim Morrison (Sep 01 2025 at 12:17):

I'd merge a PR updating these deprecation messages, but don't have time to prepare such myself.


Last updated: Dec 20 2025 at 21:32 UTC