Skip to content

Extract TPTP problems from a TSTP trace and reconstruct the proof in lambdapi (λΠ-calculus modulo theory).

Notifications You must be signed in to change notification settings

elhaddadyacine/ekstrakto

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ekstrakto

A tool to extract TPTP problems from a TSTP trace and reconstruct the proof in lambdapi.

Installation

Dependencies

Compilation

First, you need to get the sources :

    git clone https://github.com/elhaddadyacine/ekstrakto.git

To compile the tool, just type :

    make

It will generate a native file named spliter.native if you want to install the tool in your binary installation folder (where ocaml is installed, if ocaml is installed in the /usr/bin/ directory then you need to call make install with sudo) use :

    make install

Usage

In order to use ekstrakto you need to have a TSTP trace (the repository contains an example (see examples folder) named trace.p). You just need to type :

    ./spliter.native path/to/your/tstp/trace/file

Or (if you installed the tool)

    ekstrakto path/to/your/tstp/trace/file

The program will create a folder which has the same name as the trace. It generates all the sub problems in the TPTP format (inside lemmas folder) and add a signature file in lambdapi format. It generates also a Makefile to produce proofs in lambdapi and typecheck them. And finally, produce a proof (named proof_<TRACENAME>.lp) using all sub solutions in lambdapi.

You need to have zenon_modulo (use modulo_lp branch) and lambdapi installed to generate the proofs of each sub problem and then generate the .lpo files with lambdapi

Example

A trace file named trace.p (in examples) in the repository contains an example.

The program will generate 3 files, logic folder (that contains zenon_modulo logic files), 1 signature file, a Makefile and 1 proof file :

  • lemmas/c_0_5.p
  • lemmas/c_0_6.p
  • lemmas/c_0_7.p
  • logic/
  • trace.lp
  • Makefile
  • proof_trace.lp

It will produce the proof of each sub problem and typecheck them with lambdapi :

cd trace
make proof

Files produced :

lemmas/c_0_5.lp         # the proof of each problem (with zenon_modulo)
lemmas/c_0_6.lp         # ...
lemmas/c_0_7.lp         # ...

lemmas/c_0_5.lpo        # typeching of each proof (with lambdapi)
lemmas/c_0_6.lpo        # ...
lemmas/c_0_7.lpo        # ...

trace.lpo               # the signature of the proof (contains all used symbols)
proof_trace.lpo         # the global proof (contains the combination of sub solutions)

Contact

Mohamed Yacine EL HADDADD elhaddad@lsv.fr

About

Extract TPTP problems from a TSTP trace and reconstruct the proof in lambdapi (λΠ-calculus modulo theory).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • OCaml 92.7%
  • Shell 6.4%
  • Makefile 0.9%