Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
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
Pierre Roux
Iris
Commits
58740229
Commit
58740229
authored
7 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Plainness and persistence of implications and wands.
parent
60df6185
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
+14
-12
14 additions, 12 deletions
theories/base_logic/derived.v
theories/base_logic/primitive.v
+14
-0
14 additions, 0 deletions
theories/base_logic/primitive.v
with
28 additions
and
12 deletions
theories/base_logic/derived.v
+
14
−
12
View file @
58740229
...
...
@@ -1004,14 +1004,15 @@ Qed.
(* Plain *)
Global
Instance
pure_plain
φ
:
Plain
(
⌜
φ
⌝
:
uPred
M
)
%
I
.
Proof
.
by
rewrite
/
Plain
plainly_pure
.
Qed
.
Global
Instance
pure_
impl_plain
φ
Q
:
Plain
Q
→
Plain
(
⌜
φ
⌝
→
Q
)
%
I
.
Global
Instance
impl_plain
P
Q
:
Plain
P
→
Plain
Q
→
Plain
(
P
→
Q
)
.
Proof
.
rewrite
/
Plain
pure_impl_forall
plainly_forall
.
auto
using
forall_mono
.
rewrite
/
Plain
=>
HP
HQ
.
by
rewrite
{
2
}
HP
-
plainly_impl_plainly
-
HQ
plainly_elim
.
Qed
.
Global
Instance
pure_
wand_plain
φ
Q
:
Plain
Q
→
Plain
(
⌜
φ
⌝
-∗
Q
)
%
I
.
Global
Instance
wand_plain
P
Q
:
Plain
P
→
Plain
Q
→
Plain
(
P
-∗
Q
)
%
I
.
Proof
.
intros
HQ
.
rewrite
/
Plain
-
persistently_pure
-!
impl_wand_persistently
.
rewrite
persistently_pure
pure_impl_forall
plainly_forall
.
auto
using
forall_mono
.
rewrite
/
Plain
=>
HP
HQ
.
by
rewrite
{
2
}
HP
-
{
1
}(
plainly_elim
P
)
!
wand_impl_plainly
-
plainly_impl_plainly
-
HQ
.
Qed
.
Global
Instance
plainly_plain
P
:
Plain
(
■
P
)
.
Proof
.
by
intros
;
apply
plainly_intro'
.
Qed
.
...
...
@@ -1051,16 +1052,17 @@ Proof. destruct mx; apply _. Qed.
(* Persistence *)
Global
Instance
pure_persistent
φ
:
Persistent
(
⌜
φ
⌝
:
uPred
M
)
%
I
.
Proof
.
by
rewrite
/
Persistent
persistently_pure
.
Qed
.
Global
Instance
pure_
impl_persistent
φ
Q
:
Persistent
Q
→
Persistent
(
⌜
φ
⌝
→
Q
)
%
I
.
Global
Instance
impl_persistent
P
Q
:
Plain
P
→
Persistent
Q
→
Persistent
(
P
→
Q
)
.
Proof
.
rewrite
/
Persistent
pure_impl_forall
persistently_forall
.
auto
using
forall_mono
.
rewrite
/
Plain
/
Persistent
=>
HP
HQ
.
rewrite
{
2
}
HP
-
persistently_impl_plainly
.
by
rewrite
-
HQ
plainly_elim
.
Qed
.
Global
Instance
pure_
wand_persistent
φ
Q
:
Persistent
Q
→
Persistent
(
⌜
φ
⌝
-∗
Q
)
%
I
.
Global
Instance
wand_persistent
P
Q
:
Plain
P
→
Persistent
Q
→
Persistent
(
P
-∗
Q
)
%
I
.
Proof
.
rewrite
/
P
ersistent
-
impl_wand
pure_impl_forall
persistently_forall
.
auto
using
forall_mono
.
rewrite
/
P
lain
/
Persistent
=>
HP
HQ
.
by
rewrite
{
2
}
HP
-
{
1
}(
plainly_elim
P
)
!
wand_impl_plainly
-
persistently_impl_plainly
-
HQ
.
Qed
.
Global
Instance
plainly_persistent
P
:
Persistent
(
■
P
)
.
Proof
.
by
rewrite
/
Persistent
persistently_plainly
.
Qed
.
...
...
This diff is collapsed.
Click to expand it.
theories/base_logic/primitive.v
+
14
−
0
View file @
58740229
...
...
@@ -480,6 +480,20 @@ Proof.
by
rewrite
cmra_core_l
cmra_core_idemp
.
Qed
.
Lemma
persistently_impl_plainly
P
Q
:
(
■
P
→
□
Q
)
⊢
□
(
■
P
→
Q
)
.
Proof
.
unseal
;
split
=>
/=
n
x
?
HPQ
n'
x'
????
.
eapply
uPred_mono
with
(
core
x
),
cmra_included_includedN
;
auto
.
apply
(
HPQ
n'
x
);
eauto
using
cmra_validN_le
.
Qed
.
Lemma
plainly_impl_plainly
P
Q
:
(
■
P
→
■
Q
)
⊢
■
(
■
P
→
Q
)
.
Proof
.
unseal
;
split
=>
/=
n
x
?
HPQ
n'
x'
????
.
eapply
uPred_mono
with
ε
,
cmra_included_includedN
;
auto
.
apply
(
HPQ
n'
x
);
eauto
using
cmra_validN_le
.
Qed
.
(* Later *)
Lemma
later_mono
P
Q
:
(
P
⊢
Q
)
→
▷
P
⊢
▷
Q
.
Proof
.
...
...
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