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
Gaëtan Gilbert
Iris
Commits
71dd79c3
Commit
71dd79c3
authored
2 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Derive `NonExpansive`/`Contractive` from an entailment involving internal equality.
parent
037480a3
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
iris/base_logic/derived.v
+30
-0
30 additions, 0 deletions
iris/base_logic/derived.v
with
30 additions
and
0 deletions
iris/base_logic/derived.v
+
30
−
0
View file @
71dd79c3
...
...
@@ -84,6 +84,36 @@ Section derived.
MonoidHomomorphism
op
uPred_sep
(
≡
)
(
@
uPred_ownM
M
)
.
Proof
.
split
;
[
split
|];
try
apply
_;
[
apply
ownM_op
|
apply
ownM_unit'
]
.
Qed
.
(** Derive [NonExpansive]/[Contractive] from an internal statement *)
Lemma
ne_internal_eq
{
A
B
:
ofe
}
(
f
:
A
→
B
)
:
NonExpansive
f
↔
∀
x1
x2
,
x1
≡
x2
⊢
f
x1
≡
f
x2
.
Proof
.
split
;
[
apply
f_equivI
|]
.
intros
Hf
n
x1
x2
.
by
eapply
internal_eq_entails
.
Qed
.
Lemma
ne_2_internal_eq
{
A
B
C
:
ofe
}
(
f
:
A
→
B
→
C
)
:
NonExpansive2
f
↔
∀
x1
x2
y1
y2
,
x1
≡
x2
∧
y1
≡
y2
⊢
f
x1
y1
≡
f
x2
y2
.
Proof
.
split
.
-
intros
Hf
x1
x2
y1
y2
.
change
((
x1
,
y1
).
1
≡
(
x2
,
y2
).
1
∧
(
x1
,
y1
).
2
≡
(
x2
,
y2
).
2
⊢
uncurry
f
(
x1
,
y1
)
≡
uncurry
f
(
x2
,
y2
))
.
rewrite
-
prod_equivI
.
apply
ne_internal_eq
.
solve_proper
.
-
intros
Hf
n
x1
x2
Hx
y1
y2
Hy
.
change
(
uncurry
f
(
x1
,
y1
)
≡
{
n
}
≡
uncurry
f
(
x2
,
y2
))
.
apply
ne_internal_eq
;
[|
done
]
.
intros
[??]
[??]
.
rewrite
prod_equivI
.
apply
Hf
.
Qed
.
Lemma
contractive_internal_eq
{
A
B
:
ofe
}
(
f
:
A
→
B
)
:
Contractive
f
↔
∀
x1
x2
,
▷
(
x1
≡
x2
)
⊢
f
x1
≡
f
x2
.
Proof
.
split
;
[
apply
f_equivI_contractive
|]
.
intros
Hf
n
x1
x2
Hx
.
specialize
(
Hf
x1
x2
)
.
rewrite
-
later_equivI
internal_eq_entails
in
Hf
.
apply
Hf
.
by
f_contractive
.
Qed
.
(** Soundness statement for our modalities: facts derived under modalities in
the empty context also without the modalities.
For basic updates, soundness only holds for plain propositions. *)
...
...
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