Documentation

AIT.StructureFunction

Kolmogorov structure function — the 45° / geometric lower bound #

After Vereshchagin–Vitányi (2004) / Shen–Uspensky–Vereshchagin. This file proves the 45° inequality on the additive carrier (AdditiveComplexity.KE, CodeLayer/AdditiveComplexity.lean). Extends CodeLayer/BinaryConstant.lean (bconst, eval_bconst, elen_bconst_le, dbl) and reuses CodeLayer/PrefixInvariance.lean's computes_comp (the compose eval law).

The slice proved (the graph "cannot drop faster than 45°") #

For a string x, the structure function h_x(α) = min { log|S| : x ∈ S, K(S) ≤ α } over finite models S ∋ x. Every model on the graph yields a two-part description of x as (model, index-in-S), so KE x ≤ α + c₁·h_x(α) + c₂ with explicit constants (KE_le_structFn / structFn_ge). The FULL sufficient-statistic identity (K(x) = α + h_x(α) + O(1) at the minimal sufficient statistic) is OUT of scope — it needs conditional complexity KE(·|·) and the symmetry of information on this carrier, neither of which is developed here.

Model encoding (fidelity-sensitive; defended) #

A model containing x is a Code c with c.eval 0 = some (Encodable.encode L) for a list L : List ℕ that is Nodup and contains x. Choices:

structFn : ℕ∞ #

structFn x α = if (modelLogCards x α).Nonempty then (Nat.sInf … : ℕ∞) else ⊤. ℕ∞ for structFn_antitone (⊤ = "no model of length ≤ α", decreasing as α grows); the if-Nonempty then Nat.sInf convention keeps the min at ℕ level so Nat.sInf_mem returns the achieving model. The singleton {x} gives nonemptiness for α ≥ KE x + c₀.

Constants (honest slopes; c₁ ≠ 1 is expected) #

Boundaries #

The list-index extractor and the singleton emitter (universality-extracted, like dbl) #

The list-index function: decode the first component of a pair to a List ℕ and index it by the second component (junk 0 out of range). extractFn (Nat.pair (encode L) i) = L.getD i 0.

Equations
Instances For

    A fixed list-index code, extracted from universality. Noncomputable; elen extractor is a fixed uncontrolled constant.

    Equations
    Instances For

      The singleton emitter: n ↦ encode [n].

      Equations
      Instances For

        A fixed singleton-emitter code, extracted from universality.

        Equations
        Instances For

          The structure function #

          The set of achievable log-cardinalities Nat.log 2 |L| over model codes of additive length ≤ α whose decoded (nodup) list contains x.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            noncomputable def StructureFunction.structFn (x α : ℕ) :

            The Kolmogorov structure function on the additive carrier. structFn x α is the minimum log-cardinality Nat.log 2 |S| over finite models S ∋ x describable by a code of additive length ≤ α; ⊤ when no such model exists.

            Equations
            Instances For

              The two-part description (per model) #

              Two-part description (per model). A model code c outputting encode L (L ∋ x) yields a description of x as (model, index): KE x ≤ elen c + c₁·log₂|L| + c₂ with c₁ = 15 + elen dbl, c₂ = 36 + elen extractor + 2·elen dbl. Assembly comp extractor (pair c (bconst i)), i = L.idxOf x: pair feeds (encode L, i) to the list-index extractor; bconst i costs O(Nat.size i) = O(log₂|L|); everything additive by E_len_comp/E_len_pair + KE_le.

              The four target theorems #

              theorem StructureFunction.structFn_antitone (x : ℕ) {α α' : ℕ} (h : α ≤ α') :
              structFn x α' ≤ structFn x α

              (a) structFn is antitone in the budget. More budget ⇒ smaller-or-equal minimal model.

              (b) Singleton collapse. For α ≥ KE x + (3 + elen mkSingleton) the singleton model {x} is available, so structFn x α = 0. Witness comp mkSingleton cx (cx the KE-optimal code for x), outputting encode [x]; log₂ |[x]| = log₂ 1 = 0.

              (c) The 45° slice. KE x ≤ α + c₁·structFn x α + c₂ (c₁ = 15 + elen dbl, c₂ = 36 + elen extractor + 2·elen dbl): every model on the structure-function graph gives a two-part description of x, so the complexity cannot drop faster than the slope c₁.

              (d) The equivalent lower-bound form. (KE x − α − c₂)/c₁ ≤ structFn x α (ℕ-subtraction / Nat.log-division safe): the structure function is bounded below by the two-part-description deficit divided by the slope. Rearrangement of KE_le_structFn.