NLA-lib Explorer

NLAlib.LinearSystems.Refinement.Rounded.isFactored_of_setup

Library · theorem

The values the setup computes are the state NLAlib.LinearSystems.Refinement.Rounded.IsFactored.

NLAlib.LinearSystems.Refinement.Rounded.isFactored_of_setup {Op Tst : Type}
  [Ops.Has (Ops.Tagged LinearSystems.Refinement.Rounded.FTag Ops.ScalarOp) Op]
  [Ops.Has (Ops.Tagged LinearSystems.Refinement.Rounded.WTag Ops.ScalarOp) Op]
  [Ops.Has (Ops.Tagged LinearSystems.Refinement.Rounded.RTag Ops.ScalarOp) Op]
  [Ops.Has (Ops.CastOp LinearSystems.Refinement.Rounded.WTag LinearSystems.Refinement.Rounded.FTag)
      Op]
  [Ops.Has (Ops.CastOp LinearSystems.Refinement.Rounded.FTag LinearSystems.Refinement.Rounded.WTag)
      Op]
  [Ops.Has (Ops.CastOp LinearSystems.Refinement.Rounded.WTag LinearSystems.Refinement.Rounded.RTag)
      Op]
  [Ops.Has (Ops.CastOp LinearSystems.Refinement.Rounded.RTag LinearSystems.Refinement.Rounded.WTag)
      Op]
  {Mf Mw Mr : Ops.Machine ℝ} {cWF cFW cWR cRW : ℝ → ℝ} {uf u ur : ℝ} {I : Ops.Interp Op Tst ℝ}
  (h : LinearSystems.Refinement.Rounded.IsThreePrecision Mf Mw Mr cWF cFW cWR cRW uf u ur I) {n : ℕ}
  {A : Matrix (Fin n) (Fin n) ℝ} {As bs L₀ Ls ARs bRs : List ℝ}
  (hAs : ∀ (i j : Fin n), Ops.vec As (↑j * n + ↑i) = A i j)
  (hL₀ : L₀ = List.map (fun i ↦ cWF (Ops.vec As i)) (List.range (n * n)))
  (hL :
    Computation.IsCholTrace uf (fun i j ↦ Ops.vec L₀ (j * n + i)) (fun i j ↦ Ops.vec Ls (j * n + i))
      n)
  (hAR : ARs = List.map (fun i ↦ cWR (Ops.vec As i)) (List.range (n * n)))
  (hbR : bRs = List.map (fun i ↦ cWR (Ops.vec bs i)) (List.range n)) :
  LinearSystems.Refinement.Rounded.IsFactored A (Ops.decv id n bs) uf Ls ARs bRs

Full source on GitHub

Import NLAlib.LinearSystems.Refinement.Rounded.Solve.