[Merged by Bors] - feat: extend results on product measures from sigma-finite to s-finite measures#8713
[Merged by Bors] - feat: extend results on product measures from sigma-finite to s-finite measures#8713
Conversation
sgouezel
commented
Nov 29, 2023
|
I'll come to the office in ~40min and review from there. |
| classical | ||
| obtain ⟨f, hf⟩ : ∃ f : ι → ℕ, Function.Injective f := Countable.exists_injective_nat ι | ||
| let e : ι ≃ range f := Equiv.ofInjective f hf | ||
| let m' : ℕ → Measure α := fun n ↦ if hn : n ∈ range f then m (e.symm ⟨n, hn⟩) else 0 |
There was a problem hiding this comment.
I see 2 ways to move parts of this proof to reusable lemmas.
- Add
Measure.sum_comp_equiv, instances forIsFiniteMeasure (∑ i, f i)and[Finite ι] : IsFiniteMeasure (.sum f), then treat[Finite ι]and[Infinite ι]separately. - Add
Measure.sum_extend_zerousingFunction.extendinstead of the equivalent definition you use, then apply it.
Maybe, we should have all these supporting lemmas/instances.
There was a problem hiding this comment.
I have added Measure.sum_comp_equiv and Measure.sum_extend_zero. Indeed, the proof becomes nicer with these! On the other hand, I don't think that splitting into finite or infinite \iota would make things nicer.
There was a problem hiding this comment.
I generalized sum_extend_zero and Function.apply_extend.
bors d+
- `Function.apply_extend` doesn't need any assumptions on `f`. - Add `tsum_extend_zero`. - Generalize `sum_extend_zero` to any injective function, not just `Subtype.val`. - Use it to golf `sfinite_sum_of_countable`.
|
✌️ sgouezel can now approve this pull request. To approve and merge a pull request, simply reply with |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
bors r+ |
…e measures (#8713) Co-authored-by: Yury G. Kudryashov <urkud@urkud.name>
…e measures (#8713) Co-authored-by: Yury G. Kudryashov <urkud@urkud.name>
|
Pull request successfully merged into master. Build succeeded: |
…e measures (#8713) Co-authored-by: Yury G. Kudryashov <urkud@urkud.name>