InformationTheory

InformationTheory.Shannon.BoolLaw

source

The two-point law and the cost of a small mixing weight #

Mixing two laws with weight lam is carried by a law on Bool that records which of the two was drawn. Clamping the weight at 1 makes that law a probability measure for every weight, so the instance is available before any side condition is discharged, which is what lets the mixture be formed and its information slots be stated at all.

A variable that records the branch of such a mixture carries the binary entropy of the weight, and that is the price paid for mixing. Since the binary entropy vanishes at 0 together with the weight itself, the price can be pushed below any positive slack, simultaneously with a linear cost in the weight.

Main definitions #

  • boolLaw lam — the two-point law giving true the clamped weight lam ⊓ 1.

Main statements #

The two-point law #

noncomputable def

InformationTheory.Shannon.boolLaw

source

The two-point law with weight lam, clamped so that it is a probability measure for every weight. The clamp is what makes IsProbabilityMeasure an instance rather than a lemma with a side condition, and the conditional mutual information of a mixture along this law needs that instance in order to be stated at all.

Equations
Instances For
    Used by
      instance

      InformationTheory.Shannon.boolLaw_isProbabilityMeasure

      source
      Used by
        theorem

        InformationTheory.Shannon.lintegral_boolLaw

        source
        (lam : ENNReal) (F : BoolENNReal) :
        ∫⁻ (t : Bool), F t boolLaw lam = min lam 1 * F true + (1 - lam) * F false
        Used by

          The entropy of the two-point law #

          theorem

          InformationTheory.Shannon.boolLaw_real_true

          source
          {lam : ENNReal} (hlam : lam 1) :
          Used by
            theorem

            InformationTheory.Shannon.boolLaw_real_false

            source
            {lam : ENNReal} (hlam : lam 1) :
            Used by
              theorem

              InformationTheory.Shannon.entropy_eq_binEntropy_of_map_boolLaw

              source
              {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) (T : ΩBool) {lam : ENNReal} (hlam : lam 1) (h : MeasureTheory.Measure.map T μ = boolLaw lam) :
              Used by

                Choosing the mixing weight #

                theorem

                InformationTheory.Shannon.exists_mul_add_binEntropy_lt

                source
                {A B δ : } (hA : 0 A) (hB : 0 B) ( : 0 < δ) :
                ∃ (ε : ), 0 < ε ε < 1 ε * A + Real.binEntropy ε < δ ε * B + Real.binEntropy ε < δ
                Used by