NLAlib.Ops.Examples.runsW_twice_link
Library · theorem
The linked program, with a weighted count: twice linked through the split runs, and for every superadditive T the weight of its counts of base is at most 2 T k, whatever the split stored in the cell. The static count of the linked tree would charge every split.
NLAlib.Ops.Examples.runsW_twice_link {K : Type} {I : Ops.Interp Ops.Examples.LOp Ops.IdxTst K}
{dec : K → ℝ}
(hK :
I.Satisfies Ops.Mode.total Ops.Examples.LOp.base (Ops.Examples.idleRel.spec Ops.AnyOperands))
(hidx : Ops.IsToNat dec I) {T : ℕ → ℕ} (hT : ∀ (a b : ℕ), T a + T b ≤ T (a + b)) {τ : Ops.Tape K}
{k : ℕ} {x : ℕ × ℕ} {m : Ops.Mem K} {w : K} (hx : m.store.get x.1 x.2 = some w) (h0 : 0 ≤ dec w)
(hle : ⌊dec w⌋₊ ≤ k) :
Ops.ConditionalRunsW I (fun x x_1 ↦ 0) τ
(Ops.Stmt.link Ops.Examples.splitTable Ops.Examples.twice) { idx := [k, x.2], buf := [x.1] } m 0
fun c m' ↦ (Ops.Examples.kernWeight T) c ≤ 2 * T k ∧ m' = mImport NLAlib.Ops.Examples.Split.