val equiv (p q:vprop) : prop
let equiv (p q:vprop) : prop = Mem.equiv (hp_of p) (hp_of q) /\ True
val equiv (p q:vprop) : prop
let equiv (p q: vprop) : prop =
Mem.equiv (hp_of p) (hp_of q) /\ True
Steel.Effect.Common.fst.checked
Steel.Semantics.Instantiate.fsti.checked Steel.Semantics.Hoare.MST.fst.checked Steel.Memory.fsti.checked prims.fst.checked FStar.PropositionalExtensionality.fst.checked FStar.Pervasives.Native.fst.checked FStar.Pervasives.fsti.checked FStar.FunctionalExtensionality.fsti.checked FStar.Classical.fsti.checked
Steel.Effect.Common.fst
Steel.Effect.Common.vprop Prims.l_and Steel.Memory.equiv Steel.Effect.Common.hp_of Prims.l_True Prims.prop
(*
   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.Common
module Sem = Steel.Semantics.Hoare.MST
module Mem = Steel.Memory
open Steel.Semantics.Instantiate
module FExt = FStar.FunctionalExtensionality

let h_exists #a f = VUnit ({hp = Mem.h_exists (fun x -> hp_of (f x)); t = unit; sel = fun _ -> ()})

let can_be_split (p q:vprop) : prop = Mem.slimp (hp_of p) (hp_of q)

let reveal_can_be_split () = ()

let can_be_split_interp r r' h = ()

let can_be_split_trans p q r = ()
let can_be_split_star_l p q = ()
let can_be_split_star_r p q = ()
let can_be_split_refl p = ()

let can_be_split_congr_l p q r =
  Classical.forall_intro (interp_star (hp_of p) (hp_of r));
  Classical.forall_intro (interp_star (hp_of q) (hp_of r))

let can_be_split_congr_r p q r =
  Classical.forall_intro (interp_star (hp_of r) (hp_of p));
  Classical.forall_intro (interp_star (hp_of r) (hp_of q))
val equiv (p q:vprop) : prop
p: Steel.Effect.Common.vprop -> q: Steel.Effect.Common.vprop -> Prims.prop