NLA-lib Explorer

NLAlib.Ops.ContextLinear.guarded_laws

Library · theorem

Exact numerical interfaces for reusing the source algorithm word theorem. The matrix is the decoder of the actual raw words; comparisons remain those of the target interpreter.

NLAlib.Ops.ContextLinear.guarded_laws {I : Ops.Interp Ops.RCLikeBlas.Operation Ops.CmpTst ℝ}
  (hS : Ops.IsScalar Ops.RCLikeBlas.machine I) (hB : Ops.RCLikeBlas.IsExact I)
  (hCmp : Ops.IsCmp id I) (context : List (ℕ × ℕ)) (index : Fin context.length) {n : ℕ}
  {C : ℕ → Prop} (reference : Ops.Store ℝ) (raw : List ℝ) (hc : ∀ z ∈ context, C z.1)
  (hData : reference.readBlock context[index].1 context[index].2 (n * n) = some raw) :
  have J := Ops.ContextLinear.guarded I context index C reference n raw;
  Ops.IsScalar Ops.RCLikeBlas.machine J ∧
    Ops.IsExactBlas1 id (fun x ↦ True) J ∧
      Ops.IsExactMatvec id (Ops.StoredOperator.denseMatrix n n raw) J ∧ Ops.IsCmp id J

Full source on GitHub

Import NLAlib.Ops.Profiles.ContextLinearGuarded.