Skip to content

[Merged by Bors] - feat(Algebra/QuadraticAlgebra): quadratic extensions are quadratic algebras - #42554

Closed
xroblot wants to merge 33 commits into
leanprover-community:masterfrom
xroblot:quadratic-algebra-isquadraticextension
Closed

xroblot wants to merge 33 commits into
leanprover-community:masterfrom
xroblot:quadratic-algebra-isquadraticextension

Conversation

@xroblot

@xroblot xroblot commented Aug 7, 2026 •

Copy link
Copy Markdown
Collaborator

Relates the construction QuadraticAlgebra R a b to the predicate Algebra.IsQuadraticExtension:

  • QuadraticAlgebra.instIsQuadraticExtension: a QuadraticAlgebra is a quadratic extension;
  • Algebra.IsQuadraticExtension.exists_algEquiv_quadraticAlgebra: every commutative quadratic
    extension is isomorphic to some QuadraticAlgebra R a b.

@github-actions github-actions Bot added the tech debt Fixes cross-cutting technical debt, see the "technical debt counters" stream on zulip label Aug 7, 2026
@github-actions

github-actions Bot commented Aug 7, 2026 •

Copy link
Copy Markdown

PR summary 4a25ee9108

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.Algebra.QuadraticAlgebra.IsQuadraticExtension (new file) 2019

Declarations diff (regex)

+ Algebra.aeval_charpoly_leftMulMatrix
+ IsQuadraticExtension.exists_algEquiv_quadraticAlgebra
+ IsQuadraticExtension.sq_eq_trace_smul_sub_norm
+ IsQuadraticExtension.sq_sub_trace_smul_add_norm_eq_zero
+ instance [StrongRankCondition R] :

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

  • +5 new declarations
  • −0 removed declarations
+Algebra.IsQuadraticExtension.exists_algEquiv_quadraticAlgebra
+Algebra.IsQuadraticExtension.sq_eq_trace_smul_sub_norm
+Algebra.IsQuadraticExtension.sq_sub_trace_smul_add_norm_eq_zero
+Algebra.aeval_charpoly_leftMulMatrix
+QuadraticAlgebra.instIsQuadraticExtension

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

Current commit 4a25ee9108
Reference commit 56a9a88447

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-ring-theory Ring theory label Aug 7, 2026
@mathlib-dependent-issues mathlib-dependent-issues Bot added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Aug 7, 2026
@mathlib-merge-conflicts mathlib-merge-conflicts 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 Aug 14, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

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

…-isquadraticextension

# Conflicts:
#	Mathlib/Algebra/QuadraticAlgebra/Discriminant.lean
#	Mathlib/LinearAlgebra/Unimodular.lean
@github-actions github-actions Bot removed merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) large-import Automatically added label for PRs with a significant increase in transitive imports labels Sep 15, 2026
@riccardobrasca riccardobrasca self-assigned this Sep 15, 2026

@riccardobrasca riccardobrasca 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.

Can you add the link between the trace/norm in the quadratic algebra case and the general version?

Comment thread Mathlib/RingTheory/Trace/Basic.lean Resolved
Comment thread Mathlib/RingTheory/Trace/Basic.lean Resolved
@xroblot

xroblot commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator Author

Can you add the link between the trace/norm in the quadratic algebra case and the general version?

Do you mean like this: #42297

@riccardobrasca

Copy link
Copy Markdown
Member

Can you add the link between the trace/norm in the quadratic algebra case and the general version?

Do you mean like this: #42297

Yes exactly. Let's keep those separated.

@riccardobrasca

Copy link
Copy Markdown
Member

Thanks!

bors d+

@mathlib-bors

mathlib-bors Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

✌️ xroblot can now approve this pull request until 2026-09-30 11:23 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 Sep 16, 2026
@xroblot

xroblot commented Sep 16, 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 Sep 16, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Sep 16, 2026
…gebras (#42554)

Relates the construction `QuadraticAlgebra R a b` to the predicate `Algebra.IsQuadraticExtension`:

* `QuadraticAlgebra.instIsQuadraticExtension`: a `QuadraticAlgebra` is a quadratic extension;
* `Algebra.IsQuadraticExtension.exists_algEquiv_quadraticAlgebra`: every commutative quadratic
  extension is isomorphic to some `QuadraticAlgebra R a b`.
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Sep 16, 2026
@mathlib-bors

mathlib-bors Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Build failed (retrying...):

  • ci (staging) / Post-CI job

@mathlib-bors mathlib-bors Bot removed the bors-staging This PR is currently being built by bors on the staging branch. label Sep 16, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Sep 16, 2026
…gebras (#42554)

Relates the construction `QuadraticAlgebra R a b` to the predicate `Algebra.IsQuadraticExtension`:

* `QuadraticAlgebra.instIsQuadraticExtension`: a `QuadraticAlgebra` is a quadratic extension;
* `Algebra.IsQuadraticExtension.exists_algEquiv_quadraticAlgebra`: every commutative quadratic
  extension is isomorphic to some `QuadraticAlgebra R a b`.
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Sep 16, 2026
@mathlib-bors

mathlib-bors Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title feat(Algebra/QuadraticAlgebra): quadratic extensions are quadratic algebras [Merged by Bors] - feat(Algebra/QuadraticAlgebra): quadratic extensions are quadratic algebras Sep 16, 2026
@mathlib-bors mathlib-bors Bot closed this Sep 16, 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 Sep 16, 2026
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-ring-theory Ring theory tech debt Fixes cross-cutting technical debt, see the "technical debt counters" stream on zulip

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants