NLAlib.SpectralBisection.node_writes
Library · theorem
The nonleaf node returns the existing mathematical step on its actual stored inputs. Every possible bounded split has writable, separated arena outputs; exact bounded literals justify all metadata conversions. Scratch is fresh and requires no initialized values. Numerical accuracy and the law of the stored samples are separate assumptions. A fragment of NLAlib.SpectralBisection.bisectionRoutine.
NLAlib.SpectralBisection.node_writes {K Op Tst : Type} [Inhabited K] [Ops.Has Ops.ScalarOp Op]
[Ops.Has Ops.IndexOp Op] [Ops.Has Ops.MatrixOp Op] [Ops.Has Ops.CmpTst Tst]
[Ops.Has Ops.IdxTst Tst] (M : Ops.Machine K) (dec : K → ℝ) (mm : MatMulMap (K × K))
(qr : QRMap (K × K)) {I : Ops.Interp Op Tst K} (hS : Ops.IsScalar M I) (hL : Ops.IsIndexLit M I)
(hC : Ops.IsCmp dec I) (hMM : Ops.IsMatrixMul (Ops.EntryCodec.pair K) (fun {l m n} ↦ mm) I)
(hQR : Ops.IsMatrixQR (Ops.EntryCodec.pair K) (fun {m n} ↦ qr) I) (hQ : Ops.IsToNat dec I)
{τ : Ops.Tape K} {μ : Ops.Mem K} {n L fuel d lo k : ℕ}
{par lv su sg ma ua qa ea sz kd ks c : ℕ × ℕ} (R0 beta R eps U : K) (S : ℕ → ℕ → K × K)
(A : Matrix (Fin k) (Fin k) (K × K)) (hk : 2 ≤ k) (hslot : lo + k ≤ n)
(hactive : ¬dec R ≤ dec (M.mul eps R0)) (hexact : Ops.IsExactNatLit dec M (max k 4))
(hl : μ.Live [par, lv, su, sg, ma, ua, qa, ea, sz, kd, ks, c])
(hread :
μ.readBlocks (SpectralBisection.nodeInputs n d lo par lv su sg ma c)
(SpectralBisection.nodeInputLengths n k) =
some (SpectralBisection.nodeInputWords M n R0 beta R eps U S A))
(houtputs :
∀ r ≤ k,
μ.Room (SpectralBisection.branchOutputs n d lo k r ma qa sz kd ks)
(SpectralBisection.branchLengths k r) ∧
Ops.Fp.Apart (SpectralBisection.branchOutputs n d lo k r ma qa sz kd ks)
(SpectralBisection.branchLengths k r) ∧
(Ops.Fp.blocks (SpectralBisection.branchOutputs n d lo k r ma qa sz kd ks)
(SpectralBisection.branchLengths k r)).Disj
(Ops.Fp.blocks (SpectralBisection.nodeInputs n d lo par lv su sg ma c)
(SpectralBisection.nodeInputLengths n k))) :
Ops.Writes Ops.Mode.total I τ SpectralBisection.node
(Ops.Env.frame [n, L, fuel, d, lo, k] [par, lv, su, sg, ma, qa, sz, kd, ks, c])
(Ops.Fp.blocks
(SpectralBisection.stepOutputs n d lo ma ua qa ea sz kd ks
(eighStep
(M.toFloatMachine dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) M.mul fun z ↦
M.normalWords z.1 z.2)
n fuel R0 beta A R eps (L + d) (SpectralBisection.storedNodeSample n lo U S)))
(SpectralBisection.stepOutputLengths
(eighStep
(M.toFloatMachine dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) M.mul fun z ↦
M.normalWords z.1 z.2)
n fuel R0 beta A R eps (L + d) (SpectralBisection.storedNodeSample n lo U S))))
(fun μ' ↦
μ'.pos = μ.pos ∧
SpectralBisection.StoresStep M R n d lo ma ua qa ea sz kd ks
(eighStep
(M.toFloatMachine dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) M.mul fun z ↦
M.normalWords z.1 z.2)
n fuel R0 beta A R eps (L + d) (SpectralBisection.storedNodeSample n lo U S))
μ')
μImport NLAlib.Eigensolvers.SpectralBisection.NodeSolve.