Documentation

Complexitylib.Circuits.ExactFourier.Internal.PivotJoin

Exact Fourier circuits: pivot join #

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

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

noncomputable def Complexity.ExactFourier.Pivot.ofMatrix {α β : Type} [Fintype β] [DecidableEq β] (K : Matrix (α ⊕ β) (α ⊕ β) ℂ) :
Matrix (α ⊕ β) (α ⊕ β) ℂ

Apply the pivot transform to the four blocks of a square matrix on a sum type.

Equations
Instances For
    @[simp]
    theorem Complexity.ExactFourier.Pivot.of_fromBlocks {α β : Type} [Fintype β] [DecidableEq β] (A : Matrix α α ℂ) (C : Matrix α β ℂ) (B : Matrix β α ℂ) (D : Matrix β β ℂ) :
    noncomputable def Complexity.ExactFourier.Pivot.reverseJoin {α β γ : Type} [Fintype β] (X : Matrix (α ⊕ β) (α ⊕ β) ℂ) (Y : Matrix (γ ⊕ β) (γ ⊕ β) ℂ) :
    Matrix ((α ⊕ γ) ⊕ β) ((α ⊕ γ) ⊕ β) ℂ

    Join cells in reverse order and restore the original order of their data blocks.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem Complexity.ExactFourier.Pivot.of_join {α β γ : Type} [Fintype β] [DecidableEq β] (X : Matrix (α ⊕ β) (α ⊕ β) ℂ) (Y : Matrix (γ ⊕ β) (γ ⊕ β) ℂ) (hD : IsUnit X.toBlocks₂₂) (hH : IsUnit Y.toBlocks₂₂) :
      theorem Complexity.ExactFourier.CellJoin.scalar_price {α γ : Type} [Fintype α] [Fintype γ] [DecidableEq α] [DecidableEq γ] (p : MatrixPrice) (X : Matrix (α ⊕ PUnit.{1}) (α ⊕ PUnit.{1}) ℂ) (Y : Matrix (γ ⊕ PUnit.{1}) (γ ⊕ PUnit.{1}) ℂ) (hX : IsUnit X) (hY : IsUnit Y) :
      p.value (join X Y) = p.value X + p.value Y
      theorem Complexity.ExactFourier.MatrixPrice.scalar_pivot {α : Type} [Fintype α] [DecidableEq α] (p : MatrixPrice) (A : Matrix α α ℂ) (C : Matrix α PUnit.{1} ℂ) (B : Matrix PUnit.{1} α ℂ) (D : Matrix PUnit.{1} PUnit.{1} ℂ) (hA : IsUnit A) (hD : IsUnit D) (hK : IsUnit (Matrix.fromBlocks A C B D)) :
      p.value (Pivot.matrix A C B D) = p.value (Matrix.fromBlocks A C B D)

      Exact scalar pivot invariance, 07-pivots:175--240. The proof uses finite single-port chains; its constant four is amortized without any continuity law.

      theorem Complexity.ExactFourier.BasisExchange.price_split {α : Type} [Fintype α] [DecidableEq α] (p : MatrixPrice) (U V : Matrix (α ⊕ PUnit.{1}) (α ⊕ PUnit.{1}) ℂ) (hU : IsUnit U) (hV : IsUnit V) (hU' : IsUnit (mix U V)) (hV' : IsUnit (mix V U)) :
      p.value (mix V U * (mix U V)⁻¹) = p.value (V * U⁻¹)

      Split one selected coordinate from the complement of that coordinate.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem Complexity.ExactFourier.BasisExchange.price {ι : Type} [Fintype ι] [DecidableEq ι] (p : MatrixPrice) (U V : Matrix ι ι ℂ) (i : ι) (hU : IsUnit U) (hV : IsUnit V) (hU' : IsUnit (U.updateRow i (V i))) (hV' : IsUnit (V.updateRow i (U i))) :
        p.value (V.updateRow i (U i) * (U.updateRow i (V i))⁻¹) = p.value (V * U⁻¹)

        Exchange any corresponding members of two bases, assuming exactly that both original and both exchanged lists are bases.

        The weighted four-cycle whose wraparound entry is l.

        Equations
        Instances For

          The identity plus the weighted four-cycle J l.

          Equations
          Instances For

            The four-cycle construction with its middle forward link removed.

            Equations
            Instances For

              The identity plus the three forward links, with no wraparound link.

              Equations
              Instances For

                The first intermediate shear matrix in the dense-pair factorization.

                Equations
                Instances For

                  The second intermediate matrix, adding the first row's two forward links.

                  Equations
                  Instances For

                    The third intermediate matrix, retaining only the first row's added links.

                    Equations
                    Instances For

                      The fourth intermediate matrix, introducing the weighted wraparound link.

                      Equations
                      Instances For

                        The fifth intermediate matrix in the dense-pair row-operation sequence.

                        Equations
                        Instances For

                          The final intermediate matrix before the rank-one correction.

                          Equations
                          Instances For

                            The backward cyclic permutation of four coordinates.

                            Equations
                            Instances For