NLAlib.Ops.Examples.runs_gemm_link_pairwise
Library · theorem
Standard rounding
gemm under pairwise summation of depth k, for ⌈log₂ n⌉ < k: |Ĉ - A B| ≤ ((1 + u) ^ (⌈log₂ n⌉ + 1) - 1) |A| |B| componentwise.
NLAlib.Ops.Examples.runs_gemm_link_pairwise {K Op Tst : Type} [Ops.Has Ops.Blas1Op Op] [Inhabited K]
[Ops.Has Ops.ScalarOp Op] [Ops.Apart Ops.Blas1Op Ops.ScalarOp Op] {M : Ops.Machine K} {u : ℝ}
{dec : K → ℝ} (hM : Ops.StdModel u dec M) (hu : 0 ≤ u) {I : Ops.Interp Op Tst K}
(hI : Ops.IsScalar M I) {τ : Ops.Tape K} {k m n p : ℕ} (hk : Nat.clog 2 n < k) {A B C : ℕ × ℕ}
{μ : Ops.Mem K} {as bs : List K} (hAC : A.1 ≠ C.1) (hBC : B.1 ≠ C.1) (hl : μ.Live [A, B, C])
(hA : μ.store.readBlock A.1 A.2 (m * n) = some as)
(hB : μ.store.readBlock B.1 B.2 (p * n) = some bs) (hC : C.2 + m * p ≤ μ.store.len C.1) :
Ops.ConditionalRuns I (Ops.Blas.ws Ops.Blas.pairWs) τ
(Ops.Stmt.link (Ops.Blas.pairwise k).table Ops.Examples.gemm)
(Ops.Env.frame [m, n, p] [A, B, C]) μ
((m * p) • (n • Ops.Blas.sc Ops.ScalarOp.mul + Ops.Blas.pairCount n))
(Ops.Blas.ws Ops.Blas.pairWs (Ops.Has.inj Ops.Blas1Op.dot) [n])
(Ops.Examples.GemmRounded dec ((1 + u) ^ (Nat.clog 2 n + 1) - 1) m n p C as bs μ)Import NLAlib.Ops.Examples.Gemm.