Zulip Chat Archive
Stream: lean4
Topic: Array vs List
Tanner Swett (Jul 03 2023 at 03:11):
As far as the observable and provable behavior go, Array and List are pretty much identical, right?
Behind the scenes, it looks like Array is a resizable mutable array that gets copied as necessary, whereas List is a linked list, right?
James Gallicchio (Jul 03 2023 at 03:37):
Array is modeled as a List (see the Array
structure), so for proof purposes they are essentially the same.
Tanner Swett (Jul 03 2023 at 03:42):
Aha, very nice.
Last updated: Dec 20 2023 at 11:08 UTC