Documentation

TauCeti.NumberTheory.BinaryQuadraticForm.Ideal.Basic

The ideal attached to an integral binary quadratic form #

A form (a, b, c) of discriminant D gives the two-generator order module aℤ + ((-b + √D)/2)ℤ in the rational quadratic algebra. The construction first works as a module over the actual quadratic order in either the field or split case. In the nonsquare case it gives a fractional ideal of the existing number-field order.

References #

The second ideal generator (-b + √D)/2.

Instances For
    @[simp]

    The rational coefficient of the second ideal generator.

    @[simp]

    The square-root coefficient of the second ideal generator.

    theorem TauCeti.BinaryQuadraticForm.eq_of_idealGenerator_mul_a_eq {g h : BinaryQuadraticForm ℤ} {D : ℤ} (hg : g.discrim = D) (hh : h.discrim = D) (hga : g.a ≠ 0) (heq : g.idealGenerator D * ↑h.a = h.idealGenerator D * ↑g.a) :
    g = h

    A form of discriminant D with nonzero leading coefficient is determined by the quotient of its two ideal generators: if β_g a_h = β_h a_g, then g = h.

    A form's second ideal generator differs integrally from the order generator.

    The second generator belongs to the actual quadratic order.

    @[simp]

    The quadratic relation of the second ideal generator.

    The order module aℤ + ((-b + √D)/2)ℤ, over the actual quadratic order.

    Instances For
      @[simp]

      The order ideal has the defining two-generator lattice as its carrier.

      theorem TauCeti.BinaryQuadraticForm.mem_orderIdeal_iff (f : BinaryQuadraticForm ℤ) (D : ℤ) (hf : f.discrim = D) (z : QuadraticAlgebra ℚ (↑D) 0) :
      z ∈ f.orderIdeal D hf ↔ ∃ (m : ℤ) (n : ℤ), m • ↑f.a + n • f.idealGenerator D = z

      Ideal membership is an integral combination of its two generators.

      Restriction to the integers recovers the defining two-generator lattice.

      The form ideal as a fractional ideal of the existing quadratic number-field order.

      Instances For
        @[simp]

        The fractional ideal has the same carrier as the order ideal.

        Restriction of the fractional ideal to the integers recovers the defining lattice.

        @[simp]

        The first ideal generator is a member of the ideal.

        @[simp]

        The second ideal generator is a member of the ideal.

        The form order ideal is nonzero, in both field and split quadratic algebras.

        The two ideal generators are independent if the leading coefficient is nonzero.

        noncomputable def TauCeti.BinaryQuadraticForm.idealBasis (f : BinaryQuadraticForm ℤ) (D : ℤ) (hf : f.discrim = D) (ha : f.a ≠ 0) :
        Module.Basis (Fin 2) ℤ ↥(f.orderIdeal D hf)

        The integral basis a, (-b + √D)/2 of the form ideal.

        Instances For
          theorem TauCeti.BinaryQuadraticForm.coe_idealBasis_apply (f : BinaryQuadraticForm ℤ) (D : ℤ) (hf : f.discrim = D) (ha : f.a ≠ 0) (i : Fin 2) :
          ↑((f.idealBasis D hf ha) i) = ![↑f.a, f.idealGenerator D] i

          The ideal basis maps to its defining two-generator family in the quadratic algebra.

          @[simp]
          theorem TauCeti.BinaryQuadraticForm.coe_idealBasis_zero (f : BinaryQuadraticForm ℤ) (D : ℤ) (hf : f.discrim = D) (ha : f.a ≠ 0) :
          ↑((f.idealBasis D hf ha) 0) = ↑f.a

          The first ideal basis vector is the leading coefficient.

          @[simp]
          theorem TauCeti.BinaryQuadraticForm.coe_idealBasis_one (f : BinaryQuadraticForm ℤ) (D : ℤ) (hf : f.discrim = D) (ha : f.a ≠ 0) :
          ↑((f.idealBasis D hf ha) 1) = f.idealGenerator D

          The second ideal basis vector is (-b + √D)/2.

          theorem TauCeti.BinaryQuadraticForm.mem_fractionalIdeal_iff (f : BinaryQuadraticForm ℤ) (D : ℤ) (hf : f.discrim = D) [Fact ¬IsSquare D] (z : QuadraticAlgebra ℚ (↑D) 0) :
          z ∈ f.fractionalIdeal D hf ↔ ∃ (m : ℤ) (n : ℤ), m • ↑f.a + n • f.idealGenerator D = z

          Fractional-ideal membership is the same integral two-generator formula.

          @[simp]

          The leading coefficient belongs to the fractional form ideal.

          @[simp]

          The second generator belongs to the fractional form ideal.

          The fractional ideal is integral, hence contained in the unit fractional ideal.

          A form whose leading coefficient is a unit has the unit ideal.

          A fractional ideal contains the form ideal exactly when it contains both generators.

          A fractional ideal contains the product of two form ideals of the same discriminant exactly when it contains the four products of their generators.

          Norm on the ideal generators recovers the original form, with the second coordinate negated.