Skip to content

[Merged by Bors] - fix: generalize CommSemiring to Semiring for bilinear map composition#26458

Closed
eric-wieser wants to merge 5 commits intomasterfrom
eric-wieser/compl2-fix
Closed

[Merged by Bors] - fix: generalize CommSemiring to Semiring for bilinear map composition#26458
eric-wieser wants to merge 5 commits intomasterfrom
eric-wieser/compl2-fix

Conversation

@eric-wieser
Copy link
Copy Markdown
Member

@eric-wieser eric-wieser commented Jun 26, 2025

This file could do with further variable cleanup, but that's left for a later PR.

I needed some of these generalizations for some base change results.


Open in Gitpod

…tion

This file could do with further variable cleanup, but that's left for a later PR.
@eric-wieser eric-wieser requested a review from erdOne June 26, 2025 22:11
@eric-wieser eric-wieser added the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Jun 26, 2025
@github-actions github-actions bot added the t-algebra Algebra (groups, rings, fields, etc) label Jun 26, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 26, 2025

PR summary 9858d11442

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

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

@github-actions github-actions bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Jun 26, 2025
@eric-wieser
Copy link
Copy Markdown
Member Author

!bench

rfl

@[simp]
theorem compl₂_apply (g : Q →ₛₗ[σ₄₂] N) (m : M) (q : Q) : f.compl₂ g m q = f m (g q) := rfl
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Previously this was less general than the definition

@leanprover-bot
Copy link
Copy Markdown
Collaborator

Here are the benchmark results for commit 09fe2f6.
There were no significant changes against commit 9858d11.

@github-actions
Copy link
Copy Markdown

File Instructions %
build -3.961⬝10⁹ (+0.00%)
Mathlib.LinearAlgebra.BilinearMap -8.144⬝10⁹ (-12.01%)
CI run

@eric-wieser eric-wieser requested a review from jcommelin June 27, 2025 12:22
Copy link
Copy Markdown
Contributor

@b-mehta b-mehta left a comment

Choose a reason for hiding this comment

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

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jun 27, 2025

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

@ghost ghost added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Jun 27, 2025
@eric-wieser
Copy link
Copy Markdown
Member Author

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Jun 27, 2025
mathlib-bors bot pushed a commit that referenced this pull request Jun 27, 2025
…tion (#26458)

This file could do with further variable cleanup, but that's left for a later PR.

I needed some of these generalizations for some base change results.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jun 27, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title fix: generalize CommSemiring to Semiring for bilinear map composition [Merged by Bors] - fix: generalize CommSemiring to Semiring for bilinear map composition Jun 27, 2025
@mathlib-bors mathlib-bors bot closed this Jun 27, 2025
@mathlib-bors mathlib-bors bot deleted the eric-wieser/compl2-fix branch June 27, 2025 15:06
joelriou pushed a commit to joelriou/mathlib4 that referenced this pull request Jul 7, 2025
…tion (leanprover-community#26458)

This file could do with further variable cleanup, but that's left for a later PR.

I needed some of these generalizations for some base change results.
alreadydone added a commit that referenced this pull request Jul 7, 2025
def lcomp (f : M →ₗ[R] Nₗ) : (Nₗ →ₗ[R] Pₗ) →ₗ[A] M →ₗ[R] Pₗ :=
letI := SMulCommClass.symm
flip <| LinearMap.comp (flip id) f
def lcomp (f : M →ₗ[R] Nₗ) : (Nₗ →ₗ[R] Pₗ) →ₗ[A] M →ₗ[R] Pₗ := lcompₛₗ _ _ _ f
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.

Hmm, R is not generalized to Semiring here. I have to do it again in #24015 ...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good catch

callesonne pushed a commit to callesonne/mathlib4 that referenced this pull request Jul 24, 2025
…tion (leanprover-community#26458)

This file could do with further variable cleanup, but that's left for a later PR.

I needed some of these generalizations for some base change results.
hrmacbeth pushed a commit to szqzs/mathlib4 that referenced this pull request Jul 28, 2025
…tion (leanprover-community#26458)

This file could do with further variable cleanup, but that's left for a later PR.

I needed some of these generalizations for some base change results.
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-algebra Algebra (groups, rings, fields, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants