Definition addFP {tp} (fp: fpool tp) (f': memren) vf arg pmap :
    fpool (addThread tp vf arg pmap).

(* Specifications: *)
Lemma gsoAddFP : forall tp fp f vf arg pmap i (cnti: containsThread tp i) (cnti': containsThread (addThread tp vf arg pmap) i), addFP fp f cnti' = fp _ cnti.
Lemma gssAddFP: forall tp fp f vf arg pmap j (Heq: j = latestThread tp) (cnt': containsThread (addThread tp vf arg pmap) j), addFP fp f cnt' = f.
Lemma sim_internal : sim_internal_def.
Lemma strong_tsim_step: forall tp1 tp2 tp1' m1 m2 m1' j f fg (pf1j: containsThread tp1 j) (pf1j': containsThread tp1' j) (Hcomp1: mem_compatible tp1 m1) (Hcomp1': mem_compatible tp1' m1') (Hinv: invariant tp1') (Hfg: forall b1 b2, fg b1 = Some b2 -> b1 = b2) (Hge_wd: ge_wd fg the_ge) (Hge_incr: ren_incr fg f) (Hvalid_mem: valid_mem m1) (Hsim: strong_tsim f pf1j pf1j' Hcomp1 Hcomp1') (Hstep: internal_step pf1j Hcomp1 tp2 m2), exists tp2' m2' f', internal_step pf1j' Hcomp1' tp2' m2' /\ ren_incr f f' /\ ren_separated f f' m1 m1' /\ ((exists p, ((Mem.nextblock m2 = Mem.nextblock m1 + p)%positive /\ (Mem.nextblock m2' = Mem.nextblock m1' + p)%positive)) \/ ((Mem.nextblock m2 = Mem.nextblock m1) /\ (Mem.nextblock m2' = Mem.nextblock m1'))) /\ (forall b, Mem.valid_block m2' b -> ~ Mem.valid_block m1' b -> let bz := ((Zpos b) - ((Zpos (Mem.nextblock m1')) - (Zpos (Mem.nextblock m1))))%Z in f' (Z.to_pos bz) = Some b /\ f (Z.to_pos bz) = None) /\ (exists (pf2j: containsThread tp2 j) (pf2j': containsThread tp2' j) (Hcomp2: mem_compatible tp2 m2) (Hcomp2': mem_compatible tp2' m2'), strong_tsim f' pf2j pf2j' Hcomp2 Hcomp2') /\ (Mem.nextblock m1 = Mem.nextblock m1' -> (forall b1 b2 : block, f b1 = Some b2 -> b1 = b2) -> forall b1 b2 : block, f' b1 = Some b2 -> b1 = b2).
Lemma sim_suspend : sim_suspend_def.
Lemma store_compatible: forall tpf mf pmap chunk b ofs v mf' (Hlt: permMapLt pmap (getMaxPerm mf)) (Hcomp: mem_compatible tpf mf) (Hstore: Mem.store chunk (restrPermMap Hlt) b ofs v = Some mf'), mem_compatible tpf mf'.
Lemma sim_external: sim_external_def.