Zulip Chat Archive

Stream: Is there code for X?

Topic: MeasureSpace instance on unitInterval


Eric Wieser (Feb 11 2024 at 20:59):

Is this sane as a global instance?

import Mathlib

open unitInterval

noncomputable instance : MeasureTheory.MeasureSpace I :=
  MeasureTheory.Measure.Subtype.measureSpace

Eric Wieser (Feb 11 2024 at 21:00):

docs#MeasureTheory.Measure.Subtype.measureSpace suggests that there are other sensible measures for arbitrary subtypes, but is the measure on the unit interval canonical?

Eric Wieser (Feb 11 2024 at 21:01):

(after all, the "normalized restriction for a probability measure" is the same measure here)

Anatole Dedecker (Feb 11 2024 at 21:10):

I think this is good, I wouldn’t expect any other canonical measure here.

Eric Wieser (Feb 11 2024 at 21:19):

(The underlying motivation here is #9487: that PR is a long way from being sorry-free, but I need this instance to even state the result!)

Yury G. Kudryashov (Feb 12 2024 at 01:26):

I think this is good

Eric Wieser (Feb 12 2024 at 09:20):

#10452, which includes IsProbabilityMeasure (volume : Measure I)

Eric Wieser (Feb 26 2024 at 21:55):

Could someone take another look at #10452?

Yury G. Kudryashov (Feb 26 2024 at 22:51):

Delegated


Last updated: May 02 2025 at 03:31 UTC