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
Dan Frumin
iris-coq
Commits
7827f688
Commit
7827f688
authored
9 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
some playing around with wp_tactics
parent
26341006
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
heap_lang/tests.v
+1
-1
1 addition, 1 deletion
heap_lang/tests.v
heap_lang/wp_tactics.v
+2
-3
2 additions, 3 deletions
heap_lang/wp_tactics.v
with
3 additions
and
4 deletions
heap_lang/tests.v
+
1
−
1
View file @
7827f688
...
...
@@ -84,7 +84,7 @@ Section LiftingTests.
True
⊑
wp
(
Σ
:=
globalF
Σ
)
E
(
let
:
"x"
:=
Pred
'
42
in
Pred
"x"
)
(
λ
v
,
v
=
'
40
).
Proof
.
intros
E
.
wp_focus
(
Pred
'
42
);
rewrite
-
Pred_spec
-
later_intro
.
wp_focus
(
Pred
_
);
rewrite
-
Pred_spec
-
later_intro
.
wp_rec
.
rewrite
-
Pred_spec
-
later_intro
;
auto
with
I
.
Qed
.
End
LiftingTests
.
This diff is collapsed.
Click to expand it.
heap_lang/wp_tactics.v
+
2
−
3
View file @
7827f688
...
...
@@ -4,12 +4,12 @@ Import uPred.
Ltac
wp_strip_later
:=
match
goal
with
|
|-
∀
_
,
_
=>
let
H
:=
fresh
in
intro
H
;
wp_strip_later
;
revert
H
|
|-
_
⊑
▷
_
=>
etransitivity
;
[
|
apply
later_intro
]
|
|-
_
⊑
▷
_
=>
etransitivity
;
[
|
by
apply
later_intro
]
end
.
Ltac
wp_bind
K
:=
lazymatch
eval
hnf
in
K
with
|
[]
=>
idtac
|
_
=>
etransitivity
;
[
|
apply
(
wp_bind
K
)];
simpl
|
_
=>
etransitivity
;
[
|
by
apply
(
wp_bind
K
)];
simpl
end
.
Ltac
wp_finish
:=
let
rec
go
:=
...
...
@@ -44,7 +44,6 @@ Tactic Notation "wp_bin_op" ">" :=
wp_bind
K
;
etransitivity
;
[
|
eapply
wp_bin_op
;
reflexivity
];
wp_finish
end
)
end
.
Tactic
Notation
"wp_bin_op"
:=
wp_bin_op
>
;
wp_strip_later
.
Tactic
Notation
"wp_un_op"
">"
:=
match
goal
with
...
...
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