NLAlib.Ops.Examples.runs_gemm_link_seq
Library · theorem
Standard rounding
gemm under sequential summation: over scalar arithmetic meeting the standard model at u, the linked program computes C with |Ĉ - A B| ≤ ((1 + u) ^ n - 1) |A| |B| componentwise (n ≥ 1), within the pushed-forward counts and n scratch cells. One application of the certificate of the profile.
NLAlib.Ops.Examples.runs_gemm_link_seq {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} {m n p : ℕ} (hn : 1 ≤ n) {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 0) τ (Ops.Stmt.link Ops.Blas.seq.table Ops.Examples.gemm)
(Ops.Env.frame [m, n, p] [A, B, C]) μ
((m * p) •
(n • Ops.Blas.sc Ops.ScalarOp.mul +
(Ops.Blas.sc (Ops.ScalarOp.lit 0) +
((1 - (1 - n)) • Ops.Blas.sc Ops.ScalarOp.copy +
(n - 1) • Ops.Blas.sc Ops.ScalarOp.add))))
(Ops.Blas.ws 0 (Ops.Has.inj Ops.Blas1Op.dot) [n])
(Ops.Examples.GemmRounded dec ((1 + u) ^ n - 1) m n p C as bs μ)Import NLAlib.Ops.Examples.Gemm.