val equiv_star_emp_r (p: vprop) : Lemma ((p `star` emp) `equiv` p)
let equiv_star_emp_r (p:vprop)
  : Lemma ((p `star` emp) `equiv` p)
  = cm_identity p;
    assert ((emp `star` p) `equiv` p);
    star_commutative p emp;
    equiv_trans (p `star` emp) (emp `star` p) p
val equiv_star_emp_r (p: vprop) : Lemma ((p `star` emp) `equiv` p)
let equiv_star_emp_r (p: vprop) : Lemma ((p `star` emp) `equiv` p) =
cm_identity p;
assert ((emp `star` p) `equiv` p);
star_commutative p emp;
equiv_trans (p `star` emp) (emp `star` p) p
Steel.ST.Effect.AtomicAndGhost.fst.checked
Steel.ST.Effect.fst.checked Steel.Memory.fsti.checked Steel.Effect.Common.fsti.checked Steel.Effect.Atomic.fst.checked Steel.Effect.fsti.checked prims.fst.checked FStar.Tactics.fst.checked FStar.Set.fsti.checked FStar.Pervasives.fsti.checked FStar.Monotonic.Pure.fst.checked FStar.Classical.Sugar.fsti.checked
Steel.ST.Effect.AtomicAndGhost.fst
Steel.Effect.Common.vprop Steel.Effect.Common.equiv_trans Steel.Effect.Common.star Steel.Effect.Common.emp Prims.unit Steel.Effect.Common.star_commutative Prims._assert Steel.Effect.Common.equiv Steel.Effect.Common.cm_identity Prims.l_True Prims.squash Prims.Nil FStar.Pervasives.pattern
(*
   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.ST.Effect.AtomicAndGhost
friend Steel.Effect.Atomic
friend Steel.ST.Effect
module C = Steel.Effect.Common
open Steel.Memory
module T = FStar.Tactics
module STF = Steel.ST.Effect
module SEA = Steel.Effect.Atomic
open Steel.Effect.Atomic

/// This module defines atomic and ghost variants of the Steel effect

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

let repr (a:Type u#a)
         (already_framed:bool)
         (opened_invariants:inames)
         (g:observability)
         (pre:pre_t)
         (post:post_t a)
         (req:Type0)
         (ens:a -> Type0)
  : Type u#(max a 2)
  = SEA.repr a already_framed opened_invariants g pre post
             (fun _ -> req)
             (fun _ x _ -> ens x)



let equiv_star_emp_r (p:vprop)
val equiv_star_emp_r (p: vprop) : Lemma ((p `star` emp) `equiv` p)
p: Steel.Effect.Common.vprop
  -> FStar.Pervasives.Lemma
    (ensures Steel.Effect.Common.equiv (Steel.Effect.Common.star p Steel.Effect.Common.emp) p)