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
[Merged by Bors] - feat(measure_theory): various additions #5389
Conversation
Some computations of measures on non-measurable sets Some more measurability lemmas for pi-types
I think I'm still going to make some changes here. |
For the review of
|
have := encodable.trunc_encodable_of_fintype β, | ||
induction this using trunc.rec_on_subsingleton, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a nasty trick, although this is exactly how it is supposed to be used if I understand correctly. Is it possible to have in the encodable file a nonconstructive def giving encodable out of [fintype]
, and use it here with a local attribute [instance]
(so that the proof would just be is_measurable.Union h
). Like
noncomputable def fintype.encodable [fintype β] : encodable β :=
(encodable.trunc_encodable_of_fintype β).out
and
local attribute [instance] fintype.encodable
lemma is_measurable.Union_fintype [fintype β] {f : β → set α} (h : ∀ b, is_measurable (f b)) :
is_measurable (⋃ b, f b) :=
is_measurable.Union h
(Then the proof below simplifies similarly).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What you suggest is more user-friendly indeed.
src/measure_theory/prod.lean
Outdated
by_cases hti : ν t = ⊤, | ||
{ convert le_top, simp_rw [hti, ennreal.mul_top, hs0, if_false] }, | ||
rw [measure_eq_infi' μ], | ||
simp_rw [ennreal.infi_mul hti], refine le_infi _, rintro ⟨s', h1s', h2s'⟩, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that in general we had only one command per line, unless this is a trivial one-liner closing a goal. Same thing below line 356.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not aware of this style convention (I don't think it is in the style guide), but I'm happy to add some newlines.
bors r+ |
Some computations of measures on non-measurable sets Some more measurability lemmas for pi-types Cleanup in `measure_space`
Pull request successfully merged into master. Build succeeded: |
Some computations of measures on non-measurable sets
Some more measurability lemmas for pi-types
Cleanup in
measure_space