Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Monitor
Incidents
Service Desk
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
Abhishek Anand
Iris
Commits
3bc1f853
Commit
3bc1f853
authored
7 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Short proof of `big_sepL_delete`.
This is a substitute for !136.
parent
658c756f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/base_logic/big_op.v
+13
-0
13 additions, 0 deletions
theories/base_logic/big_op.v
with
13 additions
and
0 deletions
theories/base_logic/big_op.v
+
13
−
0
View file @
3bc1f853
...
...
@@ -149,6 +149,19 @@ Section list.
by
rewrite
persistently_impl_wand
persistently_elim
wand_elim_l
.
Qed
.
Lemma
big_sepL_delete
Φ
l
i
x
:
l
!!
i
=
Some
x
→
([
∗
list
]
k
↦
y
∈
l
,
Φ
k
y
)
⊣⊢
Φ
i
x
∗
[
∗
list
]
k
↦
y
∈
l
,
⌜
k
≠
i
⌝
→
Φ
k
y
.
Proof
.
intros
.
rewrite
-
(
take_drop_middle
l
i
x
)
//
!
big_sepL_app
/=
Nat
.
add_0_r
.
rewrite
take_length_le
;
last
eauto
using
lookup_lt_Some
,
Nat
.
lt_le_incl
.
rewrite
pure_False
;
last
by
intros
[]
.
rewrite
False_impl
left_id
.
rewrite
assoc
-!
(
comm
_
(
Φ
_
_))
-
assoc
.
do
2
f_equiv
.
-
apply
big_sepL_proper
=>
k
y
Hk
.
apply
lookup_lt_Some
in
Hk
.
rewrite
take_length
in
Hk
.
by
rewrite
pure_True
?True_impl
;
last
lia
.
-
apply
big_sepL_proper
=>
k
y
_
.
by
rewrite
pure_True
?True_impl
;
last
lia
.
Qed
.
Global
Instance
big_sepL_nil_plain
Φ
:
Plain
([
∗
list
]
k
↦
x
∈
[],
Φ
k
x
)
.
Proof
.
simpl
;
apply
_
.
Qed
.
Global
Instance
big_sepL_plain
Φ
l
:
...
...
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