Skip to content
rocq-communityPublic

About

Modular Finite Maps over Ordered Types in Coq [maintainers=@letouzey,@palmskog]

Topics

Resources

Stars

11 stars

Watchers

2 watching

Forks

Repository files navigation

Modular Finite Maps over Ordered Types

Docker CI Contributing Code of Conduct Zulip

This project contains several implementations of finite maps, including implementations based on AVL trees and red-black trees. The finite maps are parameterized on arbitrary ordered types using Coq functors. This is an updated version of the Coq Stdlib's FMaps that is meant to complement the Stdlib's MSet library.

Meta

Building and installation instructions

The easiest way to install the latest released version of Modular Finite Maps over Ordered Types is via OPAM:

opam repo add rocq-released https://rocq-prover.org/opam/released
opam install coq-mmaps

To instead build and install manually, you need to make sure that all the libraries this development depends on are installed. The easiest way to do that is still to rely on opam:

git clone https://github.com/coq-community/coq-mmaps.git
cd coq-mmaps
opam repo add rocq-released https://rocq-prover.org/opam/released
opam install --deps-only .
make   # or make -j <number-of-cores-on-your-machine> 
make install

Documentation

This library of finite maps is a modernization of FMaps in Coq's standard library. Compared to FMaps, MMaps has a richer interface and provides additional finite map implementations, including a performant implementation based on red-black trees.

As starting points for understanding how to use the library, we recommend looking at MMaps.Interface and MMaps.demo.

About

Modular Finite Maps over Ordered Types in Coq [maintainers=@letouzey,@palmskog]

Topics

Resources

Stars

11 stars

Watchers

2 watching

Forks

Releases

Used by

Contributors

Languages