Repository navigation
Replies: 2 comments
|
As I see it, there's two difficulties apparent in Agda that aren't present in something like ML:
|
|
TL;DR: it's hard because it's an open problem. Background: traditional PLs only need signatures, and those might have settled in the literature. Algorithms-based work on ADTs mostly care about resource usage (time, space, etc) and so signatures and properties are very much secondary. Only proof assistants push you to worry about more. Lots of proof assistants work in either dictator mode or in multi-repo mode, so no real pressure applies to come up with an agreed upon good interface. The exceptions seem to be Lean's Mathlib and inside a single Agda library (even Agda supports many). Mathlib eschews computation, so the library developers have not had to think about it as much. Having said that, there is Init.Data.Queue. It is from 2019 and the source file contains the beautiful comment "Note: this is only a temporary placeholder."!! And it seems to have no properties proved about it. In other words, if others have thought about this before, I wouldn't really know where to look. This generalizes: while there is theory based on categorical thinking for giving an interface and properties to some data-structures, others escape the categorical fold (pun intended) and so are still "wild territory". |
Uh oh!
There was an error while loading. Please reload this page.
We've had trouble in the past (e.g. here and here) defining abstract data types. We should come up with a strategy we can use to define interfaces without taking months of discussion.
All reactions