The data rate of the additive complexity KE is bounded away from one bit per bit #
Provenance: [Discovery] §1.1 (the 2^{−K} prior over a fixed reference machine). Extends
CodeLayer/AdditiveComplexity.lean (E, elen, KE, minCode, card_KE_le) with a
node-counted
refinement of the counting bound.
What this establishes #
nodes: the AST-node count of aCode, withelen c = 3 * nodes c(elen_eq_three_mul_nodes) — the serialization spends exactly three bits per node.codesOfNodes n: the finite set of codes with exactlynnodes (mem_codesOfNodes).card_codesOfNodes_le: the counted codes grow strictly slower than the8ⁿthree bits could carry —10 · 20ⁿ · |codesOfNodes n| ≤ 11 · 159ⁿ, i.e. at most(11/10)·(159/20)ⁿcodes ofnnodes, against a ceiling of8ⁿ.sum_card_codesOfNodes_le: the same bound, summed over all node-counts up toN.card_KE_le_nodes: the counting bound onKE, reindexed through node-counts rather than raw bit-strings.KE_data_rate: the data rate ofKEis bounded away from one bit per bit — for every constantc, somexhas500 · KE x > 501 · Nat.size x + 500 · c. Consequently no constantc_μmakesKE x ≤ −log₂ μ(x) + c_μfor everyxat the computable measureμ(x) := 2^{−⌈(1 + 1/500)·Nat.size x⌉ − 1}(whose total mass is under one) —KEis not an ideal code even for its own computable measures.
Why node counts, not raw bit-strings #
card_KE_le (AdditiveComplexity.lean) bounds {x | KE x ≤ L} by the bit-strings of length at
most L, of which there are < 2^(L+1) — the bound a general prefix code would need. E's
serialization is tighter than that: its opcode alternates a 1-in-8 fixed choice among a 3-bit
budget with a binary/leaf structural constraint, so the codes of n nodes number only
Θ((1 + 4√3)ⁿ) ≈ Θ(7.928ⁿ), not Θ(8ⁿ). This file makes that gap a machine-checked bound and
draws the consequence for KE's data rate.
Hypotheses: paper-stated vs added #
- Paper-stated / faithful: none — this is a boundary result about the artifact's own carrier
KE, not a claim any paper currently makes. - Added / modeling: the fixed serialization
Eand its opcode budget (inherited fromAdditiveComplexity.lean).
Codes carry decidable equality (via their Denumerable encoding), needed to form Finset Codes below.
The number of AST nodes of a code: one per constructor application.
Equations
- ReflectiveSubsystems.nodes Nat.Partrec.Code.zero = 1
- ReflectiveSubsystems.nodes Nat.Partrec.Code.succ = 1
- ReflectiveSubsystems.nodes Nat.Partrec.Code.left = 1
- ReflectiveSubsystems.nodes Nat.Partrec.Code.right = 1
- ReflectiveSubsystems.nodes (cf.pair cg) = 1 + ReflectiveSubsystems.nodes cf + ReflectiveSubsystems.nodes cg
- ReflectiveSubsystems.nodes (cf.comp cg) = 1 + ReflectiveSubsystems.nodes cf + ReflectiveSubsystems.nodes cg
- ReflectiveSubsystems.nodes (cf.prec cg) = 1 + ReflectiveSubsystems.nodes cf + ReflectiveSubsystems.nodes cg
- ReflectiveSubsystems.nodes cf.rfind' = 1 + ReflectiveSubsystems.nodes cf
Instances For
E spends exactly three bits per AST node.
Counting codes by node count #
codesOfNodes n enumerates the codes with exactly n nodes. It is built with an explicit fuel
parameter (codesOfNodesFuel) so the recursive calls are on a strictly smaller first argument —
plain structural recursion, avoiding a well-founded-recursion obligation over a Finset.biUnion
closure that carries no bound on its argument. fuel = n always suffices
(mem_codesOfNodesFuel), which is all codesOfNodes ever needs.
Codes of exactly n AST nodes, computed with fuel levels of recursion depth; correct once
fuel ≥ n (mem_codesOfNodesFuel).
Equations
- One or more equations did not get rendered due to their size.
- ReflectiveSubsystems.codesOfNodesFuel 0 x✝ = ∅
- ReflectiveSubsystems.codesOfNodesFuel n.succ 0 = ∅
- ReflectiveSubsystems.codesOfNodesFuel n.succ 1 = {Nat.Partrec.Code.zero, Nat.Partrec.Code.succ, Nat.Partrec.Code.left, Nat.Partrec.Code.right}
Instances For
Codes with exactly n AST nodes. n fuel levels always suffice (mem_codesOfNodes).
Instances For
codesOfNodes finds every code at its own node count.
The growth bound #
A truncated-Cauchy-square inequality (sum_antidiagonal_sq_le) turns the recursive cardinality
bound into a bound on the weighted partial sums ∑ (codesOfNodes n).card · zⁿ, uniformly ≤ 11/10
at z = 20/159; the pointwise and tail-sum growth bounds follow.
The growth bound. At most (11/10)·(159/20)ⁿ codes have n nodes — the singularity of
the counting generating function is at 1 + 4√3 ≈ 7.928, below the 8 the three-bit-per-node
budget could carry.
The tail-sum growth bound: the same rate, summed over every node count up to N.
The counting bound on KE, reindexed by node counts #
The counting bound on KE, counted by node budget rather than by raw bit-strings. Each
x with KE x ≤ L has its own shortest program (minCode, injective by minCode_E_injective),
and that program has at most L / 3 nodes (elen = 3 · nodes).
The data rate of KE #
The data rate of KE is bounded away from one bit per bit. No constant c makes
KE x ≤ (1 + 1/500) · Nat.size x + c for every x. Consequently no constant makes KE an ideal
code for the computable measure μ_ε(x) := 2^{−⌈(1 + 1/500) · Nat.size x⌉ − 1}, whose total mass
is under one.