Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lambda-rust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Service Desk
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
Iris
lambda-rust
Commits
02a42740
Commit
02a42740
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
show that bor_shorten can be derived
parent
766776c4
No related branches found
No related tags found
No related merge requests found
Pipeline
#28857
passed
4 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/lifetime/lifetime.v
+8
-0
8 additions, 0 deletions
theories/lifetime/lifetime.v
theories/lifetime/lifetime_sig.v
+2
-0
2 additions, 0 deletions
theories/lifetime/lifetime_sig.v
with
10 additions
and
0 deletions
theories/lifetime/lifetime.v
+
8
−
0
View file @
02a42740
...
...
@@ -26,6 +26,14 @@ Section derived.
Context
`{
!
invG
Σ
,
!
lftG
Σ
}
.
Implicit
Types
κ
:
lft
.
(* Deriving this just to prove that it can be derived.
(It is in the signature only for code sharing reasons.*)
Lemma
bor_shorten_
κ
κ'
P
:
κ
⊑
κ'
-∗
&
{
κ'
}
P
-∗
&
{
κ
}
P
.
Proof
.
iIntros
"#Hκκ'"
.
rewrite
!
bor_unfold_idx
.
iDestruct
1
as
(
i
)
"[#? ?]"
.
iExists
i
.
iFrame
.
by
iApply
idx_bor_shorten
.
Qed
.
Lemma
bor_acc_atomic_cons
E
κ
P
:
↑
lftN
⊆
E
→
lft_ctx
-∗
&
{
κ
}
P
=
{
E
,
E
∖↑
lftN
}
=∗
...
...
This diff is collapsed.
Click to expand it.
theories/lifetime/lifetime_sig.v
+
2
−
0
View file @
02a42740
...
...
@@ -102,6 +102,8 @@ Module Type lifetime_sig.
Parameter
bor_fake
:
∀
E
κ
P
,
↑
lftN
⊆
E
→
lft_ctx
-∗
[
†
κ
]
=
{
E
}
=∗
&
{
κ
}
P
.
(* This is in the signature only to share the derived proof between the
model and the outside. *)
Parameter
bor_shorten
:
∀
κ
κ'
P
,
κ
⊑
κ'
-∗
&
{
κ'
}
P
-∗
&
{
κ
}
P
.
Parameter
bor_sep
:
∀
E
κ
P
Q
,
...
...
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