§7.1 (i), Appendix C: weakly typical sequence count
OpenQAlgorithms.Papers.Independent.Advance50.P29.typicalSequenceCountLet be a probability distribution on a finite nonempty alphabet : and . Define , with . For , set and . For every and positive integer ,
This controls the size of the weakly typical set; zero-probability words cannot belong to its positive probability window.
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P29
noncomputable section
namespace QAlgorithms.Papers.Independent.Advance50.P29
open QAlgorithms MeasureTheory Filter
open QAlgorithms.Papers.Independent.Information100.P22
(densityPurification coherentInformation singleUseInformation mixed)
open QAlgorithms.Papers.Independent.Information100.P27 (shannon)
open QAlgorithms.Papers.Independent.Dependency50.P48 (wordProbability)
open QAlgorithms.Papers.Independent.Bridge50.P43 (tensorDensity)
open scoped Matrix ComplexConjugate ComplexOrder Topology
attribute [local instance] Classical.propDecidable
variable {I J E L : Type} [Fintype I] [DecidableEq I]
variable [Fintype J] [DecidableEq J] [Fintype E] [DecidableEq E]
variable [Fintype L] [DecidableEq L]
/-- PDF pp.15,21, §7.1(i): strict cardinality bound for the closed weak-typicality window. -/
theorem typicalSequenceCount [Nonempty L] (P : L → ℝ)
(hP : ∀ i, 0 ≤ P i) (hsum : ∑ i, P i = 1)
(epsilon : ℝ) (he : 0 < epsilon) (n : ℕ) (hn : 0 < n) :
((weakTypicalWords P epsilon n).card : ℝ) <
(2 : ℝ) ^ ((n : ℝ) * (shannon P + epsilon)) := by sorry
end QAlgorithms.Papers.Independent.Advance50.P29
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let be a nonempty finite index type with decidable equality, and let satisfy for every and . Let be real and be a natural number. Define
and let
Then , with a strict inequality. Both defining bounds for membership are inclusive. Zero probabilities are allowed, with ; any word containing such a symbol has probability zero and fails the positive lower membership bound. The declaration excludes .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.