Skip to content

Conversation

YaelDillies
Copy link
Collaborator

@YaelDillies YaelDillies commented Oct 19, 2025

Over the summer, this was replaced everywhere with CartesianMonoidalCategory.ofHasFiniteProducts, but hadn't been deprecated.


I would personally be very happy to also delete the finite coproduct stuff, but we don't yet have cocartesian-monoidal categories to replace them.

Open in Gitpod

Over the summer, this was replaced everywhere with `CartesianMonoidalCategory.ofHasFiniteProducts`, but hadn't been deprecated.
@github-actions github-actions bot added t-category-theory Category theory large-import Automatically added label for PRs with a significant increase in transitive imports labels Oct 19, 2025
Copy link

github-actions bot commented Oct 19, 2025

PR summary 7c64d37d34

Import changes exceeding 2%

% File
+28.04% Mathlib.CategoryTheory.Monoidal.OfHasFiniteProducts

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.CategoryTheory.Monoidal.OfHasFiniteProducts 510 653 +143 (+28.04%)
Import changes for all files
Files Import difference
Mathlib.CategoryTheory.Monoidal.OfHasFiniteProducts 143

Declarations diff

+ instance (X Y : C) :
+++ instance :
- instance (X Y : C) : IsIso (δ F X Y) := by dsimp [δ_eq]; infer_instance
- instance : F.Monoidal := .ofOplaxMonoidal F
- instance : F.OplaxMonoidal
- instance : IsIso (η F) := by dsimp [η_eq]; infer_instance
- leftUnitor_inv
- rightUnitor_inv
- tensorHom
- whiskerLeft
- whiskerRight

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.


Increase in tech debt: (relative, absolute) = (0.71, 0.01)
Current number Change Type
753 -3 erw
59 1 disabled deprecation lints

Current commit e4f59d6725
Reference commit 7c64d37d34

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

section

/-- A category with a terminal object and binary products has a natural monoidal structure. -/
@[deprecated CartesianMonoidalCategory.ofHasFiniteProducts (since := "2025-10-19")]
Copy link
Collaborator

Choose a reason for hiding this comment

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

In the definition itself, could you use CartesianMonoidalCategory.ofHasFiniteProducts? (using hasFiniteProductsOfHasBinaryAndTerminal).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure, although I had to drop the lemmas that are not true anymore

@joelriou joelriou added the awaiting-author A reviewer has asked the author a question or requested changes. label Oct 19, 2025
@YaelDillies YaelDillies removed the awaiting-author A reviewer has asked the author a question or requested changes. label Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

large-import Automatically added label for PRs with a significant increase in transitive imports t-category-theory Category theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants