Documentation

Complexitylib.RationalHitting.Internal.Executable

Rational hitting lists: executable #

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

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

Dense, staged integer input tables. No quotient-field element is computed.

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

    Cramer's numerators are computed by the staged division-free algorithm.

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

      A finite vector of dense rational matrix tables.

      Equations
      Instances For

        Read a dense rational table as a matrix substitution.

        Equations
        Instances For

          Compute the normalized tuple entrywise using determinant ratios.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            @[simp]
            theorem Complexity.RationalHitting.ExecutableGenerator.tuple_normalized {n d : ℕ} (A : Vector (DeterminantAlgorithm.Table d) (n + 1)) (den : ℤ) (a : Fin n) (i j : Fin d) :
            tuple (normalized A den) a i j = normalizedEntry (A.get 0) (A.get a.succ) den i j

            The only singularity test; all repeated algebra is materialized in dense tables.

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

              Exact pointwise equality, including points rejected by the original determinant test.

              A computable generator preserving the list and its order.

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

                The executable hitting list for the selected parameter values.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  theorem Complexity.RationalHitting.ExecutableGenerator.exact_output (n s : ℕ) (hn : 1 ≤ n) (hs : 1 ≤ s) :
                  (list n s).dimension ≤ 256 * (n + s + 1) ^ 10 ∧ (encodeOutput (list n s)).length ≤ PolynomialBounds.outputConstant * (n + s + 1) ^ 104 ∧ Hits s (list n s)

                  The hitting property and output-size bounds for the computed list.

                  A finite-state implementation with polynomial transition count.

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

                    The finite-state implementation and list bounds imply the main statement.