Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Jonas Kastberg
iris
Commits
f197e42d
Commit
f197e42d
authored
Dec 31, 2017
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Version of `iEval ... in ...`.
parent
a051dd3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
theories/proofmode/coq_tactics.v
theories/proofmode/coq_tactics.v
+11
-0
theories/proofmode/tactics.v
theories/proofmode/tactics.v
+9
-0
No files found.
theories/proofmode/coq_tactics.v
View file @
f197e42d
...
...
@@ -418,6 +418,17 @@ Lemma tac_eval Δ Q Q' :
envs_entails
Δ
Q'
→
envs_entails
Δ
Q
.
Proof
.
by
intros
<-.
Qed
.
Lemma
tac_eval_in
Δ
Δ
'
i
p
P
P'
Q
:
envs_lookup
i
Δ
=
Some
(
p
,
P
)
→
(
P
⊢
P'
)
→
envs_simple_replace
i
p
(
Esnoc
Enil
i
P'
)
Δ
=
Some
Δ
'
→
envs_entails
Δ
'
Q
→
envs_entails
Δ
Q
.
Proof
.
rewrite
/
envs_entails
.
intros
?
HP
?
<-.
rewrite
envs_simple_replace_sound
//
;
simpl
.
by
rewrite
HP
right_id
wand_elim_r
.
Qed
.
Lemma
tac_assumption
Δ
i
p
P
Q
:
envs_lookup
i
Δ
=
Some
(
p
,
P
)
→
FromAssumption
p
P
Q
→
envs_entails
Δ
Q
.
...
...
theories/proofmode/tactics.v
View file @
f197e42d
...
...
@@ -85,7 +85,16 @@ Tactic Notation "iEval" tactic(t) :=
iStartProof
;
eapply
tac_eval
;
[
t
;
reflexivity
|].
Tactic
Notation
"iEval"
tactic
(
t
)
"in"
constr
(
H
)
:
=
iStartProof
;
eapply
tac_eval_in
with
_
H
_
_
_;
[
env_reflexivity
||
fail
"iEval:"
H
"not found"
|
t
;
reflexivity
|
env_reflexivity
|].
Tactic
Notation
"iSimpl"
:
=
iEval
simpl
.
Tactic
Notation
"iSimpl"
"in"
constr
(
H
)
:
=
iEval
simpl
in
H
.
(** * Context manipulation *)
Tactic
Notation
"iRename"
constr
(
H1
)
"into"
constr
(
H2
)
:
=
...
...
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