-
Notifications
You must be signed in to change notification settings - Fork 298
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
[Merged by Bors] - feat(measure_theory/pmf): lawful monad instance for probability mass function monad #15066
Conversation
… for probability mass function monad
src/measure_theory/probability_mass_function/constructions.lean
Outdated
Show resolved
Hide resolved
noncomputable theory | ||
variables {α β γ : Type*} | ||
variables {α : Type*} {β : Type*} {γ : Type*} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this means exactly the same thing as what was written before, so there's no need to change it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just changed this to match the other pmf
files, probably doesn't matter much I guess. Changed it to switch them all to the simple version
@eric-wieser Is this good to be merged? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors d+
✌️ dtumad can now approve this pull request. To approve and merge a pull request, simply reply with |
If you want to rerun CI, just click on "Details" to the right of the failed job, and there will be a "Re-run jobs" button (as in this page for the commit 9cd2290), and you may opt to re-run only failed jobs. |
You can also use bors merge |
…function monad (#15066) Provide `is_lawful_functor` and `is_lawful_monad` instances for `pmf`. Also switch the `seq` and `map` operations to the ones coming from the `monad` instance. Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Build failed (retrying...): |
…function monad (#15066) Provide `is_lawful_functor` and `is_lawful_monad` instances for `pmf`. Also switch the `seq` and `map` operations to the ones coming from the `monad` instance. Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Pull request successfully merged into master. Build succeeded: |
@eric-wieser @alreadydone Thanks that's very helpful to know for the future |
…function monad (#15066) Provide `is_lawful_functor` and `is_lawful_monad` instances for `pmf`. Also switch the `seq` and `map` operations to the ones coming from the `monad` instance. Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Provide
is_lawful_functor
andis_lawful_monad
instances forpmf
. Also switch theseq
andmap
operations to the ones coming from themonad
instance.This required changing some universe levels to match the way they are in the monad api. I don't think the more general case is generally useful, so I don't think this should be a problem.