diff options
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> { |