Giter Club home page Giter Club logo

kontroli-rs's Introduction

Kontroli

Build status Crates.io Documentation Rust 1.56+

Kontroli (Esperanto for verify) is an alternative implementation of the logical framework Dedukti, concentrating on the verification of proofs.

Kontroli's use case is to verify proofs generated by automated reasoning tools, such as proof assistants and automated theorem provers. It serves to verify the output of Dedukti by providing a "second opinion" and to make it easier for users to understand and learn from the implementation. It is also a testbed for parallelising type checking.

Usage

Kontroli requires at least Rust 1.56. Installation instructions are available at https://rustup.rs/.

To run Kontroli on output generated from Isabelle/Pure:

cargo run --release examples/pure.dk

The command line option -j enables concurrent checking and -c enables concurrent parsing.

To install Kontroli:

cargo install --path kocheck

Kontroli provides a command-line program, kocheck, and a library. The latter means that you can use Kontroli as part of your own applications. Given that the Kontroli library does not rely on Rust's standard library, you could use it also in environments such as web pages, offering type checking as a service.

Goals

Kontroli tries to be the following:

  • Small: write as little code as possible ...
  • Correct: ... because the code you do not write, contains no bugs
  • Efficient: be at least as fast as Dedukti in main use case
  • Compatible: stick to Dedukti's syntax/semantics as much as possible
  • Conservative: use established and well-tested techniques

Differences

There are a few differences with respect to Dedukti:

  • Kontroli has a module system allowing for nested modules.
  • Kontroli does not support higher-order rewrite rules, as they would make the whole program considerably more complex, thus contradicting the idea of a small type checker.
  • Kontroli assures the type-safety of rewrite rules only if all free pattern variables have type annotations.
  • Kontroli does not use decision trees for rewriting.
  • Kontroli does not have any commands like #EVAL or #ASSERT, which are particularly used in Dedukti tests. Instead, tests in the code base are preferred.

Syntax

Kontroli implements a subset of Dedukti's syntax. Examples of the syntax can be seen in examples/nat.dk or examples/pure.dk.

Development

A few useful commands for developing Kontroli:

  • Generating documentation: cargo doc --open
  • Running tests: cargo test
  • Running benchmarks: cargo bench -p kontroli -- --sample-size 10

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.