Fixpoint freelist_no_overlap (l: list (block * Z * Z)) : Prop :=
match l with
| nil => True
| (b, lo, hi) :: l' =>
freelist_no_overlap l' /\
(forall b' lo' hi', In (b', lo', hi') l' ->
b' <> b \/ hi' <= lo \/ hi <= lo')
end.

Lemma free_list_right_inject:
forall j m1 l m2 m2',
Mem.inject j m1 m2 ->
Mem.free_list m2 l = Some m2' ->
(forall b1 b2 delta lo hi ofs k p,
j b1 = Some(b2, delta) -> In (b2, lo, hi) l ->
Mem.perm m1 b1 ofs k p -> lo <= ofs + delta < hi -> False) ->
Mem.inject j m1 m2'.