Documentation

TauCeti.Algebra.DualNumber.Grading

The degree-two grading on the dual numbers #

This file gives the dual numbers their standard nonnegative grading: scalars have degree zero and the infinitesimal generator has degree two. Thus only degrees zero and two are nonzero. The grading is internal to DualNumber R, so the graded algebra supplied here compares directly with the usual ungraded dual-number algebra.

Main definitions #

Main results #

Implementation notes #

In this grading the dual numbers R[ε] model the ring R[x]/(x²) with deg x = 2, which is the zigzag algebra of a single vertex with no edges.

noncomputable def TauCeti.dualNumberGrade (R : Type u) [CommSemiring R] (n : ℕ) :

The standard nonnegative grading on the dual numbers: degree zero consists of scalars, degree two consists of scalar multiples of DualNumber.eps, and every other degree is zero.

Equations
Instances For

    The degree-zero piece consists exactly of dual numbers with zero infinitesimal coordinate.

    The degree-two piece consists exactly of dual numbers with zero scalar coordinate.

    theorem TauCeti.dualNumberGrade_eq_bot (R : Type u) [CommSemiring R] {n : ℕ} (h0 : n ≠ 0) (h2 : n ≠ 2) :

    All pieces other than degrees zero and two vanish.

    @[simp]

    Membership in degree zero is detected by the infinitesimal coordinate.

    @[simp]

    Membership in degree two is detected by the scalar coordinate.

    The scalar inclusion lands in degree zero.

    The algebra map lands in degree zero.

    The infinitesimal inclusion lands in degree two.

    The dual-number generator has degree two.

    The degree-zero piece of the dual numbers is linearly equivalent to the base ring.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      @[simp]

      The degree-zero equivalence reads the scalar coordinate.

      @[simp]

      The inverse degree-zero equivalence inserts a scalar dual number.

      noncomputable def TauCeti.dualNumberGradeTwoEquiv (R : Type u) [CommSemiring R] :

      The degree-two piece of the dual numbers is linearly equivalent to the base ring.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        @[simp]

        The degree-two equivalence reads the infinitesimal coordinate.

        @[simp]

        The inverse degree-two equivalence inserts an infinitesimal dual number.

        theorem TauCeti.mul_mem_dualNumberGrade (R : Type u) [CommSemiring R] {m n : ℕ} {x y : DualNumber R} (hx : x ∈ dualNumberGrade R m) (hy : y ∈ dualNumberGrade R n) :
        x * y ∈ dualNumberGrade R (m + n)

        Multiplication adds degrees in the standard grading of the dual numbers.

        The standard grading makes the dual numbers a graded monoid. This is a theorem rather than a global instance so callers choose when to install the grading.

        The dual numbers are the internal direct sum of the scalar piece in degree zero and the infinitesimal piece in degree two.

        @[instance_reducible]

        The standard degree-two grading makes DualNumber R a graded algebra. This is a definition rather than a global instance so callers choose when to install it locally.

        Equations
        Instances For