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
38881ccf
Commit
38881ccf
authored
3 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
add NonExpansive3, NonExpansive4
parent
7607c53e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
iris/algebra/ofe.v
+7
-3
7 additions, 3 deletions
iris/algebra/ofe.v
tests/algebra.v
+6
-12
6 additions, 12 deletions
tests/algebra.v
with
13 additions
and
15 deletions
iris/algebra/ofe.v
+
7
−
3
View file @
38881ccf
...
...
@@ -28,6 +28,10 @@ Global Hint Extern 0 (_ ≡{_}≡ _) => reflexivity : core.
Global
Hint
Extern
0
(_
≡
{_}
≡
_)
=>
symmetry
;
assumption
:
core
.
Notation
NonExpansive
f
:=
(
∀
n
,
Proper
(
dist
n
==>
dist
n
)
f
)
.
Notation
NonExpansive2
f
:=
(
∀
n
,
Proper
(
dist
n
==>
dist
n
==>
dist
n
)
f
)
.
Notation
NonExpansive3
f
:=
(
∀
n
,
Proper
(
dist
n
==>
dist
n
==>
dist
n
==>
dist
n
)
f
)
.
Notation
NonExpansive4
f
:=
(
∀
n
,
Proper
(
dist
n
==>
dist
n
==>
dist
n
==>
dist
n
==>
dist
n
)
f
)
.
Tactic
Notation
"ofe_subst"
ident
(
x
)
:=
repeat
match
goal
with
...
...
@@ -614,9 +618,9 @@ Proof. apply ne_proper_2; apply _. Qed.
(* Function space maps *)
Definition
ofe_mor_map
{
A
A'
B
B'
}
(
f
:
A'
-
n
>
A
)
(
g
:
B
-
n
>
B'
)
(
h
:
A
-
n
>
B
)
:
A'
-
n
>
B'
:=
g
◎
h
◎
f
.
Global
Instance
ofe_mor_map_ne
{
A
A'
B
B'
}
n
:
Proper
(
dist
n
==>
dist
n
==>
dist
n
==>
dist
n
)
(
@
ofe_mor_map
A
A'
B
B'
)
.
Proof
.
intros
???
???
???
.
by
repeat
apply
ccompose_ne
.
Qed
.
Global
Instance
ofe_mor_map_ne
{
A
A'
B
B'
}
:
NonExpansive3
(
@
ofe_mor_map
A
A'
B
B'
)
.
Proof
.
intros
n
???
???
???
.
by
repeat
apply
ccompose_ne
.
Qed
.
Definition
ofe_morO_map
{
A
A'
B
B'
}
(
f
:
A'
-
n
>
A
)
(
g
:
B
-
n
>
B'
)
:
(
A
-
n
>
B
)
-
n
>
(
A'
-
n
>
B'
)
:=
OfeMor
(
ofe_mor_map
f
g
)
.
...
...
This diff is collapsed.
Click to expand it.
tests/algebra.v
+
6
−
12
View file @
38881ccf
...
...
@@ -70,27 +70,21 @@ Definition gmap_view_check {K : Type} `{Countable K} {V : ofe} :
gmap_view
K
V
=
gmap_viewO
K
V
:=
eq_refl
.
Lemma
uncurry_ne_test
{
A
B
C
:
ofe
}
(
f
:
A
→
B
→
C
)
:
(
∀
n
,
Proper
(
dist
n
==>
dist
n
==>
dist
n
)
f
)
→
NonExpansive
(
uncurry
f
)
.
NonExpansive2
f
→
NonExpansive
(
uncurry
f
)
.
Proof
.
apply
_
.
Qed
.
Lemma
uncurry3_ne_test
{
A
B
C
D
:
ofe
}
(
f
:
A
→
B
→
C
→
D
)
:
(
∀
n
,
Proper
(
dist
n
==>
dist
n
==>
dist
n
==>
dist
n
)
f
)
→
NonExpansive
(
uncurry3
f
)
.
NonExpansive3
f
→
NonExpansive
(
uncurry3
f
)
.
Proof
.
apply
_
.
Qed
.
Lemma
uncurry4_ne_test
{
A
B
C
D
E
:
ofe
}
(
f
:
A
→
B
→
C
→
D
→
E
)
:
(
∀
n
,
Proper
(
dist
n
==>
dist
n
==>
dist
n
==>
dist
n
==>
dist
n
)
f
)
→
NonExpansive
(
uncurry4
f
)
.
NonExpansive4
f
→
NonExpansive
(
uncurry4
f
)
.
Proof
.
apply
_
.
Qed
.
Lemma
curry_ne_test
{
A
B
C
:
ofe
}
(
f
:
A
*
B
→
C
)
:
NonExpansive
f
→
∀
n
,
Proper
(
dist
n
==>
dist
n
==>
dist
n
)
(
curry
f
)
.
NonExpansive
f
→
NonExpansive2
(
curry
f
)
.
Proof
.
apply
_
.
Qed
.
Lemma
curry3_ne_test
{
A
B
C
D
:
ofe
}
(
f
:
A
*
B
*
C
→
D
)
:
NonExpansive
f
→
∀
n
,
Proper
(
dist
n
==>
dist
n
==>
dist
n
==>
dist
n
)
(
curry3
f
)
.
NonExpansive
f
→
NonExpansive3
(
curry3
f
)
.
Proof
.
apply
_
.
Qed
.
Lemma
curry4_ne_test
{
A
B
C
D
E
:
ofe
}
(
f
:
A
*
B
*
C
*
D
→
E
)
:
NonExpansive
f
→
∀
n
,
Proper
(
dist
n
==>
dist
n
==>
dist
n
==>
dist
n
==>
dist
n
)
(
curry4
f
)
.
NonExpansive
f
→
NonExpansive4
(
curry4
f
)
.
Proof
.
apply
_
.
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