Giter Site home page Giter Site logo

proux01 / coq-equations Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mattam82/coq-equations

0.0 1.0 0.0 14.69 MB

A function definition package for Coq

Home Page: http://mattam82.github.io/Coq-Equations

License: GNU Lesser General Public License v2.1

Shell 0.07% Ruby 0.01% OCaml 42.64% Coq 57.13% Makefile 0.15%

coq-equations's Introduction

Equations - a function definition plugin.

Build Status DOI Zulip Chat

Copyright 2009-2022 Matthieu Sozeau [email protected] Copyright 2015-2018 Cyprien Mangin [email protected]

Distributed under the terms of the GNU Lesser General Public License Version 2.1 or later (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. The plugin can be used with Coq's standard logic in Prop for a proof-irrelevant, erasable interpretation of pattern-matching, or with a polymorphic logic in Type or re-using the prelude of the HoTT/Coq library for a proof-relevant interpretation. In all cases, the resulting definitions are axiom-free.

Table of Contents

Live demo

Try it now in your browser with JSCoq!

Documentation

  • The reference manual provides an introduction and a summary of the commands and options. This introduction can also be followed interactively with Equations installed: equations_intro.v

  • A gallery of examples provides more consequent developments using Equations.

Papers and presentations

Installation

The latest version works with Coq 8.13 (branch 8.13), Coq 8.14 (branch 8.14), Coq 8.15 (branch 8.15), and the current Coq main branch (branch main).

See releases for sources and official releases.

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:

./configure.sh
make

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

Optionally, one can build the test-suite or examples:

make examples test-suite

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.

HoTT Variant

The HoTT variant of Equations works with the coq-hott library for Coq 8.13 and up. When using opam, simply install first the coq-hott library and coq-equations will install its HoTT variant. From source, first install coq-hott and then use:

./configure.sh --enable-hott

This will compile the HoTT library variant in addition to the standard one. Then, after make install, one can import the plugin in Coq, using:

From Equations Require Import HoTT.All.

coq-equations's People

Contributors

alizter avatar anton-trunov avatar bollu avatar clarus avatar cmangin avatar ejgallego avatar gares avatar greenrd avatar herbelin avatar jfehrle avatar jwiegley avatar kyodralliam avatar llelf avatar mattam82 avatar maximedenes avatar nomeata avatar palmskog avatar ppedrot avatar rlepigre avatar simonboulier avatar skyskimmer avatar soren-n avatar vbgl avatar ybertot avatar zimmi48 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.