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

How can split_goal be used? #1311

Closed
msaaltink opened this issue May 27, 2021 · 2 comments
Closed

How can split_goal be used? #1311

msaaltink opened this issue May 27, 2021 · 2 comments

Comments

@msaaltink
Copy link
Contributor

split_goal seems like it might be helpful in dealing qith a large and complex goal. When I try it, though, it does indeed split the goal, but then only the first of these subgoals can be proved.

sawscript> prove_print do { split_goal; print_goal; z3; } (rewrite (cryptol_ss ()) {{ \ x -> ( x== 0x0 ==> x== zero) && (x != 0x0 ==> x > 0) }})
[18:04:09.682] Goal prove (goal number 0):
[18:04:09.682] let { x@1 = Prelude.Nat   -> sort 0 -> sort 0
      x@2 = Vec 4 Bool
    }
 in (x : x@2)
-> let { x@3 = ecEq x@2 (PEqWord 4) x (bvNat 4 0)
    }
 in EqTrue (==> x@3 x@3)

Stack trace:
"prove_print" (<stdin>:1:1-1:12):
prove: 1 unsolved subgoal(s)
Unfinished: 1 goals remaining

Is there any way to get at the other subgoals?

@robdockins
Copy link
Contributor

After z3 finishes the first goal, I think you should then be able to work on the second, e.g. with another call to z3.

@msaaltink
Copy link
Contributor Author

Yes, this works. Very unexpected, though, to me and the others I mentioned it to.

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