Documentation

Complexitylib.Circuits.ExactFourier.Internal.Words

Exact Fourier circuits: words #

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

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

A permutation matrix times an invertible diagonal matrix, literally P D.

Equations
Instances For
    noncomputable def Complexity.ExactFourier.embeddedCall {q w : ℕ} (A : Matrix (Fin q) (Fin q) ℂ) (e : Fin q ↪ Fin w) :
    Matrix (Fin w) (Fin w) ℂ

    A call on an ordered tuple of distinct coordinates; all other values are fixed.

    Equations
    Instances For
      inductive Complexity.ExactFourier.WordStep {q : ℕ} (A : Matrix (Fin q) (Fin q) ℂ) (w : ℕ) :

      Only forward calls to the specified A are allowed.

      Instances For
        noncomputable def Complexity.ExactFourier.WordStep.matrix {q w : ℕ} {A : Matrix (Fin q) (Fin q) ℂ} :
        WordStep A w → Matrix (Fin w) (Fin w) ℂ

        The ambient matrix of a monomial step or an embedded call to the fixed matrix.

        Equations
        Instances For

          Charge one call for a matrix invocation and zero for a monomial step.

          Equations
          Instances For
            noncomputable def Complexity.ExactFourier.wordMatrix {q w : ℕ} {A : Matrix (Fin q) (Fin q) ℂ} (W : List (WordStep A w)) :
            Matrix (Fin w) (Fin w) ℂ

            Stored chronologically, so a new step left-multiplies earlier steps.

            Equations
            Instances For
              def Complexity.ExactFourier.wordCalls {q w : ℕ} {A : Matrix (Fin q) (Fin q) ℂ} (W : List (WordStep A w)) :

              The total number of calls to the fixed matrix in the finite-win word.

              Equations
              Instances For
                noncomputable def Complexity.ExactFourier.tensorCoordinates (q b : ℕ) :
                Fin (q ^ b) ≃ (Fin b → Fin q)

                A fixed coordinate relabeling of the ordinary Kronecker tensor power.

                Equations
                Instances For
                  noncomputable def Complexity.ExactFourier.tensorPower {q : ℕ} (A : Matrix (Fin q) (Fin q) ℂ) (b : ℕ) :
                  Matrix (Fin (q ^ b)) (Fin (q ^ b)) ℂ

                  The ordinary matrix tensor power under the fixed finite-coordinate numbering.

                  Equations
                  Instances For

                    An invertible nonmonomial matrix has a tensor power using fewer calls than the standard construction.

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