Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris
Manage
Activity
Members
Labels
Plan
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
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
Paolo G. Giarrusso
iris
Commits
0b7e25c2
Commit
0b7e25c2
authored
9 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
make auth_closing less stupid
parent
05b7229d
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
algebra/auth.v
+5
-1
5 additions, 1 deletion
algebra/auth.v
program_logic/auth.v
+2
-9
2 additions, 9 deletions
program_logic/auth.v
with
7 additions
and
10 deletions
algebra/auth.v
+
5
−
1
View file @
0b7e25c2
...
...
@@ -147,8 +147,12 @@ Proof. done. Qed.
Lemma
auth_both_op
a
b
:
Auth
(
Excl
a
)
b
≡
●
a
⋅
◯
b
.
Proof
.
by
rewrite
/
op
/
auth_op
/=
left_id
.
Qed
.
(* FIXME tentative name. Or maybe remove this notion entirely. *)
Definition
auth_step
a
a'
b
b'
:=
∀
n
af
,
✓
{
n
}
a
→
a
≡
{
n
}
≡
a'
⋅
af
→
b
≡
{
n
}
≡
b'
⋅
af
∧
✓
{
n
}
b
.
Lemma
auth_update
a
a'
b
b'
:
(
∀
n
af
,
✓
{
n
}
a
→
a
≡
{
n
}
≡
a'
⋅
af
→
b
≡
{
n
}
≡
b'
⋅
af
∧
✓
{
n
}
b
)
→
auth_step
a
a'
b
b'
→
●
a
⋅
◯
a'
~~>
●
b
⋅
◯
b'
.
Proof
.
move
=>
Hab
[[?|
|]
bf1
]
n
//
=>
-
[[
bf2
Ha
]
?];
do
2
red
;
simpl
in
*.
...
...
This diff is collapsed.
Click to expand it.
program_logic/auth.v
+
2
−
9
View file @
0b7e25c2
...
...
@@ -58,14 +58,8 @@ Section auth.
by
rewrite
sep_elim_l
.
Qed
.
(* TODO: This notion should probably be defined in algebra/,
with instances proven for the important constructions. *)
Definition
auth_step
a
b
:=
(
∀
n
a'
af
,
✓
{
n
}
(
a
⋅
a'
)
→
a
⋅
a'
≡
{
n
}
≡
af
⋅
a
→
b
⋅
a'
≡
{
n
}
≡
b
⋅
af
∧
✓
{
n
}
(
b
⋅
a'
))
.
Lemma
auth_closing
a
a'
b
γ
:
auth_step
a
b
→
auth_step
(
a
⋅
a'
)
a
(
b
⋅
a'
)
b
→
(
φ
(
b
⋅
a'
)
★
own
AuthI
γ
(
●
(
a
⋅
a'
)
⋅
◯
a
))
⊑
pvs
N
N
(
auth_inv
γ
★
auth_own
γ
b
)
.
Proof
.
...
...
@@ -73,8 +67,7 @@ Section auth.
rewrite
[(_
★
φ
_)
%
I
]
commutative
-
associative
.
rewrite
-
pvs_frame_l
.
apply
sep_mono
;
first
done
.
rewrite
-
own_op
.
apply
own_update
.
apply
auth_update
=>
n
af
Ha
Heq
.
apply
Hstep
;
first
done
.
by
rewrite
[
af
⋅
_]
commutative
.
by
apply
auth_update
.
Qed
.
End
auth
.
...
...
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