-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from cvc5/opaque
This is key for supporting cvc5-style skolems.
- Loading branch information
Showing
13 changed files
with
241 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
|
||
|
||
(declare-const = (-> (! Type :var T :implicit) T T Bool)) | ||
|
||
(declare-const or (-> Bool Bool Bool) :right-assoc-nil false) | ||
(declare-const and (-> Bool Bool Bool) :right-assoc-nil true) | ||
(declare-const not (-> Bool Bool)) | ||
|
||
(declare-sort Array 2) | ||
(declare-sort Int 0) | ||
|
||
(declare-const select (-> (Array Int Int) Int Int)) | ||
|
||
|
||
(declare-const @array_deq_diff | ||
(-> | ||
(! (Array Int Int) :opaque) | ||
(! (Array Int Int) :opaque) | ||
Int | ||
) | ||
) | ||
|
||
|
||
(declare-rule array-ext | ||
((a (Array Int Int)) (b (Array Int Int))) | ||
:premises ((not (= a b))) | ||
:args () | ||
:conclusion (not (= (select a (@array_deq_diff a b)) (select b (@array_deq_diff a b)))) | ||
) | ||
|
||
(declare-const n (Array Int Int)) | ||
(declare-const m (Array Int Int)) | ||
(declare-const v Int) | ||
|
||
(assume a1 (not (= n m))) | ||
(step a2 (not (= (select n (@array_deq_diff n m)) (select m (@array_deq_diff n m)))) :rule array-ext :premises (a1)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
|
||
|
||
(declare-const = (-> (! Type :var T :implicit) T T Bool)) | ||
|
||
(declare-const or (-> Bool Bool Bool) :right-assoc-nil false) | ||
(declare-const and (-> Bool Bool Bool) :right-assoc-nil true) | ||
(declare-const not (-> Bool Bool)) | ||
|
||
(declare-sort Array 2) | ||
(declare-sort Int 0) | ||
|
||
(declare-const select (-> (Array Int Int) Int Int)) | ||
|
||
|
||
(declare-const @array_deq_diff | ||
(-> | ||
(! Type :implicit :var T) | ||
(! Type :implicit :var U) | ||
(! (Array T U) :opaque) | ||
(! (Array T U) :opaque) | ||
T | ||
) | ||
) | ||
|
||
|
||
(declare-rule array-ext | ||
((a (Array Int Int)) (b (Array Int Int))) | ||
:premises ((not (= a b))) | ||
:args () | ||
:conclusion (not (= (select a (@array_deq_diff a b)) (select b (@array_deq_diff a b)))) | ||
) | ||
|
||
(declare-const n (Array Int Int)) | ||
(declare-const m (Array Int Int)) | ||
(declare-const v Int) | ||
|
||
(assume a1 (not (= n m))) | ||
(step a2 (not (= (select n (@array_deq_diff n m)) (select m (@array_deq_diff n m)))) :rule array-ext :premises (a1)) |
Oops, something went wrong.