Skip to content

[Merged by Bors] - feat: monoid algebras commute with base change#29539

Closed
YaelDillies wants to merge 3 commits intoleanprover-community:masterfrom
YaelDillies:tensor_product_monoid_algebra
Closed

[Merged by Bors] - feat: monoid algebras commute with base change#29539
YaelDillies wants to merge 3 commits intoleanprover-community:masterfrom
YaelDillies:tensor_product_monoid_algebra

Conversation

@YaelDillies
Copy link
Copy Markdown
Contributor

From Toric

Co-authored-by: Michał Mrugała kiolterino@gmail.com


Open in Gitpod

@github-actions github-actions bot added the large-import Automatically added label for PRs with a significant increase in transitive imports label Sep 11, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Sep 11, 2025

PR summary 96d819b3dc

Import changes exceeding 2%

% File
+7.41% Mathlib.Algebra.MonoidAlgebra.Basic

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Algebra.MonoidAlgebra.Basic 877 942 +65 (+7.41%)
Import changes for all files
Files Import difference
6 files Mathlib.Algebra.Category.AlgCat.Basic Mathlib.Algebra.FreeAlgebra Mathlib.Algebra.Star.Free Mathlib.CategoryTheory.Monoidal.Internal.Module Mathlib.LinearAlgebra.SymmetricAlgebra.Basic Mathlib.LinearAlgebra.TensorAlgebra.Basic
1
Mathlib.Algebra.FreeNonUnitalNonAssocAlgebra Mathlib.Algebra.MonoidAlgebra.Basic 65
Mathlib.RingTheory.TensorProduct.MonoidAlgebra (new file) 1045

Declarations diff

+ algebraMap_def
+ algebraMonoidAlgebra
+ instance [CommSemiring T] [Algebra R T] [Algebra S T] [IsScalarTower R S T] :
+ scalarTensorEquiv
+ scalarTensorEquiv_symm_single
+ scalarTensorEquiv_tmul
+ symm_mapRangeAlgEquiv
+ tensorEquiv
+ tensorEquiv_symm_single
+ tensorEquiv_tmul
++ instance [Algebra S B] [Algebra A B] [Algebra R B] [IsScalarTower R A B] [IsScalarTower R S B]

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

@YaelDillies YaelDillies added t-ring-theory Ring theory toric Part of the ongoing formalisation of toric varieties labels Sep 11, 2025
@YaelDillies YaelDillies force-pushed the tensor_product_monoid_algebra branch from 4d0f28e to 6ebc8c7 Compare October 10, 2025 13:52
@mathlib4-merge-conflict-bot mathlib4-merge-conflict-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Oct 27, 2025
@mathlib4-merge-conflict-bot
Copy link
Copy Markdown
Collaborator

This pull request has conflicts, please merge master and resolve them.

@YaelDillies YaelDillies force-pushed the tensor_product_monoid_algebra branch from 6ebc8c7 to adf35de Compare October 28, 2025 07:39
@github-actions github-actions bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Oct 28, 2025
Warning: This produces a diamond for `Algebra R[M] S[M][M]`.
That's why it is not a global instance. -/]
noncomputable abbrev algebraMonoidAlgebra : Algebra (MonoidAlgebra R M) (MonoidAlgebra S M) :=
(mapRangeRingHom M (algebraMap R S)).toAlgebra
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.

Note that this discards the SMul field in Algebra R S. Do we care?

Copy link
Copy Markdown
Contributor Author

@YaelDillies YaelDillies Nov 15, 2025

Choose a reason for hiding this comment

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

I don't think so: there are already other issues for Algebra R[M] R[M]...

@erdOne
Copy link
Copy Markdown
Member

erdOne commented Nov 15, 2025

Also the title doesn't sound right. It seems to be claiming S \ox R[M] = R[M]. I would say that it commutes with base change.

@erdOne erdOne added the awaiting-author A reviewer has asked the author a question or requested changes. label Nov 15, 2025
YaelDillies and others added 2 commits November 15, 2025 17:26
From Toric

Co-authored-by: Michał Mrugała <kiolterino@gmail.com>
@YaelDillies YaelDillies force-pushed the tensor_product_monoid_algebra branch from adf35de to acbd9b1 Compare November 15, 2025 16:31
@YaelDillies YaelDillies changed the title feat: monoid algebras are invariant under base change feat: monoid algebras commute with base change Nov 15, 2025
@YaelDillies YaelDillies removed the awaiting-author A reviewer has asked the author a question or requested changes. label Nov 15, 2025
Copy link
Copy Markdown
Member

@erdOne erdOne left a comment

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

@ghost ghost added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Nov 15, 2025
@riccardobrasca
Copy link
Copy Markdown
Member

Thanks!

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Nov 16, 2025
@ghost ghost removed the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Nov 16, 2025
mathlib-bors bot pushed a commit that referenced this pull request Nov 16, 2025
From Toric

Co-authored-by: Michał Mrugała <kiolterino@gmail.com>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Nov 16, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: monoid algebras commute with base change [Merged by Bors] - feat: monoid algebras commute with base change Nov 16, 2025
@mathlib-bors mathlib-bors bot closed this Nov 16, 2025
@YaelDillies YaelDillies deleted the tensor_product_monoid_algebra branch November 17, 2025 04:47
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 ready-to-merge This PR has been sent to bors. t-ring-theory Ring theory toric Part of the ongoing formalisation of toric varieties

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants