InformationTheory.Shannon.RateDistortion.Achievability
Rate-distortion achievability — structure and pmf-direct R(D) #
The structural layer for the achievability half of Cover–Thomas: block lossy codes and the pmf-direct rate-distortion function with its compactness / continuity / minimizer-existence apparatus.
Main definitions #
DistortionFn α β— a single-symbol distortionα → β → ℝ≥0.blockDistortion d n x y— the block distortion(1/n) ∑ d(xᵢ, yᵢ).LossyCode M n α β— a block lossy code (deterministic encoder + decoder).LossyCode.expectedBlockDistortion— its expected block distortion.expectedDistortionPmf d q— pmf-form expected distortion∑ q(a,b) · d(a,b).marginalFst/marginalSnd— the marginals of a joint pmf.RDConstraint P_X d D— the feasible joint-pmf set.mutualInfoPmf q— mutual information in entropy formH(fst) + H(snd) − H(q).rateDistortionFunctionPmf P_X d D— the pmf-direct rate-distortion function.
Main statements #
RDConstraint_isClosed/RDConstraint_isCompact— closedness and compactness of the feasible set.rateDistortionFunctionPmf_attained— the infimum is attained on a non-empty feasible set.
Implementation notes #
- Mutual information is defined in the
negMulLogentropy formH(X) + H(Y) − H(X, Y): it is a finite sum ofReal.negMulLog, hence continuous on all ofα × β → ℝ(Real.continuous_negMulLog). The KL / log-ratio form is avoided because its continuity breaks at zero marginals. RDConstraintis a subset ofSet (α × β → ℝ): an affine constraint on the standard simplex ofα × β, closed and convex, soIsCompact.exists_isMinOnapplies directly.
Distortion function #
InformationTheory.Shannon.DistortionFn
sourceA single-symbol distortion function d : α → β → ℝ≥0.
Equations
- InformationTheory.Shannon.DistortionFn α β = (α → β → NNReal)
Instances For
Used by
InformationTheory.Shannon.blockDistortion
sourceThe block distortion dⁿ((xᵢ), (yᵢ)) := (1/n) ∑ d(xᵢ, yᵢ), valued in ℝ.
Equations
- InformationTheory.Shannon.blockDistortion d n x y = 1 / ↑n * ∑ i : Fin n, ↑(d (x i) (y i))
Instances For
Used by
InformationTheory.Shannon.blockDistortion_nonneg
sourceUsed by
Block lossy code #
InformationTheory.Shannon.LossyCode
sourceA block lossy code of length n with M codewords over source alphabet α
and reconstruction alphabet β: a deterministic encoder (Fin n → α) → Fin M and
decoder Fin M → (Fin n → β).
Instances For
Used by
InformationTheory.Shannon.LossyCode.expectedBlockDistortion
sourceExpected block distortion of a lossy code under an i.i.d. source P_X on α.
Equations
- c.expectedBlockDistortion P_X d = ∫ (x : Fin n → α), InformationTheory.Shannon.blockDistortion d n x (c.decoder (c.encoder x)) ∂MeasureTheory.Measure.pi fun (x : Fin n) => P_X
Instances For
Used by
InformationTheory.Shannon.LossyCode.expectedBlockDistortion_nonneg
sourceExpected block distortion is non-negative.
Used by
pmf-form expected distortion, marginals, and feasible set #
InformationTheory.Shannon.expectedDistortionPmf
sourcepmf-form expected distortion ∑ a, b, q(a,b) · d(a,b) for a joint pmf
q : α × β → ℝ and NNReal-valued distortion d.
Equations
Instances For
Used by
InformationTheory.Shannon.marginalFst
sourceFirst (source-side) marginal of a joint pmf q : α × β → ℝ.
Equations
- InformationTheory.Shannon.marginalFst q a = ∑ b : β, q (a, b)
Instances For
Used by
InformationTheory.Shannon.marginalSnd
sourceSecond (reconstruction-side) marginal of a joint pmf q : α × β → ℝ.
Equations
- InformationTheory.Shannon.marginalSnd q b = ∑ a : α, q (a, b)
Instances For
Used by
InformationTheory.Shannon.continuous_expectedDistortionPmf
sourceContinuity of expectedDistortionPmf in q (linear in finite sum).
Used by
InformationTheory.Shannon.continuous_marginalFst
sourceContinuity of marginalFst in q.
Used by
InformationTheory.Shannon.continuous_marginalSnd
sourceContinuity of marginalSnd in q.
Used by
InformationTheory.Shannon.RDConstraint
sourceThe feasible joint-pmf set {q ∈ stdSimplex | marginalFst q = P_X ∧ expectedDistortionPmf d q ≤ D}.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Used by
InformationTheory.Shannon.RDConstraint_subset_stdSimplex
sourceRDConstraint ⊆ stdSimplex ℝ (α × β).
Used by
InformationTheory.Shannon.RDConstraint_isClosed
sourceRDConstraint is closed: intersection of closed sets (stdSimplex closed,
linear constraints closed).
Used by
InformationTheory.Shannon.RDConstraint_isCompact
sourceRDConstraint is compact (closed subset of compact stdSimplex).
Used by
pmf-form mutual information (entropy form, continuous via negMulLog) #
InformationTheory.Shannon.mutualInfoPmf
sourcemutualInfoPmf q := H(fst) + H(snd) − H(joint) written via negMulLog:
I(X;Y) = ∑_a negMulLog(q.fst a) + ∑_b negMulLog(q.snd b) − ∑_{a,b} negMulLog(q(a,b)).
This formulation is continuous on all of α × β → ℝ because Real.negMulLog
is continuous everywhere (with negMulLog 0 = 0).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Used by
InformationTheory.Shannon.continuous_mutualInfoPmf
sourcemutualInfoPmf is continuous on α × β → ℝ.
Used by
pmf-form rate-distortion function R(D) #
InformationTheory.Shannon.rateDistortionFunctionPmf
sourceThe pmf-direct rate-distortion function
R(D) := sInf {mutualInfoPmf q | q ∈ RDConstraint P_X d D}. When the constraint
set is non-empty the infimum is attained (rateDistortionFunctionPmf_attained),
since RDConstraint is compact and mutualInfoPmf is continuous.
The sInf of the image is used (rather than the predicate ⨅) to avoid the
ConditionallyCompleteLattice BddBelow side conditions of ⨅ q ∈ S, f q over
ℝ.
Equations
Instances For
Used by
Existence of a minimizer #
InformationTheory.Shannon.rateDistortionFunctionPmf_attained
sourceWhen the constraint set RDConstraint P_X d D is non-empty, the infimum
defining rateDistortionFunctionPmf is attained by some q* ∈ RDConstraint.