chore(MeasureTheory): Move lemmas and deprecate duplicates - #42338
Open
D-Thomine wants to merge 4 commits into
Open
chore(MeasureTheory): Move lemmas and deprecate duplicates#42338D-Thomine wants to merge 4 commits into
D-Thomine wants to merge 4 commits into
Conversation
PR summary 18a192673a
|
| File | Base Count | Head Count | Change |
|---|---|---|---|
| Mathlib.MeasureTheory.Measure.Comap | 1524 | 1521 | -3 (-0.20%) |
Import changes for all files
| Files | Import difference |
|---|---|
Mathlib.MeasureTheory.Measure.Comap |
-3 |
Declarations diff (regex)
+ _root_.AEMeasurable.mono_measure
+ _root_.MeasureTheory.ae_restrict_le
+ ae_eq_comp
- Measure.QuasiMeasurePreserving.ae_eq_comp
- ae_restrict_le
- mono_measure
You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>
## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.
Declarations diff (Lean)
✅ Lean-aware diff — post-build, computed from the Lean environment (commit
18a1926).
- +0 new declarations
- −0 removed declarations
No declaration differences.
No changes to strong technical debt.
No changes to weak technical debt.
Current commit 18a192673a
Reference commit 32beea3cad
This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.sh pr_summary
- The
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
D-Thomine
marked this pull request as ready for review
August 1, 2026 17:16
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.
This PR moves a few lemmas around in
MeasureTheory.Measure; basically, if a lemma can be expressed and proved elementarily, it is moved upstream. For instance, if a lemma hasμ ≤ νhas an hypothesis, it may be proved as a special case of a lemma about absolutely continuous measures, but may also be proved as easily by more elementary considerations, which means it can be moved to more suitable files upstream (e.g. toMeasureTheory.Measure.MeasureSpaceinstead ofMeasureTheory.Measure.AbsolutelyContinuous).This also slightly simplifies imports and allowed me to detect two exact duplicates.