No commit message

No commit message
parent 687aa49a
......@@ -21,4 +21,31 @@ theory List
end
theory Eq
logic eq('a, 'a)
end
theory Array
use Eq
type ('a,'b) t
logic select (('a,'b) t, 'a) : 'b
logic store (('a,'b) t, 'a, 'b) : ('a,'b) t
axiom Select_eq :
forall m : ('a,'b) t. forall a1,a2 : 'a. forall b : 'b.
Eq.eq(a1, a2) -> Eq.eq(select(store(m,a1,b),a2),b)
axiom Select_neq :
forall m : ('a,'b) t. forall a1,a2 : 'a. forall b : 'b.
not Eq.eq(a1, a2) -> Eq.eq(select(store(m,a1,b),a2), select(m,a2))
logic const('b) : ('a,'b) t
axiom Const : forall b:'b. forall a:'a. Eq.eq(select(const(b),a), b)
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment