[Merged by Bors] - refactor(MeasureTheory): redefine ≤ on measures#10714
Closed
[Merged by Bors] - refactor(MeasureTheory): redefine ≤ on measures#10714
≤ on measures#10714Conversation
Redefine `≤` on `MeasureTheory.Measure` so that `μ ≤ ν ↔ ∀ s, μ s ≤ ν s` by definition instead of `∀ s, MeasurableSet s → μ s ≤ ν s`. The reasons are: - this way it is defeq to `≤` on outer measures; - if we decide to introduce an order on all `DFunLike` types **and** migrate measures to `FunLike`, then this is unavoidable; - the reasoning for the old definition was "it's slightly easier to prove `μ ≤ ν` this way"; the counter-argument is "it's slightly harder to apply `μ ≤ ν` this way". Other changes - golf some proofs broken by this change; - add `@[gcongr]` tags to some `ENNReal` lemmas; - fix the name `ENNReal.coe_lt_coe_of_le` -> `ENNReal.ENNReal.coe_lt_coe_of_lt`; - drop an unneeded `MeasurableSet` assumption in `set_lintegral_pdf_le_map`
fpvandoorn
reviewed
Feb 21, 2024
| #align ennreal.to_real_le_to_real ENNReal.toReal_le_toReal | ||
|
|
||
| @[gcongr] | ||
| theorem toReal_mono (hb : b ≠ ∞) (h : a ≤ b) : a.toReal ≤ b.toReal := |
Member
There was a problem hiding this comment.
unrelated to this PR: we should move finiteness to mathlib and add it as a gcongr discharger.
mathlib-bors bot
pushed a commit
that referenced
this pull request
Feb 21, 2024
Redefine `≤` on `MeasureTheory.Measure` so that `μ ≤ ν ↔ ∀ s, μ s ≤ ν s` by definition instead of `∀ s, MeasurableSet s → μ s ≤ ν s`. ### Reasons - this way it is defeq to `≤` on outer measures; - if we decide to introduce an order on all `DFunLike` types **and** migrate measures to `FunLike`, then this is unavoidable; - the reasoning for the old definition was "it's slightly easier to prove `μ ≤ ν` this way"; the counter-argument is "it's slightly harder to apply `μ ≤ ν` this way". ### Other changes - golf some proofs broken by this change; - add `@[gcongr]` tags to some `ENNReal` lemmas; - fix the name `ENNReal.coe_lt_coe_of_le` -> `ENNReal.ENNReal.coe_lt_coe_of_lt`; - drop an unneeded `MeasurableSet` assumption in `set_lintegral_pdf_le_map`
Contributor
|
This PR was included in a batch that was canceled, it will be automatically retried |
mathlib-bors bot
pushed a commit
that referenced
this pull request
Feb 21, 2024
Redefine `≤` on `MeasureTheory.Measure` so that `μ ≤ ν ↔ ∀ s, μ s ≤ ν s` by definition instead of `∀ s, MeasurableSet s → μ s ≤ ν s`. ### Reasons - this way it is defeq to `≤` on outer measures; - if we decide to introduce an order on all `DFunLike` types **and** migrate measures to `FunLike`, then this is unavoidable; - the reasoning for the old definition was "it's slightly easier to prove `μ ≤ ν` this way"; the counter-argument is "it's slightly harder to apply `μ ≤ ν` this way". ### Other changes - golf some proofs broken by this change; - add `@[gcongr]` tags to some `ENNReal` lemmas; - fix the name `ENNReal.coe_lt_coe_of_le` -> `ENNReal.ENNReal.coe_lt_coe_of_lt`; - drop an unneeded `MeasurableSet` assumption in `set_lintegral_pdf_le_map`
Contributor
|
Pull request successfully merged into master. Build succeeded: |
≤ on measures≤ on measures
thorimur
pushed a commit
that referenced
this pull request
Feb 24, 2024
Redefine `≤` on `MeasureTheory.Measure` so that `μ ≤ ν ↔ ∀ s, μ s ≤ ν s` by definition instead of `∀ s, MeasurableSet s → μ s ≤ ν s`. ### Reasons - this way it is defeq to `≤` on outer measures; - if we decide to introduce an order on all `DFunLike` types **and** migrate measures to `FunLike`, then this is unavoidable; - the reasoning for the old definition was "it's slightly easier to prove `μ ≤ ν` this way"; the counter-argument is "it's slightly harder to apply `μ ≤ ν` this way". ### Other changes - golf some proofs broken by this change; - add `@[gcongr]` tags to some `ENNReal` lemmas; - fix the name `ENNReal.coe_lt_coe_of_le` -> `ENNReal.ENNReal.coe_lt_coe_of_lt`; - drop an unneeded `MeasurableSet` assumption in `set_lintegral_pdf_le_map`
thorimur
pushed a commit
that referenced
this pull request
Feb 26, 2024
Redefine `≤` on `MeasureTheory.Measure` so that `μ ≤ ν ↔ ∀ s, μ s ≤ ν s` by definition instead of `∀ s, MeasurableSet s → μ s ≤ ν s`. ### Reasons - this way it is defeq to `≤` on outer measures; - if we decide to introduce an order on all `DFunLike` types **and** migrate measures to `FunLike`, then this is unavoidable; - the reasoning for the old definition was "it's slightly easier to prove `μ ≤ ν` this way"; the counter-argument is "it's slightly harder to apply `μ ≤ ν` this way". ### Other changes - golf some proofs broken by this change; - add `@[gcongr]` tags to some `ENNReal` lemmas; - fix the name `ENNReal.coe_lt_coe_of_le` -> `ENNReal.ENNReal.coe_lt_coe_of_lt`; - drop an unneeded `MeasurableSet` assumption in `set_lintegral_pdf_le_map`
riccardobrasca
pushed a commit
that referenced
this pull request
Mar 1, 2024
Redefine `≤` on `MeasureTheory.Measure` so that `μ ≤ ν ↔ ∀ s, μ s ≤ ν s` by definition instead of `∀ s, MeasurableSet s → μ s ≤ ν s`. ### Reasons - this way it is defeq to `≤` on outer measures; - if we decide to introduce an order on all `DFunLike` types **and** migrate measures to `FunLike`, then this is unavoidable; - the reasoning for the old definition was "it's slightly easier to prove `μ ≤ ν` this way"; the counter-argument is "it's slightly harder to apply `μ ≤ ν` this way". ### Other changes - golf some proofs broken by this change; - add `@[gcongr]` tags to some `ENNReal` lemmas; - fix the name `ENNReal.coe_lt_coe_of_le` -> `ENNReal.ENNReal.coe_lt_coe_of_lt`; - drop an unneeded `MeasurableSet` assumption in `set_lintegral_pdf_le_map`
dagurtomas
pushed a commit
that referenced
this pull request
Mar 22, 2024
Redefine `≤` on `MeasureTheory.Measure` so that `μ ≤ ν ↔ ∀ s, μ s ≤ ν s` by definition instead of `∀ s, MeasurableSet s → μ s ≤ ν s`. ### Reasons - this way it is defeq to `≤` on outer measures; - if we decide to introduce an order on all `DFunLike` types **and** migrate measures to `FunLike`, then this is unavoidable; - the reasoning for the old definition was "it's slightly easier to prove `μ ≤ ν` this way"; the counter-argument is "it's slightly harder to apply `μ ≤ ν` this way". ### Other changes - golf some proofs broken by this change; - add `@[gcongr]` tags to some `ENNReal` lemmas; - fix the name `ENNReal.coe_lt_coe_of_le` -> `ENNReal.ENNReal.coe_lt_coe_of_lt`; - drop an unneeded `MeasurableSet` assumption in `set_lintegral_pdf_le_map`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Redefine
≤onMeasureTheory.Measureso that
μ ≤ ν ↔ ∀ s, μ s ≤ ν sby definitioninstead of
∀ s, MeasurableSet s → μ s ≤ ν s.Reasons
≤on outer measures;DFunLiketypesand migrate measures to
FunLike, then this is unavoidable;"it's slightly easier to prove
μ ≤ νthis way";the counter-argument is
"it's slightly harder to apply
μ ≤ νthis way".Other changes
@[gcongr]tags to someENNReallemmas;ENNReal.coe_lt_coe_of_le->ENNReal.ENNReal.coe_lt_coe_of_lt;MeasurableSetassumptionin
set_lintegral_pdf_le_map