Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iris
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jonas Kastberg
iris
Commits
fa0e8eb8
Commit
fa0e8eb8
authored
Apr 20, 2018
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Let `done` and friends fail when the proofmode goal is an evar.
This fixes issue #182.
parent
78dedb27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
theories/proofmode/tactics.v
theories/proofmode/tactics.v
+2
-1
theories/tests/proofmode.v
theories/tests/proofmode.v
+4
-1
No files found.
theories/proofmode/tactics.v
View file @
fa0e8eb8
...
...
@@ -1964,7 +1964,8 @@ 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
_
?Q
)
=>
first
[
is_evar
Q
;
fail
1
|
iAssumption
].
Hint
Extern
0
(
envs_entails
_
emp
)
=>
iEmpIntro
.
(* TODO: look for a more principled way of adding trivial hints like those
...
...
theories/tests/proofmode.v
View file @
fa0e8eb8
...
...
@@ -86,6 +86,9 @@ Proof. eexists. iIntros "?" (P). iAssumption. Qed.
Lemma
test_iAssumption_affine
P
Q
R
`
{!
Affine
P
,
!
Affine
R
}
:
P
-
∗
Q
-
∗
R
-
∗
Q
.
Proof
.
iIntros
"H1 H2 H3"
.
iAssumption
.
Qed
.
Lemma
test_done_goal_evar
Q
:
∃
P
,
Q
⊢
P
.
Proof
.
eexists
.
iIntros
"H"
.
Fail
done
.
iAssumption
.
Qed
.
Lemma
test_iDestruct_spatial_and
P
Q1
Q2
:
P
∗
(
Q1
∧
Q2
)
-
∗
P
∗
Q1
.
Proof
.
iIntros
"[H [? _]]"
.
by
iFrame
.
Qed
.
...
...
@@ -405,7 +408,7 @@ Lemma iFrame_with_evar_l P Q :
∃
R
,
(
P
-
∗
Q
-
∗
R
∗
P
)
∧
R
=
Q
.
Proof
.
eexists
.
split
.
iIntros
"HP HQ"
.
Fail
iFrame
"HQ"
.
by
iSplitR
"HP"
.
done
.
iSplitR
"HP"
;
iAssumption
.
done
.
Qed
.
Lemma
iFrame_with_evar_persistent
P
Q
:
∃
R
,
(
P
-
∗
□
Q
-
∗
P
∗
R
∗
Q
)
∧
R
=
emp
%
I
.
...
...
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