Zulip Chat Archive

Stream: general

Topic: Should measurable_space be a class?


view this post on Zulip Kenny Lau (Nov 29 2018 at 00:19):

I believe there are often situations where you have two measures on the same set, and two measurable spaces. An example would be Borel-measurable vs Lebesgue-measurable.

view this post on Zulip Johannes Hölzl (Nov 29 2018 at 08:28):

There are always cases where one measurable space is not fitting. Especially when we talk about filtrations in probability theory. But in most applications in measure theory there is only one measurable space per type. Borel- vs. Lebesgue-measurable is a special case, and I think the best way to handle it is a special way to talk about completions.

In Isabelle I developed measure theory without using the type class mechanism. And it is very annoying. In 90% of all cases you only have one measurable space. But in Isabelle it was not possible to use a theorem which uses a type class instance to instantiate with something different (this is now possible, but very ugly). In Lean we can use different measurable spaces, even when it is a little bit of a hassle to use the @-syntax and hope that the simplifier accepts our instances.


Last updated: May 14 2021 at 13:24 UTC