KB's invariance under computable maps #
The universal-machine invariance, over the prefix complexity KB of AIT/PrefixMachine.lean in
place of the additive measure KE that CodeLayer/PrefixInvariance.lean already carries.
What this establishes #
univPrefix,univPrefix_eval: the universal prefix machine, as aCode, extracted from universality overEParserSpec's concrete witnessAdditiveComplexity.parseE— run a description's serialized machine and trailing argument throughPrefixMachine.pfy.univPrefix_spec:univPrefixreproducespfy don any serialized-machine-plus-argument descriptionE d ++ q.prefixFree_univPrefix_dom:univPrefix's own halting domain, read as bit-strings, is prefix-free — the same argumentKolmogorovComplexity.chaitin_bound_KB_ofmakes for its own self-referential machine, here forunivPrefixalone.KB_partial_map_le—KB's invariance under PARTIAL computable maps: forf : ℕ →. ℕwithhf : Partrec f,∃ c, ∀ x y, y ∈ f x → KB y ≤ KB x + c.Nat.Partrec.Code.exists_codealready gives a codecfwithcf.eval = foutright, so no totality step is needed before composingcfwithunivPrefix: the composed machine's halting domain is contained inunivPrefix's, hence prefix-free too, sopfyreproduces itsevalexactly andPrefixMachine.KB_leapplies directly.KB_map_le—KB's invariance under (total) computable maps, now a corollary ofKB_partial_map_leatf's total-to-partial coercion: for a computablef : ℕ → ℕ,∃ c, ∀ x, KB (f x) ≤ KB x + c.
What this does NOT establish (flagged) #
- The constant
cis uniform infonly through the fixed codeunivPrefix; it still depends onf's own codecf(elen cf), exactly as any two-machine invariance constant must — for bothKB_partial_map_leandKB_map_le.
The universal prefix machine, as a code #
The universal prefix machine's simulation step is partial recursive.
The universal prefix machine, as a code. Parses a description's serialized machine d
and trailing argument q off any input (read as bits), then runs d on q through pfy.
Instances For
univPrefix reproduces pfy d on any serialized-machine-plus-argument description
E d ++ q.
univPrefix's own halting domain, read as bit-strings, is prefix-free. Two accepted
inputs decompose (univPrefix_decomp) to serialized machines and arguments; a prefix relation
between them forces the same machine (E_append_inj) and then the same argument
(pfy_prefixFree).
KB's invariance under computable maps #
KB's invariance under partial computable maps. Applying a Partrec partial f to any
x, y with y ∈ f x costs only f's own code's length plus univPrefix's, plus O(1):
KB y ≤ KB x + c. exists_code gives a code cf with cf.eval = f outright — no totality step
is needed, unlike KB_map_le's original route through a total f. Take the KB-optimal
description (d, q) for x (exists_min_KB) and compose cf with univPrefix: comp cf univPrefix outputs y on E d ++ q's bits (univPrefix_spec, then
CodeEvalLaws.eval_comp_some), and its domain is prefix-free (prefixFree_comp_univPrefix_dom,
a subset of univPrefix's own), so pfy reproduces it exactly and KB_le applies.
KB's invariance under computable maps, a corollary of KB_partial_map_le at f's
total-to-partial coercion (Part.mem_some witnesses f x ∈ (↑f) x).