Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iris
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
Abhishek Anand
Iris
Commits
7265d257
Commit
7265d257
authored
6 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
heap_lang/proofmode: move pm_prettify to where we used to do lazy beta
parent
3d1e22c5
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/heap_lang/proofmode.v
+5
-5
5 additions, 5 deletions
theories/heap_lang/proofmode.v
with
5 additions
and
5 deletions
theories/heap_lang/proofmode.v
+
5
−
5
View file @
7265d257
...
@@ -27,8 +27,8 @@ Tactic Notation "wp_expr_eval" tactic(t) :=
...
@@ -27,8 +27,8 @@ Tactic Notation "wp_expr_eval" tactic(t) :=
|
_
=>
fail
"wp_expr_eval: not a 'wp'"
|
_
=>
fail
"wp_expr_eval: not a 'wp'"
end
.
end
.
Ltac
wp_expr_simpl
:=
(
wp_expr_eval
simpl
);
pm_prettify
.
Ltac
wp_expr_simpl
:=
wp_expr_eval
simpl
.
Ltac
wp_expr_simpl_subst
:=
(
wp_expr_eval
simpl_subst
);
pm_prettify
.
Ltac
wp_expr_simpl_subst
:=
wp_expr_eval
simpl_subst
.
Lemma
tac_wp_pure
`{
heapG
Σ
}
Δ
Δ'
s
E
e1
e2
φ
Φ
:
Lemma
tac_wp_pure
`{
heapG
Σ
}
Δ
Δ'
s
E
e1
e2
φ
Φ
:
PureExec
φ
e1
e2
→
PureExec
φ
e1
e2
→
...
@@ -61,7 +61,7 @@ Proof. rewrite envs_entails_eq=> ? ->. by apply twp_value. Qed.
...
@@ -61,7 +61,7 @@ Proof. rewrite envs_entails_eq=> ? ->. by apply twp_value. Qed.
Ltac
wp_value_head
:=
Ltac
wp_value_head
:=
first
[
eapply
tac_wp_value
||
eapply
tac_twp_value
];
first
[
eapply
tac_wp_value
||
eapply
tac_twp_value
];
[
iSolveTC
[
iSolveTC
|
iEval
(
lazy
beta
;
simpl
of_val
)]
.
|
reduction
.
pm_prettify
;
iEval
(
simpl
of_val
)]
.
Tactic
Notation
"wp_pure"
open_constr
(
efoc
)
:=
Tactic
Notation
"wp_pure"
open_constr
(
efoc
)
:=
iStartProof
;
iStartProof
;
...
@@ -118,12 +118,12 @@ Proof. rewrite envs_entails_eq=> -> ->. by apply: twp_bind. Qed.
...
@@ -118,12 +118,12 @@ Proof. rewrite envs_entails_eq=> -> ->. by apply: twp_bind. Qed.
Ltac
wp_bind_core
K
:=
Ltac
wp_bind_core
K
:=
lazymatch
eval
hnf
in
K
with
lazymatch
eval
hnf
in
K
with
|
[]
=>
idtac
|
[]
=>
idtac
|
_
=>
eapply
(
tac_wp_bind
K
);
[
simpl
;
reflexivity
|
lazy
beta
]
|
_
=>
eapply
(
tac_wp_bind
K
);
[
simpl
;
reflexivity
|
reduction
.
pm_prettify
]
end
.
end
.
Ltac
twp_bind_core
K
:=
Ltac
twp_bind_core
K
:=
lazymatch
eval
hnf
in
K
with
lazymatch
eval
hnf
in
K
with
|
[]
=>
idtac
|
[]
=>
idtac
|
_
=>
eapply
(
tac_twp_bind
K
);
[
simpl
;
reflexivity
|
lazy
beta
]
|
_
=>
eapply
(
tac_twp_bind
K
);
[
simpl
;
reflexivity
|
reduction
.
pm_prettify
]
end
.
end
.
Tactic
Notation
"wp_bind"
open_constr
(
efoc
)
:=
Tactic
Notation
"wp_bind"
open_constr
(
efoc
)
:=
...
...
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