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
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
Amin Timany
iris-coq
Commits
3dc4997c
Commit
3dc4997c
authored
9 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
fix wp and wp> to be consistent with the other wp tactics (">" does *not* strip laters)
parent
1bf7e8f9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
heap_lang/tests.v
+5
-5
5 additions, 5 deletions
heap_lang/tests.v
heap_lang/wp_tactics.v
+2
-2
2 additions, 2 deletions
heap_lang/wp_tactics.v
with
7 additions
and
7 deletions
heap_lang/tests.v
+
5
−
5
View file @
3dc4997c
...
...
@@ -33,10 +33,10 @@ Section LiftingTests.
nclose
N
⊆
E
→
heap_ctx
N
⊑
||
heap_e
@
E
{{
λ
v
,
v
=
'
2
}}
.
Proof
.
rewrite
/
heap_e
=>
HN
.
rewrite
-
(
wp_mask_weaken
N
E
)
//.
wp
>
eapply
wp_alloc
;
eauto
.
apply
forall_intro
=>
l
;
apply
wand_intro_l
.
wp_rec
.
wp
>
eapply
wp_load
;
eauto
with
I
.
apply
sep_mono_r
,
wand_intro_l
.
wp_bin_op
.
wp
>
eapply
wp_store
;
eauto
with
I
.
apply
sep_mono_r
,
wand_intro_l
.
wp_rec
.
wp
>
eapply
wp_load
;
eauto
with
I
.
apply
sep_mono_r
,
wand_intro_l
.
wp
eapply
wp_alloc
;
eauto
.
apply
forall_intro
=>
l
;
apply
wand_intro_l
.
wp_rec
.
wp
eapply
wp_load
;
eauto
with
I
.
apply
sep_mono_r
,
wand_intro_l
.
wp_bin_op
.
wp
eapply
wp_store
;
eauto
with
I
.
apply
sep_mono_r
,
wand_intro_l
.
wp_rec
.
wp
eapply
wp_load
;
eauto
with
I
.
apply
sep_mono_r
,
wand_intro_l
.
by
apply
const_intro
.
Qed
.
...
...
@@ -76,7 +76,7 @@ Section LiftingTests.
Lemma
Pred_user
E
:
(
True
:
iProp
)
⊑
||
let
:
"x"
:=
Pred
'
42
in
Pred
"x"
@
E
{{
λ
v
,
v
=
'
40
}}
.
Proof
.
intros
.
ewp
>
apply
Pred_spec
.
wp_rec
.
ewp
>
apply
Pred_spec
.
auto
with
I
.
intros
.
ewp
apply
Pred_spec
.
wp_rec
.
ewp
apply
Pred_spec
.
auto
with
I
.
Qed
.
End
LiftingTests
.
...
...
This diff is collapsed.
Click to expand it.
heap_lang/wp_tactics.v
+
2
−
2
View file @
3dc4997c
...
...
@@ -82,11 +82,11 @@ Tactic Notation "wp_focus" open_constr(efoc) :=
match
e'
with
efoc
=>
unify
e'
efoc
;
wp_bind
K
end
)
end
.
Tactic
Notation
"wp"
tactic
(
tac
)
:=
Tactic
Notation
"wp"
">"
tactic
(
tac
)
:=
match
goal
with
|
|
-
_
⊑
wp
?E
?e
?Q
=>
reshape_expr
e
ltac
:(
fun
K
e'
=>
wp_bind
K
;
tac
)
end
.
Tactic
Notation
"wp"
">"
tactic
(
tac
)
:=
(
wp
tac
);
wp_strip_later
.
Tactic
Notation
"wp"
tactic
(
tac
)
:=
(
wp
>
tac
);
wp_strip_later
.
(* In case the precondition does not match *)
Tactic
Notation
"ewp"
tactic
(
tac
)
:=
wp
(
etransitivity
;
[|
tac
])
.
...
...
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