Documentation

LeanPool.OrderMaintenance.Proof.Cost.Params

Parameters for the cost proof #

proofParams N follows docs/PROOF.md §2.9: L = max 8 (bits of N), G = 2L, T = 3L², θ = 2L², groupBudget = chunkBudget = 4. The label widths are chosen so that the label conditions hold by construction: D = 2^(halvings) and B = halvings + pushes + 2. All widths are O(L). The top structure: a = 8, s = 11, β = 64, H = ⌊L/3⌋ + 1, and reservationBudget = 8 reservation steps per insertion (M5; docs/LEAN.md §14).

L for capacity N.

Equations
Instances For

    The parameters of a core of capacity N. The label widths are the smallest the conditions allow: elementBits − 1 > UG + log₂(G + kG) and groupBits − 1 > HC + log₂ PC (GParams.push, LParams.push).

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem OrderMaintenance.Proof.pow_lt_two_pow (a b : ℕ) (h : a < 2 ^ b) (c : ℕ) :
      a * 2 ^ c < 2 ^ (c + b)

      The group-level conditions.

      theorem OrderMaintenance.Proof.costParameterQuotient_le {L : ℕ} (hL : 8 ≤ L) :
      3 * L * L / (L - 1) ≤ 3 * L + 4

      The quadratic workload divided by the minimum group size is linear in L.

      theorem OrderMaintenance.Proof.chunkParameterIndex_le {L q : ℕ} (hq : q ≤ 3 * L + 4) :
      (q + 1) / 3 + 1 ≤ L + 3

      The third-share chunk index inherits the linear workload bound.

      theorem OrderMaintenance.Proof.chunkParameterSplit_le {L k : ℕ} (hL : 8 ≤ L) (hk : k ≤ L + 3) :
      (3 * L * L + 2 * k) / (L - 1) ≤ 3 * L + 7

      The split workload remains linear after adding the two chunk-index contributions.

      The chunk-level conditions: c_max ≤ θ.

      The group-label conditions (Lemma C3, in its coarser form).