Documentation

AIT.KraftMinimality

Prefix-complexity minimality, and the plain bit-length's additive form #

This instantiates the coding theorem, re-derives the Elias bound PrefixMachine.KB_le_two_mul_size, and treats the two additive forms between KB and K_bitlen, both open in either direction.

What this establishes #

What this does NOT establish (flagged) #

Whether ∑ x, 2⁻ᴷᵇⁱᵗˡᵉⁿ⁽ˣ⁾ converges, in either direction, is untouched; so is the second additive form K_bitlen ≤ KB + c. Nothing here compares KB_le_two_mul_size''s constant against that of PrefixMachine.KB_le_two_mul_size.

UpperSemicomputable: the integer-valued mirror of LowerSemicomputable #

Upper semicomputability of an integer-valued function: a computable stage sequence, non-increasing in the stage, everywhere at least the function, and attaining it at some stage.

Equations
Instances For

    The weight lemma: an upper-semicomputable f gives a lower-semicomputable Kraft weight #

    Minimality: prefix complexity is the least upper-semicomputable function with a summable #

    Kraft weight

    theorem PrefixMachine.KB_le_add_of_upperSemicomputable_summable {f : ℕ → ℕ} (hf : UpperSemicomputable f) (hs : Summable fun (x : ℕ) => (1 / 2) ^ f x) :
    ∃ (c : ℕ), ∀ (x : ℕ), KB x ≤ f x + c

    A joint witness to KB_le_add_of_upperSemicomputable_summable's two hypotheses, at f := fun n => 2 * Nat.size n: computable at constant stages, hence upper-semicomputable, and its Kraft weight is summable by comparison with ∑ 1/(n+1)².

    theorem PrefixMachine.summable_of_KB_le_add {f : ℕ → ℕ} {c : ℕ} (h : ∀ (x : ℕ), KB x ≤ f x + c) :
    Summable fun (x : ℕ) => (1 / 2) ^ f x
    theorem PrefixMachine.KB_le_add_iff_summable {f : ℕ → ℕ} (hf : UpperSemicomputable f) :
    (∃ (c : ℕ), ∀ (x : ℕ), KB x ≤ f x + c) ↔ Summable fun (x : ℕ) => (1 / 2) ^ f x

    The plain bit-length is upper-semicomputable #

    A second route to the Elias bound #

    theorem PrefixMachine.KB_le_two_mul_size' :
    ∃ (c : ℕ), ∀ (n : ℕ), KB n ≤ 2 * n.size + c

    A second proof of PrefixMachine.KB_le_two_mul_size, through the coding theorem's minimality in place of the Elias decoder — no comparison of the two constants is claimed.