Abstract
This development provides a framework for container types like sets and maps such that generated code implements these containers with different (efficient) data structures.
Thanks to type classes and refinement during code generation, this light-weight approach can seamlessly replace Isabelle's default setup for code generation.
Heuristics automatically pick one of the available data structures depending on the type of elements to be stored, but users can also choose on their own.
The extensible design permits to add more implementations at any time.
BSD LicenseTo support arbitrary nesting of sets, we define a linear order on sets based on a linear order of the elements and provide efficient implementations. It even allows to compare complements with non-complements.
Change history
[2013-07-11] add pretty printing for sets (revision 7f3f52c5f5fa)
[2013-09-20]
provide generators for canonical type class instantiations
(revision 159f4401f4a8 by René Thiemann)
[2014-07-08] add support for going from partial functions to mappings (revision 7a6fc957e8ed)
[2018-03-05] add two application examples depth-first search and 2SAT (revision e5e1a1da2411)
Depends On
Used by
Topics
Related Entries
Theories
- Containers_Auxiliary
- Card_Datatype
- List_Fusion
- Lexicographic_Order
- Extend_Partial_Order
- Set_Linorder
- Containers_Generator
- files/containers_generator.ML
- Collection_Order
- files/ccompare_generator.ML
- List_Proper_Interval
- Collection_Eq
- files/ceq_generator.ML
- Collection_Enum
- files/cenum_generator.ML
- Equal
- RBT_ext
- RBT_Mapping2
- AssocList
- DList_Set
- RBT_Set2
- Closure_Set
- Set_Impl
- files/set_impl_generator.ML
- Mapping_Impl
- files/mapping_impl_generator.ML
- Map_To_Mapping
- Containers
- Compatibility_Containers_Regular_Sets
- Containers_Userguide
- Card_Datatype_Ex
- Map_To_Mapping_Ex
- TwoSat_Ex
- Containers_DFS_Ex
- Containers_TwoSat_Ex