NLAlib.SpectralBisection.nodeSplitIndex_writes
Library · theorem
The executed index preparation returns the exact clamped rounded trace on actual words. Only its four declared cells may change; in particular the node's half-radii and sampled shift remain available to the selected child or split branch. A fragment of NLAlib.SpectralBisection.bisectionRoutine.
NLAlib.SpectralBisection.nodeSplitIndex_writes {K Su Sg Op Tst : Type} [Inhabited K]
[Ops.Has Ops.ScalarOp 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) (hL : Ops.IsIndexLit M I)
(hC : Ops.IsCmp dec I) {τ : Ops.Tape K} {μ : Ops.Mem K} {k : ℕ} {pp c t : ℕ × ℕ}
(Pp : Matrix (Fin k) (Fin k) (K × K)) (half : K) (hl : μ.Live [pp, c, t])
(hPp :
μ.store.readBlock pp.1 pp.2 (2 * (k * k)) = some ((Ops.EntryCodec.pair K).packFinMatrix Pp))
(hhalf : μ.store.get c.1 (c.2 + 2) = some half) (hroom : t.2 + 7 ≤ μ.store.len t.1)
(hsep :
Ops.Fp.Disj (Ops.Store.inBlock t.1 t.2 7)
(Ops.Fp.blocks [pp, (c.1, c.2 + 2)] [2 * (k * k), 1])) :
Ops.Writes Ops.Mode.total I τ SpectralBisection.nodeSplitIndex (Ops.Env.frame [k] [pp, c, t])
(SpectralBisection.indexCells t)
(fun μ' ↦
μ'.pos = μ.pos ∧
μ'.store.get t.1 (t.2 + 6) =
some
(Ops.clampWord dec (M.lit 0) (M.lit ↑k)
(M.add
((M.toFloatMachine dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) unif normal).traceRe Pp)
half)))
μImport NLAlib.Eigensolvers.SpectralBisection.Index.