Skip to content

[Merged by Bors] - chore(Data/Real): move analysis files to under Analysis#28909

Closed
YaelDillies wants to merge 1 commit intoleanprover-community:masterfrom
YaelDillies:analysis_real
Closed

[Merged by Bors] - chore(Data/Real): move analysis files to under Analysis#28909
YaelDillies wants to merge 1 commit intoleanprover-community:masterfrom
YaelDillies:analysis_real

Conversation

@YaelDillies
Copy link
Copy Markdown
Contributor

My criterion was whether the files imported anything from the Analysis folder, and I believe this criterion was spot on.


Open in Gitpod

My criterion was whether the files imported anything from the `Analysis` folder, and I believe this criterion was spot on.
@github-actions
Copy link
Copy Markdown

PR summary 644792174d

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.Data.Real.Pi.Irrational -2392
Mathlib.Data.Real.Pi.Leibniz -2388
Mathlib.Data.Real.Pi.Wallis -2382
Mathlib.Data.Real.Pi.Bounds -1951
Mathlib.Data.Real.Cardinality -1446
Mathlib.Data.Real.Hyperreal -1439
Mathlib.Analysis.Real.Hyperreal 1439
Mathlib.Analysis.Real.Cardinality 1446
Mathlib.Analysis.Real.Pi.Bounds 1951
Mathlib.Analysis.Real.Pi.Wallis 2382
Mathlib.Analysis.Real.Pi.Leibniz 2388
Mathlib.Analysis.Real.Pi.Irrational 2392

Declarations diff

No declarations were harmed in the making of this PR! 🐙

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

note: file Mathlib/Data/Real/Pi/Wallis.lean` was renamed to `Mathlib/Analysis/Real/Pi/Wallis.lean without a module deprecation
Please create a follow-up pull request adding one. Thanks!

note: file Mathlib/Data/Real/Pi/Leibniz.lean` was renamed to `Mathlib/Analysis/Real/Pi/Leibniz.lean without a module deprecation
Please create a follow-up pull request adding one. Thanks!

note: file Mathlib/Data/Real/Pi/Bounds.lean` was renamed to `Mathlib/Analysis/Real/Pi/Bounds.lean without a module deprecation
Please create a follow-up pull request adding one. Thanks!

note: file Mathlib/Data/Real/Hyperreal.lean` was renamed to `Mathlib/Analysis/Real/Hyperreal.lean without a module deprecation
Please create a follow-up pull request adding one. Thanks!

note: file Mathlib/Data/Real/Cardinality.lean` was renamed to `Mathlib/Analysis/Real/Cardinality.lean without a module deprecation
Please create a follow-up pull request adding one. Thanks!

note: file Mathlib/Data/Real/Pi/Irrational.lean` was renamed to `Mathlib/Analysis/Real/Pi/Irrational.lean without a module deprecation
Please create a follow-up pull request adding one. Thanks!

@github-actions github-actions bot added the file-removed A Lean module was (re)moved without a `deprecated_module` annotation label Aug 25, 2025
@YaelDillies YaelDillies added the t-analysis Analysis (normed *, calculus) label Aug 25, 2025
Copy link
Copy Markdown
Contributor

@grunweg grunweg left a comment

Choose a reason for hiding this comment

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

All files except Mathlib/Analysis/Real/Cardinality.lean LGTM. I'm not sure about that one - can you explain why you think this is best? (Reverting it from this PR and filing a follow-up with more files also works for me.)

@grunweg grunweg added the awaiting-author A reviewer has asked the author a question or requested changes. label Aug 25, 2025
@YaelDillies
Copy link
Copy Markdown
Contributor Author

My reasoning is that it uses the function f ↦ Σ' n, f n * (1 / 3) ^ n, which is analysis. Are you convinced?

@YaelDillies YaelDillies removed the awaiting-author A reviewer has asked the author a question or requested changes. label Aug 26, 2025
@grunweg
Copy link
Copy Markdown
Contributor

grunweg commented Aug 26, 2025

I am convinced. Now, please explain to me why tsum is defined in Topology/Algebra and not Analysis. (Out of scope for this PR.)

@grunweg
Copy link
Copy Markdown
Contributor

grunweg commented Aug 26, 2025

Thanks!
maintainer merge

@github-actions
Copy link
Copy Markdown

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

@ghost ghost added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Aug 26, 2025
@grunweg
Copy link
Copy Markdown
Contributor

grunweg commented Aug 26, 2025

Was this the last import of Analysis from Data? If so, strengthening the directoryDependency linter would be a nice way to prevent regressions!

@YaelDillies
Copy link
Copy Markdown
Contributor Author

