Skip to content

feat(LinearAlgebra/Matrix): diagonal embedding into the general linear group - #46886

Open
loefflerd wants to merge 3 commits into
leanprover-community:masterfrom
loefflerd:codex/tauceti-gl-diagonal
Open

loefflerd wants to merge 3 commits into
leanprover-community:masterfrom
loefflerd:codex/tauceti-gl-diagonal

Conversation

@loefflerd

@loefflerd loefflerd commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Add the monoid homomorphism Matrix.GeneralLinearGroup.diagonal from coordinatewise units into GL, together with its matrix coercion, entrywise evaluation and injectivity lemmas. The construction works over a semiring.

Qualify the two existing Matrix.diagonal calls in det_surjective to distinguish them from the new general-linear-group construction. No new imports are needed.


🤖 LLM disclosure: Codex inspected and adapted this contribution from Tau Ceti, selected its Mathlib placement and naming, and ran the local checks. I, the human author, reviewed it before removing the WIP tag.

Source: Tau Ceti. The source API is explicitly referenced in approximately 88 other Tau Ceti files.

@loefflerd loefflerd added WIP Work in progress LLM-generated PRs with substantial input from LLMs - review accordingly labels Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

PR summary 157026bc3a

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

+ coe_diagonal_apply
+ coe_diagonal_apply_apply
+ diagonal
+ diagonal_inj
+ diagonal_injective

You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.

Declarations diff (Lean)

✅ Lean-aware diff — post-build, computed from the Lean environment (commit 157026b).

  • +5 new declarations
  • −0 removed declarations
+Matrix.GeneralLinearGroup.coe_diagonal_apply
+Matrix.GeneralLinearGroup.coe_diagonal_apply_apply
+Matrix.GeneralLinearGroup.diagonal
+Matrix.GeneralLinearGroup.diagonal_inj
+Matrix.GeneralLinearGroup.diagonal_injective

No changes to strong technical debt.
No changes to weak technical debt.

Current commit 157026bc3a
Reference commit 4631dfb80b

This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:

git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.py 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 added the t-algebra Algebra (groups, rings, fields, etc) label Dec 2, 2026
@loefflerd
loefflerd marked this pull request as ready for review December 2, 2026 19:37
@loefflerd loefflerd removed the WIP Work in progress label Dec 2, 2026
@themathqueen themathqueen added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Dec 2, 2026
@loefflerd

Copy link
Copy Markdown
Contributor Author

Thanks for the reivew Monica, I applied all your suggestions.

@loefflerd loefflerd removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Dec 2, 2026

@themathqueen themathqueen 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, seems useful to me too,

maintainer delegate

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

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

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Dec 2, 2026
@loefflerd

loefflerd commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor Author

bors r+ (oops, too keen, sorry!)

@mathlib-bors

mathlib-bors Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

🔒 Permission denied

An existing reviewer can click here to make loefflerd a reviewer.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

LLM-generated PRs with substantial input from LLMs - review accordingly maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. t-algebra Algebra (groups, rings, fields, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants