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
8e326875
There was a problem fetching the pipeline summary.
Commit
8e326875
authored
8 years ago
by
Jacques-Henri Jourdan
Browse files
Options
Downloads
Patches
Plain Diff
Fake borrows.
parent
74dd1629
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/lifetime.v
+5
-3
5 additions, 3 deletions
theories/lifetime.v
with
5 additions
and
3 deletions
theories/lifetime.v
+
5
−
3
View file @
8e326875
...
...
@@ -146,6 +146,7 @@ Section lft.
(** Basic borrows *)
Axiom
borrow_create
:
∀
`
(
nclose
lftN
⊆
E
)
κ
P
,
▷
P
=
{
E
}
=∗
&
{
κ
}
P
∗
([
†
κ
]
=
{
E
}
=∗
▷
P
)
.
Axiom
borrow_fake
:
∀
`
(
nclose
lftN
⊆
E
)
κ
P
,
[
†
κ
]
=
{
E
}
=∗
&
{
κ
}
P
.
Axiom
borrow_split
:
∀
`
(
nclose
lftN
⊆
E
)
κ
P
Q
,
&
{
κ
}(
P
∗
Q
)
=
{
E
}
=∗
&
{
κ
}
P
∗
&
{
κ
}
Q
.
Axiom
borrow_combine
:
...
...
@@ -158,7 +159,7 @@ Section lft.
∀
`
(
nclose
lftN
⊆
E
)
κ
P
,
&
{
κ
}
P
=
{
E
,
E
∖
lftN
}
=∗
(
▷
P
∗
∀
Q
,
▷
Q
∗
▷
([
†
κ
]
∗
▷
Q
=
{
⊤
∖
nclose
lftN
}
=∗
▷
P
)
=
{
E
∖
lftN
,
E
}
=∗
&
{
κ
}
Q
)
∨
[
†
κ
]
∗
∀
Q
,
|
=
{
E
∖
lftN
,
E
}=>
&
{
κ
}
Q
.
[
†
κ
]
∗
|
=
{
E
∖
lftN
,
E
}=>
True
.
Axiom
borrow_reborrow'
:
∀
`
(
nclose
lftN
⊆
E
)
κ
κ'
P
,
κ
≼
κ'
→
&
{
κ
}
P
=
{
E
}
=∗
&
{
κ'
}
P
∗
([
†
κ'
]
=
{
E
}
=∗
&
{
κ
}
P
)
.
...
...
@@ -233,7 +234,7 @@ Section lft.
Proof
.
iIntros
"Hb"
.
iMod
(
borrow_acc_atomic_strong
with
"Hb"
)
as
"[[HΦ Hclose]|[H† Hclose]]"
.
done
.
-
iDestruct
"HΦ"
as
(
x
)
"HΦ"
.
iExists
x
.
iApply
"Hclose"
.
iIntros
"{$HΦ}!>[_?]"
.
eauto
.
-
iExists
inhabitant
.
iApply
"Hclose"
.
-
iMod
"Hclose"
as
"_"
.
iExists
inhabitant
.
by
iApply
borrow_fake
.
Qed
.
Lemma
borrow_or
`
(
nclose
lftN
⊆
E
)
κ
P
Q
:
...
...
@@ -429,7 +430,8 @@ Section frac_borrow.
iDestruct
"Hκ"
as
(
q''
)
"[_ Hκ]"
.
iDestruct
(
lft_own_dead
with
"[$Hκ $H†]"
)
as
"[]"
.
-
iMod
(
"Hclose"
with
"*"
)
as
"Hφ"
;
last
first
.
iExists
γ
,
κ
.
iSplitR
;
last
by
iApply
(
borrow_share
with
"Hφ"
)
.
iApply
lft_incl_refl
.
iExists
γ
,
κ
.
iSplitR
.
by
iApply
lft_incl_refl
.
iMod
(
borrow_fake
with
"H†"
)
.
done
.
by
iApply
borrow_share
.
Qed
.
Lemma
frac_borrow_atomic_acc
`
(
nclose
lftN
⊆
E
)
κ
φ
:
...
...
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