Isomorphisms between the models R(√d) #
For a commutative ring R and a unit u with d = u² e, rescaling the generator gives an
explicit R-algebra isomorphism QuadraticAlgebra.smulOmegaEquiv u h from
QuadraticAlgebra R d 0 to QuadraticAlgebra R e 0, sending ω to u • ω; its inverse sends
ω to u⁻¹ • ω. These isomorphisms are closed under inverse and composition. When 2 is
regular in R every isomorphism between the two models is of this form, because an isomorphism
preserves traces and norms (QuadraticAlgebra.trace_algHom_omega,
QuadraticAlgebra.norm_algHom_omega). Over a field of characteristic other than 2 this
recovers the classification of the models K(√d), for nonzero d, by the class of d in the
square-class group Kˣ ⧸ (Kˣ)².
The isomorphisms are the specialisation of Mathlib's change of generator
QuadraticAlgebra.changeGeneratorEquiv to ω ↦ u • ω. The square-class criterion is the
b = 0 form of Mathlib's classification of quadratic algebras by their discriminant modulo unit
squares, QuadraticAlgebra.nonempty_algEquiv_iff_of_invertible_two, read in the square-class
group; its squarefree-integer form over ℚ is
QuadraticAlgebra.Rat.nonempty_algEquiv_iff.
Main definitions and results #
QuadraticAlgebra.smulOmegaEquiv: the isomorphismR(√d) ≃ₐ[R] R(√e),ω ↦ u • ω, ford = u² e, withsmulOmegaEquiv_omegaandsmulOmegaEquiv_symm_omegagiving its values on the generator in both directions.QuadraticAlgebra.smulOmegaEquiv_symm,QuadraticAlgebra.smulOmegaEquiv_trans,QuadraticAlgebra.smulOmegaEquiv_one: inverse, composition and identity.QuadraticAlgebra.exists_eq_smulOmegaEquiv: if2is regular, every isomorphismR(√d) ≃ₐ[R] R(√e)issmulOmegaEquiv u hfor the unitu = (f ω).im.QuadraticAlgebra.nonempty_algEquiv_iff_exists_eq_sq_mul: if2is regular,R(√d) ≃ₐ[R] R(√e)exactly whend = u² efor a unitu.QuadraticAlgebra.nonempty_algEquiv_iff_squareClass_eq: over a field with2 ≠ 0, for nonzerodande,K(√d) ≃ₐ[K] K(√e)exactly whendandehave the same square class.
Rescaling the generator. For a unit u with d = u² e, the R-algebra isomorphism
QuadraticAlgebra R d 0 ≃ₐ[R] QuadraticAlgebra R e 0 sending ω to u • ω, so that
x + yω ↦ x + (u y)ω.
Instances For
smulOmegaEquiv u h sends the generator ω to u • ω.
Every isomorphism of the models rescales the generator. If 2 is regular in R, every
R-algebra isomorphism f : QuadraticAlgebra R d 0 ≃ₐ[R] QuadraticAlgebra R e 0 is
smulOmegaEquiv u h for the unit u = (f ω).im: the image of ω has trace 0 and norm -d,
so it is u • ω with d = u² e.
Isomorphism of the models up to unit squares. If 2 is regular in R, the models
QuadraticAlgebra R d 0 and QuadraticAlgebra R e 0 are isomorphic exactly when d = u² e for a
unit u.
The square-class classification of the models. Over a field with 2 ≠ 0, for nonzero
d and e, the models QuadraticAlgebra K d 0 and QuadraticAlgebra K e 0 of K(√d) and
K(√e) are isomorphic exactly when d and e have the same class in Kˣ ⧸ (Kˣ)².