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
c6f4eac5
Commit
c6f4eac5
authored
Oct 24, 2017
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid exponential proof search due to Plain → Persistent instance.
parent
0722547a
Changes
1
Hide whitespace changes
Inline
Sidebyside
Showing
1 changed file
with
13 additions
and
1 deletion
+13
1
theories/base_logic/derived.v
theories/base_logic/derived.v
+13
1
No files found.
theories/base_logic/derived.v
View file @
c6f4eac5
...
...
@@ 960,7 +960,8 @@ Global Instance limit_preserving_Plain {A:ofeT} `{Cofe A} (Φ : A → uPred M) :
NonExpansive
Φ
→
LimitPreserving
(
λ
x
,
Plain
(
Φ
x
)).
Proof
.
intros
.
apply
limit_preserving_entails
;
solve_proper
.
Qed
.
Global
Instance
Plain_Persistent
P
:
Plain
P
→
Persistent
P
.
(* Not an instance, see the bottom of this file *)
Lemma
plain_persistent
P
:
Plain
P
→
Persistent
P
.
Proof
.
rewrite
/
Plain
/
Persistent
=>
HP
.
by
rewrite
{
1
}
HP
plainly_elim'
.
Qed
.
Lemma
plainly_plainly
P
`
{!
Plain
P
}
:
■
P
⊣
⊢
P
.
...
...
@@ 1061,6 +1062,8 @@ Proof.
rewrite
/
Persistent

impl_wand
pure_impl_forall
persistently_forall
.
auto
using
forall_mono
.
Qed
.
Global
Instance
plainly_persistent
P
:
Persistent
(
■
P
).
Proof
.
by
rewrite
/
Persistent
persistently_plainly
.
Qed
.
Global
Instance
persistently_persistent
P
:
Persistent
(
□
P
).
Proof
.
by
intros
;
apply
persistently_intro'
.
Qed
.
Global
Instance
and_persistent
P
Q
:
...
...
@@ 1165,3 +1168,12 @@ Global Instance uPred_ownM_sep_homomorphism :
Proof
.
split
;
[
split
;
try
apply
_
].
apply
ownM_op
.
apply
ownM_unit'
.
Qed
.
End
derived
.
End
uPred
.
(* When declared as an actual instance, [plain_persistent] will give cause
failing proof searches to take exponential time, as Coq will try to apply it
the instance at any node in the proof search tree.
To avoid that, we declare it using a [Hint Immediate], so that it will only be
used at the leaves of the proof search tree, i.e. when the premise of the hint
can be derived from just the current context. *)
Hint
Immediate
uPred
.
plain_persistent
:
typeclass_instances
.
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