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
Terraform modules
Monitor
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
Pierre Roux
Iris
Commits
35463c8d
Commit
35463c8d
authored
4 years ago
by
Ralf Jung
Committed by
Robbert Krebbers
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
make pure_exec_fill not an instance any more
parent
64211def
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
iris/program_logic/ectx_language.v
+6
-1
6 additions, 1 deletion
iris/program_logic/ectx_language.v
iris_heap_lang/proofmode.v
+6
-1
6 additions, 1 deletion
iris_heap_lang/proofmode.v
with
12 additions
and
2 deletions
iris/program_logic/ectx_language.v
+
6
−
1
View file @
35463c8d
...
@@ -298,7 +298,12 @@ Section ectx_language.
...
@@ -298,7 +298,12 @@ Section ectx_language.
-
intros
σ1
κ
e2'
σ2
efs
?
%
head_reducible_prim_step
;
eauto
using
head_reducible_no_obs_reducible
.
-
intros
σ1
κ
e2'
σ2
efs
?
%
head_reducible_prim_step
;
eauto
using
head_reducible_no_obs_reducible
.
Qed
.
Qed
.
Global
Instance
pure_exec_fill
K
φ
n
e1
e2
:
(** This is not an instance because HeapLang's [wp_pure] tactic already takes
care of handling the evaluation context. So the instance is redundant.
If you are defining your own language and your [wp_pure] works
differently, you might want to specialize this lemma to your language and
register that as an instance. *)
Lemma
pure_exec_fill
K
φ
n
e1
e2
:
PureExec
φ
n
e1
e2
→
PureExec
φ
n
e1
e2
→
PureExec
φ
n
(
fill
K
e1
)
(
fill
K
e2
)
.
PureExec
φ
n
(
fill
K
e1
)
(
fill
K
e2
)
.
Proof
.
apply
:
pure_exec_ctx
.
Qed
.
Proof
.
apply
:
pure_exec_ctx
.
Qed
.
...
...
This diff is collapsed.
Click to expand it.
iris_heap_lang/proofmode.v
+
6
−
1
View file @
35463c8d
...
@@ -35,6 +35,8 @@ Lemma tac_wp_pure `{!heapG Σ} Δ Δ' s E K e1 e2 φ n Φ :
...
@@ -35,6 +35,8 @@ Lemma tac_wp_pure `{!heapG Σ} Δ Δ' s E K e1 e2 φ n Φ :
envs_entails
Δ
(
WP
(
fill
K
e1
)
@
s
;
E
{{
Φ
}})
.
envs_entails
Δ
(
WP
(
fill
K
e1
)
@
s
;
E
{{
Φ
}})
.
Proof
.
Proof
.
rewrite
envs_entails_eq
=>
???
HΔ'
.
rewrite
into_laterN_env_sound
/=.
rewrite
envs_entails_eq
=>
???
HΔ'
.
rewrite
into_laterN_env_sound
/=.
(* We want [pure_exec_fill] to be available to TC search locally. *)
pose
proof
@
pure_exec_fill
.
rewrite
HΔ'
-
lifting
.
wp_pure_step_later
//.
rewrite
HΔ'
-
lifting
.
wp_pure_step_later
//.
Qed
.
Qed
.
Lemma
tac_twp_pure
`{
!
heapG
Σ
}
Δ
s
E
K
e1
e2
φ
n
Φ
:
Lemma
tac_twp_pure
`{
!
heapG
Σ
}
Δ
s
E
K
e1
e2
φ
n
Φ
:
...
@@ -43,7 +45,10 @@ Lemma tac_twp_pure `{!heapG Σ} Δ s E K e1 e2 φ n Φ :
...
@@ -43,7 +45,10 @@ Lemma tac_twp_pure `{!heapG Σ} Δ s E K e1 e2 φ n Φ :
envs_entails
Δ
(
WP
(
fill
K
e2
)
@
s
;
E
[{
Φ
}])
→
envs_entails
Δ
(
WP
(
fill
K
e2
)
@
s
;
E
[{
Φ
}])
→
envs_entails
Δ
(
WP
(
fill
K
e1
)
@
s
;
E
[{
Φ
}])
.
envs_entails
Δ
(
WP
(
fill
K
e1
)
@
s
;
E
[{
Φ
}])
.
Proof
.
Proof
.
rewrite
envs_entails_eq
=>
??
->
.
rewrite
-
total_lifting
.
twp_pure_step
//.
rewrite
envs_entails_eq
=>
??
->
.
(* We want [pure_exec_fill] to be available to TC search locally. *)
pose
proof
@
pure_exec_fill
.
rewrite
-
total_lifting
.
twp_pure_step
//.
Qed
.
Qed
.
Lemma
tac_wp_value
`{
!
heapG
Σ
}
Δ
s
E
Φ
v
:
Lemma
tac_wp_value
`{
!
heapG
Σ
}
Δ
s
E
Φ
v
:
...
...
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