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
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
Michael Sammler
iris-coq
Commits
8bb5541f
Commit
8bb5541f
authored
6 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
whitespace tweaks
parent
3dc789f2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/heap_lang/lang.v
+12
-3
12 additions, 3 deletions
theories/heap_lang/lang.v
theories/heap_lang/proofmode.v
+0
-1
0 additions, 1 deletion
theories/heap_lang/proofmode.v
with
12 additions
and
4 deletions
theories/heap_lang/lang.v
+
12
−
3
View file @
8bb5541f
...
@@ -477,7 +477,10 @@ Inductive head_step : expr → state → option observation -> expr → state
...
@@ -477,7 +477,10 @@ Inductive head_step : expr → state → option observation -> expr → state
head_step
(
Load
(
Lit
$
LitLoc
l
))
σ
None
(
of_val
v
)
σ
[]
head_step
(
Load
(
Lit
$
LitLoc
l
))
σ
None
(
of_val
v
)
σ
[]
|
StoreS
l
e
v
σ
:
|
StoreS
l
e
v
σ
:
to_val
e
=
Some
v
→
is_Some
(
σ
.
1
!!
l
)
→
to_val
e
=
Some
v
→
is_Some
(
σ
.
1
!!
l
)
→
head_step
(
Store
(
Lit
$
LitLoc
l
)
e
)
σ
None
(
Lit
LitUnit
)
(
<
[
l
:=
v
]
>
σ
.
1
,
σ
.
2
)
[]
head_step
(
Store
(
Lit
$
LitLoc
l
)
e
)
σ
None
(
Lit
LitUnit
)
(
<
[
l
:=
v
]
>
σ
.
1
,
σ
.
2
)
[]
|
CasFailS
l
e1
v1
e2
v2
vl
σ
:
|
CasFailS
l
e1
v1
e2
v2
vl
σ
:
to_val
e1
=
Some
v1
→
to_val
e2
=
Some
v2
→
to_val
e1
=
Some
v1
→
to_val
e2
=
Some
v2
→
σ
.
1
!!
l
=
Some
vl
→
vl
≠
v1
→
σ
.
1
!!
l
=
Some
vl
→
vl
≠
v1
→
...
@@ -487,11 +490,17 @@ Inductive head_step : expr → state → option observation -> expr → state
...
@@ -487,11 +490,17 @@ Inductive head_step : expr → state → option observation -> expr → state
to_val
e1
=
Some
v1
→
to_val
e2
=
Some
v2
→
to_val
e1
=
Some
v1
→
to_val
e2
=
Some
v2
→
σ
.
1
!!
l
=
Some
v1
→
σ
.
1
!!
l
=
Some
v1
→
vals_cas_compare_safe
v1
v1
→
vals_cas_compare_safe
v1
v1
→
head_step
(
CAS
(
Lit
$
LitLoc
l
)
e1
e2
)
σ
None
(
Lit
$
LitBool
true
)
(
<
[
l
:=
v2
]
>
σ
.
1
,
σ
.
2
)
[]
head_step
(
CAS
(
Lit
$
LitLoc
l
)
e1
e2
)
σ
None
(
Lit
$
LitBool
true
)
(
<
[
l
:=
v2
]
>
σ
.
1
,
σ
.
2
)
[]
|
FaaS
l
i1
e2
i2
σ
:
|
FaaS
l
i1
e2
i2
σ
:
to_val
e2
=
Some
(
LitV
(
LitInt
i2
))
→
to_val
e2
=
Some
(
LitV
(
LitInt
i2
))
→
σ
.
1
!!
l
=
Some
(
LitV
(
LitInt
i1
))
→
σ
.
1
!!
l
=
Some
(
LitV
(
LitInt
i1
))
→
head_step
(
FAA
(
Lit
$
LitLoc
l
)
e2
)
σ
None
(
Lit
$
LitInt
i1
)
(
<
[
l
:=
LitV
(
LitInt
(
i1
+
i2
))]
>
σ
.
1
,
σ
.
2
)
[]
head_step
(
FAA
(
Lit
$
LitLoc
l
)
e2
)
σ
None
(
Lit
$
LitInt
i1
)
(
<
[
l
:=
LitV
(
LitInt
(
i1
+
i2
))]
>
σ
.
1
,
σ
.
2
)
[]
|
NewProphS
σ
p
:
|
NewProphS
σ
p
:
p
∉
σ
.
2
→
p
∉
σ
.
2
→
head_step
NewProph
σ
None
(
Lit
$
LitProphecy
p
)
(
σ
.
1
,
{[
p
]}
∪
σ
.
2
)
[]
head_step
NewProph
σ
None
(
Lit
$
LitProphecy
p
)
(
σ
.
1
,
{[
p
]}
∪
σ
.
2
)
[]
...
...
This diff is collapsed.
Click to expand it.
theories/heap_lang/proofmode.v
+
0
−
1
View file @
8bb5541f
...
@@ -40,7 +40,6 @@ Proof.
...
@@ -40,7 +40,6 @@ Proof.
rewrite
envs_entails_eq
=>
???
HΔ'
.
rewrite
into_laterN_env_sound
/=.
rewrite
envs_entails_eq
=>
???
HΔ'
.
rewrite
into_laterN_env_sound
/=.
rewrite
HΔ'
-
lifting
.
wp_pure_step_later
//.
rewrite
HΔ'
-
lifting
.
wp_pure_step_later
//.
Qed
.
Qed
.
Lemma
tac_twp_pure
`{
heapG
Σ
}
Δ
s
E
e1
e2
φ
Φ
:
Lemma
tac_twp_pure
`{
heapG
Σ
}
Δ
s
E
e1
e2
φ
Φ
:
PureExec
φ
e1
e2
→
PureExec
φ
e1
e2
→
φ
→
φ
→
...
...
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