Skip to content
프로젝트

소개

A function definition package for Rocq

프로그래밍 언어 및 런타임

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Equations - a function definition plugin.

Build Status DOI Zulip Chat

Copyright 2009-2025 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 Rocq / 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

Learning Equations

  • You can discover and learn Equations through interactive tutorials directly in your browser, or locally with Equations installed.

Documentation

Papers and presentations

Installation

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 rocq-equations

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

opam repo add rocq-runtime-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, ocamlc and dune in your path.

Optionally, one can build the test-suite:

make examples test-suite

Then 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 rocq-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.

관련 프로젝트 살펴보기

불러오는 중…