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
Yixuan Chen
Iris
Commits
8862cf75
Commit
8862cf75
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
add gmap_view type notation (mirroring auth)
parent
dc793c10
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/algebra/lib/gmap_view.v
+11
-4
11 additions, 4 deletions
theories/algebra/lib/gmap_view.v
with
11 additions
and
4 deletions
theories/algebra/lib/gmap_view.v
+
11
−
4
View file @
8862cf75
...
...
@@ -94,12 +94,19 @@ End rel.
Local
Existing
Instance
gmap_view_rel_discrete
.
Definition
gmap_viewUR
(
K
:
Type
)
`{
Countable
K
}
(
V
:
ofeT
)
:
ucmraT
:=
viewUR
(
gmap_view_rel
K
V
)
.
Definition
gmap_viewR
(
K
:
Type
)
`{
Countable
K
}
(
V
:
ofeT
)
:
cmraT
:=
viewR
(
gmap_view_rel
K
V
)
.
(** [gmap_view] is a notation to give canonical structure search the chance
to infer the right instances (see [auth]). *)
Notation
gmap_view
K
V
:=
(
view
(
@
gmap_view_rel_raw
K
_
_
V
))
.
Definition
gmap_viewO
(
K
:
Type
)
`{
Countable
K
}
(
V
:
ofeT
)
:
ofeT
:=
viewO
(
gmap_view_rel
K
V
)
.
Definition
gmap_viewR
(
K
:
Type
)
`{
Countable
K
}
(
V
:
ofeT
)
:
cmraT
:=
viewR
(
gmap_view_rel
K
V
)
.
Definition
gmap_viewUR
(
K
:
Type
)
`{
Countable
K
}
(
V
:
ofeT
)
:
ucmraT
:=
viewUR
(
gmap_view_rel
K
V
)
.
(** Make sure the notation does not mix up its arguments. *)
Local
Definition
gmap_view_check
{
K
:
Type
}
`{
Countable
K
}
{
V
:
ofeT
}
:
gmap_view
K
V
=
gmap_viewO
K
V
:=
eq_refl
.
Section
definitions
.
Context
{
K
:
Type
}
`{
Countable
K
}
{
V
:
ofeT
}
.
...
...
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