GithubHelp home page GithubHelp logo

mdempsky / coqutil Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mit-plv/coqutil

0.0 2.0 0.0 247 KB

Coq library for tactics, basic definitions, sets, maps

License: MIT License

Makefile 0.38% Coq 99.35% Shell 0.27%

coqutil's Introduction

coqutil -- Various Coq Utilities

Contents:

  • Datatypes: Some utilities for existing datatypes, and new datatypes.
  • Decidable: BoolSpec-based decidability typeclasses. Allows one to write if MyType_eqb a b then ... else ... where MyType_eqb a b returns a bool, instead of writing if MyType_eq_dec a b then ... else ... where MyType_eq_dec a b returns a sumbool, while still getting a = b and a <> b as hypotheses (as opposed to MyType_eqb a b = true and MyType_eqb a b = false) after destructing the if (need to use destr instead of destruct). So one gets the benefits of Sumbool without getting its disadvantage of having to carry around proof terms, which can cause a blow-up under reduction if one is not careful.
  • Map: A typeclass based map library allowing one to abstract over the concrete implementation of maps. The implementations have to be extensional, which excludes certain efficient implementations, but simplifies proofs, because one can replace mapA with mapB if one can prove that mapA and mapB have the same contents. Comes with a solver which works reasonably fast on most map goals we have encountered so far.
  • Tactics: A collection of useful general-purpose tactics.
  • Word: Fixed width words for any width, in the same typeclass based style as the map library. Designed for the case where all words have the same (potentially abstract) bit width. Therefore, it does not provide functions to concatenate and split words, which is better addressed by bbv.
  • Z: Utilities to work with the Z type from Coq's standard library, including a tactic to prove Z equalities by splitting the equality into equalities on bit index ranges, a tactic to make lia capable of reasoning about goals with division and modulo, and a tactic to simplify expressions containing nested occurrences of mod, and more misc utilities.
  • Various macros, notations, and desirable default settings.

Each feature is intended to be as minimal and as independent of the other features as possible, so that users can pick just what they need.

coqutil's People

Contributors

andres-erbsen avatar andres-erbsen-sifive avatar fajb avatar jasongross avatar maximedenes avatar samuelgruetter avatar tchajed avatar

Watchers

 avatar  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.