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
Environments
Terraform modules
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
Ike Mulder
Iris
Commits
53f6857f
Commit
53f6857f
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Tweak lib/sts so not all lemmas are parametrized by φ.
parent
18f29711
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
theories/base_logic/lib/sts.v
+7
-6
7 additions, 6 deletions
theories/base_logic/lib/sts.v
with
7 additions
and
6 deletions
theories/base_logic/lib/sts.v
+
7
−
6
View file @
53f6857f
...
...
@@ -58,7 +58,8 @@ Instance: Params (@sts_own) 5.
Instance
:
Params
(
@
sts_ctx
)
6
.
Section
sts
.
Context
`{
invG
Σ
,
stsG
Σ
sts
}
(
φ
:
sts
.
state
sts
→
iProp
Σ
)
.
Context
`{
invG
Σ
,
stsG
Σ
sts
}
.
Implicit
Types
φ
:
sts
.
state
sts
→
iProp
Σ
.
Implicit
Types
N
:
namespace
.
Implicit
Types
P
Q
R
:
iProp
Σ
.
Implicit
Types
γ
:
gname
.
...
...
@@ -82,7 +83,7 @@ Section sts.
sts_ownS
γ
(
S1
∩
S2
)
(
T1
∪
T2
)
⊣⊢
(
sts_ownS
γ
S1
T1
∗
sts_ownS
γ
S2
T2
)
.
Proof
.
intros
.
by
rewrite
/
sts_ownS
-
own_op
sts_op_frag
.
Qed
.
Lemma
sts_alloc
E
N
s
:
Lemma
sts_alloc
φ
E
N
s
:
▷
φ
s
=
{
E
}
=∗
∃
γ
,
sts_ctx
γ
N
φ
∧
sts_own
γ
s
(
⊤
∖
sts
.
tok
s
)
.
Proof
.
iIntros
"Hφ"
.
rewrite
/
sts_ctx
/
sts_own
.
...
...
@@ -93,7 +94,7 @@ Section sts.
rewrite
/
sts_inv
.
iNext
.
iExists
s
.
by
iFrame
.
Qed
.
Lemma
sts_accS
E
γ
S
T
:
Lemma
sts_accS
φ
E
γ
S
T
:
▷
sts_inv
γ
φ
∗
sts_ownS
γ
S
T
=
{
E
}
=∗
∃
s
,
⌜
s
∈
S
⌝
∗
▷
φ
s
∗
∀
s'
T'
,
⌜
sts
.
steps
(
s
,
T
)
(
s'
,
T'
)
⌝
∗
▷
φ
s'
=
{
E
}
=∗
▷
sts_inv
γ
φ
∗
sts_own
γ
s'
T'
.
...
...
@@ -111,13 +112,13 @@ Section sts.
iModIntro
.
iNext
.
iExists
s'
;
by
iFrame
.
Qed
.
Lemma
sts_acc
E
γ
s0
T
:
Lemma
sts_acc
φ
E
γ
s0
T
:
▷
sts_inv
γ
φ
∗
sts_own
γ
s0
T
=
{
E
}
=∗
∃
s
,
⌜
sts
.
frame_steps
T
s0
s
⌝
∗
▷
φ
s
∗
∀
s'
T'
,
⌜
sts
.
steps
(
s
,
T
)
(
s'
,
T'
)
⌝
∗
▷
φ
s'
=
{
E
}
=∗
▷
sts_inv
γ
φ
∗
sts_own
γ
s'
T'
.
Proof
.
by
apply
sts_accS
.
Qed
.
Lemma
sts_openS
E
N
γ
S
T
:
Lemma
sts_openS
φ
E
N
γ
S
T
:
↑
N
⊆
E
→
sts_ctx
γ
N
φ
∗
sts_ownS
γ
S
T
=
{
E
,
E
∖↑
N
}
=∗
∃
s
,
⌜
s
∈
S
⌝
∗
▷
φ
s
∗
∀
s'
T'
,
...
...
@@ -135,7 +136,7 @@ Section sts.
iMod
(
"HclSts"
$!
s'
T'
with
"H"
)
as
"(Hinv & ?)"
.
by
iMod
(
"Hclose"
with
"Hinv"
)
.
Qed
.
Lemma
sts_open
E
N
γ
s0
T
:
Lemma
sts_open
φ
E
N
γ
s0
T
:
↑
N
⊆
E
→
sts_ctx
γ
N
φ
∗
sts_own
γ
s0
T
=
{
E
,
E
∖↑
N
}
=∗
∃
s
,
⌜
sts
.
frame_steps
T
s0
s
⌝
∗
▷
φ
s
∗
∀
s'
T'
,
...
...
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