Section protocols.
Context {state : Type}.
Parameter protocol_piece : share -> val -> state -> (state -> state -> Prop) ->
((state -> Z -> mpred) * (state -> Z -> mpred)) -> mpred.
Definition protocol_R := protocol_piece Share.bot.
Definition protocol_W := protocol_piece gsh2.
Context (ord : state -> state -> Prop) `{RelationClasses.PreOrder _ ord}
(Tread Tfull : state -> Z -> mpred).
Notation T := (Tread, Tfull).

Axiom make_protocol : forall {P : protocol Tread Tfull} l v s, repable_signed v ->
data_at Tsh tint (vint v) l * |> Tfull s v |-- |==> protocol_W l s ord T.