Documentation

LeanPool.OrderMaintenance.Proof.Top.Setup

M5: the cost proof's assumptions for the proof parameters (CostSetup) #

The game has n_f = 1 + 2⌊N/(θ + 1 − c_max)⌋ counters and runs rounds of length R_f = ⌊J/reservationBudget⌋ + 1, where J = 13H + 2 bounds a top-structure job.

The game's counter count.

Equations
Instances For

    The chunks have room: θ + 1 − c_max ≥ 8.

    theorem OrderMaintenance.Proof.Top.topJ_eq (P : Model.Params) (hs : P.s = 11) :
    topJ P = 13 * P.H + 2
    theorem OrderMaintenance.Proof.Top.nf_lt (N : ℕ) :
    nfP (proofParams N) - 1 < 2 ^ (pL N - 2)

    The game's counters, beyond the first, are fewer than 2^(L-2).

    H_m + 1 ≤ L for the game's counters.

    I5 for the proof parameters.

    The tree holds the chunks.

    theorem OrderMaintenance.Proof.Top.prepB_proof (N N' : ℕ) (h : N' ≤ 4 * N) :

    The preparation budget: H(N') + 1 ≤ L(N) + 2 for N' ≤ 4N.

    theorem OrderMaintenance.Proof.Top.pow_ge_add (m : ℕ) (hm : 7 ≤ m) :
    m + 6 ≤ 2 ^ (m - 2)
    theorem OrderMaintenance.Proof.Top.small_proof (N : ℕ) (h : 64 ≤ N) :
    (proofParams N).L + 6 ≤ N / 2

    Small capacities: L + 6 ≤ N/2 for N ≥ 64.

    The core's correctness conditions for the proof parameters.

    The cost proof's assumptions hold for the proof parameters.

    Theorem A for the proof parameters (Level F): the structure never fails and answers as the specification.

    The wrapper's cost theorem for the proof parameters (Level F), with no assumptions left: the cost invariant holds initially and after every valid operation, so every core insertion takes no FALLBACK and a bounded amount of background work.