Local Arguments getThreadR {_} {_} {_} _ _ _.
Local Arguments getThreadC {_} {_} {_} _ _ _.
Local Arguments personal_mem : clear implicits.
Local Arguments updThread {_} {_} {_} _ _ _ _ _.
Local Arguments updThreadR {_} {_} {_} _ _ _ _.
Local Arguments updThreadC {_} {_} {_} _ _ _ _.
Local Arguments juicyRestrict : clear implicits.
Set Bullet Behavior "Strict Subproofs".

Lemma resource_fmap_YES_inv f g r sh rsh k pp :
resource_fmap f g r = YES sh rsh k pp ->
exists pp', r = YES sh rsh k pp' /\ pp = preds_fmap f g pp'.