End LIST.
Hint Rewrite @lseg_nil_eq : norm.
Hint Rewrite @lseg_eq using reflexivity: norm.
Hint Resolve @lseg_local_facts : saturate_local.
Ltac resolve_lseg_valid_pointer :=
match goal with
| |- ?Q |-- valid_pointer ?p =>
match Q with context [lseg ?A ?B ?C p ?q] =>
repeat rewrite <- sepcon_assoc;
pull_right (lseg A B C p q);
apply lseg_valid_pointer; [auto | reflexivity | ];
auto 50 with valid_pointer
end
end.
Hint Extern 10 (_ |-- valid_pointer _) =>
resolve_lseg_valid_pointer : valid_pointer.

(* Specifications: *)
Lemma list_cell_local_facts:
forall {cs: compspecs} {list_structid list_link: ident}{list_token}
(ls: listspec list_structid list_link list_token) sh v p,
list_cell ls sh v p |-- !! field_compatible list_struct nil p.