Documentation

ShannonInfo.ChengCCC

Cheng (2026) Theorem 4: a NECESSITY (lower) bound — not a sufficiency result (ChengCCC) #

Re-checking Cheng, R. (2026), Context Channel Capacity (arXiv:2603.07415).

Cheng's Theorem 4 is the LOWER bound Fgt̄ ≥ max(0, 1 − C_ctx / H(T)) · Fgt̄_max, which makes context capacity C_ctx ≥ H(T) necessary for low forgetting (C_ctx = 0 forces Fgt̄ ≥ Fgt̄_max, i.e. catastrophic forgetting). Once C_ctx ≥ H(T) the right side vanishes, but this is the vacuous lower bound, not an upper bound of zero: reading it as "zero expected forgetting" would be a necessary-as-sufficient error, since a vanishing LOWER bound says nothing about an upper bound on forgetting.

cccLower_vacuous machine-checks exactly this: when C_ctx ≥ H(T) Cheng's Theorem-4 right-hand side is 0, so the theorem then asserts only Fgt̄ ≥ 0 — true of every learner — and provides NO upper bound on forgetting. Retention must come from a separate (conditional-regeneration) argument, not from Theorem 4.

The rigorous information-theoretic core (data-processing inequality + Fano ⟹ a misidentification lower bound) is developed in ShannonInfo/FiniteInfoTheory.lean; the informal misID ⟹ forgetting step of Cheng's proof appears here only as a named hypothesis.

noncomputable def ChengCCC.cccLower (Cctx HT Fgtmax : ℝ) :

Cheng (2026) Theorem 4 right-hand side: the lower bound on expected forgetting, max(0, 1 − C_ctx / H(T)) · Fgt̄_max.

