A power-of-two bank fits inside one scheduled batch
ProvedPvsNP.ScheduledBankAlignment.exists_scheduled_power_bankcomplexity-theoryformal-verificationnumber-theory
Fix a positive batch length and a bank of size two to the h, with a batch at least twice as long as the bank. Starting at any exponent j, among powers of two with exponents j through j+h there is an address at which a whole bank fits in the batch containing that address. Batches start at integer multiples of their length.
Preamble
import Mathlib set_option autoImplicit false
Formal statement
theorem PvsNP.ScheduledBankAlignment.exists_scheduled_power_bank (batch bankExp start : ℕ)
(half : 2 * 2 ^ bankExp ≤ batch) :
∃ exponent, start ≤ exponent ∧ exponent ≤ start + bankExp ∧
(2 ^ exponent / batch) * batch ≤ 2 ^ exponent ∧
2 ^ exponent + 2 ^ bankExp ≤ (2 ^ exponent / batch) * batch + batch := by sorrySource
Alignment lemma for compact Stream-Merge packets at scheduled batch boundaries. See McKay, Murray, and Williams, https://people.csail.mit.edu/rrw/MCSP-MKTP-stoc19.pdf, Section 4 for the batched model.