Section 7, lower bound — the coupon-collector expectation
ProvedMetricalTaskSystem.Randomized.coupon_collector_expectationLet be a set of states and let be independent, each uniformly distributed on . Let be the least such that contains every state of ( if there is none). Then
In the paper this computes the mean length of a renewal cycle of the off-line strategy, which gives the off-line cost rate .
Formalization Note is valued in and is a lower Lebesgue integral, so no integrability hypothesis is involved. The law of the sequence is Measure.infinitePi of the uniform distribution on .
import Mathlib import Definitions.Def_MetricalTaskSystem_Randomized_Model import Definitions.Def_MetricalTaskSystem_Randomized_TaskDistribution
namespace MetricalTaskSystem.Randomized
open MeasureTheory
/-- **Section 7, proof of the lower bound, coupon collector** (Borodin–Linial–Saks 1992,
p. 760). For a sequence of independent states, each uniform on the `n`-element set `S`, the
expected number of states until every state has appeared is `n·H(n)`. -/
theorem coupon_collector_expectation {S : Type} [Fintype S] [Nonempty S]
[MeasurableSpace S] [MeasurableSingletonClass S] :
∫⁻ ω, collectTime ω ∂(uniformStateSeq S) =
ENNReal.ofReal ((Fintype.card S : ℝ) * (harmonic (Fintype.card S) : ℝ)) := by sorry
end MetricalTaskSystem.Randomized
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. is a finite, nonempty type with . Its σ-algebra has measurable singletons. Let be independent, each uniformly distributed on (the infinite product of the uniform distribution). Let be the least such that every state of appears among , with if some state never appears.
Conclusion. The Lebesgue integral of in equals
The right-hand side is a nonnegative real, so the claim also asserts that this expectation is finite.
Degenerate cases.
- : , since fails because is nonempty and succeeds. The claim is .
- Empty : excluded by the hypotheses.
- Where : this set is included in the integral, and it contributes exactly when it has probability zero.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.