Zulip Chat Archive

Stream: mathlib4

Topic: How many lemmas are there about ListSlice?


C7X (Dec 05 2025 at 04:03):

ListSlice seems like a useful class, but unfortunately I'm having trouble finding many lemmas about it. How much has been written on ListSlice?

An example: a recent PR adds some new theorems about the class ListSlice, but on my machine (after updating mathlib4) I cannot access them. For example, if I type #check List.toList_mkSlice_roi, Lean gives me a lean.unknownIdentifier error.

Yan Yablonovskiy 🇺🇦 (Dec 05 2025 at 04:30):

@loogle ListSlice

not sure how to loogle the core actually, didnt realise it was just mathlib. That PR is for lean4 not mathlib though

loogle (Dec 05 2025 at 04:30):

:search: ListSlice, List.toUnboundedSlice, and 24 more

Markus Himmel (Dec 05 2025 at 13:08):

The theorems in the linked PR will be part of Lean 4.27.0 which isn't released yet. That's why Loogle doesn't find them. Loogle does search Core, but the version of Core that mathlib uses at the moment, which right now is v4.26.0-rc2.


Last updated: Dec 20 2025 at 21:32 UTC