Section Reference.
Context {P : Ghost}.
Definition ghost_reference g a := own(RA := ref_PCM P) g (None, Some a) NoneP.
Definition ghost_part g sh a := own(RA := ref_PCM P) g (Some (sh, a), None) NoneP.
Definition ghost_part_ref g sh a r :=
own(RA := ref_PCM P) g (Some (sh, a), Some r) NoneP.

Lemma ref_add : forall g sh a r b a' r' pp
(Ha : join a b a') (Hr : join r b r') (Hb : forall c, join_sub a c -> join_sub c r -> joins c b),
own(RA := ref_PCM P) g (Some (sh, a), Some r) pp |-- |==>
own(RA := ref_PCM P) g (Some (sh, a'), Some r') pp.