Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Iris
Iris
Commits
66ee8a76
Commit
66ee8a76
authored
Oct 06, 2016
by
Robbert Krebbers
Browse files
Use apply: in iRewrite.
parent
2ea5d210
Changes
1
Hide whitespace changes
Inline
Sidebyside
Showing
1 changed file
with
5 additions
and
2 deletions
+5
2
proofmode/tactics.v
proofmode/tactics.v
+5
2
No files found.
proofmode/tactics.v
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
]).
...
...
Robbert Krebbers
@robbertkrebbers
Mentioned in issue
#37 (closed)
·
Oct 05, 2016
Mentioned in issue
#37 (closed)
Mentioned in issue #37
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment