batteries
batteries copied to clipboard
Add HashMap model
This adds a function Buckets.toListModel. It models an array of buckets as a list of (key, value) pairs. We prove a number of lemmas about the behaviour of this model w.r.t. various map operations. No further propositions are proven in this PR, in particular it doesn't add any facts about the relations between user-facing HashMap operations just yet.
Depends on #89 and #272. See #38 for previous attempt.
Could we split this up? I'd happily merge the Std/Data/List part immediately, and that then makes the rest easier.