Skip to content

[Merged by Bors] - feat(MeasureTheory/Measure/TypeClass/NoAtoms): add exists_accPt_of_noAtoms#32851

Closed
tdwag123 wants to merge 28 commits into
leanprover-community:masterfrom
tdwag123:master
Closed

[Merged by Bors] - feat(MeasureTheory/Measure/TypeClass/NoAtoms): add exists_accPt_of_noAtoms#32851
tdwag123 wants to merge 28 commits into
leanprover-community:masterfrom
tdwag123:master

Conversation

@tdwag123

@tdwag123 tdwag123 commented Dec 13, 2025

Copy link
Copy Markdown
Contributor

feat(MeasureTheory/Measure/TypeClass/NoAtoms): Added a theorem that states If a set has positive measure under an atomless measure, then it has an accumulation point.

Added a lemma in (Topology/DiscreteSubset): If a subset of a topological space has no accumulation points,
then it carries the discrete topology.

Theorem added: exists_accPt_of_pos_hausdorffMeasure
Lemma added: discreteTopology_of_noAccPts

Harmonic's Aristotle gave the initial version of the proofs. I did substantial work shortening the proof from 40 lines and refactoring it into another Lemma.

Special thanks to @plp127 and @CoolRmal for the useful feedback in the PR process.

Co-authored-by: @Aristotle-Harmonic


Open in Gitpod

Added a theorem that states if a set has positive s-dimensional Hausdorff measure, then it has an accumulation point, along with necessary proofs.
feat(MeasureTheory/Measure/Hausdorff)  ∀ 𝑠 > 0, ∀ 𝐸 ⊂ 𝑅^𝑛, 𝐻^𝑠 (𝐸)>0 ⇒ ∃ 𝑥 ∈ 𝑅^𝑛 , 𝑥 is an accumulation point of 𝑃(𝐸).
@github-actions github-actions Bot added the new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! label Dec 13, 2025
@github-actions github-actions Bot added the t-measure-probability Measure theory / Probability theory label Dec 13, 2025
@github-actions

github-actions Bot commented Dec 13, 2025

Copy link
Copy Markdown

PR summary 17e9ef1cfc

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ discreteTopology_of_noAccPts
+ exists_accPt_of_noAtoms

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@github-actions

github-actions Bot commented Dec 13, 2025

Copy link
Copy Markdown

✅ PR Title Formatted Correctly

The title of this PR has been updated to match our commit style conventions.
Thank you!

@tdwag123 tdwag123 marked this pull request as draft December 13, 2025 20:13
tdwag123 and others added 2 commits December 13, 2025 12:17
I removed the simp using simp? to find the appropriate simp only statement
@tdwag123 tdwag123 marked this pull request as ready for review December 13, 2025 20:36
Comment thread Mathlib/MeasureTheory/Measure/Hausdorff.lean Outdated
Comment thread Mathlib/MeasureTheory/Measure/Hausdorff.lean Outdated
Comment thread Mathlib/MeasureTheory/Measure/Hausdorff.lean Outdated
Comment thread Mathlib/MeasureTheory/Measure/Hausdorff.lean Outdated
Comment thread Mathlib/MeasureTheory/Measure/Hausdorff.lean Outdated
Comment thread Mathlib/MeasureTheory/Measure/Hausdorff.lean Outdated
Comment thread Mathlib/MeasureTheory/Measure/Hausdorff.lean Outdated
Refactor the theorem to use a more general type for the set and include separability condition. I tried to take into account the suggestions, but I may have missed some. The theorem needed some bigger reworking after the generalization
Comment thread Mathlib/MeasureTheory/Measure/Hausdorff.lean Outdated
generalization and change of location

Added a theorem to show that if a set has positive measure under an atomless measure, then it has an accumulation point.
Comment thread Mathlib/MeasureTheory/Measure/Hausdorff.lean
Comment thread Mathlib/MeasureTheory/Measure/Typeclasses/NoAtoms.lean Outdated
Comment thread Mathlib/MeasureTheory/Measure/Typeclasses/NoAtoms.lean Outdated
Added lemma for discrete topology based on no accumulation points.
Introduce lemma for discrete topology with no AccPts
@tdwag123 tdwag123 requested a review from plp127 December 21, 2025 05:12
@plp127

plp127 commented Dec 21, 2025

Copy link
Copy Markdown
Contributor

Can you update the PR title and description?

@tdwag123 tdwag123 changed the title feat(MeasureTheory/Measure/Hausdorff) add exists_accPt_of_pos_hausdorffMeasure feat(MeasureTheory/Measure/TypeClass/NoAtoms) add exists_accPt_of_noAtoms Dec 21, 2025
Removed lemma about discrete topology for sets with no accumulation points.
Moved out of the partial ordering section, factored some variables out the `exists_accPt_of_noAtoms ` theorem
added section wrappers around the theorem to prevent issues with `μ : Measure α` versus the partial measure `α`
Comment thread Mathlib/MeasureTheory/Measure/Typeclasses/NoAtoms.lean Outdated
Comment thread Mathlib/MeasureTheory/Measure/Typeclasses/NoAtoms.lean Outdated
@sgouezel sgouezel added the awaiting-author A reviewer has asked the author a question or requested changes. label Jan 2, 2026
tdwag123 and others added 4 commits January 7, 2026 23:54
Refactor the `exists_accPt_of_noAtoms` theorem for clarity and structure.

