Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Monitor
Incidents
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
Tej Chajed
iris
Commits
e4b58ebf
Commit
e4b58ebf
authored
9 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
change auth_pvs to have a more genrally useful form
parent
ee3b01dd
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
program_logic/auth.v
+9
-10
9 additions, 10 deletions
program_logic/auth.v
with
9 additions
and
10 deletions
program_logic/auth.v
+
9
−
10
View file @
e4b58ebf
...
@@ -77,13 +77,12 @@ Section auth.
...
@@ -77,13 +77,12 @@ Section auth.
(* Notice how the user has to prove that `b⋅a'` is valid at all
(* Notice how the user has to prove that `b⋅a'` is valid at all
step-indices. However, since A is timeless, that should not be
step-indices. However, since A is timeless, that should not be
a restriction. *)
a restriction. *)
(* TODO The form of the lemma, with a very specific post-condition, is not ideal. *)
Lemma
auth_pvs
`{
!
LocalUpdate
Lv
L
}
E
P
Q
γ
a
:
Lemma
auth_pvs
`{
!
LocalUpdate
Lv
L
}
E
P
(
Q
:
A
→
iProp
Λ
(
globalC
Σ
))
γ
a
:
nclose
N
⊆
E
→
nclose
N
⊆
E
→
(
auth_ctx
γ
★
auth_own
γ
a
★
(
∀
a'
,
▷
φ
(
a
⋅
a'
)
-★
(
auth_ctx
γ
★
auth_own
γ
a
★
(
∀
a'
,
▷
φ
(
a
⋅
a'
)
-★
pvs
(
E
∖
nclose
N
)
(
E
∖
nclose
N
)
pvs
(
E
∖
nclose
N
)
(
E
∖
nclose
N
)
(
■
(
Lv
a
∧
✓
(
L
a
⋅
a'
))
★
▷
φ
(
L
a
⋅
a'
)
★
Q
(
L
a
))))
(
■
(
Lv
a
∧
✓
(
L
a
⋅
a'
))
★
▷
φ
(
L
a
⋅
a'
)
★
(
auth_own
γ
(
L
a
)
-★
Q
))))
⊑
pvs
E
E
(
auth_own
γ
(
L
a
)
★
Q
(
L
a
))
.
⊑
pvs
E
E
Q
.
Proof
.
Proof
.
rewrite
/
auth_ctx
=>
HN
.
rewrite
/
auth_ctx
=>
HN
.
rewrite
-
[
pvs
E
E
_]
pvs_open_close
;
last
eassumption
.
rewrite
-
[
pvs
E
E
_]
pvs_open_close
;
last
eassumption
.
...
@@ -91,11 +90,11 @@ Section auth.
...
@@ -91,11 +90,11 @@ Section auth.
rewrite
associative
auth_opened
!
pvs_frame_r
!
sep_exist_r
.
rewrite
associative
auth_opened
!
pvs_frame_r
!
sep_exist_r
.
apply
pvs_strip_pvs
.
apply
exist_elim
=>
a'
.
apply
pvs_strip_pvs
.
apply
exist_elim
=>
a'
.
rewrite
(
forall_elim
a'
)
.
rewrite
[(
▷_
★
_)
%
I
]
commutative
.
rewrite
(
forall_elim
a'
)
.
rewrite
[(
▷_
★
_)
%
I
]
commutative
.
rewrite
-
[((_
★
▷_
)
★
_)
%
I
]
associative
wand_elim_r
pvs_frame_l
.
apply
pvs_strip_pvs
.
rewrite
-
[((_
★
▷_
)
★
_)
%
I
]
associative
wand_elim_r
pvs_frame_l
.
rewrite
commutative
-!
associative
.
apply
const_elim_sep_l
=>
-
[
HL
Hv
]
.
apply
pvs_strip_pvs
.
rewrite
commutative
-!
associative
.
rewrite
associative
[(_
★
Q
_)
%
I
]
commutative
-
associative
auth_closing
//
;
[
]
.
apply
const_elim_sep_l
=>
-
[
HL
Hv
]
.
e
rewrite
pvs_frame_l
.
apply
pvs_mono
.
rewrite
associative
[(_
★
(_
-★
_))
%
I
]
commutative
-
associative
.
rewrite
a
ssociative
[(_
★
Q
_)
%
I
]
commutative
associative
.
rewrite
a
uth_closing
//
;
[]
.
erewrite
pvs_frame_l
.
apply
pvs_mono
.
apply
sep_mono
;
last
done
.
by
rewrite
commutative
.
by
rewrite
associative
[(_
★
▷_
)
%
I
]
commutative
-
associative
wand_elim_l
.
Qed
.
Qed
.
End
auth
.
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