InformationTheory

InformationTheory.Shannon.IIDProductInput.Basic

source

i.i.d. ambient (μ, Xs, Ys) for channel coding achievability #

This file provides the i.i.d. ambient probability space consumed by the abstract random_codebook_average_le and the main theorem channel_coding_achievability of InformationTheory/Shannon/ChannelCoding/Achievability.lean.

Construction #

Given an input distribution p : Measure α (a probability measure) and a channel W : Channel α β (a Markov kernel), the i.i.d. ambient space is Ω := ℕ → α × β equipped with the product measure μ := Measure.infinitePi (fun _ : ℕ => jointDistribution p W). Random variables are coordinate projections:

  • iidXs i ω := (ω i).1 — the i-th input symbol
  • iidYs i ω := (ω i).2 — the i-th output symbol

These exactly match the abstract Xs, Ys hypothesis shapes (iIndepFun, IdentDistrib, marginal-matching) demanded by the achievability lemmas.

Channel positivity #

The hposY / hposZ positivity lemmas require the channel-positivity hypothesis ∀ a y, 0 < W a {y} (in addition to input positivity ∀ a, 0 < p.real {a}). Without it outputDistribution p W and jointDistribution p W can hit zero on some singleton.

Ambient measure on ℕ → α × β #

noncomputable def

InformationTheory.Shannon.ChannelCoding.iidAmbientMeasure

source
{α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] (p : MeasureTheory.Measure α) (W : Channel α β) :

The i.i.d. ambient measure for input distribution p and channel W: Measure.infinitePi (fun _ : ℕ => jointDistribution p W) on ℕ → α × β.

