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

Abduction does not work with the newer version of Coq #17

Open
masashi-y opened this issue Dec 11, 2017 · 3 comments
Open

Abduction does not work with the newer version of Coq #17

masashi-y opened this issue Dec 11, 2017 · 3 comments

Comments

@masashi-y
Copy link
Collaborator

masashi-y commented Dec 11, 2017

In scripts/abduction_tools.py, you define is_theorem_error function
which checks if "^^^^" is in a Coq output.
In turn, this function is used in filter_wrong_axioms function, which
filters ill-formed axioms based on the existence of "^^^^" in the response from Coq to
a script with a new axiom candidate.
However, in newer versions of Coq (8.6 in my case),
doing Qed with an incomplete proof ends in:

                      ^^^^
Error: Attempt to save an incomplete proof (in proof t1)

t1 <

This is problematic in that the abduction code never adds any new axiom,
as the script thrown to Coq in that function always ends with this status.

@pasmargo
Copy link
Contributor

In Coq 8.6, does that output only produce 4 characters "^"?

@masashi-y
Copy link
Collaborator Author

Yes. I think "^^^^" underlines "Qed."

@pasmargo
Copy link
Contributor

I think the "^^^^" string when inserting axioms is typically longer because it underlines the axiom name; but I have not yet confirmed that.

If the above is true, perhaps we could use a longer string, e.g. "^^^^^" to recognize problems with the axiom insertion. I wonder if that will work.

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

2 participants