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
Gaëtan Gilbert
Iris
Commits
66ee8a76
Commit
66ee8a76
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Use apply: in iRewrite.
parent
2ea5d210
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
proofmode/tactics.v
+5
-2
5 additions, 2 deletions
proofmode/tactics.v
with
5 additions
and
2 deletions
proofmode/tactics.v
+
5
−
2
View file @
66ee8a76
...
@@ -1133,7 +1133,10 @@ Local Tactic Notation "iRewriteCore" constr(lr) open_constr(lem) :=
...
@@ -1133,7 +1133,10 @@ Local Tactic Notation "iRewriteCore" constr(lr) open_constr(lem) :=
eapply
(
tac_rewrite
_
Heq
_
_
lr
);
eapply
(
tac_rewrite
_
Heq
_
_
lr
);
[
env_cbv
;
reflexivity
||
fail
"iRewrite:"
Heq
"not found"
[
env_cbv
;
reflexivity
||
fail
"iRewrite:"
Heq
"not found"
|
let
P
:=
match
goal
with
|
-
?P
⊢
_
=>
P
end
in
|
let
P
:=
match
goal
with
|
-
?P
⊢
_
=>
P
end
in
reflexivity
||
fail
"iRewrite:"
P
"not an equality"
(* use ssreflect apply: which is better at dealing with unification
involving canonical structures. This is useful for the COFE canonical
structure in uPred_eq that it may have to infer. *)
apply
:
reflexivity
||
fail
"iRewrite:"
P
"not an equality"
|
iRewriteFindPred
|
iRewriteFindPred
|
intros
???
->
;
reflexivity
|
lazy
beta
;
iClear
Heq
])
.
|
intros
???
->
;
reflexivity
|
lazy
beta
;
iClear
Heq
])
.
...
@@ -1146,7 +1149,7 @@ Local Tactic Notation "iRewriteCore" constr(lr) open_constr(lem) "in" constr(H)
...
@@ -1146,7 +1149,7 @@ Local Tactic Notation "iRewriteCore" constr(lr) open_constr(lem) "in" constr(H)
[
env_cbv
;
reflexivity
||
fail
"iRewrite:"
Heq
"not found"
[
env_cbv
;
reflexivity
||
fail
"iRewrite:"
Heq
"not found"
|
env_cbv
;
reflexivity
||
fail
"iRewrite:"
H
"not found"
|
env_cbv
;
reflexivity
||
fail
"iRewrite:"
H
"not found"
|
let
P
:=
match
goal
with
|
-
?P
⊢
_
=>
P
end
in
|
let
P
:=
match
goal
with
|
-
?P
⊢
_
=>
P
end
in
reflexivity
||
fail
"iRewrite:"
P
"not an equality"
apply
:
reflexivity
||
fail
"iRewrite:"
P
"not an equality"
|
iRewriteFindPred
|
iRewriteFindPred
|
intros
???
->
;
reflexivity
|
intros
???
->
;
reflexivity
|
env_cbv
;
reflexivity
|
lazy
beta
;
iClear
Heq
])
.
|
env_cbv
;
reflexivity
|
lazy
beta
;
iClear
Heq
])
.
...
...
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