Zulip Chat Archive
Stream: mathlib4
Topic: measurability hypothesis in `Kernel.map`
Etienne Marion (Feb 05 2025 at 21:40):
I noticed that docs#ProbabilityTheory.Kernel.map does not require a measurability assumption on the map, contrary to docs#ProbabilityTheory.Kernel.comap. I seem to recall that it used to be the case, and I think it was nice because it allowed to automatically infer that the push-forward of a Markov kernel was also a Markov kernel. Why has this been modified?
Yaël Dillies (Feb 05 2025 at 21:42):
git blame is your friend: #16403
Yaël Dillies (Feb 05 2025 at 21:43):
@Sébastien Gouëzel didn't provide much justification, although I can reasonably see it fall under "Junk values are nicer than passing around assumptions"
Etienne Marion (Feb 05 2025 at 21:48):
Ah thanks, I've never used git blame
before
Etienne Marion (Feb 05 2025 at 21:49):
In fact I agree it was a bit annoying to justify measurability when writing Kernel.map
but now I have trouble because the instance I want is not inferred :sob: I guess there is no ideal solution
Yaël Dillies (Feb 05 2025 at 21:51):
Etienne Marion said:
Ah thanks, I've never used
git blame
before
I usually don't use git blame
. Instead here's what I did:
- Click docs#ProbabilityTheory.Kernel.map
- Click Source
- Toggle Blame in the top left
- Blame!
Etienne Marion (Feb 05 2025 at 21:53):
Oh that is great, thanks!
Eric Wieser (Feb 05 2025 at 22:27):
There're also various ways to turn on blame layers in vscode
Yaël Dillies (Feb 05 2025 at 22:35):
Absolutely. The one I like is Git Lens
Last updated: May 02 2025 at 03:31 UTC