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
4f9e0cd7
Commit
4f9e0cd7
authored
Feb 23, 2018
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support `Absolute` hypotheses in `iModIntro` for `bi_embed`.
parent
1698a876
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
theories/proofmode/monpred.v
theories/proofmode/monpred.v
+3
-0
theories/tests/proofmode_monpred.v
theories/tests/proofmode_monpred.v
+4
-0
No files found.
theories/proofmode/monpred.v
View file @
4f9e0cd7
...
...
@@ -354,6 +354,9 @@ Global Instance from_modal_monPred_at i P Q 𝓠 :
FromModal P Q → MakeMonPredAt i Q 𝓠 → FromModal (P i) 𝓠.
Proof. by rewrite /FromModal /MakeMonPredAt=> <- <-. Qed.
*)
Global
Instance
into_embed_absolute
P
:
Absolute
P
→
IntoEmbed
P
(
∀
i
,
P
i
).
Proof
.
rewrite
/
IntoEmbed
=>
?.
by
rewrite
{
1
}(
absolute_absolutely
P
).
Qed
.
End
bi
.
(* When P and/or Q are evars when doing typeclass search on [IntoWand
...
...
theories/tests/proofmode_monpred.v
View file @
4f9e0cd7
...
...
@@ -84,6 +84,10 @@ Section tests.
□
P
-
∗
Q
-
∗
⎡𝓟⎤
-
∗
⎡𝓠⎤
-
∗
⎡
𝓟
∗
𝓠
⎤
.
Proof
.
iIntros
"#H1 _ H2 H3"
.
iAlways
.
iFrame
.
Qed
.
Lemma
test_iModIntro_embed_absolute
P
`
{!
Absolute
Q
}
𝓟
𝓠
:
□
P
-
∗
Q
-
∗
⎡𝓟⎤
-
∗
⎡𝓠⎤
-
∗
⎡
∀
i
,
𝓟
∗
𝓠
∗
Q
i
⎤
.
Proof
.
iIntros
"#H1 H2 H3 H4"
.
iAlways
.
iFrame
.
Qed
.
(* This is a hack to avoid avoid coq bug #5735: sections variables
ignore hint modes. So we assume the instances in a way that
cannot be used by type class resolution, and then declare the
...
...
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