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

isMeasurable requires pointed type #796

Open
shinya-katsumata opened this issue Nov 10, 2022 · 6 comments
Open

isMeasurable requires pointed type #796

shinya-katsumata opened this issue Nov 10, 2022 · 6 comments
Labels
wish 🙏 Request for a specific mathematical result

Comments

@shinya-katsumata
Copy link

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.

@CohenCyril
Copy link
Member

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...

@affeldt-aist
Copy link
Member

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

Lemma mfun_subring_closed : subring_closed (@mfun _ aT rT).
where pointed it needed to have the structure of ring (1 != 0).

@CohenCyril
Copy link
Member

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

@affeldt-aist
Copy link
Member

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

@affeldt-aist
Copy link
Member

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

@CohenCyril
Copy link
Member

CohenCyril commented Dec 2, 2022

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.

@affeldt-aist affeldt-aist added the wish 🙏 Request for a specific mathematical result label Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wish 🙏 Request for a specific mathematical result
Projects
None yet
Development

No branches or pull requests

3 participants