Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paolo G. Giarrusso
iris
Commits
42cf780a
Commit
42cf780a
authored
8 years ago
by
Jacques-Henri Jourdan
Browse files
Options
Downloads
Patches
Plain Diff
Stronger splitting rule for boxes.
parent
26ae0c67
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
base_logic/lib/boxes.v
+7
-5
7 additions, 5 deletions
base_logic/lib/boxes.v
with
7 additions
and
5 deletions
base_logic/lib/boxes.v
+
7
−
5
View file @
42cf780a
...
...
@@ -233,22 +233,24 @@ Qed.
Lemma
box_split
E
f
P
Q1
Q2
γ
b
:
↑
N
⊆
E
→
f
!!
γ
=
Some
b
→
slice
N
γ
(
Q1
∗
Q2
)
-∗
▷
box
N
f
P
=
{
E
}
=∗
∃
γ1
γ2
,
⌜
delete
γ
f
!!
γ1
=
None
⌝
∗
⌜
delete
γ
f
!!
γ2
=
None
⌝
∗
⌜
delete
γ
f
!!
γ1
=
None
⌝
∗
⌜
delete
γ
f
!!
γ2
=
None
⌝
∗
⌜
γ1
≠
γ2
⌝
∗
slice
N
γ1
Q1
∗
slice
N
γ2
Q2
∗
▷
box
N
(
<
[
γ2
:=
b
]
>
(
<
[
γ1
:=
b
]
>
(
delete
γ
f
)))
P
.
Proof
.
iIntros
(??)
"#Hslice Hbox"
.
destruct
b
.
-
iMod
(
box_delete_full
with
"Hslice Hbox"
)
as
(
P'
)
"([HQ1 HQ2] & Heq & Hbox)"
;
try
done
.
iMod
(
box_insert_full
Q1
with
"HQ1 Hbox"
)
as
(
γ1
)
"(% & #Hslice1 & Hbox)"
.
done
.
iMod
(
box_insert_full
Q2
with
"HQ2 Hbox"
)
as
(
γ2
)
"(% & #Hslice2 & Hbox)"
.
done
.
iExists
γ1
,
γ2
.
iFrame
"%#"
.
iModIntro
.
iSplit
.
{
iPureIntro
.
by
eapply
lookup_insert_None
.
}
iExists
γ1
,
γ2
.
iFrame
"%#"
.
iModIntro
.
iSplit
;
last
iSplit
;
try
iPureIntro
.
{
by
eapply
lookup_insert_None
.
}
{
by
apply
(
lookup_insert_None
(
delete
γ
f
)
γ1
γ2
true
)
.
}
iNext
.
eapply
internal_eq_rewrite_contractive
;
[
by
apply
_|
|
by
eauto
]
.
iNext
.
iRewrite
"Heq"
.
iPureIntro
.
rewrite
assoc
.
f_equiv
.
by
rewrite
comm
.
done
.
-
iMod
(
box_delete_empty
with
"Hslice Hbox"
)
as
(
P'
)
"[Heq Hbox]"
;
try
done
.
iMod
(
box_insert_empty
Q1
with
"Hbox"
)
as
(
γ1
)
"(% & #Hslice1 & Hbox)"
.
iMod
(
box_insert_empty
Q2
with
"Hbox"
)
as
(
γ2
)
"(% & #Hslice2 & Hbox)"
.
iExists
γ1
,
γ2
.
iFrame
"%#"
.
iModIntro
.
iSplit
.
{
iPureIntro
.
by
eapply
lookup_insert_None
.
}
iExists
γ1
,
γ2
.
iFrame
"%#"
.
iModIntro
.
iSplit
;
last
iSplit
;
try
iPureIntro
.
{
by
eapply
lookup_insert_None
.
}
{
by
apply
(
lookup_insert_None
(
delete
γ
f
)
γ1
γ2
false
)
.
}
iNext
.
eapply
internal_eq_rewrite_contractive
;
[
by
apply
_|
|
by
eauto
]
.
iNext
.
iRewrite
"Heq"
.
iPureIntro
.
rewrite
assoc
.
f_equiv
.
by
rewrite
comm
.
done
.
Qed
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment