Skip to content

maximedenes/Coq-Equations

 
 

Repository files navigation

Equations - a function definition plugin.

Build Status DOI

Copyright 2009-2017 Matthieu Sozeau matthieu.sozeau@inria.fr
Copyright 2015-2017 Cyprien Mangin cyprien.mangin@m4x.org

Distributed under the terms of the GNU Lesser General Public License Version 2.1 (see LICENSE for details).

Equations provides a notation for writing programs by dependent pattern-matching and (well-founded) recursion in Coq. It compiles everything down to eliminators for inductive types, equality and accessibility, providing a definitional extension to the Coq kernel.

Documentation

The reference manual providing an introduction is available along with examples.

Papers

Two articles describing the system are available:

Installation

The current development version works with Coq 8.6 (branch master) and Coq 8.7 (branch 8.7), see releases for sources.

Install with OPAM

This package is available on OPAM. Activate the Coq repository if you didn't do it yet:

opam repo add coq-released https://coq.inria.fr/opam/released

and run:

opam install coq-equations

To get the beta versions of Coq, activate the repository:

opam repo add coq-core-dev https://coq.inria.fr/opam/core-dev

To get the development version of Equations, activate the repository:

opam repo add coq-extra-dev https://coq.inria.fr/opam/extra-dev

Install from source

Alternatively, to compile Equations, simply run:

coq_makefile -f _CoqProject -o Makefile
make

in the toplevel directory, with coqc and ocamlc in your path.

Then add the paths to your .coqrc:

Add ML Path "/Users/mat/research/coq/equations/src".
Add Rec LoadPath "/Users/mat/research/coq/equations/theories" as Equations.

Or install it:

make install

As usual, you will need to run this command with the appropriate privileges if the version of Coq you are using is installed system-wide, rather than in your own directory. E.g. on Ubuntu, you would prefix the command with sudo and then enter your user account password when prompted.

About

A plugin for Coq to add dependent pattern-matching.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • OCaml 55.0%
  • Coq 45.0%