If every hypothesis has a description of length at most `maxLength`, the
ProvedPACBayesInformation.generalization_from_max_descriptionaether-catalogmachinelearning
If every hypothesis has a description of length at most maxLength, the
expected-description result yields a bound using that single maximum length.
theorem PACBayesInformation.generalization_from_max_description {Sample Hypothesis : Type*} [Fintype Sample] [Fintype Hypothesis]
(J : JointLaw Sample Hypothesis) (length : Hypothesis → ℝ)
(sampleSize : ℕ) (confidencePenalty gap maxLength : ℝ)
(hsample : 0 < sampleSize)
(hcode : ∀ s h, informationDensity J s h ≤ length h)
(hlength : ∀ h, length h ≤ maxLength)
(hPAC : gap ≤ generalizationRadius sampleSize
(mutualInformation J + confidencePenalty)) :
gap ≤ generalizationRadius sampleSize (maxLength + confidencePenalty) := by sorry
Formalization Note Transplanted verbatim from the Aether Catalog source MachineLearning/PACBayes/InformationGeneralization.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.
Preamble
-- Thm stub generated from MachineLearning/PACBayes/InformationGeneralization.lean import Mathlib import Definitions.Def_MachineLearning_PACBayes_InformationGeneralization /- Copyright (c) 2026 Harmonic. All rights reserved. Released under Apache 2.0 license. # Information-theoretic PAC-Bayes and description length This file gives a finite, discrete formalization of the bridge from mutual information to compression-based generalization bounds. A learner is represented by the joint law of its training sample and output hypothesis. Its mutual information is the expectation of the information density log (P(S,H) / (P(S) P(H))). If a code length dominates this information density pointwise, then mutual information is at most expected description length. Consequently every square-root PAC-Bayes bound expressed using mutual information is bounded by the corresponding description-length expression. The final results show that a uniformly shorter description gives a no-worse generalization guarantee. -/ open Real BigOperators Finset noncomputable section open PACBayesInformation
Formal statement
theorem PACBayesInformation.generalization_from_max_description {Sample Hypothesis : Type*} [Fintype Sample] [Fintype Hypothesis]
(J : JointLaw Sample Hypothesis) (length : Hypothesis → ℝ)
(sampleSize : ℕ) (confidencePenalty gap maxLength : ℝ)
(hsample : 0 < sampleSize)
(hcode : ∀ s h, informationDensity J s h ≤ length h)
(hlength : ∀ h, length h ≤ maxLength)
(hPAC : gap ≤ generalizationRadius sampleSize
(mutualInformation J + confidencePenalty)) :
gap ≤ generalizationRadius sampleSize (maxLength + confidencePenalty) := by sorrySource