Instance Sem : Semantics := ClightSemanticsForMachines.Clight_newSem ge.Instance JR : Resources := LocksAndResources.Instance JTP : ThreadPool.ThreadPool := OrdinalPool.OrdinalThreadPool.Instance JMS : MachineSig := Concur.JuicyMachineShell.Instance DilMem : DiluteMem := HybridMachineSig.HybridCoarseMachine.DilMem.Instance scheduler : Scheduler := HybridCoarseMachine.scheduler.Instance JuicyMachine : HybridMachine := HybridCoarseMachine.HybridCoarseMachine.Definition jstate := jstate ge.Instance DR : Resources := DryHybridMachine.dryResources.Instance DTP : ThreadPool.ThreadPool := OrdinalPool.OrdinalThreadPool.Instance DMS : MachineSig := DryHybridMachine.DryHybridMachineSig.Instance DryMachine : HybridMachine := HybridCoarseMachine.HybridCoarseMachine.Definition dstate := ThreadPool.t
                         (ThreadPool := OrdinalPool.OrdinalThreadPool)
                         (*
                         @t dryResources DSem (@OrdinalPool.OrdinalThreadPool dryResources DSem)
                          *).Definition dmachine_state:= MachState(ThreadPool := OrdinalPool.OrdinalThreadPool).Definition match_st:= match_st'.

Lemma contains_iff_num: forall (js : jstate) (ds : dstate) (Hcnt: forall i, containsThread js i <-> containsThread ds i), OrdinalPool.num_threads js = OrdinalPool.num_threads ds.