NLAlib.SpectralBisection.readBlocks_upSplit
Library · theorem
Joining the actual adjacent output blocks gives the mathematical split assembly. Empty children are included; the split-size inequality justifies the total finite dimension.
NLAlib.SpectralBisection.readBlocks_upSplit {K : Type} {M : Ops.Machine K} {m : Ops.Mem K}
{k kp : ℕ} (hp : kp ≤ k) {u e : ℕ × ℕ} (A : Matrix (Fin k) (Fin kp) (K × K))
(B : Matrix (Fin k) (Fin (k - kp)) (K × K)) (dp : Fin kp → K) (dm : Fin (k - kp) → K) (s : K)
(h :
m.readBlocks [u, (u.1, u.2 + 2 * (k * kp)), e, (e.1, e.2 + kp)]
[kp * k * 2, (k - kp) * k * 2, kp, k - kp] =
some
[(Ops.EntryCodec.pair K).packFinMatrix A, (Ops.EntryCodec.pair K).packFinMatrix B,
List.map (fun v ↦ M.add v s) (List.ofFn dp),
List.map (fun v ↦ M.sub v s) (List.ofFn dm)]) :
have index := (finCongr ⋯).trans finSumFinEquiv.symm;
m.readBlocks [u, e] [2 * (k * k), k] =
some
[(Ops.EntryCodec.pair K).packFinMatrix ((A.fromCols B).submatrix id ⇑index),
List.ofFn fun i ↦ ((fun j ↦ M.add (dp j) s) ⊕ᵥ fun j ↦ M.sub (dm j) s) (index i)]Import NLAlib.Eigensolvers.SpectralBisection.UpPacked.