Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris-coq
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
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
Dan Frumin
iris-coq
Commits
1f61b3bc
Commit
1f61b3bc
authored
9 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
sts: embrace modules
parent
fcca0593
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
program_logic/sts.v
+6
-2
6 additions, 2 deletions
program_logic/sts.v
with
6 additions
and
2 deletions
program_logic/sts.v
+
6
−
2
View file @
1f61b3bc
...
...
@@ -8,6 +8,10 @@ Local Arguments op _ _ !_ !_ /.
Local
Arguments
unit
_
_
!
_
/
.
Module
sts
.
(
**
This
module
is
*
not
*
meant
to
be
imported
.
Instead
,
just
use
"sts.ctx"
etc
.
like
you
would
use
"auth_ctx"
etc
.
*
)
Export
algebra
.
sts
.
sts
.
Record
Sts
{
A
B
}
:=
{
st
:
relation
A
;
tok
:
A
→
set
B
;
...
...
@@ -23,7 +27,7 @@ Section definitions.
Definition
inv
(
φ
:
A
→
iPropG
Λ
Σ
)
:
iPropG
Λ
Σ
:=
(
∃
s
,
own
i
γ
(
sts_auth
sts
.(
st
)
sts
.(
tok
)
s
set_empty
)
★
φ
s
)
%
I
.
Definition
states
(
S
:
set
A
)
(
T
:
set
B
)
:
iPropG
Λ
Σ
:=
(
■
sts
.
closed
sts
.(
st
)
sts
.(
tok
)
S
T
∧
(
■
closed
sts
.(
st
)
sts
.(
tok
)
S
T
∧
own
i
γ
(
sts_frag
sts
.(
st
)
sts
.(
tok
)
S
T
))
%
I
.
Definition
state
(
s
:
A
)
(
T
:
set
B
)
:
iPropG
Λ
Σ
:=
own
i
γ
(
sts_frag
sts
.(
st
)
sts
.(
tok
)
(
sts
.
up
sts
.(
st
)
sts
.(
tok
)
s
T
)
T
).
...
...
@@ -56,7 +60,7 @@ Section sts.
split
;
first
split
;
simpl
.
-
intros
;
solve_elem_of
-
.
-
intros
_.
split_ands
;
first
by
solve_elem_of
-
.
+
apply
sts
.
closed_up
.
solve_elem_of
-
.
+
apply
closed_up
.
solve_elem_of
-
.
+
constructor
;
last
solve_elem_of
-
.
apply
sts
.
elem_of_up
.
-
intros
_.
constructor
.
solve_elem_of
-
.
}
rewrite
(
inv_alloc
N
)
/
ctx
pvs_frame_r
.
apply
pvs_mono
.
...
...
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