Skip to content

[Merged by Bors] - feat(MeasureTheory/Integral/Lebesgue): add set_lintegral_subtype#7679

Closed
urkud wants to merge 3 commits intomasterfrom
YK-comap
Closed

[Merged by Bors] - feat(MeasureTheory/Integral/Lebesgue): add set_lintegral_subtype#7679
urkud wants to merge 3 commits intomasterfrom
YK-comap

Conversation

@urkud
Copy link
Copy Markdown
Member

@urkud urkud commented Oct 14, 2023

  • Add MeasureTheory.set_lintegral_eq_subtype and
    MeasureTheory.set_lintegral_subtype.
  • Add MeasurableEmbedding.comap_map,
    MeasurableEmbedding.comap_restrict, and
    MeasurableEmbedding.restrict_comap.
  • Drop measurability assumption in MeasurableEmbedding.comap_preimage.
  • Remove some empty lines.

Open in Gitpod

* Add `MeasureTheory.set_lintegral_eq_subtype` and
  `MeasureTheory.set_lintegral_subtype`.
* Add `MeasurableEmbedding.comap_map`,
  `MeasurableEmbedding.comap_restrict`, and
  `MeasurableEmbedding.restrict_comap`.
* Drop measurability assumption in `MeasurableEmbedding.comap_preimage`.
* Remove some empty lines.
Comment on lines +1359 to +1361
theorem set_lintegral_eq_subtype {s : Set α} (hs : MeasurableSet s) (f : α → ℝ≥0∞) :
∫⁻ x in s, f x ∂μ = ∫⁻ x : s, f x ∂(μ.comap (↑)) := by
rw [← (MeasurableEmbedding.subtype_coe hs).lintegral_map, map_comap_subtype_coe hs]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this equality be reversed? The right hand side looks more complicated. I would even be tempted to add a @[simp] attribute to have it simplify to the left hand side (and add simp to the next lemma as well). What do you think?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It matches pre-existing set_integral_eq_subtype. I'll see where the latter is used and swap sides there too.

@RemyDegenne RemyDegenne added awaiting-author A reviewer has asked the author a question or requested changes. and removed awaiting-review labels Oct 17, 2023
@urkud urkud added awaiting-review and removed awaiting-author A reviewer has asked the author a question or requested changes. labels Oct 26, 2023
@RemyDegenne
Copy link
Copy Markdown
Contributor

Thanks!
bors r+

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Oct 26, 2023
bors bot pushed a commit that referenced this pull request Oct 26, 2023
…7679)

* Add `MeasureTheory.set_lintegral_eq_subtype` and
  `MeasureTheory.set_lintegral_subtype`.
* Add `MeasurableEmbedding.comap_map`,
  `MeasurableEmbedding.comap_restrict`, and
  `MeasurableEmbedding.restrict_comap`.
* Drop measurability assumption in `MeasurableEmbedding.comap_preimage`.
* Remove some empty lines.
@bors
Copy link
Copy Markdown

bors bot commented Oct 26, 2023

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title feat(MeasureTheory/Integral/Lebesgue): add set_lintegral_subtype [Merged by Bors] - feat(MeasureTheory/Integral/Lebesgue): add set_lintegral_subtype Oct 26, 2023
@bors bors bot closed this Oct 26, 2023
@bors bors bot deleted the YK-comap branch October 26, 2023 22:15
grunweg pushed a commit that referenced this pull request Nov 1, 2023
…7679)

* Add `MeasureTheory.set_lintegral_eq_subtype` and
  `MeasureTheory.set_lintegral_subtype`.
* Add `MeasurableEmbedding.comap_map`,
  `MeasurableEmbedding.comap_restrict`, and
  `MeasurableEmbedding.restrict_comap`.
* Drop measurability assumption in `MeasurableEmbedding.comap_preimage`.
* Remove some empty lines.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors. t-measure-probability Measure theory / Probability theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants