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

PLE diverges if boolean definitions are simplified #475

Open
facundominguez opened this issue Jul 16, 2021 · 0 comments
Open

PLE diverges if boolean definitions are simplified #475

facundominguez opened this issue Jul 16, 2021 · 0 comments

Comments

@facundominguez
Copy link
Collaborator

facundominguez commented Jul 16, 2021

In order to reproduce, edit pleBoolC.fq as follows

diff --git a/tests/proof/pleBoolC.fq b/tests/proof/pleBoolC.fq
index 2efb3cfc..5161d4e9 100644
--- a/tests/proof/pleBoolC.fq
+++ b/tests/proof/pleBoolC.fq
@@ -27,8 +27,8 @@ constant tail: (func(1, [Vec @(0); Vec @(0)]))
 
 
 define mall(f:func(0,[int;bool]), xs:Vec int) : bool = {
-    if (isNil xs) then true 
-    else (mand (f (head xs)) (mall f (tail xs)))
+    (~(isNil xs)) => (mand (f (head xs)) (mall f (tail xs)))
 }
 
 define mand(x:bool, y:bool) : bool = { 

Then run

$ fixpoint --eliminate=some tests/proof/pleBoolC.fq

The expected outcome is that PLE succeeds, however the current behavior is that it never terminates.

This was first identified in #473 when implementing some simplifications on boolean conditions.

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

1 participant