NLAlib.Sign.signRoutine_meets
Library · theorem
The capped sign routine meets its specification for every functional interpretation of the scalar, index, multiplication and comparison operations with distinct decoded zero and one, at every order and cap. The workspace (five scalar cells and two square matrices) is allocated and freed inside; only the written matrix changes. There is no convergence or successful-run premise.
NLAlib.Sign.signRoutine_meets {K Su Sg Op Tst : Type} [Inhabited K] [Ops.Has Ops.ScalarOp Op]
[Ops.Has Ops.MatrixOp Op] [Ops.Has Ops.IndexOp Op] [Ops.Has Ops.CmpTst Tst] {M : Ops.Machine K}
(dec : K → ℝ) (mm : MatMulMap (K × K)) (qr : QRMap (K × K)) (unif : K → Su → K)
(normal : Sg → K × K) {I : Ops.Interp Op Tst K} (hS : Ops.IsScalar M I) (hC : Ops.IsCmp dec I)
(hMM : Ops.IsMatrixMul (Ops.EntryCodec.pair K) (fun {l m n} ↦ mm) I) (hIndex : Ops.IsIndexLit M I)
(h01 : dec (M.lit 0) ≠ dec (M.lit 1)) :
(Sign.signRoutine (Ops.Has.inj Ops.MatrixOp.mul)).Meets I
(Sign.signSpec M dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) unif normal)Import NLAlib.Eigensolvers.Sign.Routine.