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
Rice Wine
Iris
Commits
4c27fb0a
Commit
4c27fb0a
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Generalize
7c4416b6
to remove head "value ;;" expressions after any wp_ tactic.
parent
1aba9415
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/proofmode.v
+1
-1
1 addition, 1 deletion
heap_lang/proofmode.v
heap_lang/wp_tactics.v
+7
-1
7 additions, 1 deletion
heap_lang/wp_tactics.v
with
8 additions
and
2 deletions
heap_lang/proofmode.v
+
1
−
1
View file @
4c27fb0a
...
@@ -148,7 +148,7 @@ Tactic Notation "wp_store" :=
...
@@ -148,7 +148,7 @@ Tactic Notation "wp_store" :=
|
let
l
:=
match
goal
with
|
-
_
=
Some
(_,
(
?l
↦
{_}
_)
%
I
)
=>
l
end
in
|
let
l
:=
match
goal
with
|
-
_
=
Some
(_,
(
?l
↦
{_}
_)
%
I
)
=>
l
end
in
iAssumptionCore
||
fail
"wp_store: cannot find"
l
"↦ ?"
iAssumptionCore
||
fail
"wp_store: cannot find"
l
"↦ ?"
|
env_cbv
;
reflexivity
|
env_cbv
;
reflexivity
|
wp_finish
;
try
wp_seq
]
|
wp_finish
]
|
_
=>
fail
"wp_store: not a 'wp'"
|
_
=>
fail
"wp_store: not a 'wp'"
end
.
end
.
...
...
This diff is collapsed.
Click to expand it.
heap_lang/wp_tactics.v
+
7
−
1
View file @
4c27fb0a
...
@@ -22,8 +22,14 @@ Ltac wp_value_head :=
...
@@ -22,8 +22,14 @@ Ltac wp_value_head :=
match
goal
with
|
-
_
⊢
wp
_
_
_
=>
simpl
|
_
=>
fail
end
)
match
goal
with
|
-
_
⊢
wp
_
_
_
=>
simpl
|
_
=>
fail
end
)
end
.
end
.
Ltac
wp_seq_head
:=
lazymatch
goal
with
|
|
-
_
⊢
wp
?E
(
Seq
_
_)
?Q
=>
etrans
;
[|
eapply
wp_seq
;
wp_done
];
strip_later
end
.
Ltac
wp_finish
:=
intros_revert
ltac
:(
Ltac
wp_finish
:=
intros_revert
ltac
:(
rewrite
/=
?to_of_val
;
try
strip_later
;
try
wp_value_head
)
.
rewrite
/=
?to_of_val
;
try
strip_later
;
try
wp_value_head
);
repeat
wp_seq_head
.
Tactic
Notation
"wp_value"
:=
Tactic
Notation
"wp_value"
:=
lazymatch
goal
with
lazymatch
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