NLAlib.Ops.Dense.laws_functionalModel
Library · theorem
Satisfying the generated access model supplies precisely the scalar, literal, matrix, sampling and query contracts used by algorithm proofs, on the same interpretation.
NLAlib.Ops.Dense.laws_functionalModel {K E : Type} [Inhabited K] {r b : ℕ} {P : Ops.Problem K r b}
(M : Ops.Machine K) (dec : K → ℝ) (C : Ops.EntryCodec K E)
(mm :
{l m n : ℕ} → Matrix (Fin l) (Fin m) E → Matrix (Fin m) (Fin n) E → Matrix (Fin l) (Fin n) E)
(qr : {m n : ℕ} → Matrix (Fin m) (Fin n) E → Matrix (Fin m) (Fin m) E × Matrix (Fin m) (Fin n) E)
(R : Ops.ResourceModel Ops.DenseOp (Ops.CmpTst ⊕ Ops.IdxTst)) (d : Fin r → ℕ) (x : P.Input d)
(I : Ops.Interp Ops.DenseOp (Ops.CmpTst ⊕ Ops.IdxTst) K)
(h :
(Ops.Dense.functionalModel P M dec C (fun {l m n} ↦ mm) (fun {m n} ↦ qr) R).contracts d x I) :
Ops.IsScalar M I ∧
Ops.IsIndexLit M I ∧
Ops.IsMatrixMul C (fun {l m n} ↦ mm) I ∧
Ops.IsMatrixQR C (fun {m n} ↦ qr) I ∧ Ops.IsSample I ∧ Ops.IsCmp dec I ∧ Ops.IsToNat dec IImport NLAlib.Ops.Profiles.Dense.