Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris-coq
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
Michael Sammler
iris-coq
Commits
5a46ccf6
Commit
5a46ccf6
authored
6 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
strengthen fixpoint non-expansiveness lemmas
parent
78dedb27
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/lib/fixpoint.v
+27
-6
27 additions, 6 deletions
theories/bi/lib/fixpoint.v
with
27 additions
and
6 deletions
theories/bi/lib/fixpoint.v
+
27
−
6
View file @
5a46ccf6
...
@@ -22,12 +22,17 @@ Definition bi_greatest_fixpoint {PROP : bi} {A : ofeT}
...
@@ -22,12 +22,17 @@ Definition bi_greatest_fixpoint {PROP : bi} {A : ofeT}
tc_opaque
(
∃
Φ
:
A
-
n
>
PROP
,
<
pers
>
(
∀
x
,
Φ
x
-∗
F
Φ
x
)
∧
Φ
x
)
%
I
.
tc_opaque
(
∃
Φ
:
A
-
n
>
PROP
,
<
pers
>
(
∀
x
,
Φ
x
-∗
F
Φ
x
)
∧
Φ
x
)
%
I
.
Arguments
bi_greatest_fixpoint
:
simpl
never
.
Arguments
bi_greatest_fixpoint
:
simpl
never
.
Global
Instance
least_fixpoint_ne
{
PROP
:
bi
}
{
A
:
ofeT
}
n
:
Proper
(
pointwise_relation
(
A
→
PROP
)
(
pointwise_relation
A
(
dist
n
))
==>
dist
n
==>
dist
n
)
bi_least_fixpoint
.
Proof
.
intros
F1
F2
HF
x1
x2
Hx
.
rewrite
/
bi_least_fixpoint
/=.
do
7
(
fast_done
||
f_equiv
)
.
apply
HF
.
Qed
.
Section
least
.
Section
least
.
Context
{
PROP
:
bi
}
{
A
:
ofeT
}
(
F
:
(
A
→
PROP
)
→
(
A
→
PROP
))
`{
!
BiMonoPred
F
}
.
Context
{
PROP
:
bi
}
{
A
:
ofeT
}
(
F
:
(
A
→
PROP
)
→
(
A
→
PROP
))
`{
!
BiMonoPred
F
}
.
Global
Instance
least_fixpoint_ne
:
NonExpansive
(
bi_least_fixpoint
F
)
.
Proof
.
solve_proper
.
Qed
.
Lemma
least_fixpoint_unfold_2
x
:
F
(
bi_least_fixpoint
F
)
x
⊢
bi_least_fixpoint
F
x
.
Lemma
least_fixpoint_unfold_2
x
:
F
(
bi_least_fixpoint
F
)
x
⊢
bi_least_fixpoint
F
x
.
Proof
.
Proof
.
rewrite
/
bi_least_fixpoint
/=.
iIntros
"HF"
(
Φ
)
"#Hincl"
.
rewrite
/
bi_least_fixpoint
/=.
iIntros
"HF"
(
Φ
)
"#Hincl"
.
...
@@ -68,12 +73,28 @@ Section least.
...
@@ -68,12 +73,28 @@ Section least.
Qed
.
Qed
.
End
least
.
End
least
.
Lemma
greatest_fixpoint_ne_outer
{
PROP
:
bi
}
{
A
:
ofeT
}
(
F1
:
(
A
→
PROP
)
→
(
A
→
PROP
))
(
F2
:
(
A
→
PROP
)
→
(
A
→
PROP
)):
(
∀
Φ
x
n
,
F1
Φ
x
≡
{
n
}
≡
F2
Φ
x
)
→
∀
x1
x2
n
,
(
dist
n
)
x1
x2
→
(
dist
n
)
(
bi_greatest_fixpoint
F1
x1
)
(
bi_greatest_fixpoint
F2
x2
)
.
Proof
.
intros
HF
???
Hx
.
rewrite
/
bi_greatest_fixpoint
/=.
f_equiv
.
f_equiv
.
f_equiv
.
2
:
solve_proper
.
f_equiv
.
f_equiv
.
f_equiv
.
f_equiv
.
apply
HF
.
Qed
.
Global
Instance
greatest_fixpoint_ne
{
PROP
:
bi
}
{
A
:
ofeT
}
n
:
Proper
(
pointwise_relation
(
A
→
PROP
)
(
pointwise_relation
A
(
dist
n
))
==>
dist
n
==>
dist
n
)
bi_greatest_fixpoint
.
Proof
.
intros
F1
F2
HF
x1
x2
Hx
.
rewrite
/
bi_greatest_fixpoint
/=.
do
7
(
fast_done
||
f_equiv
)
.
apply
HF
.
Qed
.
Section
greatest
.
Section
greatest
.
Context
{
PROP
:
bi
}
{
A
:
ofeT
}
(
F
:
(
A
→
PROP
)
→
(
A
→
PROP
))
`{
!
BiMonoPred
F
}
.
Context
{
PROP
:
bi
}
{
A
:
ofeT
}
(
F
:
(
A
→
PROP
)
→
(
A
→
PROP
))
`{
!
BiMonoPred
F
}
.
Global
Instance
greatest_fixpoint_ne
:
NonExpansive
(
bi_greatest_fixpoint
F
)
.
Proof
.
solve_proper
.
Qed
.
Lemma
greatest_fixpoint_unfold_1
x
:
Lemma
greatest_fixpoint_unfold_1
x
:
bi_greatest_fixpoint
F
x
⊢
F
(
bi_greatest_fixpoint
F
)
x
.
bi_greatest_fixpoint
F
x
⊢
F
(
bi_greatest_fixpoint
F
)
x
.
Proof
.
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