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
Simcha van Collem
Iris
Commits
1fb1b2c7
Commit
1fb1b2c7
authored
7 years ago
by
Dan Frumin
Committed by
Robbert Krebbers
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Reorder the assumptions for `tac_wp_pure`
This way `IntoLaterNEnvs` is ought to be computed less frequently
parent
9c8e7799
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/heap_lang/proofmode.v
+4
-5
4 additions, 5 deletions
theories/heap_lang/proofmode.v
with
4 additions
and
5 deletions
theories/heap_lang/proofmode.v
+
4
−
5
View file @
1fb1b2c7
...
...
@@ -40,9 +40,9 @@ Ltac wp_pure_done :=
end
.
Lemma
tac_wp_pure
`{
heapG
Σ
}
K
Δ
Δ'
E
e1
e2
φ
Φ
:
IntoLaterNEnvs
1
Δ
Δ'
→
PureExec
φ
e1
e2
→
φ
→
IntoLaterNEnvs
1
Δ
Δ'
→
(
Δ'
⊢
WP
fill
K
e2
@
E
{{
Φ
}})
→
(
Δ
⊢
WP
fill
K
e1
@
E
{{
Φ
}})
.
Proof
.
...
...
@@ -55,12 +55,11 @@ Tactic Notation "wp_pure" open_constr(efoc) :=
iStartProof
;
lazymatch
goal
with
|
|
-
_
⊢
wp
?E
?e
?Q
=>
reshape_expr
e
ltac
:(
fun
K
e'
=>
let
e''
:=
eval
hnf
in
e'
in
unify
e''
efoc
;
unify
e'
efoc
;
eapply
(
tac_wp_pure
K
);
[
apply
_
(* IntoLaters *)
|
unlock
;
simpl
;
apply
_
(* PureExec *)
[
unlock
;
simpl
;
apply
_
(* PureExec *)
|
wp_pure_done
(* The pure condition for PureExec *)
|
apply
_
(* IntoLaters *)
|
simpl_subst
;
try
wp_value_head
(* new goal *)
])
||
fail
"wp_pure: cannot find"
efoc
"in"
e
"or"
efoc
"is not a reduct"
|
_
=>
fail
"wp_pure: not a 'wp'"
...
...
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