Documentation

AIT.PrefixPairKB

KB's subadditivity on pairs #

The pairing half of the universal-machine description, over the prefix complexity KB of AIT/PrefixMachine.lean and the universal prefix machine univPrefix of AIT/PrefixInvarianceKB.lean.

What this establishes #

What this does NOT establish (flagged) #

The split-point search, primitive-recursively #

The split-point search, as a value: Nat.rfind reduces to Nat.find #

The machine, as a code #

The pairing machine, as a code. Searches its input, read as bits, for the one point where it splits into a description for one value followed by a description for another, each read through univPrefix.

Equations
Instances For

    The machine's own halting domain, read as bit-strings, is prefix-free #

    pairMachine's own halting domain, read as bit-strings, is prefix-free. Two accepted inputs decompose (pairMachine_decomp) into two halves each in univPrefix's own domain; a prefix relation between the whole inputs peels (peel, over univPrefix's domain, prefix-free by prefixFree_univPrefix_dom) to a matching first half and then — read again through prefixFree_univPrefix_dom — a matching second half.

    KB's subadditivity on pairs #

    theorem PrefixMachine.KB_pair_le :
    ∃ (c : ℕ), ∀ (x y : ℕ), KB (Nat.pair x y) ≤ KB x + KB y + c

    KB's subadditivity on pairs. Take the KB-optimal descriptions (d₁, q₁) for x and (d₂, q₂) for y; each converges through univPrefix (univPrefix_spec), and E d₂ is never empty (E_ne_nil), so the concatenation's own split point (E d₁ ++ q₁).length is strictly below its length. The split-point search finds SOME point satisfying the predicate — Nat.find's own witness — and since univPrefix's domain is prefix-free, that point coincides with the genuine split (both are .take-prefixes of the same list, comparable, hence equal, hence equal-length by min), so both univPrefix.eval calls resolve exactly as intended and pairMachine outputs Nat.pair x y on the concatenated description.