NLAlib.CGS2.colOut_exact
Library · theorem
Exact arithmetic
One exact round, decoded. With exact arithmetic, an exact norm and an exact scaling, the words of a round NLAlib.CGS2.ColOut at the threshold 0 decode to two exact classical passes against the j stored columns \mathbf{V}: \mathbf{w}_1 = \mathbf{w} - \mathbf{V}\mathbf{V}^{\mathsf{T}}\mathbf{w}, \mathbf{w}_2 = \mathbf{w}_1 - \mathbf{V}\mathbf{V}^{\mathsf{T}}\mathbf{w}_1, the first j coefficients \mathbf{V}^{\mathsf{T}}\mathbf{w} + \mathbf{V}^{\mathsf{T}}\mathbf{w}_1, zero coefficients after row j, the diagonal coefficient \lVert\mathbf{w}_2\rVert and the new column \lVert\mathbf{w}_2\rVert^{-1}\mathbf{w}_2 (zero when \mathbf{w}_2 = \mathbf{0}).
NLAlib.CGS2.colOut_exact {K : Type} [Inhabited K] {M : Ops.Machine K} {dec : K → ℝ} {n j r : ℕ}
{vs wc w₂ cc qc : List K} (hM : Ops.ExactModel dec M)
(h :
CGS2.ColOut M dec 0 0 (fun x v ↦ dec v = √(∑ i ∈ Finset.range n, dec (x i) ^ 2))
(fun a x z ↦ dec a ≠ 0 → ∀ i < n, dec (z i) = dec (x i) / dec a) 0 n j r vs wc w₂ cc qc) :
∃ w₁,
w₁ =
Ops.decv dec n wc -
Ops.decodeMatrix dec n j vs *ᵥ (Ops.decodeMatrix dec n j vs)ᵀ *ᵥ Ops.decv dec n wc ∧
Ops.decv dec n w₂ = w₁ - Ops.decodeMatrix dec n j vs *ᵥ (Ops.decodeMatrix dec n j vs)ᵀ *ᵥ w₁ ∧
(∀ (i : Fin j),
dec (Ops.vec cc ↑i) =
((Ops.decodeMatrix dec n j vs)ᵀ *ᵥ Ops.decv dec n wc) i +
((Ops.decodeMatrix dec n j vs)ᵀ *ᵥ w₁) i) ∧
(∀ (i : ℕ), j < i → i < r → dec (Ops.vec cc i) = 0) ∧
dec (Ops.vec cc j) = ‖WithLp.toLp 2 (Ops.decv dec n w₂)‖ ∧
Ops.decv dec n qc = ‖WithLp.toLp 2 (Ops.decv dec n w₂)‖⁻¹ • Ops.decv dec n w₂Import NLAlib.Krylov.Orthogonalization.CGS2.ExtendExact.