Skip to content

[Merged by Bors] - feat(Algebra/QuadraticAlgebra): algebra homomorphisms between quadratic algebras - #42951

Closed
xroblot wants to merge 7 commits into
leanprover-community:masterfrom
xroblot:quadratic-algebra-alghom
Closed

xroblot wants to merge 7 commits into
leanprover-community:masterfrom
xroblot:quadratic-algebra-alghom

Conversation

@xroblot

@xroblot xroblot commented Aug 19, 2026 •

Copy link
Copy Markdown
Collaborator

An R-algebra homomorphism f : QuadraticAlgebra R a b →ₐ[R] QuadraticAlgebra R a' b' is determined by the image of ω, and its determinant (f ω).im decides everything: f is injective if and only if (f ω).im is regular, bijective if and only if it is a unit, and an injective f preserves the trace, the conjugation and the norm.

Prepared with Claude Code 🤖

@xroblot xroblot added the t-algebra Algebra (groups, rings, fields, etc) label Aug 19, 2026
@github-actions

github-actions Bot commented Aug 19, 2026 •

Copy link
Copy Markdown

PR summary b20297de29

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.Algebra.QuadraticAlgebra.AlgHom (new file) 1538

Declarations diff (regex)

+ algHom_star
+ basis_apply_one
+ basis_apply_zero
+ det_toMatrix_algHom
+ isRegular_im_omega_iff_injective
+ isUnit_im_omega_iff_bijective
+ isUnit_im_omega_of_algEquiv
+ mulVec_toMatrix_comp_eq
+ norm_algHom
+ norm_algHom_omega
+ omega_pow_two_eq_add
+ re_smul_add_im_smul
+ smul_omega_sub_eq
+ toMatrix_algHom
+ trace_algHom
+ trace_algHom_omega

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

  • +14 new declarations
  • −0 removed declarations
+QuadraticAlgebra.algHom_star
+QuadraticAlgebra.basis_apply_one
+QuadraticAlgebra.basis_apply_zero
+QuadraticAlgebra.det_toMatrix_algHom
+QuadraticAlgebra.isRegular_im_omega_iff_injective
+QuadraticAlgebra.isUnit_im_omega_iff_bijective
+QuadraticAlgebra.isUnit_im_omega_of_algEquiv
+QuadraticAlgebra.norm_algHom
+QuadraticAlgebra.norm_algHom_omega
+QuadraticAlgebra.omega_pow_two_eq_add
+QuadraticAlgebra.re_smul_add_im_smul
+QuadraticAlgebra.toMatrix_algHom
+QuadraticAlgebra.trace_algHom
+QuadraticAlgebra.trace_algHom_omega

No changes to strong technical debt.

Increase in weak tech debt: (relative, absolute) = (1.00, 0.00)
Current number Change Type (weak)
exposed public sections 4966 1

Current commit b20297de29
Reference commit 54cc7355be

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

@xroblot xroblot changed the title feat(Algebra/QuadraticAlgebra): algebra maps between quadratic algebras feat(Algebra/QuadraticAlgebra): algebra homomorphisms between quadratic algebras Aug 19, 2026

@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 d+

@mathlib-bors

mathlib-bors Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

✌️ xroblot can now approve this pull request until 2026-09-08 05:46 UTC (in 2 weeks). To approve and merge, reply with bors r+. More detailed instructions are available here.

⚠️ This delegation only covers changes within Archive/**, Counterexamples/**, docs/**, DownstreamTest/**, Mathlib/**, MathlibTest/**, Wanted/**, widget/**, Archive.lean, Counterexamples.lean, docs.lean, Mathlib.lean, Wanted.lean; an author commit touching anything else will revoke it. Bors also revokes it if a later push changes too many files for it to check the full list — even if it stays within scope.

@mathlib-bors mathlib-bors Bot added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Aug 25, 2026
@xroblot

xroblot commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator Author

bors r+

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Aug 25, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Aug 25, 2026
…ic algebras (#42951)

An `R`-algebra homomorphism `f : QuadraticAlgebra R a b →ₐ[R] QuadraticAlgebra R a' b'` is determined by the image of `ω`, and its determinant `(f ω).im` decides everything: `f` is injective if and only if `(f ω).im` is regular, bijective if and only if it is a unit, and an injective `f` preserves the trace, the conjugation and the norm.

Prepared with Claude Code 🤖
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Aug 25, 2026
@mathlib-bors

mathlib-bors Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Build failed (retrying...):

@mathlib-bors mathlib-bors Bot removed the bors-staging This PR is currently being built by bors on the staging branch. label Aug 25, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Aug 25, 2026
…ic algebras (#42951)

An `R`-algebra homomorphism `f : QuadraticAlgebra R a b →ₐ[R] QuadraticAlgebra R a' b'` is determined by the image of `ω`, and its determinant `(f ω).im` decides everything: `f` is injective if and only if `(f ω).im` is regular, bijective if and only if it is a unit, and an injective `f` preserves the trace, the conjugation and the norm.

Prepared with Claude Code 🤖
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Aug 25, 2026
@mathlib-bors

mathlib-bors Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title feat(Algebra/QuadraticAlgebra): algebra homomorphisms between quadratic algebras [Merged by Bors] - feat(Algebra/QuadraticAlgebra): algebra homomorphisms between quadratic algebras Aug 25, 2026
@mathlib-bors mathlib-bors Bot closed this Aug 25, 2026
@mathlib-bors mathlib-bors Bot removed the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Aug 25, 2026
attilavjda pushed a commit to attilavjda/mathlib4 that referenced this pull request Sep 5, 2026
…ic algebras (leanprover-community#42951)

An `R`-algebra homomorphism `f : QuadraticAlgebra R a b →ₐ[R] QuadraticAlgebra R a' b'` is determined by the image of `ω`, and its determinant `(f ω).im` decides everything: `f` is injective if and only if `(f ω).im` is regular, bijective if and only if it is a unit, and an injective `f` preserves the trace, the conjugation and the norm.

Prepared with Claude Code 🤖
joelriou pushed a commit to joelriou/mathlib4 that referenced this pull request Sep 5, 2026
…ic algebras (leanprover-community#42951)

An `R`-algebra homomorphism `f : QuadraticAlgebra R a b →ₐ[R] QuadraticAlgebra R a' b'` is determined by the image of `ω`, and its determinant `(f ω).im` decides everything: `f` is injective if and only if `(f ω).im` is regular, bijective if and only if it is a unit, and an injective `f` preserves the trace, the conjugation and the norm.

Prepared with Claude Code 🤖
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bors-staging This PR is currently being built by bors on the staging branch. 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