NLA-lib Explorer

NLAlib.Ops.clog_halves_lt

Library · theorem

The halves of a block of length n ≥ 2 have ⌈log₂⌉ one less than the block.

NLAlib.Ops.clog_halves_lt {n k : ℕ} (h2 : 2 ≤ n) (hk : Nat.clog 2 n < k + 1) :
  Nat.clog 2 (n / 2) < k ∧ Nat.clog 2 (n - n / 2) < k

Full source on GitHub

Import NLAlib.Ops.Blas.Sum.