Counting bounds on KB and K_bitlen, and KB's non-computability #
The finiteness lemmas setOf_K_le_finite (AIT/KolmogorovComplexity.lean) and
setOf_KB_le_finite (AIT/PrefixMachine.lean) carry no count. This module supplies the counts,
and the non-computability of KB, the one property of the machine that kraft_KB and the rest of
AIT/PrefixMachine.lean leave out, unlike K and KP.
What this establishes #
Three independent results, none consuming another.
finset_card_KB_le,card_KB_le— the counting bound onKB: a description budget ofLbits describes at most2 ^ Lnaturals, directly fromkraft_KB's semimeasure property (AIT/PrefixMachine.lean) — every member of the budgeted set contributes at least2 ^ (-L)to a series bounded by one. TheFinsetform is the content (no finiteness hypothesis can make it vacuous); thencardform is its corollary throughsetOf_KB_le_finite.finset_card_K_bitlen_le,card_K_bitlen_le— the same count onK_bitlen, at the same constant2 ^ L, for an unrelated reason: no Kraft inequality is proved forK_bitlen(whether∑ 2^{-K_bitlen}converges is not settled), so the bound comes from injectivity instead —K_bitlen s ≤ LisK s < 2 ^ L(K_bitlen_eq,Nat.size_le), andK_injectivecaps the values below2 ^ Lat that many.KB_not_computable—KBis not computable. The Berry argument runs through the already-proved partial-map invarianceKB_partial_map_lerather than through a Kleene fixed point: no totality step is needed, unlikeKP_not_computable's route throughfixed_point₂overCode.eval, an evaluationpfydoes not share.
What this does NOT establish (flagged) #
- The
Finsetcounting bounds are tight at2 ^ Land no sharper: a flat semimeasure on exactly2 ^ Lpoints at mass one attains it, so< 2 ^ Lis not available from the Kraft hypothesis alone.KB's own totality on the infinite domainℕwould buy a strict bound at the cost of naming one point outside the set and its positive weight; that sharpening is not commissioned here. - Nothing here relates
KBandK_bitlento each other beyond the two counts landing on the same constant by unrelated routes (prefix-freeness against index injectivity);AIT/PrefixModelCost.lean's boundary on the two currencies is unchanged.
KB is unbounded #
KB is unbounded: incompressible numbers of every prefix complexity exist — the twin of
KolmogorovComplexity.K_unbounded at KB in place of K.
The counting bound on KB #
The counting bound on KB, Finset form: at most 2 ^ L naturals are describable within
a budget of L bits. Each member of F contributes at least 2 ^ (-L) to the Kraft series
(pow_le_pow_of_le_one), so F.card copies of that weight sit below the series' partial sum over
F (Finset.sum_le_sum), below the full series (Summable.sum_le_tsum, at
summable_two_pow_neg_KB), below one (kraft_KB) — the cast arithmetic closing exactly as
CodingTheoremWeak.card_exceeds_lt's does.
The counting bound on KB, ncard form: finset_card_KB_le's corollary at the finiteness
setOf_KB_le_finite supplies, over its own Finite.toFinset. Stated separately from the Finset
form because Set.ncard of an infinite set is 0, so this sentence alone could not fail; the
Finset form is what a reader needs to see the bound bite.
The same count on K_bitlen, by injectivity #
The counting bound on K_bitlen, Finset form: at most 2 ^ L naturals have bit-length
complexity at most L. No Kraft inequality is proved here (whether ∑ 2^{-K_bitlen} converges is
not settled); the bound is K's injectivity into the indices below 2 ^ L instead —
K_bitlen s ≤ L unfolds to K s < 2 ^ L (K_bitlen_eq, Nat.size_le), so F.image K sits
inside Finset.range (2 ^ L) and has F's own cardinality (Finset.card_image_of_injOn, at
K_injective).
The counting bound on K_bitlen, ncard form: finset_card_K_bitlen_le's corollary at
the finiteness of {s | K_bitlen s ≤ L} (setOf_K_bitlen_le_finite), the same shape as
card_KB_le.
KB is not computable #
KB is not computable. Were it computable, the partial map f n := Nat.rfind (fun s => decide (n < KB s)) would be Partrec (the search predicate is computable in (n, s)); at each
n, KB_unbounded puts a witness in f n's domain (no totality step, unlike KP_not_computable's
route through a Kleene fixed point over Code.eval), so some w ∈ f n has n < KB w
(Nat.rfind_spec); KB's own partial-map invariance (KB_partial_map_le) then gives `KB w ≤ KB n
- c
, andKB_le_two_mul_sizegivesKB n ≤ 2 * Nat.size n + c', son < 2 * Nat.size n + c' + cat everyn— contradicted atn := 2 ^ (c + c' + 4), whereNat.size n = c + c' + 5(Nat.size_pow) reduces the claim to3 * (c + c') + 10 ≤ 16 * 2 ^ (c + c'), true at every value ofc + c'(Nat.lt_two_pow_self`).