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
ef41b4a5
Commit
ef41b4a5
authored
5 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
mention which categories these functors map to which
parent
ab1d1473
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/algebra/cmra.v
+2
-1
2 additions, 1 deletion
theories/algebra/cmra.v
theories/algebra/ofe.v
+1
-1
1 addition, 1 deletion
theories/algebra/ofe.v
with
3 additions
and
2 deletions
theories/algebra/cmra.v
+
2
−
1
View file @
ef41b4a5
...
@@ -774,7 +774,7 @@ Section cmra_morphism.
...
@@ -774,7 +774,7 @@ Section cmra_morphism.
Proof
.
rewrite
!
cmra_valid_validN
;
eauto
using
cmra_morphism_validN
.
Qed
.
Proof
.
rewrite
!
cmra_valid_validN
;
eauto
using
cmra_morphism_validN
.
Qed
.
End
cmra_morphism
.
End
cmra_morphism
.
(** Functors *)
(**
OFE → CMRA
Functors *)
Record
rFunctor
:=
RFunctor
{
Record
rFunctor
:=
RFunctor
{
rFunctor_car
:
∀
A
`{
!
Cofe
A
}
B
`{
!
Cofe
B
},
cmraT
;
rFunctor_car
:
∀
A
`{
!
Cofe
A
}
B
`{
!
Cofe
B
},
cmraT
;
rFunctor_map
`{
!
Cofe
A1
,
!
Cofe
A2
,
!
Cofe
B1
,
!
Cofe
B2
}
:
rFunctor_map
`{
!
Cofe
A1
,
!
Cofe
A2
,
!
Cofe
B1
,
!
Cofe
B2
}
:
...
@@ -812,6 +812,7 @@ Coercion constRF : cmraT >-> rFunctor.
...
@@ -812,6 +812,7 @@ Coercion constRF : cmraT >-> rFunctor.
Instance
constRF_contractive
B
:
rFunctorContractive
(
constRF
B
)
.
Instance
constRF_contractive
B
:
rFunctorContractive
(
constRF
B
)
.
Proof
.
rewrite
/
rFunctorContractive
;
apply
_
.
Qed
.
Proof
.
rewrite
/
rFunctorContractive
;
apply
_
.
Qed
.
(** OFE → UCMRA Functors *)
Record
urFunctor
:=
URFunctor
{
Record
urFunctor
:=
URFunctor
{
urFunctor_car
:
∀
A
`{
!
Cofe
A
}
B
`{
!
Cofe
B
},
ucmraT
;
urFunctor_car
:
∀
A
`{
!
Cofe
A
}
B
`{
!
Cofe
B
},
ucmraT
;
urFunctor_map
`{
!
Cofe
A1
,
!
Cofe
A2
,
!
Cofe
B1
,
!
Cofe
B2
}
:
urFunctor_map
`{
!
Cofe
A1
,
!
Cofe
A2
,
!
Cofe
B1
,
!
Cofe
B2
}
:
...
...
This diff is collapsed.
Click to expand it.
theories/algebra/ofe.v
+
1
−
1
View file @
ef41b4a5
...
@@ -684,7 +684,7 @@ Instance prodO_map_ne {A A' B B'} :
...
@@ -684,7 +684,7 @@ Instance prodO_map_ne {A A' B B'} :
NonExpansive2
(
@
prodO_map
A
A'
B
B'
)
.
NonExpansive2
(
@
prodO_map
A
A'
B
B'
)
.
Proof
.
intros
n
f
f'
Hf
g
g'
Hg
[??];
split
;
[
apply
Hf
|
apply
Hg
]
.
Qed
.
Proof
.
intros
n
f
f'
Hf
g
g'
Hg
[??];
split
;
[
apply
Hf
|
apply
Hg
]
.
Qed
.
(** Functors *)
(**
OFE → OFE
Functors *)
Record
oFunctor
:=
OFunctor
{
Record
oFunctor
:=
OFunctor
{
oFunctor_car
:
∀
A
`{
!
Cofe
A
}
B
`{
!
Cofe
B
},
ofeT
;
oFunctor_car
:
∀
A
`{
!
Cofe
A
}
B
`{
!
Cofe
B
},
ofeT
;
oFunctor_map
`{
!
Cofe
A1
,
!
Cofe
A2
,
!
Cofe
B1
,
!
Cofe
B2
}
:
oFunctor_map
`{
!
Cofe
A1
,
!
Cofe
A2
,
!
Cofe
B1
,
!
Cofe
B2
}
:
...
...
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