Existing Instance scheduler.
Existing Instance DilMem.

Lemma csafe_restr: forall {Sem} n st m p' Hlt
(Hext: forall c m m' e, at_external (msem semSem) c m = Some e -> at_external (msem semSem) c m' = Some e),
@csafe _ Sem OrdinalPool.OrdinalThreadPool DryHybridMachineSig st (@restrPermMap p' m Hlt) n ->
@csafe _ Sem OrdinalPool.OrdinalThreadPool DryHybridMachineSig st m n.