Repository navigation
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
Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01Pxa1HLgwZQg6sssxyFg2o1
…-disc2 # Conflicts: # Mathlib/Algebra/QuadraticAlgebra/Discr.lean
…tic-algebra-fraction-ring # Conflicts: # Mathlib.lean # Mathlib/Algebra/QuadraticAlgebra/Discr.lean
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The description says "Along the way it also proves that discr K is not 1 and not a square, and that √(discr K) lies in K." but I don't see this fact (we have it in general, right?). |
Yes, that was a leftover. I fixed that. Thanks. |
|
Thanks! bors d+ |
|
✌️ xroblot can now approve this pull request until 2026-12-14 16:49 UTC (in 2 weeks). To approve and merge, reply with
|
|
bors r+ |
…nt (#43490) This PR introduces quadratic fields, that is number fields of degree `2` over `ℚ` and relates them to the quadratic algebras. There is no new definition: a quadratic field is a field `K` of characteristic zero such that `Algebra.IsQuadraticExtension ℚ K` holds. The instance `NumberField K` is then automatic. The main results are: * the discriminant of `K` is a fundamental discriminant; * the ring of integers of `K` is isomorphic to `QuadraticAlgebra ℤ (discr K / 4) (discr K % 4)`; * `K` is isomorphic to `ℚ(√(discr K))`; * two quadratic fields are isomorphic if and only if they have the same discriminant. Along the way it also proves that `discr K` is not a square and that `√(discr K)` lies in `K`. Further results on the fields `ℚ(√d)` and on the real and complex embeddings will follow in later PRs. The mathematics and design are mine. Claude Code was used as a coding assistant and for the housekeeping around this PR. 🤖
|
Pull request successfully merged into master. Build succeeded: |
…nt (leanprover-community#43490) This PR introduces quadratic fields, that is number fields of degree `2` over `ℚ` and relates them to the quadratic algebras. There is no new definition: a quadratic field is a field `K` of characteristic zero such that `Algebra.IsQuadraticExtension ℚ K` holds. The instance `NumberField K` is then automatic. The main results are: * the discriminant of `K` is a fundamental discriminant; * the ring of integers of `K` is isomorphic to `QuadraticAlgebra ℤ (discr K / 4) (discr K % 4)`; * `K` is isomorphic to `ℚ(√(discr K))`; * two quadratic fields are isomorphic if and only if they have the same discriminant. Along the way it also proves that `discr K` is not a square and that `√(discr K)` lies in `K`. Further results on the fields `ℚ(√d)` and on the real and complex embeddings will follow in later PRs. The mathematics and design are mine. Claude Code was used as a coding assistant and for the housekeeping around this PR. 🤖
This PR introduces quadratic fields, that is number fields of degree
2overℚand relates them to the quadratic algebras.There is no new definition: a quadratic field is a field
Kof characteristic zero such thatAlgebra.IsQuadraticExtension ℚ Kholds. The instanceNumberField Kis then automatic.The main results are:
Kis a fundamental discriminant;Kis isomorphic toQuadraticAlgebra ℤ (discr K / 4) (discr K % 4);Kis isomorphic toℚ(√(discr K));Along the way it also proves that
discr Kis not a square and that√(discr K)lies inK.Further results on the fields
ℚ(√d)and on the real and complex embeddings will follow in later PRs.The mathematics and design are mine. Claude Code was used as a coding assistant and for the housekeeping around this PR. 🤖
Algebrainvariants #42297