Skip to content

A tool to transform proofs containing Skolem symbol in first order logic.

License

Notifications You must be signed in to change notification settings

elhaddadyacine/SKonverto

 
 

Repository files navigation

SKonverto

SKonverto is a tool that transforms Lambdapi proofs containing Skolem symbols into proofs without these symbols. It is based on the approach used in (http://www.lsv.fr/~dowek/Publi/skolem.pdf).

Installation

To install SKonverto, you will need to install all these dependencies:

Compilation

    git clone https://github.com/elhaddadyacine/SKonverto
    cd SKonverto
    make
    make install

Use

    skonverto --signature [NAME] --package [NAME] [FILE]

The lambdapi file must follow these instructions:

  • The signature file provided as option to the program should not contain a Skolem symbol
  • Every axiom name (except the original axiom) should end with _ax string (example: axiom_ax) as it is generated with ektraksto (https://github.com/elhaddadyacine/ekstrakto)
  • A set of builtins is required by SKonverto :
    1. Skolem symbol
    2. Original axiom
    3. Formula that represents the proof the user wants to deskolemize
    4. Skolemized version of the axiom
  • Another set of builtins to map some required symbols of the encoding
    1. Implication : ⇒
    2. Forall : ∀
    3. Exists : ∃
    4. Tau : τ (lifting codes of types to types)
    5. Epsilon : ϵ (lifting propositions to types)
    6. Bot : ⊥
    7. Exists_elim : ∃E (symbol that elimination the existential quantifier)
    8. Kappa : κ (default type for terms)

Example

See example.

make
cd example
dune exec -- skconverto --package skolem --signature signature proof_skolem.lp # generates proof_skolem_deskolemized.lp
lambdapi check proof_skolem_deskolemized.lp

About

A tool to transform proofs containing Skolem symbol in first order logic.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • OCaml 94.1%
  • Standard ML 4.1%
  • Makefile 1.8%