Skip to content
The Incredible Proof Machine
Haskell JavaScript HTML CSS Other
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.

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

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 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 sessions.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 -O logic.js
wget -O sessions.js

Installing JavaScript dependencies

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

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.


Running the script ./ 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, to push the final result to to 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.


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

You can’t perform that action at this time.