diff options
author | Aria Shrimpton <me@aria.rip> | 2024-02-24 14:04:49 +0000 |
---|---|---|
committer | Aria Shrimpton <me@aria.rip> | 2024-02-24 14:04:49 +0000 |
commit | 1741057ebb734d97acc4edfc84dcc2d62b8789f1 (patch) | |
tree | 50d85dd40e5f6adb3cacc14097dc8840d2a68bac /src/tests | |
parent | ff9a6addcaa3667f1e8a56c42b821d47d9ef4bbd (diff) |
rename container operations and fix some primrose fuckery
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/aoc-2021-09/src/types.pr.rs | 4 | ||||
-rw-r--r-- | src/tests/example_stack/src/types.pr.rs | 2 | ||||
-rw-r--r-- | src/tests/prime_sieve/src/types.pr.rs | 2 |
3 files changed, 2 insertions, 6 deletions
diff --git a/src/tests/aoc-2021-09/src/types.pr.rs b/src/tests/aoc-2021-09/src/types.pr.rs index 067e89e..8441695 100644 --- a/src/tests/aoc-2021-09/src/types.pr.rs +++ b/src/tests/aoc-2021-09/src/types.pr.rs @@ -1,8 +1,4 @@ /*SPEC* -property fifo<T> { - \c <: (Stack) -> (forall \x -> (forall \j -> ((equal? (pop ((push ((push c) x)) j))) x))) -} - property unique<T> { \c <: (Container) -> ((for-all-elems c) \a -> ((unique-count? a) c)) } diff --git a/src/tests/example_stack/src/types.pr.rs b/src/tests/example_stack/src/types.pr.rs index 525fdee..c45bb34 100644 --- a/src/tests/example_stack/src/types.pr.rs +++ b/src/tests/example_stack/src/types.pr.rs @@ -1,6 +1,6 @@ /*SPEC* property lifo<T> { - \c <: (Stack) -> (forall \x -> ((equal? (pop ((push c) x))) x)) + \c <: (Stack) -> (forall \x -> ((equal? (op-pop ((op-push c) x))) x)) } type StackCon<S> = {c impl (Container, Stack) | (lifo c)} diff --git a/src/tests/prime_sieve/src/types.pr.rs b/src/tests/prime_sieve/src/types.pr.rs index a7f04bf..daa9a82 100644 --- a/src/tests/prime_sieve/src/types.pr.rs +++ b/src/tests/prime_sieve/src/types.pr.rs @@ -1,6 +1,6 @@ /*SPEC* property lifo<T> { - \c <: (Stack) -> (forall \x -> ((equal? (pop ((push c) x))) x)) + \c <: (Stack) -> (forall \x -> ((equal? (op-pop ((op-push c) x))) x)) } property ascending<T> { |