Documentation

ReflectiveSubsystems.MDLDominance

Static MDL dominance ([Discovery], Theorem 2.1 / Sub-problem A) #

Provenance: [Discovery], §1.2 (regime constants C1–C3), §2.1 (the theorem), §2.2 (its proof: eq. (1) rule cost, eq. (2) table cost, Step 3 subtraction), §2.3 (structure-function connection). Reuses ReflectiveSubsystems.Kmin (the §2.2 model cost r + 2 log r + c₃) from the Cor 2.2 warm-up.

Status: PROVED as pure real-arithmetic statements. This is the arithmetic core of Sub-problem A only; the two coding bounds it takes as named quantities (Lrule, Ltable) are proved separately, over concrete binary codes, in ReflectiveSubsystems/MDLCoding.lean — see below.

What this DOES establish #

What this does NOT establish (stays in prose; no overclaiming) #

On K and the hypothesis L > K #

Theorem 2.1's hypotheses include L > K (capacity in bits). K enters only in the prose derivation of eq. (2): a K-bit table holds at most K/log|O| of the n windows, so MDL₂(lookup) ≥ K + (L − K) = L, and L > K is what makes the table unable to memorize all n windows. Since the Lean arithmetic takes Ltable = L as given (the eq. (2) lower bound), neither K nor L > K appears in the signatures — they live in the prose justification of eq. (2). We deliberately do NOT add an unused K to the statements.

Sign convention #

The paper states the rule−lookup difference as MDL₂(rule) − MDL₂(lookup) ≤ −(L − r) + O(log L) (a negative quantity). We state the equivalent lookup−rule advantage Ltable − Lrule = (L − r) − logCorr (a positive quantity). Same content, negated.

Hypotheses: paper-stated vs added/strengthened #

Real.log is the natural logarithm; constant base-change factors are absorbed into the O(1) overheads, as in the paper's "O(·) with constants traceable in principle" convention.

noncomputable def ReflectiveSubsystems.Lrule (r c₃ O n cd : ℝ) :

Rule-based two-part code length ([Discovery] §2.2 eq. (1), upper bound): the model cost Kmin r c₃ = r + 2 log r + c₃ plus the data-given-model cost log|O| + log n + cd.

Equations
Instances For
    noncomputable def ReflectiveSubsystems.Ltable (O n : ℝ) :

    Optimal lookup-table length ([Discovery] §2.2 eq. (2), lower bound): MDL₂(lookup) ≥ L, with L = n · log|O| the raw observation length of §2.1.

    Equations
    Instances For
      noncomputable def ReflectiveSubsystems.logCorr (r O n c₃ cd : ℝ) :

      The logarithmic correction term of the §2.1 statement, with log|O| kept explicit — equal to O(log L) only in the fixed-alphabet case (|O| fixed), not in general.

      Equations
      Instances For
        theorem ReflectiveSubsystems.dominance_gap_eq (r c₃ O n cd : ℝ) :
        Ltable O n - Lrule r c₃ O n cd = Ltable O n - r - logCorr r O n c₃ cd

        §2.2 Step 3 (exact form, no regime needed): the lookup-minus-rule advantage is exactly (L − r) minus the logarithmic corrections. Pure algebra — fully faithful, no strengthened constants. (Negate for the paper's rule − lookup ≤ −(L − r) + O(log L) sign convention.)

        theorem ReflectiveSubsystems.mdl_dominance (r c₃ O n cd : ℝ) (_hr : 3 ≤ r) (_hO : 3 ≤ O) (hn : 2 ≤ n) (_hc₃ : 0 ≤ c₃) (_hcd : 0 ≤ cd) (hReg : r + 2 * Real.log r + c₃ + cd + 1 ≤ (n - 1) * (Real.log O - 1)) :
        Lrule r c₃ O n cd < Ltable O n

        Theorem 2.1 (arithmetic core): in the regime, the rule-based two-part code is strictly shorter than the lookup table. The operative hypotheses are hn and the named regime margin hReg; _hr, _hO, _hc₃, _hcd document the regime constants (C3 buffer, alphabet ≥ 3, nonneg overheads) but are subsumed by hReg, so they are _-marked. ([Discovery] §1.2 + §2.1/§2.2.)