Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
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
Package Registry
Model registry
Operate
Terraform modules
Monitor
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
Pierre Roux
Iris
Commits
00191203
Commit
00191203
authored
4 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Rename `auth_frag_frag_valid` into `auth_frag_op_valid`.
parent
8e9c3db7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/algebra/auth.v
+10
-10
10 additions, 10 deletions
theories/algebra/auth.v
theories/heap_lang/lib/ticket_lock.v
+3
-3
3 additions, 3 deletions
theories/heap_lang/lib/ticket_lock.v
with
13 additions
and
13 deletions
theories/algebra/auth.v
+
10
−
10
View file @
00191203
...
...
@@ -108,12 +108,12 @@ Section auth.
Proof
.
by
rewrite
view_frag_validN
auth_view_rel_exists
.
Qed
.
(** Also stated as implications, which can be used to force [apply] to use the
lemma in the right direction. *)
Lemma
auth_frag_
frag
_validN
n
b1
b2
:
✓
{
n
}
(
◯
b1
⋅
◯
b2
)
↔
✓
{
n
}
(
b1
⋅
b2
)
.
Lemma
auth_frag_
op
_validN
n
b1
b2
:
✓
{
n
}
(
◯
b1
⋅
◯
b2
)
↔
✓
{
n
}
(
b1
⋅
b2
)
.
Proof
.
apply
auth_frag_validN
.
Qed
.
Lemma
auth_frag_
frag
_validN_1
n
b1
b2
:
✓
{
n
}
(
◯
b1
⋅
◯
b2
)
→
✓
{
n
}
(
b1
⋅
b2
)
.
Proof
.
apply
auth_frag_
frag
_validN
.
Qed
.
Lemma
auth_frag_
frag
_validN_2
n
b1
b2
:
✓
{
n
}
(
b1
⋅
b2
)
→
✓
{
n
}
(
◯
b1
⋅
◯
b2
)
.
Proof
.
apply
auth_frag_
frag
_validN
.
Qed
.
Lemma
auth_frag_
op
_validN_1
n
b1
b2
:
✓
{
n
}
(
◯
b1
⋅
◯
b2
)
→
✓
{
n
}
(
b1
⋅
b2
)
.
Proof
.
apply
auth_frag_
op
_validN
.
Qed
.
Lemma
auth_frag_
op
_validN_2
n
b1
b2
:
✓
{
n
}
(
b1
⋅
b2
)
→
✓
{
n
}
(
◯
b1
⋅
◯
b2
)
.
Proof
.
apply
auth_frag_
op
_validN
.
Qed
.
Lemma
auth_both_frac_validN
n
q
a
b
:
✓
{
n
}
(
●
{
q
}
a
⋅
◯
b
)
↔
✓
{
n
}
q
∧
b
≼
{
n
}
a
∧
✓
{
n
}
a
.
...
...
@@ -138,12 +138,12 @@ Section auth.
Qed
.
(** Also stated as implications, which can be used to force [apply] to use the
lemma in the right direction. *)
Lemma
auth_frag_
frag
_valid
b1
b2
:
✓
(
◯
b1
⋅
◯
b2
)
↔
✓
(
b1
⋅
b2
)
.
Lemma
auth_frag_
op
_valid
b1
b2
:
✓
(
◯
b1
⋅
◯
b2
)
↔
✓
(
b1
⋅
b2
)
.
Proof
.
apply
auth_frag_valid
.
Qed
.
Lemma
auth_frag_
frag
_valid_1
b1
b2
:
✓
(
◯
b1
⋅
◯
b2
)
→
✓
(
b1
⋅
b2
)
.
Proof
.
apply
auth_frag_
frag
_valid
.
Qed
.
Lemma
auth_frag_
frag
_valid_2
b1
b2
:
✓
(
b1
⋅
b2
)
→
✓
(
◯
b1
⋅
◯
b2
)
.
Proof
.
apply
auth_frag_
frag
_valid
.
Qed
.
Lemma
auth_frag_
op
_valid_1
b1
b2
:
✓
(
◯
b1
⋅
◯
b2
)
→
✓
(
b1
⋅
b2
)
.
Proof
.
apply
auth_frag_
op
_valid
.
Qed
.
Lemma
auth_frag_
op
_valid_2
b1
b2
:
✓
(
b1
⋅
b2
)
→
✓
(
◯
b1
⋅
◯
b2
)
.
Proof
.
apply
auth_frag_
op
_valid
.
Qed
.
(** These lemma statements are a bit awkward as we cannot possibly extract a
single witness for [b ≼ a] from validity, we have to make do with one witness
...
...
This diff is collapsed.
Click to expand it.
theories/heap_lang/lib/ticket_lock.v
+
3
−
3
View file @
00191203
...
...
@@ -66,7 +66,7 @@ Section proof.
Lemma
locked_exclusive
(
γ
:
gname
)
:
locked
γ
-∗
locked
γ
-∗
False
.
Proof
.
iDestruct
1
as
(
o1
)
"H1"
.
iDestruct
1
as
(
o2
)
"H2"
.
iDestruct
(
own_valid_2
with
"H1 H2"
)
as
%
[[]
_]
%
auth_frag_
frag
_valid_1
.
iDestruct
(
own_valid_2
with
"H1 H2"
)
as
%
[[]
_]
%
auth_frag_
op
_valid_1
.
Qed
.
Lemma
is_lock_iff
γ
lk
R1
R2
:
...
...
@@ -105,7 +105,7 @@ Section proof.
wp_pures
.
case_bool_decide
;
[|
done
]
.
wp_if
.
iApply
(
"HΦ"
with
"[-]"
)
.
rewrite
/
locked
.
iFrame
.
eauto
.
+
iDestruct
(
own_valid_2
with
"Ht Haown"
)
as
%
[_
?
%
gset_disj_valid_op
]
%
auth_frag_
frag
_valid_1
.
as
%
[_
?
%
gset_disj_valid_op
]
%
auth_frag_
op
_valid_1
.
set_solver
.
-
iModIntro
.
iSplitL
"Hlo Hln Ha"
.
{
iNext
.
iExists
o
,
n
.
by
iFrame
.
}
...
...
@@ -160,7 +160,7 @@ Section proof.
iDestruct
(
own_valid_2
with
"Hauth Hγo"
)
as
%
[[
<-%
Excl_included
%
leibniz_equiv
_]
%
prod_included
_]
%
auth_both_valid_discrete
.
iDestruct
"Haown"
as
"[[Hγo' _]|Haown]"
.
{
iDestruct
(
own_valid_2
with
"Hγo Hγo'"
)
as
%
[[]
?]
%
auth_frag_
frag
_valid_1
.
}
{
iDestruct
(
own_valid_2
with
"Hγo Hγo'"
)
as
%
[[]
?]
%
auth_frag_
op
_valid_1
.
}
iMod
(
own_update_2
with
"Hauth Hγo"
)
as
"[Hauth Hγo]"
.
{
apply
auth_update
,
prod_local_update_1
.
by
apply
option_local_update
,
(
exclusive_local_update
_
(
Excl
(
S
o
)))
.
}
...
...
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