Time-bounded Kolmogorov complexity + bit-length refinement #
Extends AIT/KolmogorovComplexity.lean (codelen, Computes, K, K_le,
exists_min_code, K_unbounded, K_not_computable).
Status: PROVED. This file adds the time-bounded measure and the bit-length value-reconnection.
K_t is classical time-bounded K #
K_t below is classical time-bounded Kolmogorov complexity (Li and Vitányi §7.1): the least
program length over deterministic codes outputting a fixed x within a step budget.
What this DOES establish #
K_t: time-bounded (least-index) Kolmogorov complexity — least program length over codes outputtingxfrom input0withintevaln-steps;⊤ : ℕ∞if none halts in budgett.K_le_K_t,K_t_antitone,K_t_eventually:K ≤ K_t; antitone in the budget; andK_t = Kfor all large enough budgets (the optimal program halts in finite time).K_bitlen(= the program length in bits) withK_bitlen_eq : K_bitlen x = Nat.size (K x)— the precise reconnection to the indexK(same minimizer;Nat.sizemonotone) — andK_bitlen_unbounded.
What this does NOT establish (flagged) #
- Does NOT reconnect
K/K_t/K_bitlento the abstractr/Kreals of the other files —K_bitlenreconnects the measure to bit-length, but substituting it for such abstract variables is a separate later step. K_tuses the indexcodelen(consistent withK), so it inheritsK's index-vs-bit-length caveat; a description length is in bits. A bit-length time-bounded versionNat.size ∘ K_tis DEFERRED (alongside the other bit-length items).K_bitlen_not_computableis DEFERRED — it needsComputable Nat.size, absent from Mathlib (would need aPrimrec Nat.sizedetour);K_not_computablealready proves the uncomputability headline, andK_bitlen = Nat.size ∘ Kdiffers only by a computable monotone map. Two-machine invariance is also DEFERRED.- NOT the structure function.
Hypotheses: standard vs added #
- Standard: time-bounded complexity + monotonicity/limit; bit-length
r;= ∞on empty budget. - Added / modeling:
t=evalnstep-count as the budget;ℕ∞/⊤rendering; least-index still underliesK(bit-length isNat.sizeof it).
Code-lengths of programs outputting x from input 0 within t steps (evaln).
Equations
- KolmogorovComplexity.tCodelens t x = {l : ℕ | ∃ (c : Nat.Partrec.Code), x ∈ Nat.Partrec.Code.evaln t c 0 ∧ KolmogorovComplexity.codelen c = l}
Instances For
Time-bounded (least-index) Kolmogorov complexity: least program length over
codes that output x from input 0 within t evaln-steps; ⊤ if none halts in budget t.
Equations
Instances For
Bit-length program measure: Nat.size (encode c) — the program length in bits,
vs codelen = encode c (index).
Equations
Instances For
Bit-length Kolmogorov complexity.
Equations
- KolmogorovComplexity.K_bitlen x = sInf {l : ℕ | ∃ (c : Nat.Partrec.Code), KolmogorovComplexity.Computes c x ∧ KolmogorovComplexity.codelen' c = l}