Tool to translate a proof in the TSTP into the lambdapi format.
Ekstrakto generates a TPTP problem for each proof step in the TSTP input file, a Lambdapi signature file, and a Lambdapi file providing a complete proof assuming a Lambdapi file for each proof step.
One can then automatically generate a Lambdapi proof file for each proof step by running an automated theorem provers able to output Dedukti or Lambdapi proofs:
OCaml >= 4.05.1
ocamlbuild
- modulo_lp branch of zenon_modulo
- lambdapi
First, you need to get the sources:
git clone https://github.com/elhaddadyacine/ekstrakto.git
To compile the tool, just type:
cd ekstrakto
make
It will generate an executable file named spliter.native
.
If you want to install it, do:
sudo make install
Just call ekstrakto
with an input TSTP file as argument:
ekstrakto $trace.p
Ekstrakto creates in a folder $trace
:
- a sub-folder
lemmas
with all theTPTP
problems - a Lambdapi signature file
$trace.lp
- a Lambdapi proof file
proof_$trace.lp
- a
lambdapi.pkg
file - a
Makefile
to produce the Lambdapi proofs and check them.
Then, one can call make
to generate a Lambdapi proof file for each TPTP problem using zenon_modulo
, and check them using lambdapi
(make sure that zenon_modulo
and lambdapi
are in your $PATH
).
In the folder examples
, do:
../spliter.native trace.p
cd trace
make