Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Abhishek Anand
Iris
Commits
5200948b
Commit
5200948b
authored
7 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
persistently rules
parent
022fd164
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/base_logic/derived.v
+5
-4
5 additions, 4 deletions
theories/base_logic/derived.v
theories/base_logic/primitive.v
+7
-5
7 additions, 5 deletions
theories/base_logic/primitive.v
with
12 additions
and
9 deletions
theories/base_logic/derived.v
+
5
−
4
View file @
5200948b
...
...
@@ -579,7 +579,10 @@ Proof. intros; rewrite -plainly_and_sep_r'; auto. Qed.
Lemma
plainly_laterN
n
P
:
■
▷^
n
P
⊣⊢
▷^
n
■
P
.
Proof
.
induction
n
as
[|
n
IH
];
simpl
;
auto
.
by
rewrite
plainly_later
IH
.
Qed
.
(* Always derived *)
(* Persistently derived *)
Lemma
persistently_mono
P
Q
:
(
P
⊢
Q
)
→
□
P
⊢
□
Q
.
Proof
.
intros
HPQ
.
apply
persistently_intro'
.
rewrite
<-
HPQ
.
exact
:
persistently_elim
.
Qed
.
Hint
Resolve
persistently_mono
persistently_elim
.
Global
Instance
persistently_mono'
:
Proper
((
⊢
)
==>
(
⊢
))
(
@
uPred_persistently
M
)
.
Proof
.
intros
P
Q
;
apply
persistently_mono
.
Qed
.
...
...
@@ -587,10 +590,8 @@ Global Instance persistently_flip_mono' :
Proper
(
flip
(
⊢
)
==>
flip
(
⊢
))
(
@
uPred_persistently
M
)
.
Proof
.
intros
P
Q
;
apply
persistently_mono
.
Qed
.
Lemma
persistently_intro'
P
Q
:
(
□
P
⊢
Q
)
→
□
P
⊢
□
Q
.
Proof
.
intros
<-.
apply
persistently_idemp_2
.
Qed
.
Lemma
persistently_idemp
P
:
□
□
P
⊣⊢
□
P
.
Proof
.
apply
(
anti_symm
_);
auto
using
persistently_i
demp_2
.
Qed
.
Proof
.
apply
(
anti_symm
_);
auto
using
persistently_i
ntro'
.
Qed
.
Lemma
persistently_pure
φ
:
□
⌜
φ
⌝
⊣⊢
⌜
φ
⌝.
Proof
.
by
rewrite
-
plainly_pure
persistently_plainly
.
Qed
.
...
...
This diff is collapsed.
Click to expand it.
theories/base_logic/primitive.v
+
7
−
5
View file @
5200948b
...
...
@@ -446,16 +446,18 @@ Proof.
split
;
eapply
HPQ
;
eauto
using
@
ucmra_unit_least
.
Qed
.
(* Always *)
Lemma
persistently_mono
P
Q
:
(
P
⊢
Q
)
→
□
P
⊢
□
Q
.
Proof
.
intros
HP
;
unseal
;
split
=>
n
x
?
/=.
by
apply
HP
,
cmra_core_validN
.
Qed
.
(* Persistently *)
Lemma
persistently_intro'
P
Q
:
(
□
P
⊢
Q
)
→
□
P
⊢
□
Q
.
Proof
.
unseal
.
intros
HPQ
;
split
=>
n
x
?
/=
HP
.
apply
HPQ
;
first
by
apply
cmra_core_validN
.
simpl
.
rewrite
cmra_core_idemp
.
done
.
Qed
.
Lemma
persistently_elim
P
:
□
P
⊢
P
.
Proof
.
unseal
;
split
=>
n
x
?
/=.
eauto
using
uPred_mono
,
@
cmra_included_core
,
cmra_included_includedN
.
Qed
.
Lemma
persistently_idemp_2
P
:
□
P
⊢
□
□
P
.
Proof
.
unseal
;
split
=>
n
x
??
/=.
by
rewrite
cmra_core_idemp
.
Qed
.
Lemma
persistently_forall_2
{
A
}
(
Ψ
:
A
→
uPred
M
)
:
(
∀
a
,
□
Ψ
a
)
⊢
(
□
∀
a
,
Ψ
a
)
.
Proof
.
by
unseal
.
Qed
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment