NLA-lib Explorer

NLAlib.Ops.exec_link_weight

Library · theorem

Weighted, data-dependent counts. A bound t, which may depend on the final memory, on the weight of the counts of one run of the algorithm becomes the same bound on the weight of the counts of the linked run. The weight below is w₂; one call of o at d weighs u o d above, and the weighted certificate says that this covers its implementation.

NLAlib.Ops.exec_link_weight {Op₁ Op₂ Tst K : Type} {T : Ops.Table Op₁ Op₂ Tst}
  {I : Ops.Interp Op₂ Tst K} {W₂ : Op₂ → List ℕ → ℕ} {W₁ : Op₁ → List ℕ → ℕ}
  {w₂ : Ops.Count Op₂ Tst →+ ℕ} {u : Op₁ → List ℕ → ℕ} (hacc : T.AccountsW I W₂ w₂ u W₁)
  {τ : Ops.Tape K} {s : Ops.Stmt Op₁ Tst} {ρ : Ops.Env} {m : Ops.Mem K} {M : ℕ} {t : Ops.Mem K → ℕ}
  {Q : Ops.Mem K → Prop}
  (h :
    Ops.ConditionalRunsW (I.link T) W₁ τ s ρ m M fun c m' ↦
      (Ops.Count.upper w₂ u) c ≤ t m' ∧ Q m') :
  Ops.ConditionalRunsW I W₂ τ (Ops.Stmt.link T s) ρ m M fun c m' ↦ w₂ c ≤ t m' ∧ Q m'

Full source on GitHub

Import NLAlib.Ops.Transfer.