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
7253dafb
Commit
7253dafb
authored
4 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Prove different versions of Löb rule.
parent
d2a0e5d1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/bi/derived_laws_later.v
+27
-0
27 additions, 0 deletions
theories/bi/derived_laws_later.v
with
27 additions
and
0 deletions
theories/bi/derived_laws_later.v
+
27
−
0
View file @
7253dafb
...
...
@@ -108,6 +108,33 @@ Proof.
rewrite
impl_elim_r
.
done
.
Qed
.
Lemma
löb_wand_intuitionistically
`{
!
BiLöb
PROP
}
P
:
□
(
□
▷
P
-∗
P
)
⊢
P
.
Proof
.
rewrite
-
{
3
}(
intuitionistically_elim
P
)
-
(
löb
(
□
P
)
%
I
)
.
apply
impl_intro_l
.
rewrite
{
1
}
intuitionistically_into_persistently_1
later_persistently
.
rewrite
persistently_and_intuitionistically_sep_l
.
rewrite
-
{
1
}(
intuitionistically_idemp
(
▷
P
)
%
I
)
intuitionistically_sep_2
.
by
rewrite
wand_elim_r
.
Qed
.
Lemma
löb_wand
`{
!
BiLöb
PROP
}
P
:
□
(
▷
P
-∗
P
)
⊢
P
.
Proof
.
by
rewrite
-
(
intuitionistically_elim
(
▷
P
)
%
I
)
löb_wand_intuitionistically
.
Qed
.
(** The proof of the right-to-left direction relies on the BI being affine. It
is unclear how to generalize the lemma or proof to support non-affine BIs. *)
Lemma
löb_alt
`{
!
BiAffine
PROP
}
:
BiLöb
PROP
↔
∀
P
,
□
(
▷
P
-∗
P
)
⊢
P
.
Proof
.
split
;
intros
Hlöb
P
;
[
by
apply
löb_wand
|]
.
rewrite
bi
.
impl_alt
.
apply
bi
.
exist_elim
=>
R
.
apply
impl_elim_r'
.
rewrite
-
(
Hlöb
(
R
→
P
)
%
I
)
-
intuitionistically_into_persistently
.
apply
intuitionistically_intro'
,
wand_intro_l
,
impl_intro_l
.
rewrite
-
persistently_and_intuitionistically_sep_r
assoc
persistently_and_intuitionistically_sep_r
intuitionistically_elim
.
rewrite
-
{
1
}(
idemp
bi_and
R
)
-
(
assoc
_
R
)
{
2
}(
later_intro
R
)
.
by
rewrite
-
later_and
impl_elim_r
(
comm
_
R
)
wand_elim_r
.
Qed
.
(* Iterated later modality *)
Global
Instance
laterN_ne
m
:
NonExpansive
(
@
bi_laterN
PROP
m
)
.
Proof
.
induction
m
;
simpl
.
by
intros
???
.
solve_proper
.
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