Now, please explain to me why tsum is defined in Topology/Algebra and not Analysis.

Wish I knew 😁

Was this the last import of Analysis from Data?

No, the same dance needs to be performed for Complex, and possibly a few more things. Then yes it will be free of Analysis imports.

@grunweg
Copy link
Copy Markdown
Contributor

grunweg commented Aug 26, 2025

FYI, I'm working on doing the same dance for complex in #28948.

@grunweg
Copy link
Copy Markdown
Contributor

grunweg commented Aug 26, 2025

After that, there will be three remaining files:

  • Data/Complex/Cardinality -> also to Analysis, since it uses the real cardinality
  • Data/Complex/Norm -> if we argue a norm is analysis, this should also move
  • Data/Matrix/DoublyStochastic: what do you think, where is a good location?

Copy link
Copy Markdown
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

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

Thanks 🎉

bors merge

@ghost ghost added ready-to-merge This PR has been sent to bors. and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Aug 26, 2025
mathlib-bors bot pushed a commit that referenced this pull request Aug 26, 2025
My criterion was whether the files imported anything from the `Analysis` folder, and I believe this criterion was spot on.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Aug 26, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore(Data/Real): move analysis files to under Analysis [Merged by Bors] - chore(Data/Real): move analysis files to under Analysis Aug 26, 2025
@mathlib-bors mathlib-bors bot closed this Aug 26, 2025
@YaelDillies YaelDillies deleted the analysis_real branch August 26, 2025 12:26
mathlib-bors bot pushed a commit that referenced this pull request Aug 26, 2025
Continuation of #28909.

Co-authored-by: Michael Rothgang <rothgang@math.uni-bonn.de>
FormulaRabbit81 pushed a commit to YaelDillies/mathlib4 that referenced this pull request Aug 30, 2025
…-community#28909)

My criterion was whether the files imported anything from the `Analysis` folder, and I believe this criterion was spot on.
FormulaRabbit81 pushed a commit to YaelDillies/mathlib4 that referenced this pull request Aug 30, 2025
…r-community#28948)

Continuation of leanprover-community#28909.

Co-authored-by: Michael Rothgang <rothgang@math.uni-bonn.de>
adomani added a commit to adomani/mathlib4 that referenced this pull request Sep 1, 2025
mathlib-bors bot pushed a commit that referenced this pull request Sep 2, 2025
These modules were renamed in #28948 and #28909, and this is semi-autogenerated PR to deprecate the old module names.

These are 9 `Data.{Complex, Real}.xxx` files that have been renamed to `Analysis.{Complex, Real}.xxx`.

I had forgotten about running `lake exe mk_all` after the deprecated modules had been generated.
CBirkbeck pushed a commit to CBirkbeck/mathlib4 that referenced this pull request Sep 8, 2025
These modules were renamed in leanprover-community#28948 and leanprover-community#28909, and this is semi-autogenerated PR to deprecate the old module names.

These are 9 `Data.{Complex, Real}.xxx` files that have been renamed to `Analysis.{Complex, Real}.xxx`.

I had forgotten about running `lake exe mk_all` after the deprecated modules had been generated.
yuanyi-350 pushed a commit to yuanyi-350/yuanyi_mathlib4 that referenced this pull request Sep 10, 2025
These modules were renamed in leanprover-community#28948 and leanprover-community#28909, and this is semi-autogenerated PR to deprecate the old module names.

These are 9 `Data.{Complex, Real}.xxx` files that have been renamed to `Analysis.{Complex, Real}.xxx`.

I had forgotten about running `lake exe mk_all` after the deprecated modules had been generated.
robertmaxton42 pushed a commit to robertmaxton42/mathlib4 that referenced this pull request Sep 11, 2025
These modules were renamed in leanprover-community#28948 and leanprover-community#28909, and this is semi-autogenerated PR to deprecate the old module names.

These are 9 `Data.{Complex, Real}.xxx` files that have been renamed to `Analysis.{Complex, Real}.xxx`.

I had forgotten about running `lake exe mk_all` after the deprecated modules had been generated.
joelriou pushed a commit to joelriou/mathlib4 that referenced this pull request Oct 2, 2025
These modules were renamed in leanprover-community#28948 and leanprover-community#28909, and this is semi-autogenerated PR to deprecate the old module names.

These are 9 `Data.{Complex, Real}.xxx` files that have been renamed to `Analysis.{Complex, Real}.xxx`.

I had forgotten about running `lake exe mk_all` after the deprecated modules had been generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

file-removed A Lean module was (re)moved without a `deprecated_module` annotation ready-to-merge This PR has been sent to bors. t-analysis Analysis (normed *, calculus)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants