Documentation

Complexitylib.RationalHitting.Defs

Rational hitting lists: model #

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

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

A noncommutative rational formula over n variables and rational constants.

Instances For
    def Complexity.RationalHitting.instDecidableEqFormula.decEq {n✝ : ℕ} (x✝ x✝¹ : Formula n✝) :
    Decidable (x✝ = x✝¹)
    Equations
    Instances For

      Number of syntax-tree nodes, counting variables, constants, and operations.

      Equations
      Instances For
        inductive Complexity.RationalHitting.Formula.Eval {n : ℕ} {R : Type u} [Ring R] (c : ℚ →+* R) (X : Fin n → R) :
        Formula n → R → Prop

        Evaluation in any rational algebra; a unary inverse requires an actual two-sided inverse of the evaluated operand, not a totalized inverse.

        Instances For
          @[reducible, inline]

          Square rational matrices of the specified dimension.

          Equations
          Instances For
            @[reducible, inline]

            A matrix substitution for every input variable.

            Equations
            Instances For
              def Complexity.RationalHitting.Evaluates {n d : ℕ} (f : Formula n) (X : Tuple n d) (v : Mat d) :

              Defined evaluation on a rational matrix tuple.

              Equations
              Instances For

                Some positive-dimensional rational matrix substitution is in the formula's domain.

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

                  Some positive-dimensional rational matrix substitution has a defined nonzero value.

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

                    All output tuples have one common positive dimension.

                    • dimension : ℕ

                      Common dimension of all matrix tuples.

                    • dimension_pos : 0 < self.dimension

                      Exclude the trivial zero-dimensional matrix ring.

                    • tuples : List (Tuple n self.dimension)

                      The finite list of matrix substitutions, in output order.

                    Instances For

                      Little-endian unsigned binary, prefixed by a unary bit-length and a zero terminator. This is a self-delimiting binary encoding, including zero.

                      Equations
                      Instances For

                        Sign bit, binary numerator magnitude, and positive binary denominator. Rat.num and Rat.den are the canonical reduced numerator and denominator.

                        Equations
                        Instances For

                          Serialize a tuple in variable, row, and column order using reduced rational encodings.

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

                            Encode the common dimension, tuple count, and all rational matrix entries.

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

                              0 is blank, 1 and 2 are the two literal binary digits, 3 is work space. Fixed finite tape alphabet and finite state space; no advice or oracle.

                              Equations
                              Instances For
                                @[reducible, inline]

                                A finite-state Mathlib machine on the fixed four-symbol alphabet.

                                Equations
                                Instances For
                                  @[reducible, inline]

                                  Configuration of the corresponding Mathlib machine.

                                  Equations
                                  Instances For

                                    The two nonblank tape symbols representing a literal binary digit.

                                    Equations
                                    Instances For

                                      Two unary parameters separated by one distinguished nonblank symbol.

                                      Equations
                                      Instances For

                                        Exactly t ordinary deterministic TM0 transitions.

                                        Equations
                                        Instances For
                                          def Complexity.RationalHitting.OutputsWithin {m n : ℕ} (G : Machine m) (s bound : ℕ) (H : Output n) :

                                          Halt within the given transition bound with the complete encoding at and right of the head.

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

                                            Every admissible nonzero formula of bounded size has an invertible value on the list.

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

                                              A fixed polynomial bound on bit time, full binary output length, and common positive dimension.

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