Equations
Instances For
    theorem ChengCCC.cccLower_vacuous (Cctx HT Fgtmax : ℝ) (hHT : 0 < HT) (hsuff : HT ≤ Cctx) :
    cccLower Cctx HT Fgtmax = 0

    The necessary-not-sufficient point, machine-checked. Once C_ctx ≥ H(T) (with H(T) > 0), Cheng's Theorem-4 lower bound equals 0. So Theorem 4 then asserts only Fgt̄ ≥ 0 — vacuous — and gives NO upper bound on forgetting. Inferring "zero expected forgetting" from this vanishing would misuse a necessary condition as a sufficient one.

    The rigorous information-theoretic core (Cheng's proof, Steps 1–3) #

    Cheng's Theorem-4 proof has a rigorous core (data-processing inequality + Fano) and one informal step (misidentification ⟹ forgetting). We machine-check the core here, taking the two information-theoretic facts as named hypotheses — hDPI (data processing: I(T;θ) ≤ C_ctx) and hFano (Fano: P_e ≥ (H(T|θ) − 1)/log(K−1)) — which ShannonInfo/FiniteInfoTheory.lean discharges. hCond is the identity H(T|θ) = H(T) − I(T;θ).

    theorem ChengCCC.misid_lower_bound (HT Cctx mi condEnt Pe K : ℝ) (hK : 3 ≤ K) (hDPI : mi ≤ Cctx) (hCond : condEnt = HT - mi) (hFano : (condEnt - 1) / Real.log (K - 1) ≤ Pe) :
    (HT - Cctx - 1) / Real.log (K - 1) ≤ Pe

    Misidentification lower bound (DPI + Fano). From data processing mi ≤ C_ctx, the conditional-entropy identity condEnt = H(T) − mi, and Fano (condEnt − 1)/log(K−1) ≤ P_e, the task-misidentification probability obeys P_e ≥ (H(T) − C_ctx − 1)/log(K−1). This is the rigorous content of Cheng's Theorem 4 (Steps 1–3). K ≥ 3 makes log(K−1) > 0.

    theorem ChengCCC.forgetting_lower_bound (HT Cctx mi condEnt Pe Fgt Fgtmax K : ℝ) (hK : 3 ≤ K) (hFmax : 0 ≤ Fgtmax) (hDPI : mi ≤ Cctx) (hCond : condEnt = HT - mi) (hFano : (condEnt - 1) / Real.log (K - 1) ≤ Pe) (hConn : Pe * Fgtmax ≤ Fgt) :
    (HT - Cctx - 1) / Real.log (K - 1) * Fgtmax ≤ Fgt

    Forgetting lower bound (Cheng Theorem 4, full chain). Adding Cheng's informal Step 4 as the explicit hypothesis hConn : P_e · Fgt_max ≤ Fgt̄ (wrong-task parameters degrade accuracy to chance), the expected forgetting obeys Fgt̄ ≥ ((H(T) − C_ctx − 1)/log(K−1)) · Fgt_max — a lower bound. Surfacing hConn makes explicit which part of Cheng's Theorem 4 is rigorous (the information-theoretic core) and which is a modeling assumption.

    Fully discharged misidentification bound #

    misid_lower_bound above takes the three information-theoretic facts (DPI, the conditional-entropy identity, Fano) as named hypotheses. cheng_misid_bound_discharged removes all three: each is now supplied by ShannonInfo/FiniteInfoTheory.lean for the Markov chain T → c → θ. The only explicit hypotheses left are the modelling setup — a joint pmf ν with the Markov condition, the task decoder g, the capacity bound hcap : I(c;θ) ≤ C_ctx, and K = |T| ≥ 3. (Cheng's informal misID ⟹ forgetting step is not involved here; it only enters forgetting_lower_bound.)

    theorem ChengCCC.cheng_misid_bound_discharged {T : Type u_1} {c : Type u_2} {θ : Type u_3} [Fintype T] [Fintype c] [Fintype θ] [DecidableEq T] (ν : T → c → θ → ℝ) (g : θ → T) (hnn : ∀ (t : T) (y : c) (z : θ), 0 ≤ ν t y z) (hsum : ∑ t : T, ∑ y : c, ∑ z : θ, ν t y z = 1) (hM : FiniteInfoTheory.MarkovCI ν) (Cctx : ℝ) (hcap : FiniteInfoTheory.mutualInfo (FiniteInfoTheory.margYZ ν) ≤ Cctx) (hK : 3 ≤ Fintype.card T) :

    Misidentification bound with the information-theoretic hypotheses discharged. For the Markov chain T → c → θ (hM : MarkovCI ν) with task decoder g : θ → T and context-channel-capacity bound hcap : I(c;θ) ≤ C_ctx, the task-misidentification probability Pe obeys (H(T) − C_ctx − 1)/log(K−1) ≤ Pe (K = |T| ≥ 3). DPI (data_processing'), the identity I(T;θ) = H(T) − H(T|θ) (mutualInfo_eq_sub_condEntropy) and Fano (fano') are all machine-proved, not assumed.

    theorem ChengCCC.cheng_forgetting_bound_discharged {T : Type u_1} {c : Type u_2} {θ : Type u_3} [Fintype T] [Fintype c] [Fintype θ] [DecidableEq T] (ν : T → c → θ → ℝ) (g : θ → T) (hnn : ∀ (t : T) (y : c) (z : θ), 0 ≤ ν t y z) (hsum : ∑ t : T, ∑ y : c, ∑ z : θ, ν t y z = 1) (hM : FiniteInfoTheory.MarkovCI ν) (Cctx : ℝ) (hcap : FiniteInfoTheory.mutualInfo (FiniteInfoTheory.margYZ ν) ≤ Cctx) (hK : 3 ≤ Fintype.card T) (Fgt Fgtmax : ℝ) (hFmax : 0 ≤ Fgtmax) (hConn : (∑ t : T, ∑ z : θ, if t = g z then 0 else FiniteInfoTheory.margXZ ν t z) * Fgtmax ≤ Fgt) :

    Forgetting lower bound with the information-theoretic hypotheses discharged. The forgetting analogue of cheng_misid_bound_discharged: for the Markov chain T → c → θ (hM : MarkovCI ν) with task decoder g, capacity bound hcap : I(c;θ) ≤ C_ctx, K = |T| ≥ 3, and Cheng's informal Step-4 modelling link hConn : Pe · Fgt_max ≤ Fgt̄ (wrong-task parameters degrade accuracy to chance, with Pe the concrete task-misidentification probability), the expected forgetting obeys Fgt̄ ≥ ((H(T) − C_ctx − 1)/log(K−1)) · Fgt_max. DPI (data_processing'), the identity I(T;θ) = H(T) − H(T|θ) (mutualInfo_eq_sub_condEntropy) and Fano (fano') are all machine-proved via cheng_misid_bound_discharged, not assumed; the only explicit hypotheses left are the modelling setup (joint ν + MarkovCI, decoder g, capacity bound, K ≥ 3) plus hConn — the one genuinely informal step of Cheng's Theorem 4.