Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Jonas Kastberg
iris
Commits
eb74aeab
Commit
eb74aeab
authored
Jun 09, 2019
by
Joseph Tassarotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error messages for iSplitL/iSplitR.
parent
f2a278d5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
2 deletions
+26
-2
tests/proofmode.ref
tests/proofmode.ref
+10
-0
tests/proofmode.v
tests/proofmode.v
+14
-0
theories/proofmode/ltac_tactics.v
theories/proofmode/ltac_tactics.v
+2
-2
No files found.
tests/proofmode.ref
View file @
eb74aeab
...
...
@@ -472,6 +472,16 @@ Tactic failure: iSplitR: hypotheses ["HPx"] not found.
The command has indeed failed with message:
Ltac call to "iSplitR (constr)" failed.
Tactic failure: iSplitR: hypotheses ["HPx"] not found.
"iSplitL_non_splittable"
: string
The command has indeed failed with message:
Ltac call to "iSplitL (constr)" failed.
Tactic failure: iSplitL: P not a separating conjunction.
"iSplitR_non_splittable"
: string
The command has indeed failed with message:
Ltac call to "iSplitR (constr)" failed.
Tactic failure: iSplitR: P not a separating conjunction.
"iCombine_fail"
: string
The command has indeed failed with message:
...
...
tests/proofmode.v
View file @
eb74aeab
...
...
@@ -791,6 +791,20 @@ Proof.
iIntros
"HP1 HP2"
.
Fail
iSplitR
"HP1 HPx"
.
Fail
iSplitR
"HPx HP1"
.
Abort
.
Check
"iSplitL_non_splittable"
.
Lemma
iSplitL_non_splittable
P
:
P
.
Proof
.
Fail
iSplitL
""
.
Abort
.
Check
"iSplitR_non_splittable"
.
Lemma
iSplitR_non_splittable
P
:
P
.
Proof
.
Fail
iSplitR
""
.
Abort
.
Check
"iCombine_fail"
.
Lemma
iCombine_fail
P
:
P
-
∗
P
-
∗
P
∗
P
.
...
...
theories/proofmode/ltac_tactics.v
View file @
eb74aeab
...
...
@@ -1135,7 +1135,7 @@ Tactic Notation "iSplitL" constr(Hs) :=
let
Δ
:
=
iGetCtx
in
eapply
tac_sep_split
with
Left
Hs
_
_;
(* (js:=Hs) *)
[
iSolveTC
||
let
P
:
=
match
goal
with
|-
FromSep
_
?P
_
_
=>
P
end
in
let
P
:
=
match
goal
with
|-
FromSep
?P
_
_
=>
P
end
in
fail
"iSplitL:"
P
"not a separating conjunction"
|
pm_reduce
;
lazymatch
goal
with
...
...
@@ -1151,7 +1151,7 @@ Tactic Notation "iSplitR" constr(Hs) :=
let
Δ
:
=
iGetCtx
in
eapply
tac_sep_split
with
Right
Hs
_
_;
(* (js:=Hs) *)
[
iSolveTC
||
let
P
:
=
match
goal
with
|-
FromSep
_
?P
_
_
=>
P
end
in
let
P
:
=
match
goal
with
|-
FromSep
?P
_
_
=>
P
end
in
fail
"iSplitR:"
P
"not a separating conjunction"
|
pm_reduce
;
lazymatch
goal
with
...
...
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