val pts_to_raw (#a: Type) (r: ref a) (p: perm) (v: erased a) : vprop
let pts_to_raw (#a:Type) (r:ref a) (p:perm) (v:erased a) : vprop =
  to_vprop (Mem.pts_to r (Some (Ghost.reveal v, p)))
val pts_to_raw (#a: Type) (r: ref a) (p: perm) (v: erased a) : vprop
let pts_to_raw (#a: Type) (r: ref a) (p: perm) (v: erased a) : vprop =
to_vprop (Mem.pts_to r (Some (Ghost.reveal v, p)))
Steel.HigherReference.fst.checked
Steel.PCMReference.fsti.checked Steel.PCMFrac.fst.checked Steel.Memory.fsti.checked Steel.Effect.Atomic.fsti.checked Steel.Effect.fsti.checked prims.fst.checked FStar.Real.fsti.checked FStar.Pervasives.Native.fst.checked FStar.Pervasives.fsti.checked FStar.PCM.fst.checked FStar.NMSTTotal.fst.checked FStar.Ghost.fsti.checked FStar.Classical.fsti.checked FStar.Calc.fsti.checked
Steel.HigherReference.fst
Steel.HigherReference.ref Steel.FractionalPermission.perm FStar.Ghost.erased Steel.Effect.Common.to_vprop Steel.Memory.pts_to Steel.PCMFrac.fractional Steel.PCMFrac.pcm_frac FStar.Pervasives.Native.Some FStar.Pervasives.Native.tuple2 FStar.Pervasives.Native.Mktuple2 FStar.Ghost.reveal Steel.Effect.Common.vprop
(*
   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.HigherReference
open FStar.Ghost
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open FStar.PCM
open Steel.PCMFrac
open FStar.Real
module RP = Steel.PCMReference

#set-options "--ide_id_info_off"

module Mem = Steel.Memory

let ref a = Mem.ref (fractional a) pcm_frac
let null #a = Mem.null #(fractional a) #pcm_frac
let is_null #a r = Mem.is_null #(fractional a) #pcm_frac r
let perm_ok p : prop = (p.v <=. one == true) /\ True
let pts_to_raw_sl (#a:Type) (r:ref a) (p:perm) (v:erased a) : slprop =
  Mem.pts_to r (Some (Ghost.reveal v, p))
val pts_to_raw (#a: Type) (r: ref a) (p: perm) (v: erased a) : vprop
r: Steel.HigherReference.ref a -> p: Steel.FractionalPermission.perm -> v: FStar.Ghost.erased a
  -> Steel.Effect.Common.vprop