NLA-lib Explorer

NLAlib.HutchPlusPlus.Certification.measureReal_not_accepts_le_of_hasLaw_gaussianMatrix

Library · theorem

The fixed canonical Hutch++ program has the concrete Gaussian trace-error bound, including every counted resource bound and exact word/cleanup guarantee on that same run. The only additional resource premise is the declared common primitive workspace ceiling. All Gaussian independence and numerical size hypotheses remain explicit. [MeyerMuscoMuscoWoodruff2021, Theorem 4 and §5, Algorithm 3].

NLAlib.HutchPlusPlus.Certification.measureReal_not_accepts_le_of_hasLaw_gaussianMatrix
  (dataLength : ℕ → ℕ → ℕ) (matrix : (m n : ℕ) → List ℝ → Matrix (Fin m) (Fin n) ℝ)
  (work workspace : Ops.ExactLinear.Operation → List ℕ → ℕ) (w stream : ℕ)
  (hWorkspace : ∀ (o : Ops.ExactLinear.Operation) (d : List ℕ), workspace o d ≤ w) {d : Fin 3 → ℕ}
  (hProbes : 0 < d 2) (hSketch : 0 < d 1)
  (input : (HutchPlusPlus.Certification.problem dataLength).Input d)
  (I : Ops.Interp Ops.ExactLinear.Operation Ops.CmpTst ℝ)
  (hI :
    (Ops.ExactLinear.model (HutchPlusPlus.Certification.problem dataLength) dataLength matrix work
          workspace).contracts
      d input I)
  {Omega : Type} [MeasurableSpace Omega] (P : Measure Omega)
  (S : Omega → Matrix (Fin (d 0)) (Fin (d 1)) ℝ) (G : Omega → Matrix (Fin (d 0)) (Fin (d 2)) ℝ)
  (hS : HasLaw S (gaussianMatrix (Fin (d 0)) (Fin (d 1))) P)
  (hG : HasLaw G (gaussianMatrix (Fin (d 0)) (Fin (d 2))) P) (hSG : S ⟂ᵢ[P] G) {rank : ℕ}
  {delta tolerance : ℝ} (hDelta : 0 < delta)
  (hSize : subgaussianEmbeddingDim 1 rank (1 / 2) (delta / 2) ≤ ↑(d 1))
  (hTolerance : 0 ≤ tolerance) :
  P.real
      {omega |
        ¬(HutchPlusPlus.Certification.specification dataLength matrix work workspace w
                stream).Accepts
            (HutchPlusPlus.Certification.algorithm dataLength matrix work workspace w hWorkspace
                stream).program
            I (Ops.ExactLinear.resources work workspace)
            (HutchPlusPlus.packedSampleTape stream (S omega) (G omega)) d input fun c m ↦
            (HutchPlusPlus.Certification.specification dataLength matrix work workspace w
                    stream).good
                d input (HutchPlusPlus.packedSampleTape stream (S omega) (G omega)) c m ∧
              HutchPlusPlus.StoresApproxTrace (matrix (d 0) (d 0) ↑(↑input).1) tolerance (1, 0) m} ≤
    delta +
      2 *
        rexp
          (-(hansonWrightConstant *
              min
                (↑(d 2) * tolerance ^ 2 /
                  (subgaussianRangeFinderFactor 1 *
                    frobNorm
                        (matrix (d 0) (d 0) ↑(↑input).1 -
                          truncatedSVD (matrix (d 0) (d 0) ↑(↑input).1) rank) ^
                      2))
                (↑(d 2) * tolerance /
                  (√(subgaussianRangeFinderFactor 1) *
                    frobNorm
                      (matrix (d 0) (d 0) ↑(↑input).1 -
                        truncatedSVD (matrix (d 0) (d 0) ↑(↑input).1) rank)))))

Full source on GitHub

Import NLAlib.Estimation.Trace.HutchPlusPlus.Probability.