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
Jonas Kastberg
iris
Commits
d1b836c8
Commit
d1b836c8
authored
Feb 28, 2018
by
Jacques-Henri Jourdan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure iNext works even if the entailment is not directly an sbi entailment.
parent
ad908d6e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
theories/proofmode/tactics.v
theories/proofmode/tactics.v
+2
-1
theories/tests/proofmode_monpred.v
theories/tests/proofmode_monpred.v
+4
-0
No files found.
theories/proofmode/tactics.v
View file @
d1b836c8
...
...
@@ -964,7 +964,8 @@ Local Tactic Notation "iExistDestruct" constr(H)
(** * Modality introduction *)
Tactic
Notation
"iModIntro"
open_constr
(
M
)
:
=
iStartProof
;
eapply
tac_modal_intro
with
M
_
_
_
_;
let
bi
:
=
lazymatch
goal
with
|-
@
envs_entails
?bi
_
_
=>
bi
end
in
eapply
(
tac_modal_intro
(
PROP2
:
=
bi
))
with
M
_
_
_
_;
[
apply
_
||
fail
"iModIntro: the goal is not a modality"
|
apply
_
||
...
...
theories/tests/proofmode_monpred.v
View file @
d1b836c8
...
...
@@ -114,4 +114,8 @@ Section tests.
iIntros
"[$ #HP]"
.
iFrame
"HP"
.
Qed
.
Lemma
test_iNext_Bi
P
:
@
bi_entails
monPredI
(
▷
P
)
(
▷
P
).
Proof
.
iIntros
"H"
.
by
iNext
.
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