NLAlib.SpectralBisection.leaf_writes
Library · theorem
Every leaf writes its complete identity, its eigenvalue vector and the literal leaf kind. The pairwise apartness includes the source matrix and all three outputs. These are total functional guarantees for actual machine words, with no arithmetic-accuracy hypothesis. A fragment of NLAlib.SpectralBisection.bisectionRoutine.
NLAlib.SpectralBisection.leaf_writes {Op Tst K : Type} [Ops.Has Ops.ScalarOp Op]
[Ops.Has Ops.IndexOp Op] {M : Ops.Machine K} {I : Ops.Interp Op Tst K} (hI : Ops.IsScalar M I)
(hL : Ops.IsIndexLit M I) (diagonal : Bool) {τ : Ops.Tape K} {m : Ops.Mem K} {n : ℕ}
{a u e kind : ℕ × ℕ} {v : ℕ → K} (hl : m.Live [a, u, e, kind])
(ha : m.store.HoldsVec a.1 a.2 (2 * (n * n)) v) (hu : u.2 + 2 * (n * n) ≤ m.store.len u.1)
(he : e.2 + n ≤ m.store.len e.1) (hk : kind.2 < m.store.len kind.1)
(hap : Ops.Fp.Apart [u, e, kind, a] [2 * (n * n), n, 1, 2 * (n * n)]) :
Ops.Writes Ops.Mode.total I τ (SpectralBisection.leaf diagonal)
(Ops.Env.frame [n] [a, u, e, kind])
(Ops.Store.inBlock u.1 u.2 (2 * (n * n)) ⊔
(Ops.Store.inBlock e.1 e.2 n ⊔ Ops.Store.inBlock kind.1 kind.2 1))
(fun m' ↦
(m'.store.HoldsVec u.1 u.2 (2 * (n * n)) fun q ↦
if ∃ j < n, q = 2 * (j * n + j) then M.lit 1 else M.lit 0) ∧
(m'.store.HoldsVec e.1 e.2 n fun i ↦
if diagonal = true then v (2 * (i * n + i)) else M.lit 0) ∧
m'.store.get kind.1 kind.2 = some (M.lit 1) ∧ m'.pos = m.pos)
mImport NLAlib.Eigensolvers.SpectralBisection.Leaf.