Documentation

LeanPool.OrderMaintenance.Proof.Word.Defs

Theorem W (word size): definitions #

Groundwork for the word-size theorem (docs/WORD.md). Nothing here is used by Theorems A and B.

Bool and St fields are not constrained: the machine encodes them as 0–3. Side likewise (0/1).

Stored values below 2^K #

An element's fields, except the handle h.

Equations
Instances For

    Every numerical field stored in a group fits below the word bound.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      Every numerical field stored in a chunk fits below the word bound.

      Equations
      Instances For

        A node's numbers, including the entries and labels of its table, its children, the tables holding it, and the entries of its side map.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          The three chunk handles and program counter of a job fit below the word bound.

          Equations
          Instances For

            All numerical preparation fields and path entries fit below the word bound.

            Equations
            Instances For

              Every concrete parameter fits below the word bound.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For

                Every entry of a number array.

                Equations
                Instances For

                  Every value stored in the core is below 2^K, handles excepted.

                  Instances For

                    The wrapper's values: both cores below 2^K; element indices below 2^K; the handle of every element, the live count, the handle counter and the rebuild counter at most the number of operations n (the handle map arrays are indexed by handles, so their capacity is nextHandle plus a core capacity, WEnc.roomC).

                    Instances For

                      Defaults #

                      theorem OrderMaintenance.Proof.Word.getX_of {α : Type} [Inhabited α] {p : α → Prop} {a : Array α} (hd : p default) (h : ∀ x ∈ a, p x) (i : ℕ) :
                      p (a.getX i)

                      getX of an array whose elements all satisfy p, where the default does too.

                      The candidate bound #

                      The candidate word size: 64·L bits.

                      Equations
                      Instances For
                        theorem OrderMaintenance.Proof.Word.pow_ge_mul (m : ℕ) (hm : 8 ≤ m) :
                        32 * m ≤ 2 ^ m

                        N < 2^L.

                        The group-label width: HC ≤ 30L + 64 and groupBits ≤ 31L + 67 ≤ 40L (L ≥ 8).

                        The proof parameters lie below the candidate bound, with room for the intermediate values: elementBits + 1, groupBits + 1 and (H + 2)·β (a digit shifted past the top table) are at most wK, and 2^UG, 2^HC (the label steps) are below 2^wK.

                        theorem OrderMaintenance.Proof.Word.lt_pow_mono {x m K : ℕ} (h : x < 2 ^ m) (hm : m ≤ K) :
                        x < 2 ^ K

                        x < 2^m and m ≤ K give x < 2^K.

                        The parameters themselves are below 2^wK.

                        The initial core #

                        theorem OrderMaintenance.Proof.Word.initState_wB {K : ℕ} {P : Model.Params} (hP : ParamsB K P) (hBe : P.elementBits ≤ K) (hBg : P.groupBits ≤ K) (hK : 1 ≤ K) :

                        The fresh core's lists respect any bound that the parameters and the two centre labels respect.