Definition fixup_splitting
(a:address -> Share.t) (z: address -> option (rshare * kind)) : address -> option (rshare * kind) :=
fun l =>
match z l with
| Some (sh, k) =>
match dec_readable (a l) with
| left p => Some (readable_part p,  k)
| right _ => None
end
| None => None
end.
Definition share_of (x: option (rshare * kind)) : Share.t :=
match x with Some (p,_) => proj1_sig p | None => Share.bot end.
Definition Join_pk := (Join_lower (Join_prod rshare _ kind (Join_equiv _))).

Lemma glb_Rsh_bot_unreadable:
forall a, Share.glb Share.Rsh a = Share.bot -> ~readable_share a.