diff options
author | Matthew Sotoudeh <matthew@masot.net> | 2023-01-04 22:58:17 -0800 |
---|---|---|
committer | Matthew Sotoudeh <matthew@masot.net> | 2023-01-04 22:58:17 -0800 |
commit | a44921528f872dd47f819c28cb6fb818e36dff7d (patch) | |
tree | 0a4a5e9fd8260e1b0212dc7d4d174d55f34b6422 | |
parent | dc30966898c9b098d40d71cf57df9bc97e572b25 (diff) |
minor
-rw-r--r-- | README.md | 5 | ||||
-rw-r--r-- | core_pseudo_claims.py | 4 | ||||
-rw-r--r-- | examples/readme.z3fc | 4 |
3 files changed, 7 insertions, 6 deletions
@@ -109,13 +109,14 @@ pseudo-claim: forall x. forall y. (x <= y) or (y <= x); -take x; +take any x; + [x <= x] (x <= x) or (x <= x) by [<= relates all]; [reflexivity] - (x <= x) + forall x. (x <= x) by {Generalize}, [x <= x]; ``` (Note that existential quantification can be introduced by Vampire directly.) diff --git a/core_pseudo_claims.py b/core_pseudo_claims.py index c6fbd48..c5303c2 100644 --- a/core_pseudo_claims.py +++ b/core_pseudo_claims.py @@ -40,9 +40,9 @@ class GeneralizeClaim(Claim): # We can only universally quantify over a variable that is older # than any dependent var free in the expression, and older than any # var free in an assumption. - younger_than = min(assumption_vars + younger_than = max(assumption_vars | (self.checker.dependent_vars & var_ids) - | {self.checker.uid}) + | {-1}) for var_id in sorted(var_ids): if var_id <= younger_than: continue diff --git a/examples/readme.z3fc b/examples/readme.z3fc index c6601e1..ee6a481 100644 --- a/examples/readme.z3fc +++ b/examples/readme.z3fc @@ -38,14 +38,14 @@ take 1 s.t. forall x. forall y. (x <= y) or (y <= x); -take x; +take any x; [x <= x] (x <= x) or (x <= x) by [<= relates all]; [reflexivity] - (x <= x) + forall x. (x <= x) by {Generalize}, [x <= x]; # Real Arithmetic Extension |