Skip to content
Snippets Groups Projects
Commit eced4fb8 authored by Daniël Louwrink's avatar Daniël Louwrink
Browse files

extract minimal coreP example

parent d00095e5
No related branches found
No related tags found
1 merge request!9Copying
...@@ -23,11 +23,21 @@ Section copying. ...@@ -23,11 +23,21 @@ Section copying.
copy A <: A. copy A <: A.
Proof. by iIntros (v) "!> #H". Qed. Proof. by iIntros (v) "!> #H". Qed.
Lemma coreP_desired_lemma (P : iProp Σ) :
(P -∗ P) -∗ coreP P -∗ P.
Proof.
iIntros "HP Hcore".
Admitted.
Lemma lty_le_copy_minus A : Lemma lty_le_copy_minus A :
copyable A -∗ copy- A <: A. copyable A -∗ copy- A <: A.
Proof. Proof.
iIntros "#HA". iIntros (v) "!> #Hv". iIntros "#HA". iIntros (v) "!> #Hv".
Admitted. iSpecialize ("HA" $! v).
iApply coreP_desired_lemma.
- iModIntro. iApply "HA".
- iApply "Hv".
Qed.
(* Copyability of types *) (* Copyability of types *)
Lemma lty_unit_copyable : Lemma lty_unit_copyable :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment