Giter VIP home page Giter VIP logo

ekstrakto's Introduction

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 [email protected]

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.