Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adam
Iris
Commits
15b4a65e
Commit
15b4a65e
authored
Apr 19, 2018
by
Ralf Jung
Browse files
when the goal is an evar, pick emp when possible
Fixes #182
parent
78dedb27
Changes
2
Hide whitespace changes
Inline
Side-by-side
theories/proofmode/tactics.v
View file @
15b4a65e
...
...
@@ -1964,8 +1964,7 @@ Hint Extern 0 (_ ⊢ _) => iStartProof.
(* Make sure that by and done solve trivial things in proof mode *)
Hint
Extern
0
(
envs_entails
_
_
)
=>
iPureIntro
;
try
done
.
Hint
Extern
0
(
envs_entails
_
_
)
=>
iAssumption
.
Hint
Extern
0
(
envs_entails
_
emp
)
=>
iEmpIntro
.
Hint
Extern
0
(
envs_entails
_
_
)
=>
iEmpIntro
||
iAssumption
.
(* TODO: look for a more principled way of adding trivial hints like those
below; see the discussion in !75 for further details. *)
...
...
theories/tests/proofmode.v
View file @
15b4a65e
...
...
@@ -112,7 +112,7 @@ Lemma test_iEmp_intro P Q R `{!Affine P, !Persistent Q, !Affine R} :
P
-
∗
Q
→
R
-
∗
emp
.
Proof
.
iIntros
"HP #HQ HR"
.
iEmpIntro
.
Qed
.
Le
t
test_fresh
P
Q
:
Le
mma
test_fresh
P
Q
:
(
P
∗
Q
)
-
∗
(
P
∗
Q
).
Proof
.
iIntros
"H"
.
...
...
@@ -428,7 +428,19 @@ Proof.
Qed
.
Lemma
test_iAssumption_False_no_loop
:
∃
R
,
R
⊢
∀
P
,
P
.
Proof
.
eexists
.
iIntros
"?"
(
P
).
done
.
Qed
.
Proof
.
eexists
.
iIntros
"?"
(
P
).
(* Can't pick P as R must not depend on P. *)
done
.
Qed
.
Lemma
test_goal_evar
P
:
∃
R
,
(
□
P
⊢
R
)
∧
R
=
emp
%
I
.
Proof
.
eexists
.
split
.
-
iIntros
"#HP"
.
done
.
(* Now verify that we picked emp, and not □ P. *)
-
reflexivity
.
Qed
.
Lemma
test_apply_affine_impl
`
{!
BiPlainly
PROP
}
(
P
:
PROP
)
:
P
-
∗
(
∀
Q
:
PROP
,
■
(
Q
-
∗
<
pers
>
Q
)
→
■
(
P
-
∗
Q
)
→
Q
).
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment