Proof of Lemma A.13, p. 73 — chain rule D_KL(Q ∥ P) = E_Q[Σᵢ D_KL(Q⁽ⁱ⁾(· | X₁:ᵢ₋₁) ∥ P⁽ⁱ⁾(· | X₁:ᵢ₋₁))] for sequential laws
ProvedStatComplexityDM.HellingerChain.kl_chain_ruleLet be finite sets and let and be families of sequential kernels, a probability distribution on depending only on the prefix . Let and be the laws of under and . Then, with taking values in ,
Here if is absolutely continuous with respect to , and otherwise.
The proof of Lemma A.13 uses this identity in both of its parts: for Term I of (97) with the mixture kernels in place of , and for (98) with the roles of and exchanged.
Formalization Note Finite alphabets. The expectation is the sum over full sequences of times the inner sum, computed in with , so a sequence of -probability zero contributes nothing even if a conditional divergence along it is infinite. The platform's measure-theoretic chain rule for KL divergence uses Markov kernels on measurable spaces, a different representation; this is the finite sequential form.
import Mathlib import Definitions.Def_FoundationsRL_GeneralDM_Divergences import Definitions.Def_StatComplexityDM_HellingerChain_SeqLaw
namespace StatComplexityDM.HellingerChain
open FoundationsRL.GeneralDM
/-- The chain rule for KL divergence used in the proof of Lemma A.13 (arXiv:2112.13487v3,
App. A.2, p. 73, Term I; p. 75), finite alphabets: for sequential laws,
`D_KL(Q ∥ P) = E_Q[Σ_{i=1}^n D_KL(Q^{(i)}(· | X_{1:i−1}) ∥ P^{(i)}(· | X_{1:i−1}))]`,
both sides in `[0, ∞]`. The expectation weights each sequence by `Q(x)` as an extended
nonnegative real, so a sequence of `Q`-probability zero contributes `0` even when a
conditional divergence along it is `+∞`. -/
theorem kl_chain_rule {n : ℕ} {X : Fin n → Type*} [∀ i, Fintype (X i)]
[∀ i, DecidableEq (X i)]
(P Q : (i : Fin n) → ((j : Fin n) → X j) → X i → ℝ)
(hP : IsSeqKernel P) (hQ : IsSeqKernel Q) :
klDivDiscrete (seqLaw Q) (seqLaw P) =
∑ x : (j : Fin n) → X j,
ENNReal.ofReal (seqLaw Q x) * ∑ i, klDivDiscrete (Q i x) (P i x) := by sorry
end StatComplexityDM.HellingerChain
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.