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:
List ℕ, notFinset ℕ. Building the universality-extracted extractor needsPrimcodableand the list-computability API (Primrec.list_getD,decode,encode), all present forList ℕ;Primcodable (Finset ℕ)computability is not readily available. RequiringL.NodupmakesL.lengththe genuine cardinality of the underlying set, so "cardinality is of the decoded object".- log-cardinality
= Nat.log 2 L.length(⌊log₂|S|⌋). The⌊⌋-vs-⌈⌉/real-loggap isO(1), absorbed intoc₂(the index needsNat.size i ≤ Nat.log 2 L.length + 1bits). - Extraction is the
nth ∘ (c, bconst i)-shaped assemblycomp extractor (pair c (bconst i))withi = L.idxOf x, all composition additive byKE_comp_le.extractor(list-index) andmkSingleton(n ↦ encode [n]) are fixed codes extracted from universality (likedbl); theirelenare fixed uncontrolled constants.
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) #
c₀ = 3 + elen mkSingleton— cost of wrapping thex-program into a singleton-list emitter.c₁ = 15 + elen dbl(= κ) — the per-bit cost of the binary index constantbconst; NOT1.c₂ = 36 + elen extractor + 2·elen dbl— extractor + twopair/compopcodes + thebconstadditive slack. The classicalO(log)slack absorbs any fixedc₁,c₂.
Boundaries #
- Full V&V identity / minimal sufficient statistic — needs conditional
KE(·|·)and the symmetry of information on this carrier; neither is developed here. - Evaln-budgeted version — the
evaln-budget wall applies identically (eval-level only).
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
- StructureFunction.extractFn p = ((Encodable.decode (Nat.unpair p).1).getD []).getD (Nat.unpair p).2 0
Instances For
A fixed list-index code, extracted from universality. Noncomputable; elen extractor is a fixed
uncontrolled constant.
Instances For
The singleton emitter: n ↦ encode [n].
Equations
Instances For
A fixed singleton-emitter code, extracted from universality.
Instances For
The structure function #
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
- StructureFunction.structFn x α = if (StructureFunction.modelLogCards x α).Nonempty then ↑(sInf (StructureFunction.modelLogCards x α)) else ⊤
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 #
(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.