Skip to content

[Merged by Bors] - feat: atoms of a countably generated measurable space#39770

Closed
mathlib-splicebot[bot] wants to merge 3 commits into
masterfrom
splice-bot/pr-39739-Mathlib-MeasureTheory-MeasurableSpace-CountablyGenerated.lean-0efea4d9b7-t61mi65
Closed

[Merged by Bors] - feat: atoms of a countably generated measurable space#39770
mathlib-splicebot[bot] wants to merge 3 commits into
masterfrom
splice-bot/pr-39739-Mathlib-MeasureTheory-MeasurableSpace-CountablyGenerated.lean-0efea4d9b7-t61mi65

Conversation

@mathlib-splicebot

@mathlib-splicebot mathlib-splicebot Bot commented May 24, 2026

Copy link
Copy Markdown
Contributor

This PR adds a definition for the atoms in a countably generated measurable space, expressed with natGeneratingSequence.

We also show that the atoms are measurable sets.


This PR was automatically created from PR #39739 by @RemyDegenne via a review comment by @RemyDegenne.

@github-actions github-actions Bot added the t-measure-probability Measure theory / Probability theory label May 24, 2026
@github-actions

github-actions Bot commented May 24, 2026

Copy link
Copy Markdown

PR summary 160a411a68

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ countablyGeneratedAtom
+ disjoint_countablyGeneratedAtom
+ exists_eq_iUnion_countablyGeneratedAtom
+ iUnion_countablyGeneratedAtom
+ measurableAtom_eq_countablyGeneratedAtom_natGeneratingSequence
+ measurableSet_countablyGeneratedAtom
+ measurableSet_measurableAtom
+ mem_countablyGeneratedAtom_natGeneratingSequence

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.


No changes to strong technical debt.
No changes to weak technical debt.

Current commit 160a411a68
Reference commit 4533762966

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 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).

@RemyDegenne RemyDegenne changed the title chore(Mathlib/MeasureTheory/MeasurableSpace/CountablyGenerated.lean): automated extraction feat: atoms of a countably generated measurable space May 24, 2026
@gaetanserre

Copy link
Copy Markdown
Collaborator

Thanks! It looks good to me. I'm just wondering if there is a particular utility to define countablyGeneratedAtom with a general countable predicate instead of with a point x and (x ∈ natGeneratingSequence α ·) but I might miss something here.

@RemyDegenne

Copy link
Copy Markdown
Contributor

The reason for defining it for a generic p : ℕ → Prop instead of only the one for a given point is that it's the way I found to actually have a working proof.

The end goal is to describe the atom of a given x. And that description follows from CountablyGenerated so the proof is most likely an induction using generateFrom_induction. I did not manage to make that work to prove that a given set is the atom of x directly. But I managed to use it to describe all sets as union of atoms in exists_eq_iUnion_countablyGeneratedAtom, and then deduce that the atom of x is one of those.

@gaetanserre

Copy link
Copy Markdown
Collaborator

Thanks for the explanation!

@EtienneC30 EtienneC30 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!
maintainer delegate

Comment thread Mathlib/MeasureTheory/MeasurableSpace/CountablyGenerated.lean Outdated
Comment thread Mathlib/MeasureTheory/MeasurableSpace/CountablyGenerated.lean Outdated
Comment thread Mathlib/MeasureTheory/MeasurableSpace/CountablyGenerated.lean Outdated
@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by EtienneC30.

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jun 1, 2026

@sgouezel sgouezel left a comment

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.

bors d+

Comment thread Mathlib/MeasureTheory/MeasurableSpace/CountablyGenerated.lean Outdated
@mathlib-bors

mathlib-bors Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

✌️ mathlib-splicebot[bot] can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@mathlib-triage mathlib-triage Bot added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Jun 1, 2026
@bryangingechen

Copy link
Copy Markdown
Contributor

We probably don't want to delegate to the bot.
bors d=@RemyDegenne

@mathlib-bors

mathlib-bors Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

✌️ RemyDegenne can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@RemyDegenne

Copy link
Copy Markdown
Contributor

How do I push changes to this PR? I used gh pr checkout to get the branch, applied the changes suggested in reviews, and then tried to push, but it gets rejected. How are we supposed to work with those splicebot branches?

@EtienneC30

Copy link
Copy Markdown
Member

I have no idea 😅 I just commit directly from the website.

Comment thread Mathlib/MeasureTheory/MeasurableSpace/CountablyGenerated.lean Outdated
Comment thread Mathlib/MeasureTheory/MeasurableSpace/CountablyGenerated.lean Outdated
Co-authored-by: Etienne Marion <66847262+EtienneC30@users.noreply.github.com>
Co-authored-by: Rémy Degenne <remydegenne@gmail.com>
@RemyDegenne

Copy link
Copy Markdown
Contributor

bors r+

@mathlib-triage mathlib-triage Bot added the ready-to-merge This PR has been sent to bors. label Jun 2, 2026
…MeasurableSpace-CountablyGenerated.lean-0efea4d9b7-t61mi65
@mathlib-bors

mathlib-bors Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Canceled.

Address comments or fix if necessary, and then someone with permission can run bors r+.

@RemyDegenne

Copy link
Copy Markdown
Contributor

bors r+

mathlib-bors Bot pushed a commit that referenced this pull request Jun 2, 2026
This PR adds a definition for the atoms in a countably generated measurable space, expressed with `natGeneratingSequence`.

We also show that the atoms are measurable sets.

Co-authored-by: RemyDegenne <4094732+RemyDegenne@users.noreply.github.com>
Co-authored-by: Rémy Degenne <remydegenne@gmail.com>
@mathlib-bors

mathlib-bors Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat: atoms of a countably generated measurable space [Merged by Bors] - feat: atoms of a countably generated measurable space Jun 2, 2026
@mathlib-bors mathlib-bors Bot closed this Jun 2, 2026
b-mehta pushed a commit to b-mehta/mathlib4 that referenced this pull request Jun 2, 2026
…munity#39770)

This PR adds a definition for the atoms in a countably generated measurable space, expressed with `natGeneratingSequence`.

We also show that the atoms are measurable sets.

Co-authored-by: RemyDegenne <4094732+RemyDegenne@users.noreply.github.com>
Co-authored-by: Rémy Degenne <remydegenne@gmail.com>
Bergschaf pushed a commit to Bergschaf/mathlib4 that referenced this pull request Jun 3, 2026
…munity#39770)

This PR adds a definition for the atoms in a countably generated measurable space, expressed with `natGeneratingSequence`.

We also show that the atoms are measurable sets.

Co-authored-by: RemyDegenne <4094732+RemyDegenne@users.noreply.github.com>
Co-authored-by: Rémy Degenne <remydegenne@gmail.com>
ReemMelamed pushed a commit to ReemMelamed/mathlib4 that referenced this pull request Jun 20, 2026
…munity#39770)

This PR adds a definition for the atoms in a countably generated measurable space, expressed with `natGeneratingSequence`.

We also show that the atoms are measurable sets.

Co-authored-by: RemyDegenne <4094732+RemyDegenne@users.noreply.github.com>
Co-authored-by: Rémy Degenne <remydegenne@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). 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.

5 participants