NLAlib.Deflation.measureReal_not_accepts_packedGaussianTape_le_of_hasLaw_complexGaussianMatrix
Library · theorem
Gaussian deflation controls complete failure of the fixed canonical program. The raw input decodes within beta of U*S*Vᴴ, the target factors have orthonormal columns and S is invertible. The original conditioning, precision, underflow and range hypotheses are explicit. The actual consumed tape is the packed output of the same numerical normal sampler on G. The resulting probability bound retains every word and resource guarantee on the same run; no execution-success assumption or unknown reference failure bound is supplied. [Shah2024, Theorem 3.3].
NLAlib.Deflation.measureReal_not_accepts_packedGaussianTape_le_of_hasLaw_complexGaussianMatrix
{K : Type} [Inhabited K] (F : FloatMachine K ℝ ℂ) (dec : K → ℝ)
(matrixWork matrixWorkspace : Ops.MatrixOp → List ℕ → ℕ) (M : Ops.Machine K)
(domain : (Fin 2 → ℕ) → Prop) (admitted : ∃ d, domain d)
(hRank : ∀ (d : Fin 2 → ℕ), domain d → d 1 ≤ d 0) {d : Fin 2 → ℕ} (hd : domain d)
(input : (Deflation.problem domain admitted).Input d)
(I : Ops.Interp Ops.DenseOp (Ops.CmpTst ⊕ Ops.IdxTst) K)
(hI :
(Ops.Dense.functionalModel (Deflation.problem domain admitted) M dec (Ops.EntryCodec.pair K)
(fun {l m n} ↦ F.mm) (fun {m n} ↦ F.qr)
(Ops.Dense.resources matrixWork matrixWorkspace)).contracts
d input I)
{u floor range cN beta t cut : ℝ} {muM muQ : ℕ → ℝ}
(hArith : F.IsArithAccurate dec u floor range muM)
(hQR : IsQRErr (decodeComplex dec) u floor range muQ fun {m n} ↦ F.qr)
(hNormal : IsNormalSampler (decodeComplex dec) u cN floor range F.normal)
{U V : Matrix (Fin (d 0)) (Fin (d 1)) ℂ} (hU : HasOrthonormalCols U) (hV : HasOrthonormalCols V)
{S : Matrix (Fin (d 1)) (Fin (d 1)) ℂ} (hS : IsUnit S) {A : Matrix (Fin (d 0)) (Fin (d 0)) ℂ}
(hA : A = U * S * Vᴴ)
(hBeta : specNorm (A - decodeMatrix dec (Deflation.inputMatrix d input)) ≤ beta)
(hBetaMax : beta ≤ 1) (ht : 0 ≤ t) (hCut : 0 < cut)
(hCondition : (specNorm S + 2) * specNorm S⁻¹ * (√2 * (2 * √↑(d 0) + t)) / cut * beta ≤ 1 / 5)
(hPrecision : (4 * muQ (d 0) + 4 * √↑(d 0) * cN + 2 * muM (d 0)) * u ≤ beta)
(hFloor : floor ≤ specNorm S * cut) (hFloorN : floor * √↑(d 0) ≤ cut)
(hRange : 2 * (specNorm S + 1) * (√2 * (2 * √↑(d 0) + t)) ≤ range) {Omega : Type}
[MeasurableSpace Omega] (P : Measure Omega) (G : Omega → Matrix (Fin (d 0)) (Fin (d 0)) ℂ)
(hG : HasLaw G (complexGaussianMatrix (Fin (d 0)) (Fin (d 0))) P) :
P.real
{omega |
¬(Deflation.wordSpecification (fun {l m n} ↦ F.mm) (fun {m n} ↦ F.qr) domain admitted
matrixWork matrixWorkspace).Accepts
(Deflation.deflateAlgorithm M dec (fun {l m n} ↦ F.mm) (fun {m n} ↦ F.qr) domain
admitted matrixWork matrixWorkspace hRank).program
I (Ops.Dense.resources matrixWork matrixWorkspace)
(Deflation.packedGaussianTape F.normal (G omega)) d input fun c m ↦
(Deflation.wordSpecification (fun {l m n} ↦ F.mm) (fun {m n} ↦ F.qr) domain admitted
matrixWork matrixWorkspace).good
d input (Deflation.packedGaussianTape F.normal (G omega)) c m ∧
Deflation.StoresApproxBasis dec U
(6 * ((specNorm S + 2) * specNorm S⁻¹ * (√2 * (2 * √↑(d 0) + t)) / cut) * beta)
(1, 0) m} ≤
2 * rexp (-t ^ 2 / 2) + ↑(d 1) ^ 2 * cut ^ 2Import NLAlib.Eigensolvers.Deflation.Probability.