NLAlib.Ops.Routine.Meets.withData
Library · theorem
The judgment of a routine on stored data, from the judgment of the matrix-free routine under the interpretation in which the operations read the stored words. At each call the data operands ctx hold blocks raws; when they satisfy P, the matrix-free routine meets the specification S₀ d raws under Interp.withData, whose contracts rel/adm then hold (hsat). The routine on stored data then meets Spec.onData lens.length P S₀.
R is separated by buffer, has no continuing operand and has contiguous operands, as the linking of stored data needs the data buffers apart from every other buffer.
NLAlib.Ops.Routine.Meets.withData {K Op Lo Tst : Type} {R : Ops.Routine Op Tst}
{lens : List (List ℕ → ℕ)} {T : Ops.ContextTable Op Lo Tst} {I : Ops.Interp Lo Tst K}
(P : List ℕ → List (List K) → Prop) (S₀ : List ℕ → List (List K) → Ops.Routine.Spec K)
(rel : List ℕ → List (List K) → Op → Ops.BlockRel K)
(adm : List ℕ → Op → List ℕ → List (ℕ × ℕ) → List (ℕ × ℕ) → Prop)
(fallback : List ℕ → List (List K) → Ops.Interp Op Tst K) (hflat : R.flat = true)
(hsepR : R.sep = Ops.Separation.buffers)
(hsat :
∀ (d : List ℕ) (ctx : List (ℕ × ℕ)) (m : Ops.Mem K) (raws : List (List K)),
ctx.length = lens.length →
m.readBlocks ctx (List.map (fun x ↦ x d) lens) = some raws →
P d raws →
∀ (o : Op),
(I.withData T ctx m.store (rel d raws) (adm d) (fallback d raws)).Satisfies
Ops.Mode.total o ((rel d raws o).spec (adm d o)))
(hmeets :
∀ (d : List ℕ) (ctx : List (ℕ × ℕ)) (m : Ops.Mem K) (raws : List (List K)),
ctx.length = lens.length →
m.readBlocks ctx (List.map (fun x ↦ x d) lens) = some raws →
P d raws →
R.Meets (I.withData T ctx m.store (rel d raws) (adm d) (fallback d raws)) (S₀ d raws))
(hcontig : R.contiguous = true := by rfl) :
(R.withData lens T).Meets I (Ops.Routine.Spec.onData lens.length P S₀)Import NLAlib.Ops.RoutineData.