GithubHelp home page GithubHelp logo

cpiemontese / tlc-elpi Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 352 KB

Interactive theorem proving in ELPI

License: MIT License

lambda-calculus lambda-prolog typed-lambda-calculus elpi interactive-theorem-proving

tlc-elpi's Introduction

tlc-elpi

Implementation of some type theories in ELPI, an embeddable λProlog interpreter, as part of a curricular internship with professor Claudio Sacerdoti Coen. These theories can be used to prove some (basic) theorems using the interactive theorem prover found in itp.elpi. Given a type it gradually builds a typed λ-term through the use of tactics given as input by the user.

stlc contains term definitions, typing, conversion and tactics for the simply typed λ-calculus.

itt contains all of the above for a fragment Martin-Löf's Intuitionistic Type Theory (namely pi, sigma and nats).

How to use this thing.

1. Install ELPI

Who could have guessed it! Go here.

2. Prove stuff using stlc or itt

  1. Create a file where you'll put what you want to prove,
  2. using accumulate add stlc/theory or itt/theory to accumulate the whole "theory",
  3. accumulate the itp and start the itp loop by
    1. writing something like of X TypeDecl where TypeDecl is what you want to prove and
    2. running the actual loop using: run_itp X InScript where InScript is a list of tactics that can be given as input.

As an example of how one such file could look see test_itt.elpi.

tlc-elpi's People

Contributors

cpiemontese avatar

Stargazers

 avatar  avatar

Watchers

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