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

Output for modal formulas should be improved. #6

Open
johannesmarti opened this issue Apr 25, 2024 · 2 comments
Open

Output for modal formulas should be improved. #6

johannesmarti opened this issue Apr 25, 2024 · 2 comments

Comments

@johannesmarti
Copy link

When I am asking for the uniform interpolant of
p & q & [](p & q)
I get
¬ ((⊤ → (⊤ → (⊤ → ⋄ ⊥))) → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((⊤ → (⊤ → (⊤ → ⋄ ⊥))) → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((⊤ → (⊤ → (⊤ → ⋄ ⊥))) → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((⊤ → (⊤ → (⋄ ((⊤ → (⊤ → (⊤ → ⋄ ⊥))) → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((⊤ → (⊤ → (⊤ → ⋄ ⊥))) → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ⊥)))))))))) → ⋄ ⊥))) → (⊤ → ((⊤ → (⊤ → (⋄ ((⊤ → (⊤ → (⊤ → ⋄ ⊥))) → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((⊤ → (⊤ → (⊤ → ⋄ ⊥))) → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ⊥)))))))))) → ⋄ ⊥))) → (⊤ → ((⊤ → (⊤ → (⊤ → ⋄ ⊥))) → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((⊤ → (⊤ → (⊤ → ⋄ ⊥))) → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((⊤ → (⊤ → (⊤ → ⋄ ⊥))) → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((⊤ → (⊤ → (⋄ ((⊤ → (⊤ → (⊤ → ⋄ ⊥))) → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((⊤ → (⊤ → (⊤ → ⋄ ⊥))) → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ⊥)))))))))) → ⋄ ⊥))) → (⊤ → ((⊤ → (⊤ → (⋄ ((⊤ → (⊤ → (⊤ → ⋄ ⊥))) → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((⊤ → (⊤ → (⊤ → ⋄ ⊥))) → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ((¬ q → (⊤ → (⊤ → ⋄ ⊥))) → (⊤ → ⊥)))))))))) → ⋄ ⊥))) → (⊤ → ⊥))))))))))))))))))))))))))))))))))))))))))))))))))

Would be nice to have some post-processing that cleans up this formula using obvious equivalences.

@hferee
Copy link
Owner

hferee commented Apr 26, 2024

Thank you for your comment.

Yes, this feature is planned. It can be very easily done in an unverified way as a post-processing in ocaml, but we were hoping to do it in Coq beforehand.

@hferee
Copy link
Owner

hferee commented Jul 8, 2024

Progress: we have made (provably correct) simplifications in the cases of iSL/IPC.

Porting it to K/GL would be not so trivial ; and we want to keep the demo provably correct.

After the command line tool is perfected (#21), it would be easy to add unverified simplifications in OCaml.

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