Skip to content

[Merged by Bors] - feat(Algebra/QuadraticAlgebra): base change of quadratic algebras - #42977

Closed
xroblot wants to merge 15 commits into
leanprover-community:masterfrom
xroblot:quadratic-algebra-base-change
Closed

xroblot wants to merge 15 commits into
leanprover-community:masterfrom
xroblot:quadratic-algebra-base-change

Conversation

@xroblot

@xroblot xroblot commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

A base change R → S induces an R-algebra homomorphism QuadraticAlgebra R a b →ₐ[R] QuadraticAlgebra S (algebraMap R S a) (algebraMap R S b) sending ω to ω, injective when S is faithful over R, and compatible with the norm, the trace and the discriminant.

Prepared with Claude Code 🤖

@github-actions

github-actions Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

PR summary 1d11fe7c23

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.Algebra.QuadraticAlgebra.BaseChange (new file) 1506

Declarations diff (regex)

+ algebra
+ algebraMap_eq_mapRingHom
+ baseChange
+ baseChangeEquiv
+ baseChangeEquiv_tmul
+ baseChange_injective
+ coe_baseChange
+ discr_algebraMap
+ instance :
+ isPushout
+ mapRingHom
+ mapRingHom_comp
+ mapRingHom_id
+ mapRingHom_injective
+ mapRingHom_omega
+ mapRingHom_star
+ mapRingHom_surjective
+ norm_mapRingHom
+ trace_mapRingHom

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

  • +21 new declarations
  • −0 removed declarations
+QuadraticAlgebra.algebra
+QuadraticAlgebra.algebraMap_eq_mapRingHom
+QuadraticAlgebra.baseChange
+QuadraticAlgebra.baseChangeEquiv
+QuadraticAlgebra.baseChangeEquiv_tmul
+QuadraticAlgebra.baseChange_injective
+QuadraticAlgebra.coe_baseChange
+QuadraticAlgebra.discr_algebraMap
+QuadraticAlgebra.im_mapRingHom_apply
+QuadraticAlgebra.instIsScalarTowerCoeRingHomAlgebraMap
+QuadraticAlgebra.isPushout
+QuadraticAlgebra.mapRingHom
+QuadraticAlgebra.mapRingHom_comp
+QuadraticAlgebra.mapRingHom_id
+QuadraticAlgebra.mapRingHom_injective
+QuadraticAlgebra.mapRingHom_omega
+QuadraticAlgebra.mapRingHom_star
+QuadraticAlgebra.mapRingHom_surjective
+QuadraticAlgebra.norm_mapRingHom
+QuadraticAlgebra.re_mapRingHom_apply
+QuadraticAlgebra.trace_mapRingHom

No changes to strong technical debt.

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

Current commit 1d11fe7c23
Reference commit f8412f2c8c

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

@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 22, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

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

@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 Aug 24, 2026
@jcommelin jcommelin added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Sep 8, 2026
@xroblot xroblot removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Sep 8, 2026
@robin-carlier robin-carlier added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Sep 12, 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 Sep 15, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

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

…-base-change

# Conflicts:
#	Mathlib/Algebra/QuadraticAlgebra/Discriminant.lean
@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 Sep 15, 2026
@xroblot xroblot removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Sep 15, 2026

@robin-carlier robin-carlier left a comment

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.

Thanks!

maintainer delegate

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by robin-carlier.

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

Copy link
Copy Markdown
Member

Thanks!

bors d+

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

mathlib-bors Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

✌️ xroblot can now approve this pull request until 2026-10-16 12:41 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-triage mathlib-triage Bot removed the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Oct 2, 2026
@xroblot

xroblot commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator Author

bors r+

@riccardobrasca

Copy link
Copy Markdown
Member

Thanks!

bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Oct 2, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Oct 2, 2026
…2977)

A base change `R → S` induces an `R`-algebra homomorphism `QuadraticAlgebra R a b →ₐ[R] QuadraticAlgebra S (algebraMap R S a) (algebraMap R S b)` sending `ω` to `ω`, injective when `S` is faithful over `R`, and compatible with the norm, the trace and the discriminant.

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 Oct 2, 2026
@mathlib-bors

mathlib-bors Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(Algebra/QuadraticAlgebra): base change of quadratic algebras [Merged by Bors] - feat(Algebra/QuadraticAlgebra): base change of quadratic algebras Oct 2, 2026
@mathlib-bors mathlib-bors Bot closed this Oct 2, 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 Oct 2, 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-algebra Algebra (groups, rings, fields, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants