NLAlib.Ops.ContextLinear.satisfies_guarded
Library · theorem
Isolated raw data and ordinary local primitive laws give globally valid source contracts for the proof-side guard. The fallback is used only outside the isolated regime.
NLAlib.Ops.ContextLinear.satisfies_guarded {I : Ops.Interp Ops.RCLikeBlas.Operation Ops.CmpTst ℝ}
(hS : Ops.IsScalar Ops.RCLikeBlas.machine I) (hB : Ops.IsExactBlas1 id (fun x ↦ True) 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)
(fallback : Ops.Interp Ops.Standard.Operation Ops.CmpTst ℝ)
(hFallback :
∀ (o : Ops.Standard.Operation),
fallback.Satisfies Ops.Mode.total o
((Ops.ContextLinear.relation (Ops.StoredOperator.denseMatrix n n raw) o).spec
(Ops.ContextLinear.admissible n o)))
(o : Ops.Standard.Operation) :
((I.linkContext (Ops.ContextLinear.table context.length ↑index) context).guardIsolated
(fun o ↦
(Ops.ContextLinear.relation (Ops.StoredOperator.denseMatrix n n raw) o).spec
(Ops.ContextLinear.admissible n o))
(Ops.Mem.Isolated C reference) C fallback).Satisfies
Ops.Mode.total o
((Ops.ContextLinear.relation (Ops.StoredOperator.denseMatrix n n raw) o).spec
(Ops.ContextLinear.admissible n o))Import NLAlib.Ops.Profiles.ContextLinearGuarded.