-Removed the section for the theorem
-Changed the assumptions to make them weaker
-Changed where the open statements are

Still to be done:
See if I can refactor and make the assumptions even weaker.
Changed the assumptions for `exists_accPt_of_noAtoms` from [EPseudometricSpace] to [TopologicalSpace X]
@tdwag123 tdwag123 requested a review from sgouezel January 15, 2026 05:59
@tdwag123 tdwag123 requested a review from CoolRmal January 19, 2026 05:31
@tdwag123 tdwag123 changed the title feat(MeasureTheory/Measure/TypeClass/NoAtoms) add exists_accPt_of_noAtoms feat(MeasureTheory/Measure/TypeClass/NoAtoms): add exists_accPt_of_noAtoms Jan 22, 2026
Comment thread Mathlib/Topology/DiscreteSubset.lean Outdated
tdwag123 and others added 2 commits January 22, 2026 10:47
Used filters to shorten, as suggested byPatrickMassot

Co-authored-by: Patrick Massot <[email protected]>
@tdwag123

Copy link
Copy Markdown
Contributor Author

-awaiting-author

@github-actions github-actions Bot removed the awaiting-author A reviewer has asked the author a question or requested changes. label Jan 29, 2026
@sgouezel

Copy link
Copy Markdown
Contributor

bors r+
Thanks!

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Jan 29, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Jan 29, 2026
…oAtoms` (#32851)

feat(MeasureTheory/Measure/TypeClass/NoAtoms): Added a theorem that states If a set has positive measure under an atomless measure, then it has an accumulation point.

Added a lemma in (Topology/DiscreteSubset): If a subset of a topological space has no accumulation points,
then it carries the discrete topology.

Theorem added: `exists_accPt_of_pos_hausdorffMeasure`
Lemma added: `discreteTopology_of_noAccPts `

**Harmonic's Aristotle gave the initial version of the proofs.** I did substantial work shortening the proof from 40 lines and refactoring it into another Lemma.

Special thanks to @plp127 and @CoolRmal for the useful feedback in the PR process.

Co-authored-by: @Aristotle-Harmonic
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
@mathlib-bors

mathlib-bors Bot commented Jan 29, 2026

Copy link
Copy Markdown
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 Jan 29, 2026
…oAtoms` (#32851)

feat(MeasureTheory/Measure/TypeClass/NoAtoms): Added a theorem that states If a set has positive measure under an atomless measure, then it has an accumulation point.

Added a lemma in (Topology/DiscreteSubset): If a subset of a topological space has no accumulation points,
then it carries the discrete topology.

Theorem added: `exists_accPt_of_pos_hausdorffMeasure`
Lemma added: `discreteTopology_of_noAccPts `

**Harmonic's Aristotle gave the initial version of the proofs.** I did substantial work shortening the proof from 40 lines and refactoring it into another Lemma.

Special thanks to @plp127 and @CoolRmal for the useful feedback in the PR process.

Co-authored-by: @Aristotle-Harmonic
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
@mathlib-bors

mathlib-bors Bot commented Jan 29, 2026

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(MeasureTheory/Measure/TypeClass/NoAtoms): add exists_accPt_of_noAtoms [Merged by Bors] - feat(MeasureTheory/Measure/TypeClass/NoAtoms): add exists_accPt_of_noAtoms Jan 29, 2026
@mathlib-bors mathlib-bors Bot closed this Jan 29, 2026
YellPika pushed a commit to YellPika/mathlib4 that referenced this pull request Feb 3, 2026
…oAtoms` (leanprover-community#32851)

feat(MeasureTheory/Measure/TypeClass/NoAtoms): Added a theorem that states If a set has positive measure under an atomless measure, then it has an accumulation point.

Added a lemma in (Topology/DiscreteSubset): If a subset of a topological space has no accumulation points,
then it carries the discrete topology.

Theorem added: `exists_accPt_of_pos_hausdorffMeasure`
Lemma added: `discreteTopology_of_noAccPts `

**Harmonic's Aristotle gave the initial version of the proofs.** I did substantial work shortening the proof from 40 lines and refactoring it into another Lemma.

Special thanks to @plp127 and @CoolRmal for the useful feedback in the PR process.

Co-authored-by: @Aristotle-Harmonic
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Maldooor pushed a commit to Maldooor/mathlib4 that referenced this pull request Feb 25, 2026
…oAtoms` (leanprover-community#32851)

feat(MeasureTheory/Measure/TypeClass/NoAtoms): Added a theorem that states If a set has positive measure under an atomless measure, then it has an accumulation point.

Added a lemma in (Topology/DiscreteSubset): If a subset of a topological space has no accumulation points,
then it carries the discrete topology.

Theorem added: `exists_accPt_of_pos_hausdorffMeasure`
Lemma added: `discreteTopology_of_noAccPts `

**Harmonic's Aristotle gave the initial version of the proofs.** I did substantial work shortening the proof from 40 lines and refactoring it into another Lemma.

Special thanks to @plp127 and @CoolRmal for the useful feedback in the PR process.

Co-authored-by: @Aristotle-Harmonic
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! 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.

7 participants