Equation (3): expansion of the mixture loss
ProvedSameStatePairs.mixture_loss_expansionLet be a finite world with and , let be a finite observation space with channel and observation law , and let . Let , where is the same-state pair law, and let . For every encoder that is centred and whitened under ,
This identity turns the loss into a trace against , the starting point of Theorem 1.
Formalization Note The world and the observation space are finite, and every observation has positive probability, so is the space of all functions on .
import Mathlib import Definitions.Def_SameStatePairs_Basic open Matrix
namespace SameStatePairs
theorem mixture_loss_expansion {Z X : Type*} [Fintype Z] [Fintype X] [DecidableEq X] {k : ℕ}
(p : Z → ℝ) (hp : ∀ z, 0 < p z) (hp1 : ∑ z, p z = 1)
(κ : Z → X → ℝ) (hκ : IsChannel κ) (hX : ∀ x, 0 < obsLaw p κ x)
(ε : ℝ) (hε0 : 0 ≤ ε) (hε1 : ε ≤ 1)
(f : X → Fin k → ℝ) (hfc : IsCentered (obsLaw p κ) f) (hfw : IsWhitened (obsLaw p κ) f) :
pairLoss (mixPairLaw p κ ε) f = 2 * k - 2 * ε * topQuad p κ f := by sorry
end SameStatePairsRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let (world states) and (observations) be finite sets, and let be a natural number (the embedding dimension; is allowed). The statement assumes the following.
-
State law. satisfies for every and . In particular is nonempty.
-
Channel. satisfies for all and for every . Together with , this forces to be nonempty.
-
Observation law. Define . It is assumed that for every . This is an extra hypothesis, not implied by the others, because a column of could vanish.
-
Mixing weight. with . Both endpoints are allowed.
-
Encoder. , with coordinates . It is assumed to be:
- centred under : for every ;
- whitened under : for all .
So are orthonormal in and orthogonal to the constants. When this is possible only if . For and , no such exists and the statement holds vacuously.
The objects in the conclusion are defined as follows. The same-state pair law is
and the mixed positive-pair law is
The operator is the matrix
acting on a function by . Finally, is the squared Euclidean norm on .
The theorem asserts the exact equality
The left side is the expected squared prediction error under . The double sum on the right is . Here is regarded as a real number.
When , the claim is that the loss under the independent product law equals . When , the loss under the pure same-state law equals . When , both sides are .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.