refactor: change ProbabilityMeasure.map to not require measurability - #42322
refactor: change ProbabilityMeasure.map to not require measurability#42322EtienneC30 wants to merge 1 commit into
ProbabilityMeasure.map to not require measurability#42322Conversation
PR summary 69ce77a4b9Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
|
I don't have an opinion on whether it's desirable behaviour for It would also be instructive to see what breaks in Edit: If both |
Currently, if
µ : ProbabilityMeasure Xandf : X -> Y, then to talk about the pushforward ofµbyfone must assumehf : AEMeasurable f µand writeµ.map hf. The issue with this is that ifhfis not available as is then providing it explicitly quickly gets the code hard to read (for instance in the PR I replaced somef_cont.measurable.aemeasurableby justf). Thus we change the definition so thatµ.map fis some arbitrary Dirac mass iffis not measurable (note thatXis not empty because it has a probability measure, and thusYis not empty either).The only issue seems to be that MeasureTheory.ProbabilityMeasure.toMeasure_map now requires a measurability hypothesis to trigger with
simp, I personally think that's ok.