Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
Iris
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Khalanskiy
Iris
Commits
b225ccb1
Commit
b225ccb1
authored
Feb 05, 2019
by
Dan Frumin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Monadic bind & join for `option` are non-expansive.
parent
eb921edd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
theories/algebra/ofe.v
theories/algebra/ofe.v
+7
-0
No files found.
theories/algebra/ofe.v
View file @
b225ccb1
...
...
@@ -959,6 +959,13 @@ Arguments optionC : clear implicits.
Instance
option_fmap_ne
{
A
B
:
ofeT
}
n
:
Proper
((
dist
n
==>
dist
n
)
==>
dist
n
==>
dist
n
)
(@
fmap
option
_
A
B
).
Proof
.
intros
f
f'
Hf
??
[]
;
constructor
;
auto
.
Qed
.
Instance
option_mbind_ne
{
A
B
:
ofeT
}
n
:
Proper
((
dist
n
==>
dist
n
)
==>
dist
n
==>
dist
n
)
(@
mbind
option
_
A
B
).
Proof
.
destruct
2
;
simpl
;
auto
.
Qed
.
Instance
option_mjoin_ne
{
A
:
ofeT
}
n
:
Proper
(
dist
n
==>
dist
n
)
(@
mjoin
option
_
A
).
Proof
.
destruct
1
as
[??
[]|]
;
simpl
;
by
constructor
.
Qed
.
Definition
optionC_map
{
A
B
}
(
f
:
A
-
n
>
B
)
:
optionC
A
-
n
>
optionC
B
:
=
CofeMor
(
fmap
f
:
optionC
A
→
optionC
B
).
Instance
optionC_map_ne
A
B
:
NonExpansive
(@
optionC_map
A
B
).
...
...
Write
Preview
Markdown
is supported
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