Giter VIP home page Giter VIP logo

Mtac2

A typed tactic language for Coq.

Copyright (c) 2020 Jan-Oliver Kaiser [email protected] Beta Ziliani [email protected]

Distributed under the terms of the MIT License, see LICENSE for details. Accepted contributions will be held under scrutiny to ensure they do not incur in a copyright infringement.

This repository contains a plugin for Coq with the tactic language described in the paper Mtac2: Typed Tactics for Backward Reasoning in Coq.

The project has 3 subdirectories:

  • src contains the code of the plugin.

    • run.ml is the interpreter.
  • theories contains support Coq files for the plugin.

    • Mtac2.v declares the plugin on the Coq side and imports all the required theories.
    • The intf folder contains the basics: the M monad with its operations documented, exceptions, etc.
    • The folder tactics contains everything relating to tactics:
      • Tactics.v defines the tactic type and several tactics and combinators.
      • Ttactics.v defines the type for typed tactics and combinators.
      • IntroPatt.v defines intro patterns.
      • ConstrSelector.v defines a selector based on the indices of an inductive type's constructors.
  • examples contains simple examples to show the different features of Mtac2.

    • tactics.v shows how to standard, Ltac's like, proving. But with some interesting features not present in Ltac.
    • tauto.v shows many different ways to code a simple tautology prover, with different degrees of certainty and verboseness.
  • test-suite contains several tests, including some uses of the plugin.

Installation

The plugin works currently with Coq v8.7 (and any minor version). It requires UniCoq to be installed. Mtac2 will be available in OPAM soon. For the moment you should have coqc, ocamlc and make in your path. Then simply do:

 coq_makefile -f _CoqProject -o Makefile

To generate a makefile from the description in _CoqProject, then make. This will consecutively build the plugin and the supporting theories.

You can then either make install the plugin or leave it in its current directory. To be able to import it from anywhere in Coq, simply add the following to ~/.coqrc:

Add LoadPath "path_to_mtac2/theories" as Mtac2.
Add ML Path "path_to_mtac2/src".

Usage

Once installed, you can Require Import Mtac2.Mtac2 to load the plugin. The plugin defines a tactic mrun t to execute code t and a proof mode MProof where Mtac2's tactic can be executed directly.

mtac2's Projects

opam icon opam

This opam repository contains development versions of Mtac2

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.