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
Gaëtan Gilbert
Iris
Commits
692b8570
Commit
692b8570
authored
8 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
Add a local update for auth (needed for nested auth)
Proof was done by Hai & me
parent
1bc26dc9
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
algebra/auth.v
+27
-0
27 additions, 0 deletions
algebra/auth.v
with
27 additions
and
0 deletions
algebra/auth.v
+
27
−
0
View file @
692b8570
...
...
@@ -219,6 +219,33 @@ Lemma auth_update_alloc a a' b' : (a,∅) ~l~> (a',b') → ● a ~~> ● a' ⋅
Proof
.
intros
.
rewrite
-
(
right_id
_
_
(
●
a
))
.
by
apply
auth_update
.
Qed
.
Lemma
auth_update_dealloc
a
b
a'
:
(
a
,
b
)
~l
~>
(
a'
,
∅
)
→
●
a
⋅
◯
b
~~>
●
a'
.
Proof
.
intros
.
rewrite
-
(
right_id
_
_
(
●
a'
))
.
by
apply
auth_update
.
Qed
.
Lemma
auth_local_update
(
a
b0
b1
a'
b0'
b1'
:
A
)
:
(
b0
,
b1
)
~l
~>
(
b0'
,
b1'
)
→
b0'
≼
a'
→
✓
a'
→
(
●
a
⋅
◯
b0
,
●
a
⋅
◯
b1
)
~l
~>
(
●
a'
⋅
◯
b0'
,
●
a'
⋅
◯
b1'
)
.
Proof
.
move
=>
H
?
?
n
/=.
move
=>
[
c
|]
[
/=
Le
Val
]
[
/=
Ha
Hb
]
/=
;
rewrite
/
op
/
cmra_op
/=
in
Ha
;
rewrite
->!
(
left_id
_
_)
in
Hb
;
rewrite
->
(
left_id
_
_)
in
Le
;
last
first
.
-
destruct
(
H
n
None
)
as
[
Hval'
Heq
]
=>
//.
+
eapply
cmra_validN_includedN
;
eauto
.
+
repeat
split
=>
//=.
*
rewrite
->
(
left_id
_
_)
.
by
apply
cmra_included_includedN
.
*
by
apply
cmra_valid_validN
.
*
simpl
in
Heq
.
by
rewrite
Heq
.
-
destruct
c
as
[
ac
bc
]
.
destruct
(
H
n
(
Some
bc
))
as
[
Hval'
Heq
]
=>
//.
+
eapply
cmra_validN_includedN
;
eauto
.
+
rewrite
-!
auth_both_op
.
repeat
split
=>
//.
*
apply
cmra_included_includedN
.
by
rewrite
left_id
.
*
by
apply
cmra_valid_validN
.
*
simpl
in
*.
destruct
ac
as
[[
e
|]|]
=>
//
;
rewrite
/
op
/
cmra_op
/=
/
excl_op
in
Ha
;
inversion
Ha
;
by
inversion
H2
.
Qed
.
End
cmra
.
Arguments
authR
:
clear
implicits
.
...
...
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