Equations
Instances For
    Used by
      instance

      InformationTheory.Shannon.ChannelCoding.iidAmbientMeasure.instIsProbabilityMeasure

      source
      Used by
        def

        InformationTheory.Shannon.ChannelCoding.iidXs

        source
        {α : Type u_1} {β : Type u_2} :
        (α × β)α

        The i-th input random variable: ω ↦ (ω i).1.

        Equations
        Instances For
          Used by
            def

            InformationTheory.Shannon.ChannelCoding.iidYs

            source
            {α : Type u_1} {β : Type u_2} :
            (α × β)β

            The i-th output random variable: ω ↦ (ω i).2.

            Equations
            Instances For
              Used by
                theorem

                InformationTheory.Shannon.ChannelCoding.iidXs_apply

                source
                @[simp]
                {α : Type u_1} {β : Type u_2} (i : ) (ω : α × β) :
                iidXs i ω = (ω i).1
                Used by
                  theorem

                  InformationTheory.Shannon.ChannelCoding.iidYs_apply

                  source
                  @[simp]
                  {α : Type u_1} {β : Type u_2} (i : ) (ω : α × β) :
                  iidYs i ω = (ω i).2
                  Used by
                    theorem

                    InformationTheory.Shannon.ChannelCoding.measurable_iidXs

                    source
                    {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] (i : ) :
                    Used by
                      theorem

                      InformationTheory.Shannon.ChannelCoding.measurable_iidYs

                      source
                      {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] (i : ) :
                      Used by
                        theorem

                        InformationTheory.Shannon.ChannelCoding.jointSequence_iidXs_iidYs

                        source
                        {α : Type u_1} {β : Type u_2} (i : ) :
                        jointSequence iidXs iidYs i = fun (ω : α × β) => ω i

                        The joint sequence collapses to the raw coordinate projection fun ω ↦ ω i modulo Prod.mk η.

                        Used by

                          Marginal laws #

                          The three coordinate-marginal identifications μ.map (Xs 0) = p, μ.map (Ys 0) = outputDistribution p W, μ.map (jointSequence Xs Ys 0) = jointDistribution p W.

                          theorem

                          InformationTheory.Shannon.ChannelCoding.iidAmbient_map_jointSequence

                          source

                          The joint sequence marginal at index i is the joint distribution p ⊗ₘ W.

                          Used by
                            theorem

                            InformationTheory.Shannon.ChannelCoding.iidAmbient_map_iidXs

                            source

                            The input marginal μ.map (Xs i) = p.

                            Used by
                              theorem

                              InformationTheory.Shannon.ChannelCoding.iidAmbient_map_iidYs

                              source

                              The output marginal μ.map (Ys i) = outputDistribution p W.

                              Used by

                                IdentDistrib along each axis #

                                theorem

                                InformationTheory.Shannon.ChannelCoding.iidAmbient_identDistrib_iidXs

                                source
                                Used by
                                  theorem

                                  InformationTheory.Shannon.ChannelCoding.iidAmbient_identDistrib_iidYs

                                  source
                                  Used by
                                    theorem

                                    InformationTheory.Shannon.ChannelCoding.iidAmbient_identDistrib_joint

                                    source
                                    Used by

                                      iIndepFun along each axis #

                                      theorem

                                      InformationTheory.Shannon.ChannelCoding.iidAmbient_iIndepFun_iidXs

                                      source

                                      The input coordinates Xs i ω = (ω i).1 are mutually independent under the i.i.d. ambient measure.

                                      Used by
                                        theorem

                                        InformationTheory.Shannon.ChannelCoding.iidAmbient_iIndepFun_iidYs

                                        source

                                        The output coordinates Ys i ω = (ω i).2 are mutually independent.

                                        Used by
                                          theorem

                                          InformationTheory.Shannon.ChannelCoding.iidAmbient_iIndepFun_joint

                                          source

                                          The joint coordinate sequence jointSequence iidXs iidYs i ω = ω i is mutually independent.

                                          Used by
                                            theorem

                                            InformationTheory.Shannon.ChannelCoding.iidAmbient_pairwise_indep_joint

                                            source

                                            Pairwise independence for the joint axis: needed by jointlyTypicalSet_prob_tendsto_one (which takes the Pairwise … ⟂ᵢ[μ] … form rather than the full iIndepFun form).

                                            Used by
                                              theorem

                                              InformationTheory.Shannon.ChannelCoding.iidAmbient_pairwise_indep_iidXs

                                              source
                                              Used by
                                                theorem

                                                InformationTheory.Shannon.ChannelCoding.iidAmbient_pairwise_indep_iidYs

                                                source
                                                Used by

                                                  Positivity of singleton marginals #

                                                  theorem

                                                  InformationTheory.Shannon.ChannelCoding.jointDistribution_singleton

                                                  source

                                                  Singleton mass of the joint distribution: (p ⊗ₘ W) {(x, y)} = p {x} * W x {y}. Uses Set.singleton_prod_singleton to rewrite the singleton as a product set and then compProd_apply_prod + lintegral_singleton to evaluate.

                                                  Used by
                                                    theorem

                                                    InformationTheory.Shannon.ChannelCoding.jointDistribution_singleton_pos

                                                    source
                                                    {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] [Fintype α] [MeasurableSingletonClass α] [MeasurableSingletonClass β] (p : MeasureTheory.Measure α) [MeasureTheory.IsProbabilityMeasure p] (W : Channel α β) [ProbabilityTheory.IsMarkovKernel W] (hp_pos : ∀ (a : α), 0 < p.real {a}) (hW_pos : ∀ (a : α) (b : β), 0 < (W a).real {b}) (x : α) (y : β) :

                                                    Positivity of (jointDistribution p W).real {(x, y)} from input + channel positivity.

                                                    Used by
                                                      theorem

                                                      InformationTheory.Shannon.ChannelCoding.iidAmbient_iidXs_real_singleton_pos

                                                      source
                                                      {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] (p : MeasureTheory.Measure α) [MeasureTheory.IsProbabilityMeasure p] (W : Channel α β) [ProbabilityTheory.IsMarkovKernel W] (hp_pos : ∀ (a : α), 0 < p.real {a}) (x : α) :

                                                      Positivity of the input marginal: 0 < (μ.map (iidXs 0)).real {x}.

                                                      Used by
                                                        theorem

                                                        InformationTheory.Shannon.ChannelCoding.iidAmbient_iidYs_real_singleton_pos

                                                        source
                                                        {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] [Fintype α] [MeasurableSingletonClass β] (p : MeasureTheory.Measure α) [MeasureTheory.IsProbabilityMeasure p] (W : Channel α β) [ProbabilityTheory.IsMarkovKernel W] (hp_pos : ∀ (a : α), 0 < p.real {a}) (hW_pos : ∀ (a : α) (b : β), 0 < (W a).real {b}) (y : β) :

                                                        Positivity of the output marginal: 0 < (μ.map (iidYs 0)).real {y}. Requires input positivity and channel positivity.

                                                        Used by
                                                          theorem

                                                          InformationTheory.Shannon.ChannelCoding.iidAmbient_joint_real_singleton_pos

                                                          source
                                                          {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] [Fintype α] [MeasurableSingletonClass α] [MeasurableSingletonClass β] (p : MeasureTheory.Measure α) [MeasureTheory.IsProbabilityMeasure p] (W : Channel α β) [ProbabilityTheory.IsMarkovKernel W] (hp_pos : ∀ (a : α), 0 < p.real {a}) (hW_pos : ∀ (a : α) (b : β), 0 < (W a).real {b}) (q : α × β) :

                                                          Positivity of the joint marginal: 0 < (μ.map (jointSequence iidXs iidYs 0)).real {(x, y)}. Requires input + channel positivity.

                                                          Used by