forked from rocq-archive/containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
50 lines (34 loc) · 1.37 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Containers: a typeclass-based library of finite sets/maps
=========================================================
Copyright 2010 Stéphane Lescuyer <[email protected]>
Features
========
A reimplementation of the FSets/FMaps library from the standard
library, using typeclasses. See tests files for usage.
A new vernacular command is provided by Generate.v and the plugin
to automatically generate ordered types for user-defined inductive
types.
Files
=====
The archive has 4 subdirectories:
src/ contains the code of the plugin and commands
theories/ contains all the vernacular files of the library
and Generate.v, used to load the [Generate] plugin in Coq
tests/ just demonstrates usage of the basic data structures
docs/ contains an in-depth description of the Generate
OrderedType vernacular, and a guide to start using this
library
Installation
============
First, you should have coqc, ocamlc and make in your path.
Then simply do:
# make -j
To consecutively build the plugin and the supporting theories.
Optionally you can launch the tests and benchmarks with
# make test
You can then either install the plugin with
# sudo make install
or leave it in its current directory and to be able to import it
from anywhere in Coq, simply add the following to ~/.coqrc:
Add Rec LoadPath "path_to_containers/theories" as Containers.
Add ML Path "path_to_containers/src".