Documentation

Complexitylib.Circuits.ExactFourier.Internal.MonomialFeedback

Exact Fourier circuits: monomial feedback #

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

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

theorem Complexity.ExactFourier.MatrixPrice.one_add_monomial {α : Type} [Fintype α] [DecidableEq α] (p : MatrixPrice) (J : Matrix α α ℂ) (hJ : IsUnit J) (hmono : MonomialMatrix J) (hI : IsUnit (1 + J)) :
p.value (1 + J) ≤ ↑(Fintype.card α)
theorem Complexity.ExactFourier.MatrixPrice.source_shear {α : Type} [Fintype α] [DecidableEq α] (p : MatrixPrice) (U V : Matrix α α ℂ) (hU : IsUnit U) (hV : IsUnit V) (i j : α) (hij : i ≠ j) (c : ℂ) :
p.value (V * (Matrix.transvection i j c * U)⁻¹) ≤ p.value (V * U⁻¹) + 1
theorem Complexity.ExactFourier.DensePair.four_price (p : MatrixPrice) (l : ℂ) (hl : l ≠ 0) (hl1 : l ≠ 1) :
p.value (X l * (Y6 l)⁻¹) ≤ 6

The row permutation exchanging the last two coordinates of the pivot matrix.

Equations
Instances For

    The row permutation exchanging the first pair and the last pair of coordinates.

    Equations
    Instances For

      The four-entry vector determining the pivot's rank-one correction.

      Equations
      Instances For

        Alternating signs for the pivot's rank-one correction.

        Equations
        Instances For

          The identity plus the pivot correction delta l * signsᵀ / (1 - l).

          Equations
          Instances For

            The four-coordinate matrix obtained after the first diagonal normalization.

            Equations
            Instances For

              The four-coordinate matrix in the second normalization of the dense pair.

              Equations
              Instances For

                The two-coordinate matrix with three unit entries and lower-right entry u.

                Equations
                Instances For
                  noncomputable def Complexity.ExactFourier.DensePair.left1 (l : ℂ) :
                  Fin 4 → ℂ

                  Left diagonal weights normalizing the rank-one pivot correction.

                  Equations
                  Instances For
                    theorem Complexity.ExactFourier.DensePair.left1_ne (l : ℂ) (hl : l ≠ 0) (hl1 : l ≠ 1) (i : Fin 4) :
                    left1 l i ≠ 0
                    noncomputable def Complexity.ExactFourier.DensePair.left2 (l : ℂ) :
                    Fin 4 → ℂ

                    Left diagonal weights for the second normalization of the dense pair.

                    Equations
                    Instances For

                      Right diagonal weights for the second normalization of the dense pair.

                      Equations
                      Instances For
                        theorem Complexity.ExactFourier.DensePair.left2_ne (l : ℂ) (hl : l ≠ 0) (i : Fin 4) :
                        left2 l i ≠ 0
                        theorem Complexity.ExactFourier.DensePair.right2_ne (l : ℂ) (hl : l ≠ 0) (i : Fin 4) :
                        right2 l i ≠ 0

                        Identify four row coordinates with pairs of bits in the chosen tensor order.

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

                          Identify four column coordinates with pairs of bits in the chosen tensor order.

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            theorem Complexity.ExactFourier.DensePair.normalized_price (p : MatrixPrice) (u : ℂ) (hu : u ≠ 0) (hu1 : u ≠ 1) :
                            p.value (B u) ≤ 3 / 2
                            theorem Complexity.ExactFourier.DensePair.price (p : MatrixPrice) (H : Matrix (Fin 2) (Fin 2) ℂ) (hH : IsUnit H) (hdense : ∀ (i j : Fin 2), H i j ≠ 0) :
                            p.value H ≤ 3 / 2
                            @[reducible, inline]

                            Coordinates outside the image of an embedding.

                            Equations
                            Instances For
                              noncomputable def Complexity.ExactFourier.Embedded.coordinates {α β : Type} (e : β ↪ α) :

                              Split the ambient coordinates into an embedding's image and its complement.

                              Equations
                              Instances For
                                @[simp]
                                theorem Complexity.ExactFourier.Embedded.coordinates_inl {α β : Type} (e : β ↪ α) (i : β) :
                                (coordinates e) (Sum.inl i) = e i
                                @[simp]
                                theorem Complexity.ExactFourier.Embedded.coordinates_inr {α β : Type} (e : β ↪ α) (i : complement e) :
                                (coordinates e) (Sum.inr i) = ↑i
                                noncomputable def Complexity.ExactFourier.Embedded.matrix {α β : Type} (e : β ↪ α) (A : Matrix β β ℂ) :
                                Matrix α α ℂ

                                Extend a matrix along an embedding, acting as the identity on unused coordinates.

                                Equations
                                Instances For
                                  theorem Complexity.ExactFourier.Embedded.unit {α β : Type} [Fintype α] [Fintype β] [DecidableEq α] [DecidableEq β] (e : β ↪ α) (A : Matrix β β ℂ) (hA : IsUnit A) :
                                  theorem Complexity.ExactFourier.Embedded.price {α β : Type} [Fintype α] [Fintype β] [DecidableEq α] [DecidableEq β] (p : MatrixPrice) (e : β ↪ α) (A : Matrix β β ℂ) (hA : IsUnit A) :
                                  p.value (matrix e A) = p.value A
                                  def Complexity.ExactFourier.Embedded.pair {α : Type} (i j : α) (hij : i ≠ j) :
                                  Fin 2 ↪ α

                                  Embed two distinct selected coordinates as a copy of Fin 2.

                                  Equations
                                  Instances For
                                    @[simp]
                                    theorem Complexity.ExactFourier.Embedded.pair_zero {α : Type} (i j : α) (hij : i ≠ j) :
                                    (pair i j hij) 0 = i
                                    @[simp]
                                    theorem Complexity.ExactFourier.Embedded.pair_one {α : Type} (i j : α) (hij : i ≠ j) :
                                    (pair i j hij) 1 = j
                                    theorem Complexity.ExactFourier.Embedded.complement_ne_pair {α : Type} (i j : α) (hij : i ≠ j) (a : complement (pair i j hij)) :
                                    ↑a ≠ i ∧ ↑a ≠ j
                                    theorem Complexity.ExactFourier.Embedded.pair_matrix {α : Type} [DecidableEq α] (i j : α) (hij : i ≠ j) (s t : ℂ) :
                                    matrix (pair i j hij) !![1, s; t, 1] = 1 + Matrix.single i j s + Matrix.single j i t
                                    theorem Complexity.ExactFourier.Embedded.pair_price {α : Type} [Fintype α] [DecidableEq α] (p : MatrixPrice) (i j : α) (hij : i ≠ j) (s t : ℂ) (hs : s ≠ 0) (ht : t ≠ 0) (hst : 1 - s * t ≠ 0) :
                                    IsUnit (1 + Matrix.single i j s + Matrix.single j i t) ∧ p.value (1 + Matrix.single i j s + Matrix.single j i t) ≤ 3 / 2