InformationTheory.Fano.CondEntropy
3-variable joint and conditional entropy: chain rule + deterministic collapse #
We work directly with raw mass functions μ : X → E → Y → ℝ rather than committing to a
structured PMF type, because every chain rule becomes a ring identity at this level.
The two non-trivial outputs are:
- the algebraic chain rules
H(X, E | Y) = H(E | Y) + H(X | E, Y)andH(X, E | Y) = H(X | Y) + H(E | X, Y); H(E | X, Y) = 0wheneverEis a deterministic function of(X, Y).
Together with entropyOfFn_le_log_supportCard and binEntropy_jensen_finset, these
assemble the Fano core inequality.
Implementation notes #
This file's mass-function entropy/condEntropy are the form used by the Fano.Core
development. The measure-theoretic developments (Fano.Measure, Shannon.Bridge.entropy,
InformationTheory.MeasureFano.condEntropy) use a parallel formalism; the two do not
depend on each other.
Marginals and joint entropies #
InformationTheory.Joint3.marginalY
sourceMarginal mass on Y, summing out both X and E.
Equations
- InformationTheory.Joint3.marginalY μ y = ∑ x : X, ∑ e : E, μ x e y
Instances For
Used by
InformationTheory.Joint3.marginalEY
sourceMarginal mass on (E, Y), summing out X.
Equations
- InformationTheory.Joint3.marginalEY μ e y = ∑ x : X, μ x e y
Instances For
Used by
InformationTheory.Joint3.marginalXY
sourceMarginal mass on (X, Y), summing out E.
Equations
- InformationTheory.Joint3.marginalXY μ x y = ∑ e : E, μ x e y
Instances For
Used by
InformationTheory.Joint3.jointEntropy
sourceJoint entropy H(X, E, Y).
Equations
- InformationTheory.Joint3.jointEntropy μ = ∑ x : X, ∑ e : E, ∑ y : Y, (μ x e y).negMulLog
Instances For
Used by
InformationTheory.Joint3.yEntropy
sourceMarginal entropy H(Y).
Equations
- InformationTheory.Joint3.yEntropy μ = ∑ y : Y, (InformationTheory.Joint3.marginalY μ y).negMulLog
Instances For
Used by
InformationTheory.Joint3.eyEntropy
sourceMarginal entropy H(E, Y).
Equations
- InformationTheory.Joint3.eyEntropy μ = ∑ e : E, ∑ y : Y, (InformationTheory.Joint3.marginalEY μ e y).negMulLog
Instances For
Used by
InformationTheory.Joint3.xyEntropy
sourceMarginal entropy H(X, Y).
Equations
- InformationTheory.Joint3.xyEntropy μ = ∑ x : X, ∑ y : Y, (InformationTheory.Joint3.marginalXY μ x y).negMulLog
Instances For
Used by
Marginal nonnegativity and Bool decomposition #
InformationTheory.Joint3.marginalEY_nonneg
sourceEach (E, Y) marginal is non-negative when the joint mass is.
Used by
InformationTheory.Joint3.marginalY_nonneg
sourceThe Y marginal is non-negative when the joint mass is.
Used by
InformationTheory.Joint3.marginalY_eq_marginalEY_true_add_false
sourceFor a binary E = Bool, the Y marginal splits as the sum of the
two (E, Y) marginals.
Used by
Conditional entropies (defined as entropy differences) #
InformationTheory.Joint3.condXE_Y
sourceH(X, E | Y) = H(X, E, Y) - H(Y).
Equations
Instances For
Used by
InformationTheory.Joint3.condE_Y
sourceH(E | Y) = H(E, Y) - H(Y).
Equations
Instances For
Used by
InformationTheory.Joint3.condX_EY
sourceH(X | E, Y) = H(X, E, Y) - H(E, Y).
Equations
Instances For
Used by
InformationTheory.Joint3.condX_Y
sourceH(X | Y) = H(X, Y) - H(Y).
Equations
Instances For
Used by
InformationTheory.Joint3.condE_XY
sourceH(E | X, Y) = H(X, E, Y) - H(X, Y).
Equations
Instances For
Used by
Chain rules #
InformationTheory.Joint3.chain_rule_E_first
sourceChain rule with E first: H(X, E | Y) = H(E | Y) + H(X | E, Y).
Used by
InformationTheory.Joint3.chain_rule_X_first
sourceChain rule with X first: H(X, E | Y) = H(X | Y) + H(E | X, Y).
Used by
Deterministic E ⇒ H(E | X, Y) = 0 #
InformationTheory.Joint3.condE_XY_zero_of_deterministic
sourceIf E is a deterministic function of (X, Y) — formalized by saying
that μ is concentrated on e = f x y and equals marginalXY μ x y
there — then the conditional entropy H(E | X, Y) vanishes.