Local Open Scope logic.
(***************************************  Load/store lemmas about mapsto: semax_load_37 semax_load_37' semax_cast_load_37 semax_cast_load_37'  ***************************************)
Definition semax_load_37 := @semax_load.
Definition semax_cast_load_37 := @semax_cast_load.
(***************************************  Load/store lemmas about mapsto: semax_load_nth_ram. semax_cast_load_nth_ram. semax_store_nth_ram.  ***************************************)

Lemma semax_load_nth_ram :
forall {Espec: OracleKind}{cs: compspecs} n (Delta: tycontext) sh id P Q R e1 Pre t1 t2 v p,
typeof e1 = t1 ->
typeof_temp Delta id = Some t2 ->
is_neutral_cast (typeof e1) t2 = true ->
ENTAIL Delta, PROPx P (LOCALx Q (SEPx R)) |--
local (`(eq p) (eval_lvalue e1)) ->
nth_error R n = Some Pre ->
readable_share sh ->
Pre |-- mapsto sh t1 p v * TT ->
ENTAIL Delta, PROPx P (LOCALx Q (SEPx R)) |--
(tc_lvalue Delta e1) && local (`(tc_val t1 v)) ->
@semax cs Espec Delta (|> PROPx P (LOCALx Q (SEPx R)))
(Sset id e1)
(normal_ret_assert
(PROPx P
(LOCALx (temp id v :: remove_localdef_temp id Q)
(SEPx R)))).