Documentation

HexNumberFieldTower.Basic

The monic polynomial represented by a raw level, including its implicit leading coefficient.

Equations
Instances For

    A rational-presentation level relation agrees with the monic rational associate of the stored absolute root's checked integer polynomial.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      inductive Hex.NumberTower.Level.Certificate (level : Level) (lower : List Level) :

      Meaningful construction evidence for one level. The base constructor ties the relation directly to a checked irreducible integer presentation and its selected root. A relative constructor records successful execution of the recursive Trager irreducibility checker and the fixed-embedding zero check.

      Instances For

        Every top-first level has canonical coefficient widths relative to the tail beneath it and carries constructor-produced irreducibility and fixed- embedding evidence.

        Equations
        Instances For

          A validated, fixed-embedding tower of successive algebraic extensions of Rat. Construction is sealed, and checked smart constructors are the only API for extending towers.

          • levels : Array Level

            The extension levels, stored top-first.

          • Every level passed its structural, irreducibility, and fixed-embedding checks at construction time.

          Instances For

            The rational tower, with no algebraic extension levels.

            Equations
            Instances For
              @[simp]

              The rational tower has no proper extension levels.

              Absolute dimension over Rat.

              Equations
              Instances For

                Internal checked boundary for adjoining one proper extension level. Raw level arrays are accepted only after structural, recursive irreducibility, and fixed-embedding checks all succeed.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  theorem Hex.NumberTower.Internal.extend?_isSome (T : NumberTower) (level : Level) (hdegree : 1 < level.degree) (hstruct : level.structuralCheck T.dim = true) (hirred : Factor.isIrreducible T.levels.toList (level.polynomial T.levels.toList) = true) (hembed : RawEvaluation.vanishesAt? T.levels.toList (level.polynomial T.levels.toList) level.root = some true) :
                  (extend? T level).isSome = true

                  The internal extension constructor succeeds once all of its explicit checks have been discharged.

                  A successful checked extension prepends exactly the admitted level.

                  theorem Hex.NumberTower.Internal.extend?_dim (T : NumberTower) (level : Level) {U : NumberTower} (h : extend? T level = some U) :
                  U.dim = level.degree * T.dim

                  A successful checked extension multiplies the lower tower dimension by the admitted relative degree.

                  Number of proper algebraic extension levels.

                  Equations
                  Instances For

                    Canonical mixed-radix rational coordinates in a fixed tower.

                    • data : Array Rat

                      The flattened mixed-radix rational coordinates.

                    • size_eq : self.data.size = T.dim

                      The coordinate array has exactly the tower's dimension.

                    Instances For

                      Normalize an arbitrary coordinate array to the tower dimension by truncating excess coordinates and padding missing coordinates with zero.

                      Equations
                      Instances For
                        theorem Hex.NumberTower.normalizeCoeffs_eq_self (T : NumberTower) (coefficients : Array Rat) (hsize : coefficients.size = T.dim) :
                        T.normalizeCoeffs coefficients = coefficients

                        Normalization fixes an array that already has the tower width.

                        def Hex.NumberTower.ofCoeffs (T : NumberTower) (coefficients : Array Rat) :

                        Construct the unique fixed-width element represented by a raw coordinate array.

                        Equations
                        Instances For
                          def Hex.NumberTower.Internal.ofCoeffs (T : NumberTower) (coefficients : Array Rat) (hsize : coefficients.size = T.dim) :

                          Construct an element from coordinates whose exact tower width is already known. Arithmetic kernels use this internal boundary to avoid copying a fresh fixed-width result through normalizeCoeffs a second time.

                          Equations
                          Instances For

                            Canonical flattened rational coordinates.

                            Equations
                            Instances For
                              @[simp]
                              theorem Hex.NumberTower.Internal.coeffs_ofCoeffs (T : NumberTower) (coefficients : Array Rat) (hsize : coefficients.size = T.dim) :
                              coeffs (ofCoeffs T coefficients hsize) = coefficients

                              Exact-width construction exposes its supplied coordinates unchanged.

                              @[simp]

                              Every element exposes exactly the tower's mixed-radix width.

                              @[simp]
                              theorem Hex.NumberTower.coeffs_ofCoeffs (T : NumberTower) (coefficients : Array Rat) :
                              coeffs (T.ofCoeffs coefficients) = T.normalizeCoeffs coefficients

                              Reading a freshly normalized element returns its normalized coordinates.

                              theorem Hex.NumberTower.Elem.ext {T : NumberTower} {a b : T.Elem} (h : coeffs a = coeffs b) :
                              a = b

                              Equality is exact coordinate equality inside a fixed tower.

                              theorem Hex.NumberTower.Elem.ext_iff {T : NumberTower} {a b : T.Elem} :
                              a = b coeffs a = coeffs b

                              Equality is exact coordinate equality inside a fixed tower; the generated iff form of Hex.NumberTower.Elem.ext.

                              Embed a rational number into the constant mixed-radix coordinate.

                              Equations
                              Instances For

                                Rational embedding is the singleton-coordinate constructor.

                                A dependent extension result carries the canonical lower-field embedding, the new generator, and its selected absolute algebraic root.

                                • tower : NumberTower

                                  The extended tower.

                                • embed : T.Elemself.tower.Elem

                                  The canonical embedding of the lower field.

                                • gen : self.tower.Elem

                                  The adjoined generator as an element of the extended tower.

                                • The absolute algebraic root selected for the generator.

                                Instances For

                                  Primitive associate with positive leading coefficient. This leaves every complex root fixed and only normalizes a possible global sign.

                                  Equations
                                  Instances For

                                    Checked integer irreducibility forces primitive content.

                                    A checked positive-degree polynomial's positive associate has positive leading coefficient.

                                    Sign association preserves positive degree.

                                    Sign association preserves the executable simple-root certificate.

                                    Global sign normalization preserves the Mahler refinement precision.

                                    Transport a refined isolation across global sign normalization.

                                    Equations
                                    Instances For

                                      Build a one-level tower for a checked rational presentation. The level relation is the monic rational associate of p; its absolute generator uses the supplied isolation, transported only across a possible global sign.

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