val pts_to_sl (#a:Type)
              (#p:Preorder.preorder a)
              (r:ref a p)
              (f:perm)
              (v:a)
  : slprop u#1
let pts_to_sl (#a:Type) (#p:Preorder.preorder a)
              (r:ref a p)
              (f:perm)
              (v:a)
    = MHR.pts_to_sl r f (U.raise_val v)
val pts_to_sl (#a:Type)
              (#p:Preorder.preorder a)
              (r:ref a p)
              (f:perm)
              (v:a)
  : slprop u#1
let pts_to_sl (#a: Type) (#p: Preorder.preorder a) (r: ref a p) (f: perm) (v: a) =
MHR.pts_to_sl r f (U.raise_val v)
Steel.GhostMonotonicReference.fst.checked
Steel.Memory.fsti.checked Steel.GhostMonotonicHigherReference.fsti.checked Steel.FractionalPermission.fst.checked Steel.Effect.Atomic.fsti.checked Steel.Effect.fsti.checked prims.fst.checked FStar.Universe.fsti.checked FStar.Preorder.fst.checked FStar.Pervasives.fsti.checked FStar.PCM.fst.checked FStar.Ghost.fsti.checked
Steel.GhostMonotonicReference.fst
FStar.Preorder.preorder Steel.GhostMonotonicReference.ref Steel.FractionalPermission.perm Steel.GhostMonotonicHigherReference.pts_to_sl FStar.Universe.raise_t Steel.GhostMonotonicReference.raise_preorder FStar.Universe.raise_val Steel.Memory.slprop
(*
   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.GhostMonotonicReference

open FStar.PCM
open FStar.Ghost
open Steel.FractionalPermission

open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect

module Preorder = FStar.Preorder
module MHR = Steel.GhostMonotonicHigherReference
module U = FStar.Universe

let raise_preorder (#a:Type0) (p:Preorder.preorder a)
  : Preorder.preorder (U.raise_t a)
  = fun (x0 x1:U.raise_t a) ->
       p (U.downgrade_val x0) (U.downgrade_val x1)

let ref a p = MHR.ref (FStar.Universe.raise_t a) (raise_preorder p)

/// The standard points to separation logic predicate
let pts_to_sl (#a:Type) (#p:Preorder.preorder a)
              (r:ref a p)
              (f:perm)
val pts_to_sl (#a:Type)
              (#p:Preorder.preorder a)
              (r:ref a p)
              (f:perm)
              (v:a)
  : slprop u#1
r: Steel.GhostMonotonicReference.ref a p -> f: Steel.FractionalPermission.perm -> v: a
  -> Steel.Memory.slprop