Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Rodolphe Lepigre
Iris
Commits
25926e29
Commit
25926e29
authored
Aug 24, 2016
by
Robbert Krebbers
Browse files
Make big ops opaque for type classes.
parent
fd117c28
Changes
1
Hide whitespace changes
Inline
Side-by-side
algebra/upred_big_op.v
View file @
25926e29
...
...
@@ -29,6 +29,7 @@ Definition uPred_big_sepM {M} `{Countable K} {A}
(
m
:
gmap
K
A
)
(
Φ
:
K
→
A
→
uPred
M
)
:
uPred
M
:
=
[
★
]
(
curry
Φ
<$>
map_to_list
m
).
Instance
:
Params
(@
uPred_big_sepM
)
6
.
Typeclasses
Opaque
uPred_big_sepM
.
Notation
"'[★' 'map' ] k ↦ x ∈ m , P"
:
=
(
uPred_big_sepM
m
(
λ
k
x
,
P
))
(
at
level
200
,
m
at
level
10
,
k
,
x
at
level
1
,
right
associativity
,
format
"[★ map ] k ↦ x ∈ m , P"
)
:
uPred_scope
.
...
...
@@ -36,6 +37,7 @@ Notation "'[★' 'map' ] k ↦ x ∈ m , P" := (uPred_big_sepM m (λ k x, P))
Definition
uPred_big_sepS
{
M
}
`
{
Countable
A
}
(
X
:
gset
A
)
(
Φ
:
A
→
uPred
M
)
:
uPred
M
:
=
[
★
]
(
Φ
<$>
elements
X
).
Instance
:
Params
(@
uPred_big_sepS
)
5
.
Typeclasses
Opaque
uPred_big_sepS
.
Notation
"'[★' 'set' ] x ∈ X , P"
:
=
(
uPred_big_sepS
X
(
λ
x
,
P
))
(
at
level
200
,
X
at
level
10
,
x
at
level
1
,
right
associativity
,
format
"[★ set ] x ∈ X , P"
)
:
uPred_scope
.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment