Skip to content

[Merged by Bors] - chore: deprecated modules for #24390 - #24942

Closed
YaelDillies wants to merge 1 commit into
masterfrom
deprecated_module_cartesian_monoidal_category
Closed

YaelDillies wants to merge 1 commit into
masterfrom
deprecated_module_cartesian_monoidal_category

Conversation

@YaelDillies

Copy link
Copy Markdown
Contributor

Open in Gitpod

@YaelDillies YaelDillies added easy < 20s of review time. See the lifecycle page for guidelines. t-category-theory Category theory labels May 15, 2025
@github-actions

Copy link
Copy Markdown

PR summary 417dfebbb2

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.CategoryTheory.ChosenFiniteProducts (new file) 620
Mathlib.CategoryTheory.ChosenFiniteProducts.Cat (new file) 621
Mathlib.CategoryTheory.ChosenFiniteProducts.InfSemilattice (new file) 622
Mathlib.CategoryTheory.ChosenFiniteProducts.Over (new file) 646
Mathlib.Algebra.Category.Grp.ChosenFiniteProducts (new file) 884

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

@grunweg grunweg 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.

Thanks!
maintainer merge

@github-actions

Copy link
Copy Markdown

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

@github-actions github-actions Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label May 16, 2025
@adomani

adomani commented May 16, 2025 •

Copy link
Copy Markdown
Contributor

The automated tool #24917 suggests a missing deprecated module: Mathlib/CategoryTheory/ChosenFiniteProducts.lean

/-
Copyright (c) 2019 Kim Morrison, Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison, Simon Hudon, Adam Topaz, Robin Carlier
-/
import Mathlib.CategoryTheory.Limits.Constructions.FiniteProductsOfBinaryProducts
import Mathlib.CategoryTheory.Limits.FullSubcategory
import Mathlib.CategoryTheory.Limits.Preserves.Shapes.Terminal
import Mathlib.CategoryTheory.Monoidal.Braided.Basic

deprecated_module (since := "2025-05-15")

Here is also the context that the command gives:

The file Mathlib/CategoryTheory/ChosenFiniteProducts.lean was

last modified in 
[_7c75d4c] refactor: move the construction of `ChosenFiniteProducts` from finite products with `ChosenFiniteProducts` (#24679) ▼
                   [«7c75d4cfce1cf03634b89b10d2d0525897700764»] git diff 7c75d4cfce1cf03634b89b10d2d0525897700764^...7c75d4cfce1cf03634b89b10d2d0525897700764 -- Mathlib/CategoryTheory/ChosenFiniteProducts.lean ▶

deleted in 
[_ae681ea] chore: rename `ChosenFiniteProducts` to `CartesianMonoidalCategory` (#24390) ▼
             [ae681ea322406e291843c3a77927dde5b6a5f593] git diff ae681ea322406e291843c3a77927dde5b6a5f593^...ae681ea322406e291843c3a77927dde5b6a5f593 -- Mathlib/CategoryTheory/ChosenFiniteProducts.lean ▶

@YaelDillies

Copy link
Copy Markdown
Contributor Author

@adomani, are you sure? I am already adding Mathlib.CategoryTheory.ChosenFiniteProducts in this PR, but with different imports of course, since the content moved to a new file.

@adomani

adomani commented May 16, 2025

Copy link
Copy Markdown
Contributor

Yaël, you are right: that was the output when I was using a command that later I realized was not what I intended! The command still reports a missing deprecation, though a different one.

Mathlib/CategoryTheory/ChosenFiniteProducts/FunctorCategory.lean

/-
Copyright (c) 2024 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou
-/
import Mathlib.CategoryTheory.ChosenFiniteProducts
import Mathlib.CategoryTheory.Limits.FunctorCategory.Basic

deprecated_module (since := "2025-05-15")

and nothing else for this PR.

Here is the context that the command also gives:

The file Mathlib/CategoryTheory/ChosenFiniteProducts/FunctorCategory.lean was

last modified in 
[_1def1b4] refactor(CategoryTheory): Make `ChosenFiniteProducts` extend `MonoidalCategory` (#24399) ▼
  [«1def1b4f8b192da4e848ea4bc1e493f0827150c8»] git diff 1def1b4f8b192da4e848ea4bc1e493f0827150c8^...1def1b4f8b192da4e848ea4bc1e493f0827150c8 -- Mathlib/CategoryTheory/ChosenFiniteProducts/FunctorCategory.lean ▶

deleted in 
[_ae681ea] chore: rename `ChosenFiniteProducts` to `CartesianMonoidalCategory` (#24390) ▼
  [ae681ea322406e291843c3a77927dde5b6a5f593] git diff ae681ea322406e291843c3a77927dde5b6a5f593^...ae681ea322406e291843c3a77927dde5b6a5f593 -- Mathlib/CategoryTheory/ChosenFiniteProducts/FunctorCategory.lean ▶

@adomani

adomani commented May 16, 2025 •

Copy link
Copy Markdown
Contributor

By the way, my comments are not intended as "These changes must be performed.", but rather as "Let me test the new deprecation tool and see whether it would produce the correct output!". So, if there are procedural errors or any other kind of bug, feel free to let me know! 😄

@jcommelin jcommelin 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 🎉

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 May 17, 2025
mathlib-bors Bot pushed a commit that referenced this pull request May 17, 2025
@mathlib-bors

mathlib-bors Bot commented May 17, 2025

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title chore: deprecated modules for #24390 [Merged by Bors] - chore: deprecated modules for #24390 May 17, 2025
@mathlib-bors mathlib-bors Bot closed this May 17, 2025
@mathlib-bors
mathlib-bors Bot deleted the deprecated_module_cartesian_monoidal_category branch May 17, 2025 04:15
@YaelDillies

Copy link
Copy Markdown
Contributor Author

By the way, my comments are not intended as "These changes must be performed.", but rather as "Let me test the new deprecation tool and see whether it would produce the correct output!". So, if there are procedural errors or any other kind of bug, feel free to let me know! 😄

No actually this is correct, I had forgotten that file!

bwehlin pushed a commit to bwehlin/mathlib4 that referenced this pull request May 31, 2025
mathlib-bors Bot pushed a commit that referenced this pull request Jun 30, 2026
Twice recently there have been files with an "intended" `.lean` extension in `Mathlib/`:
* #24942, ending in `;lean`;
* #25457, ending in `.Lean`.

`mk_all` does not add these files to `Mathlib.lean`, since they do not end in `.lean` and this later causes problems.

This CI step checks that all files in `Mathlib/` end with `.lean` or `.md`.

See #25474 for a test where the new step [correctly fails](https://github.com/leanprover-community/mathlib4/actions/runs/15464097783/job/43532018379?pr=25474).
joelriou pushed a commit to joelriou/mathlib4 that referenced this pull request Jul 4, 2026
…ver-community#25473)

Twice recently there have been files with an "intended" `.lean` extension in `Mathlib/`:
* leanprover-community#24942, ending in `;lean`;
* leanprover-community#25457, ending in `.Lean`.

`mk_all` does not add these files to `Mathlib.lean`, since they do not end in `.lean` and this later causes problems.

This CI step checks that all files in `Mathlib/` end with `.lean` or `.md`.

See leanprover-community#25474 for a test where the new step [correctly fails](https://github.com/leanprover-community/mathlib4/actions/runs/15464097783/job/43532018379?pr=25474).
michaellee94 pushed a commit to michaellee94/mathlib4 that referenced this pull request Jul 11, 2026
…ver-community#25473)

Twice recently there have been files with an "intended" `.lean` extension in `Mathlib/`:
* leanprover-community#24942, ending in `;lean`;
* leanprover-community#25457, ending in `.Lean`.

`mk_all` does not add these files to `Mathlib.lean`, since they do not end in `.lean` and this later causes problems.

This CI step checks that all files in `Mathlib/` end with `.lean` or `.md`.

See leanprover-community#25474 for a test where the new step [correctly fails](https://github.com/leanprover-community/mathlib4/actions/runs/15464097783/job/43532018379?pr=25474).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

easy < 20s of review time. See the lifecycle page for guidelines. ready-to-merge This PR has been sent to bors. t-category-theory Category theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants