Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exception in lltodk #4

Open
bodeveix opened this issue Feb 22, 2023 · 3 comments
Open

exception in lltodk #4

bodeveix opened this issue Feb 22, 2023 · 3 comments

Comments

@bodeveix
Copy link

bodeveix commented Feb 22, 2023

Generating a proof term using -odk or -odkterm raises exceptions in lltodk. The error appears for example in the attached input:
pb.txt

zenon_modulo -itptp -odk pb.txt
Fatal error: exception File "lltodk.ml", line 289, characters 2-8: Assertion failed

zenon_modulo -itptp -odkterm pb.txt
(* PROOF-FOUND *)
Fatal error: exception File "lltodk.ml", line 1055, characters 2-8: Assertion failed

Furthermore, is it possible to add an extraction to lambdapi proof terms or proof scripts?

Thanks

@gburel
Copy link
Contributor

gburel commented Apr 21, 2023

It comes from the fact that in the file, there are only two axioms, and no goal.

The Dedukti output needs the file to contain exactly one goal, for instance by replacing the role of the second formula from axiom to negated_conjecture.

@gburel
Copy link
Contributor

gburel commented Apr 21, 2023

There is an output to lambdapi in the modulo_lp branch. It uses the same options as the Dedukti output in the modulo branch.

@fblanqui
Copy link
Member

The syntax for the lp output (in the modulo_lp branch) is:

zenon_modulo -itptp -max-time 60s -odkterm -sig $sigmod file.p > $file.lp

where $sigmod is the lp module name where the signature is defined.
The signature must be written by hand or generated.
It may be possible to generate it by using https://github.com/Deducteam/ekstrakto.
Geoff Sutcliffe is working on having a TPTP tool doing this in the general case (ekstrakto is limited to CNF formulas currently).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants