Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonas Kastberg
iris
Commits
5e608261
Commit
5e608261
authored
Oct 04, 2018
by
Ralf Jung
Browse files
fix clear pattern in destruct pattern
parent
045c2d15
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/proofmode.v
View file @
5e608261
...
...
@@ -587,6 +587,12 @@ Proof.
iIntros
"?"
.
iExists
_
.
iApply
modal_if_lemma2
.
done
.
Qed
.
Lemma
test_iDestruct_clear
P
Q
R
:
P
-
∗
(
Q
∗
R
)
-
∗
True
.
Proof
.
iIntros
"HP HQR"
.
iDestruct
"HQR"
as
"{HP} [HQ HR]"
.
done
.
Qed
.
End
tests
.
(** Test specifically if certain things print correctly. *)
...
...
theories/proofmode/ltac_tactics.v
View file @
5e608261
...
...
@@ -1102,19 +1102,19 @@ Local Ltac iDestructHypGo Hz pat :=
|
IModalElim
?pat
=>
iModCore
Hz
;
iDestructHypGo
Hz
pat
|
_
=>
fail
"iDestruct:"
pat
"invalid"
end
.
Local
Ltac
iDestructHypFindPat
H
pat
found
pats
:
=
Local
Ltac
iDestructHypFindPat
H
go
pat
found
pats
:
=
lazymatch
pats
with
|
[]
=>
lazymatch
found
with
|
true
=>
pm_prettify
(* post-tactic prettification *)
|
false
=>
fail
"iDestruct:"
pat
"should contain exactly one proper introduction pattern"
end
|
ISimpl
::
?pats
=>
simpl
;
iDestructHypFindPat
H
pat
found
pats
|
IClear
?H
::
?pats
=>
iClear
H
;
iDestructHypFindPat
H
pat
found
pats
|
IClearFrame
?H
::
?pats
=>
iFrame
H
;
iDestructHypFindPat
H
pat
found
pats
|
ISimpl
::
?pats
=>
simpl
;
iDestructHypFindPat
H
go
pat
found
pats
|
IClear
?H
::
?pats
=>
iClear
H
;
iDestructHypFindPat
H
go
pat
found
pats
|
IClearFrame
?H
::
?pats
=>
iFrame
H
;
iDestructHypFindPat
H
go
pat
found
pats
|
?pat
::
?pats
=>
lazymatch
found
with
|
false
=>
iDestructHypGo
H
pat
;
iDestructHypFindPat
H
pat
true
pats
|
false
=>
iDestructHypGo
H
go
pat
;
iDestructHypFindPat
H
go
pat
true
pats
|
true
=>
fail
"iDestruct:"
pat
"should contain exactly one proper introduction pattern"
end
end
.
...
...
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