Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Rice Wine
Iris
Commits
629385ee
Commit
629385ee
authored
Feb 28, 2018
by
Jacques-Henri Jourdan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MakeEmbed does not need BiEmbedding. It only needs BiEmbed.
parent
aa5b93f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
theories/proofmode/classes.v
theories/proofmode/classes.v
+6
-6
theories/tests/proofmode_monpred.v
theories/tests/proofmode_monpred.v
+7
-0
No files found.
theories/proofmode/classes.v
View file @
629385ee
...
...
@@ -398,14 +398,14 @@ Proof. intros. rewrite /MaybeFrame /=. apply: sep_elim_r. Qed.
would typically try to instantiate this evar with some arbitrary
logical constructs such as emp or True. Therefore, we use an Hint
Mode to disable all the instances that would have this behavior. *)
Class
MakeEmbed
`
{
BiEmbed
ding
PROP
PROP'
}
(
P
:
PROP
)
(
Q
:
PROP'
)
:
=
Class
MakeEmbed
{
PROP
PROP'
:
bi
}
`
{
BiEmbed
PROP
PROP'
}
(
P
:
PROP
)
(
Q
:
PROP'
)
:
=
make_embed
:
⎡
P
⎤
⊣
⊢
Q
.
Arguments
MakeEmbed
{
_
_
_
_
}
_
%
I
_
%
I
.
Hint
Mode
MakeEmbed
+
+
+
+
-
-
:
typeclass_instances
.
Class
KnownMakeEmbed
`
{
BiEmbed
ding
PROP
PROP'
}
(
P
:
PROP
)
(
Q
:
PROP'
)
:
=
Arguments
MakeEmbed
{
_
_
_
}
_
%
I
_
%
I
.
Hint
Mode
MakeEmbed
+
+
+
-
-
:
typeclass_instances
.
Class
KnownMakeEmbed
{
PROP
PROP'
:
bi
}
`
{
BiEmbed
PROP
PROP'
}
(
P
:
PROP
)
(
Q
:
PROP'
)
:
=
known_make_embed
:
>
MakeEmbed
P
Q
.
Arguments
KnownMakeEmbed
{
_
_
_
_
}
_
%
I
_
%
I
.
Hint
Mode
KnownMakeEmbed
+
+
+
+
!
-
:
typeclass_instances
.
Arguments
KnownMakeEmbed
{
_
_
_
}
_
%
I
_
%
I
.
Hint
Mode
KnownMakeEmbed
+
+
+
!
-
:
typeclass_instances
.
Class
MakeSep
{
PROP
:
bi
}
(
P
Q
PQ
:
PROP
)
:
=
make_sep
:
P
∗
Q
⊣
⊢
PQ
.
Arguments
MakeSep
{
_
}
_
%
I
_
%
I
_
%
I
.
...
...
theories/tests/proofmode_monpred.v
View file @
629385ee
...
...
@@ -94,4 +94,11 @@ Section tests.
Proof
.
iIntros
.
iFrame
.
by
iApply
fupd_intro_mask'
.
Qed
.
Lemma
test_iFrame_embed_persistent
(
P
:
PROP
)
(
Q
:
monPred
)
:
Q
∗
□
⎡
P
⎤
⊢
Q
∗
⎡
P
∗
P
⎤
.
Proof
.
iIntros
"[$ #HP]"
.
iFrame
"HP"
.
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