The model cost on the prefix machine: KB at K_bitlen and KP #
Relates the plain bit-length complexity K_bitlen (AIT/KolmogorovTimeBounded.lean) and the
prefix complexity KP (AIT/PrefixComplexity.lean) to the universal prefix machine KB
(AIT/PrefixMachine.lean), which no other statement in the package connects.
What this establishes #
Four theorems relating KB to K_bitlen and KP — two of them over
hypotheses this module takes as given rather than proves, two unconditional corollaries
discharging every one of those hypotheses at a proved statement:
KB_le_K_bitlen_add_two_mul_size_of—KB x ≤ K_bitlen x + 2 * Nat.size (K_bitlen x) + c, from a partial-map invariance forKB(hinv, stronger than the provedPrefixMachine.KB_map_le, which covers only total computable maps) and an unabsorbed Elias bound forKB(helias, distinct from the provedPrefixMachine.KB_le_two_mul_size). The route: the mapn ↦ (Denumerable.ofNat Code n).eval 0is partial recursive (Mathlib'sCode.eval_partcomposed withComputable.ofNatand a constant);KolmogorovComplexity.exists_min_codegives, forx, a code whose index isK xand which evaluates toxat that map, viaDenumerable.ofNat_encode;hinvat that map givesKB x ≤ KB (K x) + c₁;heliasatK x, rewritten alongKolmogorovComplexity.K_bitlen_eq, gives the rest.KB_le_K_bitlen_add_two_mul_size— the first theorem'shinvandheliasdischarged at the provedPrefixMachine.KB_partial_map_leandPrefixMachine.KB_le_size_add_two_mul_size_size(AIT/PrefixInvarianceKB.lean,AIT/EliasBound.lean): unconditional.KB_le_KP_of—KB x ≤ KP x + c, fromhinvalone (nohelias): the same route toKB x ≤ KB (K x) + c₁, then the provedPrefixMachine.KB_le_two_mul_sizeatK xandPrefixComplexity.KP_eqwithNat.size's monotonicity.KB_le_KP—KB_le_KP_of'shinvdischarged at the provedPrefixMachine.KB_partial_map_le(AIT/PrefixInvarianceKB.lean):∃ c, ∀ x, KB x ≤ KP x + c, unconditionally, needing no Elias bound at all.
What this does NOT establish (flagged) #
hinvandheliasare hypotheses of the two_oftheorems only, not proved here — this module states what follows from them, nothing about their own status. Each of the two unconditional corollaries discharges every hypothesis it needs at a proved statement instead.- This is not a sharpening of
PrefixMachine.KB_le_two_mul_size: that bound andKB_le_K_bitlen_add_two_mul_size_of's pricexin different currencies (bit-length ofxagainst bit-length ofx's own complexity), and neither dominates the other everywhere. - No constant here is computed: every hypothesis's own constant is existential, and every combined constant, the unconditional corollaries' included, is a sum of those.
KB at K_bitlen. From a partial-map invariance for KB and an unabsorbed Elias bound
for KB (both hypotheses; see the module docstring), `KB x ≤ K_bitlen x + 2 * Nat.size (K_bitlen x)
- c`.
KB at K_bitlen, unconditionally. KB_le_K_bitlen_add_two_mul_size_of's hinv and
helias discharged at the proved PrefixMachine.KB_partial_map_le and
PrefixMachine.KB_le_size_add_two_mul_size_size.
KB at KP, unconditionally. KB_le_KP_of's hinv discharged at the proved
PrefixMachine.KB_partial_map_le — the partial-map invariance is exactly what this particular
corollary needs, and nothing else.