Zulip Chat Archive
Stream: mathlib4
Topic: Mathlib/Data/Vector/Basic.lean
Kim Morrison (Dec 19 2024 at 21:01):
Would anyone be interested in doing a cleanup of List.Vector
(previously named Mathlib.Vector
)? It would be good to modernize this and give it an API that understands GetElem
, as for List
/Array
/Vector
.
Shreyas Srinivas (Dec 20 2024 at 00:33):
Can't it just be Vector from core with additional list like functions that use the list underlying the array inside the Vector?
Shreyas Srinivas (Dec 20 2024 at 00:34):
For example prepending elements would make more sense as a list operation than an array operation, so it would make sense to have it in List.Vector. Appending on the other hand should be already in core vector as an array operation
Edward van de Meent (Dec 20 2024 at 20:54):
Indeed, i suspect most mathlib people don't care about the precise difference between these definitions. especially since their behaviour at proof time should be pretty much equivalent.
Last updated: May 02 2025 at 03:31 UTC