Documentation

Complexitylib.RationalHitting.Internal.Generator

Rational hitting lists: generator #

Adapted from OpenAI's formalization at revision adc7f1241b42e322a6451854ab7e4b4c146bf78a. Source: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Computability/RationalHitting/Generator.lean

Imports, namespaces, module visibility, documentation, and formatting are adapted for complexitylib. The source theorem statements and mathematical arguments are retained.

Entrywise regular representation, flattening and fixed row-major reindexing.

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

    The fixed lexicographic three-dimensional integer grid, encoded by Fin H.

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

      The polynomial lift is evaluated over the exact rational quotient.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        noncomputable def Complexity.RationalHitting.Generator.rationalLift (n N e : ℕ) (x : Fin 3 → ℕ) (i : Fin (n + 1)) :

        Expand a specialized lift as a rational matrix.

        Equations
        Instances For
          noncomputable def Complexity.RationalHitting.Generator.tupleAt (n N e : ℕ) (x : Fin 3 → ℕ) :

          Normalize all variable matrices by the zeroth matrix.

          Equations
          Instances For
            noncomputable def Complexity.RationalHitting.Generator.atPoint (n N e : ℕ) (x : Fin 3 → ℕ) :

            The filtering step tests only Z_0, and receives no formula.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              noncomputable def Complexity.RationalHitting.Generator.output (n N e H : ℕ) :

              Collect the normalized tuples emitted at all grid points.

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

                The actual emitted rational normalization is the homomorphic image of the quotient normalization. Consequently every original inverse occurrence is kept.

                theorem Complexity.RationalHitting.Generator.emitted {n N e H : ℕ} (x : Fin 3 → Fin H) (hz : IsUnit (specializedLift n N e (fun (i : Fin 3) => ↑(x i) + 1) 0)) :
                (tupleAt n N e fun (i : Fin 3) => ↑(x i) + 1) ∈ (output n N e H).tuples
                @[reducible, inline]

                The Hahn field containing the algebraic witnesses for the generator.

                Equations
                Instances For

                  Reindex the formula's pencil by its explicit finite dimension.

                  Equations
                  Instances For
                    theorem Complexity.RationalHitting.Generator.finPencil_unit {n : ℕ} {R : Type u_1} [Ring R] (c : ℚ →+* R) (X : Fin n → R) (f : Formula n) :

                    A one-by-one constant pencil used to enforce normalization.

                    Equations
                    Instances For

                      Determinant polynomials whose simultaneous nonvanishing certifies a hit.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        theorem Complexity.RationalHitting.Generator.condition_nonzero {n s N e : ℕ} (hs : 1 ≤ s) (f : Formula n) (hf : f.size ≤ s) (hnz : Nonzero f) (hN : 1 ≤ N) (hMN : CyclotomicRing.dimension e = N + 2 * (n + 1) ^ 3 * (2 * s + 1)) (hM : (2 * s + 1) * (2 * (n + 1) ^ 3 * (2 * s + 1)) < CyclotomicRing.dimension e) (p : MvPolynomial (Fin 3) (CyclotomicRing.R e)) :
                        p ∈ conditions N e f → p ≠ 0
                        theorem Complexity.RationalHitting.Generator.condition_degree {n s N e : ℕ} (hs : 1 ≤ s) (f : Formula n) (hf : f.size ≤ s) :
                        (conditions N e f).length ≤ s + 2 ∧ ∀ p ∈ conditions N e f, p.totalDegree ≤ 3 * (2 * s + 1) * CyclotomicRing.dimension e ^ 2
                        theorem Complexity.RationalHitting.Generator.integer_grid {K : Type u_1} [Field K] [CharZero K] (P : List (MvPolynomial (Fin 3) K)) (hP : ∀ p ∈ P, p ≠ 0) (d H : ℕ) (hd : ∀ p ∈ P, p.totalDegree ≤ d) (hH : P.length * d < H) :
                        ∃ (x : Fin 3 → Fin H), ∀ p ∈ P, (MvPolynomial.eval fun (i : Fin 3) => ↑(↑(x i) + 1)) p ≠ 0
                        theorem Complexity.RationalHitting.Generator.onePencil_unit {K : Type u_1} [Field K] [CharZero K] {n : ℕ} {ι : Type u_2} [Fintype ι] [DecidableEq ι] (rationalLift : Fin (n + 1) → Matrix ι ι K) (h : IsUnit ((onePencil n).map (Affine.homogeneous (algebraMap ℚ (Matrix ι ι K)) rationalLift))) :
                        IsUnit (rationalLift 0)
                        theorem Complexity.RationalHitting.Generator.output_hits {n s N e H : ℕ} (hs : 1 ≤ s) (hN : 1 ≤ N) (hMN : CyclotomicRing.dimension e = N + 2 * (n + 1) ^ 3 * (2 * s + 1)) (hM : (2 * s + 1) * (2 * (n + 1) ^ 3 * (2 * s + 1)) < CyclotomicRing.dimension e) (hH : (s + 2) * (3 * (2 * s + 1) * CyclotomicRing.dimension e ^ 2) < H) :
                        Hits s (output n N e H)

                        The finite formula-independent list hits every admissible nonzero formula at a defined and invertible original-tree value.

                        The parameters, with ambientDimension the least power of two strictly above BΔ.

                        Equations
                        Instances For

                          Rank parameter for formulas of the given size.

                          Equations
                          Instances For

                            The least power of two strictly above the rank expansion threshold.

                            Equations
                            Instances For
                              theorem Complexity.RationalHitting.Parameters.polynomial_H (n s : ℕ) (hn : 1 ≤ n) :
                              gridSize n s ≤ 24577 * (n + s + 1) ^ 17

                              The list with all parameters fixed by the unary inputs.

                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For
                                theorem Complexity.RationalHitting.Generator.list_length_bound (n s : ℕ) (hn : 1 ≤ n) :
                                (list n s).tuples.length ≤ 24577 ^ 3 * (n + s + 1) ^ 51
                                theorem Complexity.RationalHitting.Generator.algebraic_generator :
                                ∃ (G : (n : ℕ) → ℕ → Output n), ∀ (n s : ℕ), 1 ≤ n → 1 ≤ s → (G n s).dimension ≤ 256 * (n + s + 1) ^ 10 ∧ (G n s).tuples.length ≤ 24577 ^ 3 * (n + s + 1) ^ 51 ∧ Hits s (G n s)

                                The algebraic hitting property and the polynomial list-cardinality bound.