Documentation

LeanPool.CompositionAlgebrasOverRings.Composition.QuadraticSubalgebra

Quadratic subalgebras generated by one element (GPR 19.8) #

For an element u of a conic algebra, the submodule k · 1 + k · u is closed under multiplication because u² = t(u)u - n(u)1. This is the unital subalgebra denoted k[u] in GPR 19.8.

The discriminant t(u)² - 4n(u) controls whether (1,u) is a basis. If it is a unit, applying the polar form at 1 and at u to a relation a·1 + b·u = 0 gives a two-by-two linear system whose determinant is the negative discriminant, forcing a = b = 0.

Main definitions #

Main results #

Implementation notes #

Condition (i) is genuinely existential: its composition norm is not defined to be the ambient norm restricted to k[u]. In (i) ⇒ (ii), projectivity and rank two first make the canonical surjection k² → k[u] an equivalence; ConicAlgebra.norm_eq_of_projective then proves that the witnessing conic norm equals the restriction of the ambient norm. Building that equality into the definition of condition (i) would omit the uniqueness step in GPR's proof.

References #

def ConicAlgebra.spanOne (k : Type u) [CommRing k] {A : Type v} [NonAssocRing A] [Module k A] (u : A) :
k × k →ₗ[k] A

The coefficient map (a,b) ↦ a·1 + b·u whose range is the quadratic subalgebra k[u].

Equations
Instances For
    @[simp]
    theorem ConicAlgebra.spanOne_apply {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] (u : A) (p : k × k) :
    (spanOne k u) p = p.1 • 1 + p.2 • u
    def ConicAlgebra.adjoinElement {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] [SMulCommClass k A A] [IsScalarTower k A A] (C : ConicAlgebra k A) (u : A) :

    The unital subalgebra k[u] = k·1 + k·u of GPR 19.8.

    Closure under multiplication consumes only the degree-two identity of a conic algebra.

    Equations
    Instances For
      def ConicAlgebra.spanOneToAdjoin {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] [SMulCommClass k A A] [IsScalarTower k A A] (C : ConicAlgebra k A) (u : A) :
      k × k →ₗ[k] ↥(C.adjoinElement u)

      The coefficient map from k² onto the quadratic subalgebra k[u].

      Equations
      Instances For
        @[simp]
        theorem ConicAlgebra.coe_spanOneToAdjoin_apply {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] [SMulCommClass k A A] [IsScalarTower k A A] (C : ConicAlgebra k A) (u : A) (p : k × k) :
        ↑((C.spanOneToAdjoin u) p) = (spanOne k u) p

        The coefficient map onto k[u] is always surjective.

        theorem ConicAlgebra.finite_adjoinElement {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] [SMulCommClass k A A] [IsScalarTower k A A] (C : ConicAlgebra k A) (u : A) :

        The algebra k[u] is generated as a module by 1 and u, hence is finitely generated.

        @[simp]
        theorem ConicAlgebra.mem_adjoinElement_iff {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] [SMulCommClass k A A] [IsScalarTower k A A] (C : ConicAlgebra k A) (u x : A) :
        x ∈ C.adjoinElement u ↔ ∃ (a : k) (b : k), a • 1 + b • u = x
        theorem ConicAlgebra.adjoinElement_mul_comm {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] [SMulCommClass k A A] [IsScalarTower k A A] (C : ConicAlgebra k A) (u : A) (x y : ↥(C.adjoinElement u)) :
        x * y = y * x

        The algebra generated by one element of a conic algebra is commutative (GPR 19.8).

        theorem ConicAlgebra.mul_self_mul_eq_mul_mul_self {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] [SMulCommClass k A A] [IsScalarTower k A A] (C : ConicAlgebra k A) (u : A) :
        u * u * u = u * (u * u)

        Every element of a conic algebra generates an associative cube.

        theorem ConicAlgebra.adjoinElement_mul_assoc {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] [SMulCommClass k A A] [IsScalarTower k A A] (C : ConicAlgebra k A) (u : A) (x y z : ↥(C.adjoinElement u)) :
        x * y * z = x * (y * z)

        The algebra generated by one element of a conic algebra is associative (GPR 19.8).

        @[instance_reducible]
        def ConicAlgebra.adjoinElementCommRing {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] [SMulCommClass k A A] [IsScalarTower k A A] (C : ConicAlgebra k A) (u : A) :

        The quadratic subalgebra k[u] as a commutative ring.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          @[instance_reducible]
          def ConicAlgebra.adjoinElementAlgebra {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] [SMulCommClass k A A] [IsScalarTower k A A] (C : ConicAlgebra k A) (u : A) :

          The quadratic subalgebra k[u] as an associative k-algebra.

          Equations
          Instances For
            def ConicAlgebra.elementDiscriminant {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] (C : ConicAlgebra k A) (u : A) :
            k

            The discriminant attached to u, namely t(u)² - 4n(u) (GPR 19.8(iii)).

            Equations
            Instances For
              def ConicAlgebra.normOnSpan {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] (C : ConicAlgebra k A) (u : A) :

              The restriction of the norm to k·1 + k·u, written in coefficient coordinates.

              Equations
              Instances For
                def ConicAlgebra.normAdjoinElement {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] [SMulCommClass k A A] [IsScalarTower k A A] (C : ConicAlgebra k A) (u : A) :

                The norm of C restricted to the quadratic subalgebra k[u].

                Equations
                Instances For
                  @[simp]
                  theorem ConicAlgebra.normAdjoinElement_apply {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] [SMulCommClass k A A] [IsScalarTower k A A] (C : ConicAlgebra k A) (u : A) (x : ↥(C.adjoinElement u)) :
                  (C.normAdjoinElement u) x = C.norm ↑x
                  def ConicAlgebra.conicAdjoinElement {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] [SMulCommClass k A A] [IsScalarTower k A A] (C : ConicAlgebra k A) (u : A) :

                  The conic structure on the quadratic subalgebra k[u], obtained by restricting the norm.

                  Equations
                  Instances For
                    @[simp]
                    theorem ConicAlgebra.normOnSpan_apply {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] (C : ConicAlgebra k A) (u : A) (p : k × k) :
                    (C.normOnSpan u) p = p.1 ^ 2 + p.1 * p.2 * C.trace u + p.2 ^ 2 * C.norm u
                    theorem ConicAlgebra.spanOne_mul {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] [SMulCommClass k A A] [IsScalarTower k A A] (C : ConicAlgebra k A) (u : A) (p q : k × k) :
                    (spanOne k u) p * (spanOne k u) q = (spanOne k u) (p.1 * q.1 - p.2 * q.2 * C.norm u, p.1 * q.2 + p.2 * q.1 + p.2 * q.2 * C.trace u)

                    Multiplication in the coefficient presentation of k[u].

                    The restricted norm on k[u] is multiplicative (GPR 19.8(i)).

                    Coordinates on the dual of k × k, obtained by evaluation on (1,0) and (0,1).

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      def ConicAlgebra.polarSpanCoordinates {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] (C : ConicAlgebra k A) (u : A) :
                      k × k →ₗ[k] k × k

                      The polar map of normOnSpan, with its dual output written as two coordinates.

                      Equations
                      Instances For
                        @[simp]
                        theorem ConicAlgebra.polarSpanCoordinates_apply {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] (C : ConicAlgebra k A) (u : A) (p : k × k) :
                        (C.polarSpanCoordinates u) p = (2 * p.1 + C.trace u * p.2, C.trace u * p.1 + 2 * C.norm u * p.2)

                        The coefficient norm is regular exactly when its coordinate polar map is bijective.

                        The two-by-two polar matrix is bijective exactly when its discriminant is a unit.

                        Bijectivity of an endomorphism is invertibility (Module.End.isUnit_iff), which the matrix algebra equivalence turns into invertibility of the Gram matrix !![2, t(u); t(u), 2n(u)], hence of its determinant 4n(u) - t(u)². That is the negative of the discriminant.

                        GPR 19.8, regularity criterion. The norm on k·1 + k·u, in coefficient coordinates, is regular if and only if t(u)² - 4n(u) is a unit.

                        theorem ConicAlgebra.trace_eq_zero_of_smul_one_add_smul_eq_zero {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] (C : ConicAlgebra k A) {u : A} {a b : k} (h : a • 1 + b • u = 0) :
                        2 * a + C.trace u * b = 0

                        A relation a·1 + b·u = 0 gives the first row of the polar Gram matrix: 2a + t(u)b = 0.

                        theorem ConicAlgebra.polar_eq_zero_of_smul_one_add_smul_eq_zero {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] (C : ConicAlgebra k A) {u : A} {a b : k} (h : a • 1 + b • u = 0) :
                        C.trace u * a + 2 * C.norm u * b = 0

                        The same relation gives the second row of the polar Gram matrix: t(u)a + 2n(u)b = 0.

                        theorem ConicAlgebra.eq_zero_of_smul_one_add_smul_eq_zero {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] (C : ConicAlgebra k A) {u : A} (hdisc : IsUnit (C.elementDiscriminant u)) {a b : k} (h : a • 1 + b • u = 0) :
                        a = 0 ∧ b = 0

                        GPR 19.8, (iii) ⇒ linear independence. If t(u)² - 4n(u) is a unit, then a·1 + b·u = 0 forces a = b = 0.

                        GPR 19.8, (ii) ⇔ (iii). The pair (1,u) is a basis of k[u] and the restricted norm is regular if and only if t(u)² - 4n(u) is a unit. The restricted norm is written through this basis as normOnSpan.

                        noncomputable def ConicAlgebra.quadraticSpanEquiv {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] [SMulCommClass k A A] [IsScalarTower k A A] (C : ConicAlgebra k A) {u : A} (hdisc : IsUnit (C.elementDiscriminant u)) :
                        (k × k) ≃ₗ[k] ↥(C.adjoinElement u)

                        Under the unit-discriminant hypothesis, (1,u) is a basis of k[u], expressed as a linear equivalence k × k ≃ k[u].

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For
                          theorem ConicAlgebra.rankAtStalk_adjoinElement {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] [SMulCommClass k A A] [IsScalarTower k A A] (C : ConicAlgebra k A) [Nontrivial k] {u : A} (hdisc : IsUnit (C.elementDiscriminant u)) :

                          Under the unit-discriminant hypothesis k[u] has constant rank two, being the image of k² under quadraticSpanEquiv.

                          The coefficient norm is the restricted norm read through the coefficient equivalence. This is the form of that identification consumed by QuadraticForm.isGPRRegular_comp_linearEquiv_iff.

                          A unit discriminant makes the norm restricted to k[u] regular.

                          GPR 19.8, (iii) ⇒ (i). A unit discriminant makes k[u], with its restricted norm, a regular rank-two composition algebra. The rank-two basis is quadraticSpanEquiv.

                          structure ConicAlgebra.RegularRankTwoCompositionStructure {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] [SMulCommClass k A A] [IsScalarTower k A A] (C : ConicAlgebra k A) (u : A) :
                          Type (max u v)

                          k[u] admits the structure of a regular rank-two composition algebra, the condition in GPR 19.8(i).

                          The composition norm is existential data and is not assumed to be the ambient norm restricted to k[u]. Identifying the two norms is a conclusion of GPR 19.8(i) ⇒ (ii), using uniqueness of conic norms on finitely generated projective algebras.

                          Instances For
                            def ConicAlgebra.IsRegularRankTwoComposition {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] [SMulCommClass k A A] [IsScalarTower k A A] (C : ConicAlgebra k A) (u : A) :

                            The proposition that the abstract algebra k[u] admits a regular rank-two composition structure. The witnessing norm is intentionally existential.

                            Equations
                            Instances For

                              A regular rank-two quadratic-subalgebra structure is an actual composition algebra in the sense of ConicAlgebra.IsComposition.

                              In condition GPR 19.8(i), the abstract composition norm on k[u] is forced to equal the ambient conic norm restricted to k[u]. This is the uniqueness step missing if condition (i) is defined using the restricted norm from the outset.

                              Pulling the restricted norm back through the coefficient equivalence preserves regularity.

                              GPR 19.8, (i) ⇔ (iii). The generated algebra k[u] is a regular rank-two composition algebra if and only if t(u)² - 4n(u) is a unit.

                              GPR 19.8. The three conditions are equivalent: k[u] is a regular rank-two composition algebra; (1,u) is a basis and the restricted norm is regular; and the discriminant t(u)² - 4n(u) is a unit.

                              Constant rank two over an LG ring #

                              theorem ConicAlgebra.exists_forall_mem_adjoinElement_of_isLGRing_of_rankAtStalk_eq_two {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] [SMulCommClass k A A] [IsScalarTower k A A] (C : ConicAlgebra k A) [Module.Finite k A] [Module.Projective k A] (hLG : IsLGRing k) (hA : Module.rankAtStalk A = fun (x : PrimeSpectrum k) => 2) :
                              ∃ (u : A), ∀ (x : A), x ∈ C.adjoinElement u

                              A finitely generated projective conic algebra of constant rank two over an LG ring is generated by one element: A = k[u] (GPR 19.8).

                              The unit is unimodular (GPR 16.7), so a functional l with l 1 = 1 splits A ≃ k × ker l, and ker l is projective of constant rank one, hence free (GPR 11.24); its generator is u. GPR 23.4 uses this over a local ring, extending 1 to a basis of A. No composition, regularity or nontriviality hypothesis is needed.

                              theorem ConicAlgebra.mul_comm_of_isLGRing_of_rankAtStalk_eq_two {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] [SMulCommClass k A A] [IsScalarTower k A A] (C : ConicAlgebra k A) [Module.Finite k A] [Module.Projective k A] (hLG : IsLGRing k) (hA : Module.rankAtStalk A = fun (x : PrimeSpectrum k) => 2) (x y : A) :
                              x * y = y * x

                              A finitely generated projective conic algebra of constant rank two over an LG ring is commutative, being k[u] (GPR 16.4).

                              theorem ConicAlgebra.mul_assoc_of_isLGRing_of_rankAtStalk_eq_two {k : Type u} {A : Type v} [CommRing k] [NonAssocRing A] [Module k A] [SMulCommClass k A A] [IsScalarTower k A A] (C : ConicAlgebra k A) [Module.Finite k A] [Module.Projective k A] (hLG : IsLGRing k) (hA : Module.rankAtStalk A = fun (x : PrimeSpectrum k) => 2) (x y z : A) :
                              x * y * z = x * (y * z)

                              A finitely generated projective conic algebra of constant rank two over an LG ring is associative, being k[u] (GPR 16.4).