Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(measure_theory): prove that the Giry monad is a monad in the category_theory sense #1259

Merged
merged 7 commits into from Sep 3, 2019

Conversation

johoelzl
Copy link
Collaborator

This is independent of #1258 and #1257.

@johoelzl johoelzl requested a review from a team as a code owner July 23, 2019 22:03
@semorrison
Copy link
Collaborator

Looks great. It seems like it wasn’t too painful either, and that the new monad API was usable in this case.

src/measure_theory/Meas.lean Outdated Show resolved Hide resolved
src/measure_theory/Meas.lean Outdated Show resolved Hide resolved
@semorrison
Copy link
Collaborator

semorrison commented Jul 24, 2019 via email

Copy link
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made a small commit fixing some alignment. Could you please add some docstrings to the defs?

src/measure_theory/Meas.lean Show resolved Hide resolved
src/measure_theory/Meas.lean Show resolved Hide resolved
@johoelzl
Copy link
Collaborator Author

johoelzl commented Jul 24, 2019

A third problem I have with the structure notation:
Sometimes I write down {field1 := _, field2 := _ }, but instead of showing me the type of field1, I get a type error at field2. I don't remember if there was a solution to this, was this related to the meta-universe problem?

@robertylewis
Copy link
Member

Could you add module documentation for Meas.lean and giry_monad.lean?

@robertylewis robertylewis added the needs-documentation This PR is missing required documentation label Jul 25, 2019
@rwbarton rwbarton removed the needs-documentation This PR is missing required documentation label Sep 3, 2019
@rwbarton rwbarton removed their assignment Sep 3, 2019
@rwbarton
Copy link
Collaborator

rwbarton commented Sep 3, 2019

I added a bunch of file documentation, in order to familiarize myself with the new documentation conventions.

@rwbarton
Copy link
Collaborator

rwbarton commented Sep 3, 2019

Also, LGTM code-wise.

@jcommelin jcommelin added the ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) label Sep 3, 2019
@mergify mergify bot merged commit ff47fa3 into master Sep 3, 2019
@mergify mergify bot deleted the giry_monad branch September 3, 2019 21:08
anrddh pushed a commit to anrddh/mathlib that referenced this pull request May 15, 2020
…egory_theory sense (leanprover-community#1259)

* feat(measure_theory): prove that the Giry monad is a monad in the category_theory sense

* Add spaces to fix alignment

* document Measure

* Add documentation

* Add space before colon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants