Section CoreLanguageDry.
Context {Sem : Semantics}
{SemAx : SemAxioms}.
Existing Instance OrdinalPool.OrdinalThreadPool.
Existing Instance DryHybridMachine.dryResources.
(** Take an instance of the Dry Machine *)
Existing Instance DryHybridMachine.DryHybridMachineSig.
(** Lemmas about containsThread and coresteps *)
(** *** Lemmas about invariants preserved by coresteps*)

(** [mem_compatible] is preserved by coresteps*)
Lemma corestep_compatible:
forall (tp : t)  (m m' : mem) i ev
(pf : containsThread tp i) (c c': semC)
(Hinv: invariant tp)
(Hcode: getThreadC pf = Krun c)
(Hcompatible : mem_compatible tp m)
(Hcorestep: ev_step semSem c (restrPermMap (DryHybridMachine.compat_th _ _ Hcompatible pf).1) ev c' m'),
mem_compatible (updThread pf (Krun c') (getCurPerm m', (getThreadR pf).2)) m'.