From 1741057ebb734d97acc4edfc84dcc2d62b8789f1 Mon Sep 17 00:00:00 2001 From: Aria Shrimpton Date: Sat, 24 Feb 2024 14:04:49 +0000 Subject: rename container operations and fix some primrose fuckery --- src/tests/aoc-2021-09/src/types.pr.rs | 4 ---- src/tests/example_stack/src/types.pr.rs | 2 +- src/tests/prime_sieve/src/types.pr.rs | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) (limited to 'src/tests') 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 { - \c <: (Stack) -> (forall \x -> (forall \j -> ((equal? (pop ((push ((push c) x)) j))) x))) -} - property unique { \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 { - \c <: (Stack) -> (forall \x -> ((equal? (pop ((push c) x))) x)) + \c <: (Stack) -> (forall \x -> ((equal? (op-pop ((op-push c) x))) x)) } type StackCon = {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 { - \c <: (Stack) -> (forall \x -> ((equal? (pop ((push c) x))) x)) + \c <: (Stack) -> (forall \x -> ((equal? (op-pop ((op-push c) x))) x)) } property ascending { -- cgit v1.2.3