Bit-length Kolmogorov complexity: uncomputability #
Extends AIT/KolmogorovComplexity.lean (codelen, Computes, K, K_le,
K_unbounded, K_not_computable via fixed_point₂) and AIT/KolmogorovTimeBounded.lean
(codelen' = Nat.size ∘ encode, K_bitlen, K_bitlen_eq, K_bitlen_unbounded).
Status: PROVED.
What this DOES establish #
computable_nat_size:Nat.sizeis computable. Mathlib lacks this; built fromNat.size_le : size m ≤ n ↔ m < 2^n, which makessize mthe leastnwithm < 2^n— anrfind.K_bitlen_le: any program computingxbounds its bit-length complexity by its own bit-length.setOf_K_bitlen_le_finite: only finitely manyxhaveK_bitlen x ≤ L, fromsetOf_K_le_finitethroughK_bitlen_eq.K_bitlen_not_computable: the bit-length Kolmogorov complexity (rin bits) is uncomputable — the same Kleene-fixed_point₂Berry argument asK_not_computable, now with the bit-length measurecodelen'(computable sinceNat.sizeis).Route note: a naive reduction from
K_not_computableviaK_bitlen_eq : K_bitlen = Nat.size ∘ Kdoes NOT work (Nat.sizeis not injective, soK_bitlencomputable does not giveKcomputable). We re-run the recursion-theorem argument directly instead.
What this does NOT establish (flagged) #
- Two-machine invariance (
K_U ≤ K_V + c_{U,V}) is DEFERRED with a documented obstruction. Mathlib exposes a single fixed universal machineCode.evalwith no parameterization over alternative universal machines (the classical bound needs two, one simulating the other via a constant-size interpreter). And a "complexity relative to a computable re-encodingf" restatement gives no clean ADDITIVE constant, becauseencodeCodeuses quadraticNat.pair(same pathology that blocked Berry forK, sidestepped there only by the recursion theorem): wrapping a code blows upencodesuper-linearly. A faithful version would need a secondNat.Partrecuniversal function plus a simulation theorem — a sub-project. - Does NOT reconnect
K/K_bitlento the abstractr/Kreals of the other files (separate later step). NOT the structure function.K_bitlenisNat.sizeof the least-indexK(K_bitlen_eq).
Hypotheses: standard vs added #
- Standard: bit-length
Kis uncomputable. - Added / modeling:
Computable Nat.sizeviarfind; the Berry argument reuses thefixed_point₂(recursion theorem), dodging theencodeCodequadratic-pairing blowup.
Nat.size is computable. Nat.size_le : size m ≤ n ↔ m < 2 ^ n makes size m the least n
with m < 2 ^ n, i.e. Nat.rfind (fun n => m < 2 ^ n).
The bit-length program measure codelen' = Nat.size ∘ encode is computable. A named lemma, so
the heavy computable_nat_size proof term is not re-elaborated inside K_bitlen_not_computable.
Any program computing x bounds K_bitlen x by its own bit-length.
Uncomputability of bit-length Kolmogorov complexity (r in bits). Mirrors
K_not_computable with the bit-length measure codelen', computable via
computable_nat_size.