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
a9310945
Commit
a9310945
authored
2 years ago
by
William Mansky
Browse files
Options
Downloads
Patches
Plain Diff
add fixpoint lemmas for plainly
parent
03eaffa3
No related branches found
No related tags found
No related merge requests found
Pipeline
#79970
failed
2 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
iris/bi/plainly.v
+33
-0
33 additions, 0 deletions
iris/bi/plainly.v
with
33 additions
and
0 deletions
iris/bi/plainly.v
+
33
−
0
View file @
a9310945
...
@@ -659,6 +659,39 @@ Section plainly_derived.
...
@@ -659,6 +659,39 @@ Section plainly_derived.
Global
Instance
except_0_plain
P
:
Plain
P
→
Plain
(
◇
P
)
.
Global
Instance
except_0_plain
P
:
Plain
P
→
Plain
(
◇
P
)
.
Proof
.
rewrite
/
bi_except_0
;
apply
_
.
Qed
.
Proof
.
rewrite
/
bi_except_0
;
apply
_
.
Qed
.
(* Interaction with fixpoint *)
Lemma
fixpoint_plain
{
A
}
(
F
:
(
A
-
d
>
bi_ofeO
PROP
)
->
A
-
d
>
bi_ofeO
PROP
)
`{
Contractive
F
}:
(
∀
Φ
,
(
∀
x
,
Plain
(
Φ
x
))
→
(
∀
x
,
Plain
(
F
Φ
x
)))
→
∀
x
,
Plain
(
fixpoint
F
x
)
.
Proof
.
intros
?
.
apply
fixpoint_ind
.
-
intros
??
Heq
??
.
by
rewrite
-
(
Heq
_)
.
-
exists
(
fun
_
=>
bi_emp
);
intros
;
apply
emp_plain
.
-
auto
.
-
apply
limit_preserving_forall
;
intros
;
apply
limit_preserving_Plain
.
intros
??;
auto
.
Qed
.
Lemma
fixpoint_plain_absorbing
{
A
}
(
F
:
(
A
-
d
>
bi_ofeO
PROP
)
->
A
-
d
>
bi_ofeO
PROP
)
`{
Contractive
F
}:
(
∀
Φ
,
(
∀
x
,
Plain
(
Φ
x
))
→
(
∀
x
,
Absorbing
(
Φ
x
))
→
(
∀
x
,
Plain
(
F
Φ
x
)))
→
(
∀
Φ
,
(
∀
x
,
Plain
(
Φ
x
))
→
(
∀
x
,
Absorbing
(
Φ
x
))
→
(
∀
x
,
Absorbing
(
F
Φ
x
)))
→
∀
x
,
Plain
(
fixpoint
F
x
)
∧
Absorbing
(
fixpoint
F
x
)
.
Proof
.
intros
??
.
apply
fixpoint_ind
.
-
intros
??
Heq
??
.
by
rewrite
-
(
Heq
_)
.
-
exists
(
fun
_
=>
bi_pure
True
);
intros
;
split
;
[
apply
pure_plain
|
apply
bi
.
pure_absorbing
]
.
-
intros
?
Hpa
y
.
assert
((
∀
y
,
Plain
(
x
y
))
∧
(
∀
y
,
Absorbing
(
x
y
)))
as
[??]
by
(
split
;
intros
;
eapply
Hpa
;
eauto
)
.
eauto
.
-
apply
limit_preserving_forall
;
intros
.
apply
limit_preserving_and
;
[
apply
limit_preserving_Plain
;
intros
??;
auto
|]
.
apply
bi
.
limit_preserving_entails
.
+
intros
????
.
by
apply
bi
.
absorbingly_ne
.
+
intros
??;
auto
.
Qed
.
End
plainly_derived
.
End
plainly_derived
.
(* When declared as an actual instance, [plain_persistent] will cause
(* When declared as an actual instance, [plain_persistent] will cause
...
...
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