Git Product home page Git Product logo

incredible's Introduction

The Incredible Proof Machine

Welcome to The Incredible Proof Machine. The Incredible Proof Machine is a non-textual interactive theorem prover, or at least it will hopefully become one.

If you want to try it out, go to http://incredible.pm/ for the current state of the graphical UI and http://incredible.pm/text-ui.html for the text-based debug interface.

The project consists of both Haskell and JavaScript code, so there are a few dependencies to install.

Building the Logic Core

The Logic core is implemented in Haskell, and compiled to JavaScript using GHCJS. See there for more detailed instructions, but here is a quick way.

  • Install GHC version 7.10 and cabal-install version 1.22. On Ubuntu, run

    $ add-apt-repository -y ppa:hvr/ghc
    $ apt-get update
    $ apt-get install cabal-install-1.22  alex-3.1.4 happy-1.19.5 ghc-7.10.3
    $ export PATH=$HOME/.cabal/bin:/opt/ghc/7.10.3/bin:/opt/cabal/1.22/bin:/opt/alex/3.1.4/bin:/opt/happy/1.19.5/bin:$PATH
    
  • Run cabal update

  • Make sure the Cabal library is at least version 1.22. You can check that using ghc-pkg find Cabal and install the latest version using cabal install Cabal

  • Now you can install GHCJS including most of its libraries

    cabal install http://ghcjs.luite.com/master-20151222.tar.gz ghcjs-boot --no-prof

  • Install any further dependencies

    cd logic; cabal install --dependencies-only --enable-tests
    cd logic; cabal install --ghcjs --dependencies-only --disable-tests
    

    or run make prepare in the project root.

  • Now you should be able to compile both logic.js and examples.js by running make

  • To run the testsuite, run cabal test in the logic/ directory or make test in the project root

Alternatively, if you do not want to hack on these parts of the project, but simply run them locally, you can run

wget http://incredible.pm/logic.js -O logic.js
wget http://incredible.pm/examples.js -O examples.js

You can check that this part is working by opening text-ui.html in your browser.

Installing JavaScript dependencies

The JavaScript part of the project uses a few external libraries. To obtain these, run ./install-jslib.sh.

Continuous integration

Every push to the repository is tested on Travis. Until we have proper tests, this makes sure that the Haskell code compiles both under GHC and GHCJS, and that the JavaScript dependencies can be installed.

Deployment

Running the script ./deploy.sh dir/ should put all files required for the runtime into the directory dir/, which should not exist before.

Continuous deployment

If Travis thinks the build succeeds, it uses the above deploy script, together with .travis-push-gh-pages.sh, to push the final result to to http://incredible.pm/. As this is a Github Pages page, this means that the sources are always the contents of the gh-pages branch of the incredible-demo repository, which is otherwise unused.

Contact

Please join our the mailing list (or directly Joachim Breitner [email protected] if preferred) if you have question or want to help out.

incredible's People

Contributors

gattschardo avatar lohner avatar michaelgwelch avatar mohrm avatar nicolerauch avatar nomeata avatar olydis avatar psibi avatar qznc avatar tillrauch 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.