Documentation

Complexitylib.Circuits.ExactFourier.Internal.PolynomialClearing

Exact Fourier circuits: polynomial clearing #

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

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

theorem Complexity.ExactFourier.Boundary.time_power_clearing_price {α : Type} [Fintype α] [DecidableEq α] (p : MatrixPrice) (G : Matrix α α (Polynomial ℂ)) (H : Matrix α α (PowerSeries ℂ)) (q : Polynomial ℂ) (h : seriesMatrix G = ↑q • H) (hq : q.coeff 0 ≠ 0) (hH : IsUnit (H.map ⇑PowerSeries.constantCoeff)) (k t : ℕ) (ht : 0 < t) :
noncomputable def Complexity.ExactFourier.Taylor.matrix (t : ℕ) (s : ℂ) :
Matrix (Fin t) (Fin t) ℂ

The coefficient matrix of polynomial translation by the scalar s.

Equations
Instances For
    theorem Complexity.ExactFourier.Taylor.coefficient_sum (t : ℕ) (s : ℂ) (f : Polynomial ℂ) (hf : f.natDegree < t) (i : Fin t) :
    ((Polynomial.taylor s) f).coeff ↑i = ∑ j : Fin t, matrix t s i j * f.coeff ↑j
    noncomputable def Complexity.ExactFourier.Taylor.translate {α : Type} (s : ℂ) (G : Matrix α α (Polynomial ℂ)) :

    Translate every polynomial entry of a matrix by the same scalar.

    Equations
    Instances For
      theorem Complexity.ExactFourier.Taylor.intertwine {α : Type} [Fintype α] [DecidableEq α] (t : ℕ) (ht : 0 < t) (s : ℂ) (G : Matrix α α (Polynomial ℂ)) :
      Matrix.kroneckerMap (fun (x1 x2 : ℂ) => x1 * x2) (matrix t s) 1 * Boundary.modulusMatrix t ((Polynomial.X - Polynomial.C s) ^ t) G = Boundary.timeMatrix t (translate s G) * Matrix.kroneckerMap (fun (x1 x2 : ℂ) => x1 * x2) (matrix t s) 1

      The formal power series with coefficients s^j / j! used for translation.

      Equations
      Instances For
        theorem Complexity.ExactFourier.Taylor.price (p : MatrixPrice) (t : ℕ) (ht : 0 < t) (s : ℂ) :
        p.value (matrix t s) ≤ 627 / Real.log 2 * ↑t * Real.log (2 * ↑t)
        theorem Complexity.ExactFourier.Taylor.conjugacy {α : Type} [Fintype α] [DecidableEq α] (t : ℕ) (ht : 0 < t) (s : ℂ) (G : Matrix α α (Polynomial ℂ)) :
        have P := Matrix.kroneckerMap (fun (x1 x2 : ℂ) => x1 * x2) (matrix t s) 1; P * Boundary.modulusMatrix t ((Polynomial.X - Polynomial.C s) ^ t) G * P⁻¹ = Boundary.timeMatrix t (translate s G)
        theorem Complexity.ExactFourier.Taylor.modulus_lower {α : Type} [Fintype α] [DecidableEq α] (p : MatrixPrice) (t : ℕ) (ht : 0 < t) (s : ℂ) (G : Matrix α α (Polynomial ℂ)) (hG : IsUnit (G.map (Polynomial.eval s))) :
        ↑t * p.value (G.map (Polynomial.eval s)) ≤ p.value (Boundary.modulusMatrix t ((Polynomial.X - Polynomial.C s) ^ t) G) + 2 * ↑(Fintype.card α) * (627 / Real.log 2) * ↑t * Real.log (2 * ↑t)
        noncomputable def Complexity.ExactFourier.CellPoly.feedback {α β : Type} [Fintype β] [DecidableEq β] (M : Matrix α α ℂ) (C : Matrix α β ℂ) (B : Matrix β α ℂ) (D : Matrix β β ℂ) (s : ℂ) :
        Matrix α α ℂ

        The cell transfer matrix after feeding back the state block at scalar parameter s.

        Equations
        Instances For
          @[simp]
          theorem Complexity.ExactFourier.CellPoly.eval_a {β : Type} [Fintype β] [DecidableEq β] (D : Matrix β β ℂ) (s : ℂ) :
          Polynomial.eval s (a D) = (1 - s • D).det
          theorem Complexity.ExactFourier.CellPoly.eval_F {α β : Type} [Fintype β] [DecidableEq β] (M : Matrix α α ℂ) (C : Matrix α β ℂ) (B : Matrix β α ℂ) (D : Matrix β β ℂ) (s : ℂ) (hD : IsUnit (1 - s • D)) :
          (F M C B D).map ⇑(Polynomial.evalRingHom s) = Polynomial.eval s (a D) • feedback M C B D s

          The vanishing error term in the boundary-correction price estimate.

          Equations
          Instances For
            theorem Complexity.ExactFourier.fixed_price_of_boundary (x y C : ℝ) (h : ∀ (k t : ℕ), 0 < k → 0 < t → ↑t * ↑k * (x - y) ≤ C * (↑t * Real.log (2 * ↑t) + (↑k + 1) ^ 6)) :
            x ≤ y
            theorem Complexity.ExactFourier.MatrixPrice.feedback {α β : Type} [Fintype α] [Fintype β] [DecidableEq α] [DecidableEq β] (p : MatrixPrice) (M : Matrix α α ℂ) (C : Matrix α β ℂ) (B : Matrix β α ℂ) (D : Matrix β β ℂ) (s : ℂ) (hM : IsUnit M) (hK : IsUnit (Matrix.fromBlocks M C B D)) (hD : IsUnit (1 - s • D)) (hH : IsUnit (CellPoly.feedback M C B D s)) :