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
William Mansky
Iris
Commits
bd15a981
Commit
bd15a981
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Prove Timelessness of pure in the logic.
parent
0e49878b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
algebra/upred.v
+9
-3
9 additions, 3 deletions
algebra/upred.v
with
9 additions
and
3 deletions
algebra/upred.v
+
9
−
3
View file @
bd15a981
...
...
@@ -731,6 +731,12 @@ Lemma pure_elim_r φ Q R : (φ → Q ⊢ R) → Q ∧ ■ φ ⊢ R.
Proof
.
intros
;
apply
pure_elim
with
φ
;
eauto
.
Qed
.
Lemma
pure_equiv
(
φ
:
Prop
)
:
φ
→
■
φ
⊣⊢
True
.
Proof
.
intros
;
apply
(
anti_symm
_);
auto
using
pure_intro
.
Qed
.
Lemma
pure_alt
φ
:
■
φ
⊣⊢
∃
_
:
φ
,
True
.
Proof
.
apply
(
anti_symm
_)
.
-
eapply
pure_elim
;
eauto
=>
H
.
rewrite
-
(
exist_intro
H
);
auto
.
-
by
apply
exist_elim
,
pure_intro
.
Qed
.
Lemma
eq_refl'
{
A
:
cofeT
}
(
a
:
A
)
P
:
P
⊢
a
≡
a
.
Proof
.
rewrite
(
True_intro
P
)
.
apply
eq_refl
.
Qed
.
...
...
@@ -1014,8 +1020,6 @@ Proof.
unseal
;
split
=>
n
x
?
HP
;
induction
n
as
[|
n
IH
];
[
by
apply
HP
|]
.
apply
HP
,
IH
,
uPred_closed
with
(
S
n
);
eauto
using
cmra_validN_S
.
Qed
.
Lemma
later_pure
φ
:
▷
■
φ
⊢
▷
False
∨
■
φ
.
Proof
.
unseal
;
split
=>
-
[|
n
]
x
??
/=
;
auto
.
Qed
.
Lemma
later_and
P
Q
:
▷
(
P
∧
Q
)
⊣⊢
▷
P
∧
▷
Q
.
Proof
.
unseal
;
split
=>
-
[|
n
]
x
;
by
split
.
Qed
.
Lemma
later_or
P
Q
:
▷
(
P
∨
Q
)
⊣⊢
▷
P
∨
▷
Q
.
...
...
@@ -1254,7 +1258,9 @@ Proof. uPred.unseal. by destruct mx. Qed.
(* Timeless instances *)
Global
Instance
pure_timeless
φ
:
TimelessP
(
■
φ
:
uPred
M
)
%
I
.
Proof
.
by
rewrite
/
TimelessP
later_pure
.
Qed
.
Proof
.
rewrite
/
TimelessP
pure_alt
later_exist_false
.
by
setoid_rewrite
later_True
.
Qed
.
Global
Instance
valid_timeless
{
A
:
cmraT
}
`{
CMRADiscrete
A
}
(
a
:
A
)
:
TimelessP
(
✓
a
:
uPred
M
)
%
I
.
Proof
.
rewrite
/
TimelessP
!
discrete_valid
.
apply
(
timelessP
_)
.
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