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
Dmitry Khalanskiy
Iris
Commits
5e608261
Commit
5e608261
authored
Oct 04, 2018
by
Ralf Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix clear pattern in destruct pattern
parent
045c2d15
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
tests/proofmode.v
tests/proofmode.v
+6
-0
theories/proofmode/ltac_tactics.v
theories/proofmode/ltac_tactics.v
+5
-5
No files found.
tests/proofmode.v
View file @
5e608261
...
@@ -587,6 +587,12 @@ Proof.
...
@@ -587,6 +587,12 @@ Proof.
iIntros
"?"
.
iExists
_
.
iApply
modal_if_lemma2
.
done
.
iIntros
"?"
.
iExists
_
.
iApply
modal_if_lemma2
.
done
.
Qed
.
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
.
End
tests
.
(** Test specifically if certain things print correctly. *)
(** Test specifically if certain things print correctly. *)
...
...
theories/proofmode/ltac_tactics.v
View file @
5e608261
...
@@ -1102,19 +1102,19 @@ Local Ltac iDestructHypGo Hz pat :=
...
@@ -1102,19 +1102,19 @@ Local Ltac iDestructHypGo Hz pat :=
|
IModalElim
?pat
=>
iModCore
Hz
;
iDestructHypGo
Hz
pat
|
IModalElim
?pat
=>
iModCore
Hz
;
iDestructHypGo
Hz
pat
|
_
=>
fail
"iDestruct:"
pat
"invalid"
|
_
=>
fail
"iDestruct:"
pat
"invalid"
end
.
end
.
Local
Ltac
iDestructHypFindPat
H
pat
found
pats
:
=
Local
Ltac
iDestructHypFindPat
H
go
pat
found
pats
:
=
lazymatch
pats
with
lazymatch
pats
with
|
[]
=>
|
[]
=>
lazymatch
found
with
lazymatch
found
with
|
true
=>
pm_prettify
(* post-tactic prettification *)
|
true
=>
pm_prettify
(* post-tactic prettification *)
|
false
=>
fail
"iDestruct:"
pat
"should contain exactly one proper introduction pattern"
|
false
=>
fail
"iDestruct:"
pat
"should contain exactly one proper introduction pattern"
end
end
|
ISimpl
::
?pats
=>
simpl
;
iDestructHypFindPat
H
pat
found
pats
|
ISimpl
::
?pats
=>
simpl
;
iDestructHypFindPat
H
go
pat
found
pats
|
IClear
?H
::
?pats
=>
iClear
H
;
iDestructHypFindPat
H
pat
found
pats
|
IClear
?H
::
?pats
=>
iClear
H
;
iDestructHypFindPat
H
go
pat
found
pats
|
IClearFrame
?H
::
?pats
=>
iFrame
H
;
iDestructHypFindPat
H
pat
found
pats
|
IClearFrame
?H
::
?pats
=>
iFrame
H
;
iDestructHypFindPat
H
go
pat
found
pats
|
?pat
::
?pats
=>
|
?pat
::
?pats
=>
lazymatch
found
with
lazymatch
found
with
|
false
=>
iDestructHypGo
H
pat
;
iDestructHypFindPat
H
pat
true
pats
|
false
=>
iDestructHypGo
H
go
pat
;
iDestructHypFindPat
Hgo
pat
true
pats
|
true
=>
fail
"iDestruct:"
pat
"should contain exactly one proper introduction pattern"
|
true
=>
fail
"iDestruct:"
pat
"should contain exactly one proper introduction pattern"
end
end
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