Repository navigation
[Merged by Bors] - feat(Algebra/QuadraticAlgebra): classify quadratic algebras by their discriminant - #42708
[Merged by Bors] - feat(Algebra/QuadraticAlgebra): classify quadratic algebras by their discriminant#42708xroblot wants to merge 23 commits into
Conversation
…-map # Conflicts: # Mathlib/Algebra/QuadraticAlgebra/Basic.lean
…ratic-algebra-discr # Conflicts: # Mathlib/Algebra/QuadraticAlgebra/Basic.lean
…-discr # Conflicts: # Mathlib/Algebra/QuadraticAlgebra/Basic.lean
Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01Pxa1HLgwZQg6sssxyFg2o1
PR summary 9c7fefcaf6Import changes exceeding 2%
|
| File | Base Count | Head Count | Change |
|---|---|---|---|
| Mathlib.Algebra.QuadraticAlgebra.Discriminant | 1480 | 1652 | +172 (+11.62%) |
Import changes for all files
| Files | Import difference |
|---|---|
Mathlib.Algebra.QuadraticAlgebra.Discr Mathlib.Algebra.QuadraticAlgebra.Discriminant |
172 |
Declarations diff (regex)
+ algEquivDiscrZero
+ algEquivDiscrZero_add_smul
+ algEquivDiscrZero_im
+ algEquivDiscrZero_re
+ algEquivDiscrZero_symm_add_smul
+ algEquivDiscrZero_symm_im
+ algEquivDiscrZero_symm_re
+ discr_eq_im_sq_mul_discr
+ im_sq_mul_discr
+ nonempty_algEquiv_iff
+ nonempty_algEquiv_iff_of_invertible_two
+ nonempty_algEquiv_int_iff
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
9c7fefc).
- +13 new declarations
- −0 removed declarations
+QuadraticAlgebra.algEquivDiscrZero
+QuadraticAlgebra.algEquivDiscrZero_add_smul
+QuadraticAlgebra.algEquivDiscrZero_im
+QuadraticAlgebra.algEquivDiscrZero_re
+QuadraticAlgebra.algEquivDiscrZero_symm_add_smul
+QuadraticAlgebra.algEquivDiscrZero_symm_im
+QuadraticAlgebra.algEquivDiscrZero_symm_re
+QuadraticAlgebra.changeGeneratorEquiv.congr_simp
+QuadraticAlgebra.discr_eq_im_sq_mul_discr
+QuadraticAlgebra.im_sq_mul_discr
+QuadraticAlgebra.nonempty_algEquiv_iff
+QuadraticAlgebra.nonempty_algEquiv_iff_of_invertible_two
+QuadraticAlgebra.nonempty_algEquiv_int_iffNo changes to strong technical debt.
No changes to weak technical debt.
Current commit 9c7fefcaf6
Reference commit 205d80eafc
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
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
…-disc2 # Conflicts: # Mathlib/Algebra/QuadraticAlgebra/Discr.lean
|
This pull request has conflicts, please merge |
robin-carlier
left a comment
There was a problem hiding this comment.
Just some passing-by grind golfing.
Thanks for the golf ! |
…discriminant (#42708) Classify `QuadraticAlgebra R a b` up to `R`-algebra isomorphism by the discriminant: when `2` is invertible they are isomorphic iff the discriminants agree up to a square unit, and over `ℤ` the discriminant is a complete invariant. Also adds the standard-form isomorphism `QuadraticAlgebra R a b ≃ₐ[R] QuadraticAlgebra R (discr a b) 0` when `2` is invertible. Prepared with Claude Code 🤖
|
Build failed (retrying...): |
…discriminant (#42708) Classify `QuadraticAlgebra R a b` up to `R`-algebra isomorphism by the discriminant: when `2` is invertible they are isomorphic iff the discriminants agree up to a square unit, and over `ℤ` the discriminant is a complete invariant. Also adds the standard-form isomorphism `QuadraticAlgebra R a b ≃ₐ[R] QuadraticAlgebra R (discr a b) 0` when `2` is invertible. Prepared with Claude Code 🤖
|
Build failed (retrying...): |
…discriminant (#42708) Classify `QuadraticAlgebra R a b` up to `R`-algebra isomorphism by the discriminant: when `2` is invertible they are isomorphic iff the discriminants agree up to a square unit, and over `ℤ` the discriminant is a complete invariant. Also adds the standard-form isomorphism `QuadraticAlgebra R a b ≃ₐ[R] QuadraticAlgebra R (discr a b) 0` when `2` is invertible. Prepared with Claude Code 🤖
|
Build failed (retrying...): |
…discriminant (#42708) Classify `QuadraticAlgebra R a b` up to `R`-algebra isomorphism by the discriminant: when `2` is invertible they are isomorphic iff the discriminants agree up to a square unit, and over `ℤ` the discriminant is a complete invariant. Also adds the standard-form isomorphism `QuadraticAlgebra R a b ≃ₐ[R] QuadraticAlgebra R (discr a b) 0` when `2` is invertible. Prepared with Claude Code 🤖
|
Pull request successfully merged into master. Build succeeded: |
* origin/master: (958 commits) chore(Combinatorics/SimpleGraph/Trails): golf and cleanup (leanprover-community#41447) refactor(Probability/Kernel): remove redundant case split in Invariant.comp (leanprover-community#43805) chore: bump toolchain to v4.34.0 (leanprover-community#43798) feat(Data/List/SignVariations): add List.signVariations (leanprover-community#43783) feat(LinearAlgebra/Span/Basic): add Submodule.prodEquiv (leanprover-community#43664) feat(cache): put with native Azure and S3 backends (leanprover-community#43378) feat(Combinatorics/SimpleGraph/Walk): more `transfer` API (leanprover-community#41717) feat(SimpleGraph): girth-diameter inequality (leanprover-community#25834) feat: make `simps?` and `to_dual?`/`to_additive?` more concise (leanprover-community#43775) feat(Basic/IsEmpty/Defs): add Fin.isEmpty_iff (leanprover-community#43763) feat(Data/ENNReal/Inv): add ENNReal.div_mul_div_cancel (leanprover-community#37954) chore(Tactic/Simproc/ExistsAndEq): fix two typos (leanprover-community#43797) feat(LinearAlgebra/Matrix/GeneralLinearGroup/Defs): add the proof of the range of toGL to be the ker of the determinant and the induced equivalence (leanprover-community#41786) chore(Data/Num/Lemmas): golf `transfer` tactic (leanprover-community#41167) refactor(Data/Nat/Choose/Central): move and rename `four_pow_le_two_mul_add_one_mul_central_binom` (leanprover-community#42606) feat(Combinatorics/Graph): edge cut of `Graph` (leanprover-community#37865) feat(Algebra/QuadraticAlgebra): classify quadratic algebras by their discriminant (leanprover-community#42708) fix: use the PR number in the deprecation reminder message (leanprover-community#43786) feat(Data/Fintype/Defs): add DecidableLE (∀ a, β a) (leanprover-community#43425) chore: redefine `Finsupp.indicator` using `Finsupp.onFinset` (leanprover-community#33434) ... # Conflicts: # Mathlib/Tactic/Linter/DirectoryDependency.lean
Classify
QuadraticAlgebra R a bup toR-algebra isomorphism by the discriminant: when2is invertible they are isomorphic iff the discriminants agree up to a square unit, and overℤthe discriminant is a complete invariant. Also adds the standard-form isomorphismQuadraticAlgebra R a b ≃ₐ[R] QuadraticAlgebra R (discr a b) 0when2is invertible.
Prepared with Claude Code 🤖