InformationTheory

InformationTheory.Shannon.WynerZiv.Basic

source

Wyner–Ziv lossy distributed coding #

The rate-distortion function for Wyner–Ziv lossy compression with side information Y available at the decoder only (Cover–Thomas):

R_WZ(D) = min_{p(u|x), f : U × Y → X̂} [ I(X ; U) − I(Y ; U) ]

with the minimization subject to the Markov chain U − X − Y and the distortion constraint 𝔼 d(X, f(U, Y)) ≤ D.

This file defines the WynerZivCode structure, the joint pmf marginals, the WynerZivConstraint feasible set, the wynerZivRatePmf rate function, the slice-attainment lemma, and the rate-equality wrapper wyner_ziv_tendsto. The achievability and converse legs are developed in WynerZiv/Achievability.lean and WynerZiv/Converse.lean.

Main definitions #

Main statements #

Implementation notes #

The decoder f : U × β → γ is carried as an external second component, so the constraint set lives on (α × β × U → ℝ) × (U × β → γ). The auxiliary alphabet U is taken as an argument rather than constructed from a cardinality bound.

Wyner–Ziv block code #

structure

InformationTheory.Shannon.WynerZivCode

source
(M n : ) (α : Type u_1) (β : Type u_2) (γ : Type u_3) [MeasurableSpace α] [MeasurableSpace β] [MeasurableSpace γ] :
Type (max (max u_1 u_2) u_3)

A Wyner–Ziv block code of length n with M codewords. Encoder is X-side only; decoder takes (codeword, side info Y^n) and reproduces an estimate of X^n over the reconstruction alphabet γ.

Instances For
    Used by
      noncomputable def

      InformationTheory.Shannon.WynerZivCode.expectedBlockDistortion

      source
      {α : Type u_1} {β : Type u_2} {γ : Type u_3} [MeasurableSpace α] [MeasurableSpace β] [MeasurableSpace γ] {M n : } (c : WynerZivCode M n α β γ) (P_XY : MeasureTheory.Measure (α × β)) (d : DistortionFn α γ) :

      Expected block distortion of a Wyner–Ziv code under a joint source measure P_XY on α × β. The source is i.i.d., so (X^n, Y^n) is distributed according to Measure.pi (fun _ => P_XY) on (α × β)^n.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        Used by
          theorem

          InformationTheory.Shannon.WynerZivCode.expectedBlockDistortion_nonneg

          source
          {α : Type u_1} {β : Type u_2} {γ : Type u_3} [MeasurableSpace α] [MeasurableSpace β] [MeasurableSpace γ] {M n : } (c : WynerZivCode M n α β γ) (P_XY : MeasureTheory.Measure (α × β)) (d : DistortionFn α γ) :

          Expected block distortion is non-negative (the integrand is a non-negative real-valued function).

          Used by

            pmf form: 3-variable marginals and mutual informations #

            noncomputable def

            InformationTheory.Shannon.wzMarginalXY

            source
            {α : Type u_1} {β : Type u_2} (U : Type u_3) [Fintype U] (q : α × β × U) :
            α × β

            (α, β)-marginal of a joint pmf q : α × β × U → ℝ.

            Equations
            Instances For
              Used by
                noncomputable def

                InformationTheory.Shannon.wzMarginalXU

                source
                {α : Type u_1} {β : Type u_2} [Fintype β] (U : Type u_3) (q : α × β × U) :
                α × U

                (α, U)-marginal of a joint pmf q : α × β × U → ℝ.

                Equations
                Instances For
                  Used by
                    noncomputable def

                    InformationTheory.Shannon.wzMarginalYU

                    source
                    {α : Type u_1} {β : Type u_2} [Fintype α] (U : Type u_3) (q : α × β × U) :
                    β × U

                    (β, U)-marginal of a joint pmf q : α × β × U → ℝ.

                    Equations
                    Instances For
                      Used by
                        noncomputable def

                        InformationTheory.Shannon.wzMutualInfoXU

                        source
                        {α : Type u_1} {β : Type u_2} [Fintype α] [Fintype β] (U : Type u_3) [Fintype U] (q : α × β × U) :

                        3-variable mutual information I(X ; U) for a joint pmf q : α × β × U → ℝ, defined as mutualInfoPmf (wzMarginalXU q).

                        Equations
                        Instances For
                          Used by
                            noncomputable def

                            InformationTheory.Shannon.wzMutualInfoYU

                            source
                            {α : Type u_1} {β : Type u_2} [Fintype α] [Fintype β] (U : Type u_3) [Fintype U] (q : α × β × U) :

                            3-variable mutual information I(Y ; U) for a joint pmf q : α × β × U → ℝ, defined as mutualInfoPmf (wzMarginalYU q).

                            Equations
                            Instances For
                              Used by
                                theorem

                                InformationTheory.Shannon.continuous_wzMarginalXY

                                source
                                {α : Type u_1} {β : Type u_2} [Fintype α] [Fintype β] [MeasurableSpace α] [MeasurableSpace β] (U : Type u_3) [Fintype U] [MeasurableSpace U] :
                                Continuous fun (q : α × β × U) => wzMarginalXY U q

                                wzMarginalXY is continuous in q (finite sum of evaluations).

                                Used by
                                  theorem

                                  InformationTheory.Shannon.continuous_wzMarginalXU

                                  source
                                  {α : Type u_1} {β : Type u_2} [Fintype α] [Fintype β] [MeasurableSpace α] [MeasurableSpace β] (U : Type u_3) [Fintype U] [MeasurableSpace U] :
                                  Continuous fun (q : α × β × U) => wzMarginalXU U q

                                  wzMarginalXU is continuous in q.

                                  Used by
                                    theorem

                                    InformationTheory.Shannon.continuous_wzMarginalYU

                                    source
                                    {α : Type u_1} {β : Type u_2} [Fintype α] [Fintype β] [MeasurableSpace α] [MeasurableSpace β] (U : Type u_3) [Fintype U] [MeasurableSpace U] :
                                    Continuous fun (q : α × β × U) => wzMarginalYU U q

                                    wzMarginalYU is continuous in q.

                                    Used by
                                      theorem

                                      InformationTheory.Shannon.continuous_wzMutualInfoXU

                                      source
                                      {α : Type u_1} {β : Type u_2} [Fintype α] [Fintype β] [MeasurableSpace α] [MeasurableSpace β] (U : Type u_3) [Fintype U] [MeasurableSpace U] :
                                      Continuous fun (q : α × β × U) => wzMutualInfoXU U q

                                      wzMutualInfoXU is continuous in q.

                                      Used by
                                        theorem

                                        InformationTheory.Shannon.continuous_wzMutualInfoYU

                                        source
                                        {α : Type u_1} {β : Type u_2} [Fintype α] [Fintype β] [MeasurableSpace α] [MeasurableSpace β] (U : Type u_3) [Fintype U] [MeasurableSpace U] :
                                        Continuous fun (q : α × β × U) => wzMutualInfoYU U q

                                        wzMutualInfoYU is continuous in q.

                                        Used by
                                          theorem

                                          InformationTheory.Shannon.continuous_wzObjective

                                          source
                                          {α : Type u_1} {β : Type u_2} [Fintype α] [Fintype β] [MeasurableSpace α] [MeasurableSpace β] (U : Type u_3) [Fintype U] [MeasurableSpace U] :
                                          Continuous fun (q : α × β × U) => wzMutualInfoXU U q - wzMutualInfoYU U q

                                          The Wyner–Ziv objective I(X ; U) − I(Y ; U) is continuous in the joint pmf.

                                          Used by

                                            Wyner–Ziv constraint set #

                                            The decoder f : U × β → γ is carried as an external second component, so the constraint set lives on the product (α × β × U → ℝ) × (U × β → γ). The Markov constraint U − X − Y is encoded in cross-product form, well-defined even where marginals vanish (inventory).

                                            noncomputable def

                                            InformationTheory.Shannon.wzExpectedDistortion

                                            source
                                            {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Fintype α] [Fintype β] (U : Type u_4) [Fintype U] (d : αγ) (q : α × β × U) (f : U × βγ) :

                                            Distortion functional in pmf form for Wyner–Ziv: ∑_{x,y,u} q(x,y,u) · d(x, f(u,y)).

                                            Equations
                                            Instances For
                                              Used by
                                                def

                                                InformationTheory.Shannon.wzMarkovCrossEq

                                                source
                                                {α : Type u_1} {β : Type u_2} [Fintype β] (U : Type u_4) (q : α × β × U) :

                                                Markov-chain cross-product form q(x,y,u) · q_X(x,u') = q(x,y,u') · q_X(x,u) where q_X(x,u) := ∑_y q(x,y,u). Encoded as a real-valued affine condition (well-defined where q_X vanishes — both sides become 0).

                                                Equations
                                                Instances For
                                                  Used by
                                                    def

                                                    InformationTheory.Shannon.WynerZivConstraint

                                                    source
                                                    {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Fintype α] [Fintype β] (U : Type u_4) [Fintype U] (P_XY : α × β) (d : αγ) (D : ) :
                                                    Set ((α × β × U) × (U × βγ))

                                                    Wyner–Ziv constraint set — feasible (q, f) pairs satisfying:

                                                    1. q ∈ stdSimplex ℝ (α × β × U) — non-negative pmf with total mass 1.
                                                    2. wzMarginalXY q = P_XY(X, Y) marginal matches the source.
                                                    3. wzMarkovCrossEq q — Markov chain U − X − Y.
                                                    4. wzExpectedDistortion d q f ≤ D — expected distortion within budget.
                                                    Equations
                                                    • One or more equations did not get rendered due to their size.
                                                    Instances For
                                                      Used by
                                                        theorem

                                                        InformationTheory.Shannon.mem_WynerZivConstraint_iff

                                                        source
                                                        {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Fintype α] [Fintype β] [MeasurableSpace α] [MeasurableSpace β] (U : Type u_4) [Fintype U] [MeasurableSpace U] {P_XY : α × β} {d : αγ} {D : } {qf : (α × β × U) × (U × βγ)} :
                                                        qf WynerZivConstraint U P_XY d D qf.1 stdSimplex (α × β × U) wzMarginalXY U qf.1 = P_XY wzMarkovCrossEq U qf.1 wzExpectedDistortion U d qf.1 qf.2 D

                                                        Membership unfold for WynerZivConstraint.

                                                        Used by

                                                          Wyner–Ziv rate function #

                                                          noncomputable def

                                                          InformationTheory.Shannon.wynerZivRatePmf

                                                          source
                                                          {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Fintype α] [Fintype β] (U : Type u_4) [Fintype U] (P_XY : α × β) (d : αγ) (D : ) :

                                                          The Wyner–Ziv rate function (pmf form), R_WZ(D) := sInf { I(X;U) − I(Y;U) | (q, f) ∈ WynerZivConstraint U P_XY d D }, with the auxiliary alphabet U taken as an argument.

                                                          Equations
                                                          • One or more equations did not get rendered due to their size.
                                                          Instances For
                                                            Used by
                                                              theorem

                                                              InformationTheory.Shannon.wynerZivRatePmf_le_of_feasible

                                                              source
                                                              {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Fintype α] [Fintype β] [MeasurableSpace α] [MeasurableSpace β] (U : Type u_4) [Fintype U] [MeasurableSpace U] (P_XY : α × β) (d : αγ) (D : ) (qf : (α × β × U) × (U × βγ)) (hqf : qf WynerZivConstraint U P_XY d D) (h_bdd : BddBelow ((fun (qf : (α × β × U) × (U × βγ)) => wzMutualInfoXU U qf.1 - wzMutualInfoYU U qf.1) '' WynerZivConstraint U P_XY d D)) :

                                                              Upper bound from any feasible point: if (q, f) ∈ WynerZivConstraint and the image is bounded below (which it always is on the simplex), then wynerZivRatePmf ≤ I(X;U)(q) − I(Y;U)(q).

                                                              Used by
                                                                theorem

                                                                InformationTheory.Shannon.wynerZivRatePmf_attained_slice

                                                                source
                                                                {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Fintype α] [Fintype β] [MeasurableSpace α] [MeasurableSpace β] (U : Type u_4) [Fintype U] [MeasurableSpace U] (P_XY : α × β) (d : αγ) (D : ) (f₀ : U × βγ) (h_ne : {q : α × β × U | (q, f₀) WynerZivConstraint U P_XY d D}.Nonempty) :
                                                                qStar{q : α × β × U | (q, f₀) WynerZivConstraint U P_XY d D}, IsMinOn (fun (q : α × β × U) => wzMutualInfoXU U q - wzMutualInfoYU U q) {q : α × β × U | (q, f₀) WynerZivConstraint U P_XY d D} qStar

                                                                Attainment (slice form) — fix a decoder f₀ : U × β → γ and assume the slice K f₀ := {q | (q, f₀) ∈ WynerZivConstraint U P_XY d D} is non-empty. Then there exists a qStar ∈ K f₀ minimizing the Wyner–Ziv objective I(X;U) − I(Y;U) over K f₀. This is the structural ingredient that the achievability/converse proofs rely on; the full joint attainment over (q, f) requires further hypotheses on (γ, U, β) and is deferred.

                                                                Used by
                                                                  theorem

                                                                  InformationTheory.Shannon.wynerZivRatePmf_image_bddBelow_of_objective

                                                                  source
                                                                  {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Fintype α] [Fintype β] [MeasurableSpace α] [MeasurableSpace β] (U : Type u_4) [Fintype U] [MeasurableSpace U] (P_XY : α × β) (d : αγ) (D B : ) (h_lb : qfWynerZivConstraint U P_XY d D, B wzMutualInfoXU U qf.1 - wzMutualInfoYU U qf.1) :
                                                                  BddBelow ((fun (qf : (α × β × U) × (U × βγ)) => wzMutualInfoXU U qf.1 - wzMutualInfoYU U qf.1) '' WynerZivConstraint U P_XY d D)

                                                                  The image of the Wyner–Ziv constraint set under the objective is bounded below by any caller-supplied lower bound B (the canonical bound is -Real.log (Fintype.card U), since I(X;U) ≥ 0 and I(Y;U) ≤ Real.log (Fintype.card U) on a finite alphabet).

                                                                  Used by

                                                                    Rate-equality wrapper #

                                                                    theorem

                                                                    InformationTheory.Shannon.wyner_ziv_tendsto

                                                                    source
                                                                    {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Fintype α] [Fintype β] [MeasurableSpace α] [MeasurableSpace β] (U : Type u_4) [Fintype U] [MeasurableSpace U] (P_XY : α × β) (d : αγ) (D R : ) (h_ach : wynerZivRatePmf U P_XY d D R) (h_conv : R wynerZivRatePmf U P_XY d D) :
                                                                    R = wynerZivRatePmf U P_XY d D

                                                                    Wyner–Ziv theorem (rate-equality form): from achievability R ≥ wynerZivRatePmf(D) and converse R ≤ wynerZivRatePmf(D), R = wynerZivRatePmf(D). The two-sided hypotheses are discharged in WynerZiv/Achievability.lean and WynerZiv/Converse.lean.

                                                                    Used by