analysis icon indicating copy to clipboard operation
analysis copied to clipboard

isMeasurable requires pointed type

Open shinya-katsumata opened this issue 2 years ago • 6 comments

Hi, I am Shin-ya Katsumata at NII, invited to this project by Reynald.

I have a question: it appears that the measurable space whose carrier is the empty set (type) seems excluded from the definition, because isMeasurable requires a pointed type. I wonder why.

The standard definition of measurable space includes the empty one. Also, categorically, excluding the empty measurable space drastically changes the property of the category of measurable spaces.

shinya-katsumata avatar Nov 10 '22 17:11 shinya-katsumata

Dear Shin-ya Katsumata, you are completely right this definition alters the categorical properties of measurable spaces as types. This choice was made to have (partial) inverses for functions M -> T where M is a measurable type, indeed if M was not guaranteed to be non empty this would forbid having a generic inverse function. On the other side, I believe types are not necessary the right pick for the carrier of objects in a category even in type theory, and that the empty measurable space could be represented by having an explicit "total set / domain predicate" field (in a distant future) so that by picking the empty set as the domain would add (infinitely many, albeit isomorphic, copies) of the empty measurable space...

CohenCyril avatar Nov 15 '22 14:11 CohenCyril

NB: If one change pointed to choice in measure.v, all measure.v but one lemma and all measure_lebesgue.v go through. lebesgue_integral.v fails at https://github.com/math-comp/analysis/blob/f42137704caa1d97eff6a1670e7a664a548c98c2/theories/lebesgue_integral.v#L262 where pointed it needed to have the structure of ring (1 != 0).

affeldt-aist avatar Nov 17 '22 10:11 affeldt-aist

Ha! This is really funny, because :1 != 0 also happens to be a anti-categorical oddity

CohenCyril avatar Nov 22 '22 15:11 CohenCyril

Why does the 1 != 0 property belong to the mixin of rings?

affeldt-aist avatar Nov 25 '22 04:11 affeldt-aist

Observation by @t6s : it should be easy to insert an intermediate mixin for non-necessarily not-trivial rings once MathComp 2.0 is available.

affeldt-aist avatar Dec 02 '22 08:12 affeldt-aist

Sorry I forgot to answer. Guillaume Cano added the intermediate structure in mathcomp 1, ten years ago, but it was never merged because of the huge impact it had on the library. Adding this structure is actually one of the reasons of existence of HB and mathcomp 2.

CohenCyril avatar Dec 02 '22 08:12 CohenCyril