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
Iris
Iris
Commits
db4424f2
Commit
db4424f2
authored
Feb 27, 2018
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Accept spec pattern ASTs in `with` syntax.
As requested by
@jtassaro
.
parent
9b0ac0fc
Pipeline
#7074
passed with stage
in 11 minutes and 41 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
theories/proofmode/tactics.v
theories/proofmode/tactics.v
+3
-3
theories/tests/proofmode.v
theories/tests/proofmode.v
+7
-0
No files found.
theories/proofmode/tactics.v
View file @
db4424f2
...
...
@@ -455,9 +455,9 @@ Local Tactic Notation "iIntro" :=
end
.
(** * Specialize *)
Record
iTrm
{
X
As
}
:
=
ITrm
{
itrm
:
X
;
itrm_vars
:
hlist
As
;
itrm_hyps
:
string
}.
Arguments
ITrm
{
_
_
}
_
_
_
.
Record
iTrm
{
X
As
S
}
:
=
ITrm
{
itrm
:
X
;
itrm_vars
:
hlist
As
;
itrm_hyps
:
S
}.
Arguments
ITrm
{
_
_
_
}
_
_
_
.
Notation
"( H $! x1 .. xn )"
:
=
(
ITrm
H
(
hcons
x1
..
(
hcons
xn
hnil
)
..)
""
)
(
at
level
0
,
x1
,
xn
at
level
9
).
...
...
theories/tests/proofmode.v
View file @
db4424f2
...
...
@@ -362,4 +362,11 @@ Proof. iIntros "H". iFrame "H". auto. Qed.
Lemma
test_iFrame_later_2
P
Q
:
▷
P
∗
▷
Q
-
∗
▷
(
▷
P
∗
▷
Q
).
Proof
.
iIntros
"H"
.
iFrame
"H"
.
auto
.
Qed
.
Lemma
test_with_ident
P
Q
R
:
P
-
∗
Q
-
∗
(
P
-
∗
Q
-
∗
R
)
-
∗
R
.
Proof
.
iIntros
"? HQ H"
.
iMatchHyp
(
fun
H
_
=>
iApply
(
"H"
with
[
spec_patterns
.
SIdent
H
;
spec_patterns
.
SIdent
"HQ"
])).
Qed
.
End
tests
.
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