val req_to_act_req (#pre: vprop) (req: req_t pre) : mprop (hp_of pre)
let req_to_act_req (#pre:vprop) (req:req_t pre) : mprop (hp_of pre) =
  fun m ->
    rmem_depends_only_on pre;
    interp (hp_of pre) m /\ req (mk_rmem pre m)
val req_to_act_req (#pre: vprop) (req: req_t pre) : mprop (hp_of pre)
let req_to_act_req (#pre: vprop) (req: req_t pre) : mprop (hp_of pre) =
fun m ->
  rmem_depends_only_on pre;
  interp (hp_of pre) m /\ req (mk_rmem pre m)
Steel.Effect.Atomic.fst.checked
Steel.Semantics.Hoare.MST.fst.checked Steel.Memory.fsti.checked Steel.Effect.fst.checked Steel.Effect.fst.checked prims.fst.checked FStar.Pervasives.Native.fst.checked FStar.Pervasives.fsti.checked FStar.NMSTTotal.fst.checked FStar.Monotonic.Pure.fst.checked FStar.Ghost.fsti.checked FStar.Classical.fsti.checked
Steel.Effect.Atomic.fst
Steel.Effect.Common.vprop Steel.Effect.Common.req_t Steel.Memory.mem Prims.l_and Steel.Memory.interp Steel.Effect.Common.hp_of Steel.Effect.Common.mk_rmem Prims.unit Steel.Effect.rmem_depends_only_on Prims.prop Steel.Memory.mprop
(*
   Copyright 2020 Microsoft Research

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*)

module Steel.Effect.Atomic

open Steel.Effect
friend Steel.Effect

#set-options "--warn_error -330"  //turn off the experimental feature warning

let _ : squash (forall (pre:pre_t) (m0:mem{interp (hp_of pre) m0}) (m1:mem{disjoint m0 m1}).
  mk_rmem pre m0 == mk_rmem pre (join m0 m1)) = Classical.forall_intro rmem_depends_only_on
val req_to_act_req (#pre: vprop) (req: req_t pre) : mprop (hp_of pre)
req: Steel.Effect.Common.req_t pre -> Steel.Memory.mprop (Steel.Effect.Common.hp_of pre)