Plain-English statement
- The actual unit-exponential product realizes the countable source clocks. The divergence proof uses an ASTIS sufficient alternative: the bounded iid indicators of coordinates above one, their positive mean, and the strong law. It does not assert an Exp(1) first-moment calculation or event-time convergence.
Read the mathematics first, then descend into Lean
You do not need to know Lean before opening this panel. The page keeps the paper-level theorem, rigorous proof obligations, exact Lean declaration, and proof dependencies as separate layers so a first-time reader can move down one layer at a time.
Proof architecture
Start with the tree when learning: prerequisites sit below the theorem and downstream results sit above it. Switch to the network when you want to understand where this declaration lives in the local formal library. Every mapped node is clickable.
Graph rule: only dependencies found by the ASTIS source scan are drawn. Missing tactic indirection is treated as an under-approximation; the site never invents an edge just to make a prettier graph.
How to read the exact Lean declaration
Read a Lean theorem left-to-right exactly as you would unpack a mathematical sentence: name → ambient types → automatically inferred structures → explicit hypotheses → conclusion → proof. Then read the proof top-to-bottom as transformations of the current goal.
- NameWhat reusable mathematical fact is being created?
- ParametersWhich symbols are arbitrary, and which structures are inferred by typeclass search?
- PropositionAfter the colon, translate the Lean expression back into a paper statement.
- Proof actionsAfter
by, ask what each tactic does to the mathematical goal—not only what syntax it uses.
Syntax used on this page
This glossary is filtered to syntax that actually occurs in the declaration above. Open a symbol only when you meet it, rather than memorizing Lean grammar in advance.
Source voice and ASTIS voice stay separate
When Samplinglib shows a short quotation from Chewi, it is labeled as a source excerpt and linked to the canonical book page. Intuition, expanded proof steps, hidden regularity assumptions, and Lean explanations are ASTIS-authored commentary. A quotation never substitutes for a formal proof, and an ASTIS explanation is never attributed to the textbook author.
Lean statement
theorem unit_exponential_product_laws : unit_exponential_product_statement := by
classical
let P : Measure (ℕ → ℝ) := Measure.infinitePi (fun _ : ℕ => expMeasure (1 : ℝ))
let X : ℕ → (ℕ → ℝ) → ℝ := fun k ω => ω k
let ε : ℕ → (ℕ → ℝ) → ℝ≥0 := fun k ω => Real.toNNReal (X k ω)
change IsProbabilityMeasure P ∧
(∀ k : ℕ, Measurable (X k) ∧ Measurable (ε k) ∧
Measure.map (X k) P = expMeasure (1 : ℝ)) ∧
iIndepFun X P ∧
(∀ᵐ ω ∂P, ∀ k : ℕ, 0 < X k ω ∧ (ε k ω : ℝ) = X k ω) ∧
(∀ᵐ ω ∂P, Tendsto (fun n : ℕ => ∑ k ∈ Finset.range n, (ε k ω : ℝ))
atTop atTop)
-- The factor probability theorem activates the actual infinite-product APIs.
let : IsProbabilityMeasure (expMeasure (1 : ℝ)) :=
isProbabilityMeasure_expMeasure zero_lt_one
have hP : IsProbabilityMeasure P := inferInstance
let : IsProbabilityMeasure P := hP
have hX (k : ℕ) : Measurable (X k) := measurable_pi_apply k
have hε (k : ℕ) : Measurable (ε k) := measurable_real_toNNReal.comp (hX k)
have hmap (k : ℕ) : Measure.map (X k) P = expMeasure (1 : ℝ) :=
Measure.infinitePi_map_eval (fun _ : ℕ => expMeasure (1 : ℝ)) k
have hindep : iIndepFun X P :=
iIndepFun_infinitePi (X := fun _ : ℕ => (id : ℝ → ℝ))
(fun _ => measurable_id)
-- CDF(0)=0 gives strict positivity; countability gives a single good event.
have hnull : expMeasure (1 : ℝ) (Set.Iic 0) = 0 := by
apply (measureReal_eq_zero_iff (μ := expMeasure (1 : ℝ)) (s := Set.Iic 0)).mp
rw [← cdf_eq_real, cdf_expMeasure_eq zero_lt_one]
norm_num
have hpos : ∀ᵐ x ∂expMeasure (1 : ℝ), 0 < x := by
rw [ae_iff]
simp only [not_lt]
change expMeasure (1 : ℝ) (Set.Iic 0) = 0
exact hnull
have hpos_all : ∀ᵐ ω ∂P, ∀ k : ℕ, 0 < X k ω := by
rw [ae_all_iff]
intro k
apply ae_of_ae_map (hX k).aemeasurable
simpa only [hmap] using hpos
have hgood : ∀ᵐ ω ∂P, ∀ k : ℕ, 0 < X k ω ∧ (ε k ω : ℝ) = X k ω := by
filter_upwards [hpos_all] with ω hω
exact fun k => ⟨hω k, Real.coe_toNNReal _ (hω k).le⟩
-- ASTIS OR-route: a bounded indicator has a computable strictly positive mean.
let b : ℝ → ℝ := (Set.Ioi (1 : ℝ)).indicator (fun _ => 1)
have hb : Measurable b := measurable_const.indicator measurableSet_Ioi
let B : ℕ → (ℕ → ℝ) → ℝ := fun k ω => b (X k ω)
have hB0 : Integrable (B 0) P := by
exact (integrable_const (1 : ℝ)).indicator
(measurableSet_Ioi.preimage (hX 0))
have hBindep : iIndepFun B P := hindep.comp (fun _ => b) (fun _ => hb)
have hident (k : ℕ) : IdentDistrib (B k) (B 0) P P := by
have hx : IdentDistrib (X k) (X 0) P P :=
⟨(hX k).aemeasurable, (hX 0).aemeasurable, (hmap k).trans (hmap 0).symm⟩
exact hx.comp hb
have htail : (expMeasure (1 : ℝ)).real (Set.Ioi (1 : ℝ)) = Real.exp (-1) := by
rw [← Set.compl_Iic, measureReal_compl measurableSet_Iic, probReal_univ,
← cdf_eq_real, cdf_expMeasure_eq zero_lt_one]
norm_num
have hmean : (∫ ω, B 0 ω ∂P) = Real.exp (-1) := by
calc
(∫ ω, B 0 ω ∂P) = ∫ x, b x ∂Measure.map (X 0) P :=
(integral_map (hX 0).aemeasurable hb.aestronglyMeasurable).symm
_ = ∫ x, b x ∂expMeasure (1 : ℝ) := by rw [hmap]
_ = (expMeasure (1 : ℝ)).real (Set.Ioi (1 : ℝ)) :=
integral_indicator_one measurableSet_Ioi
_ = Real.exp (-1) := htail
have hslln : ∀ᵐ ω ∂P, Tendsto
(fun n : ℕ => (∑ k ∈ Finset.range n, B k ω) / (n : ℝ))
atTop (𝓝 (Real.exp (-1))) := by
simpa only [hmean] using
strong_law_ae_real B hB0 (fun _ _ hij => hBindep.indepFun hij) hident
-- Positive limiting average forces unbounded sums; each indicator is below ε.
have hdiv : ∀ᵐ ω ∂P, Tendsto
(fun n : ℕ => ∑ k ∈ Finset.range n, (ε k ω : ℝ)) atTop atTop := by
filter_upwards [hslln] with ω hω
have hmul := hω.pos_mul_atTop (Real.exp_pos (-1))
(tendsto_natCast_atTop_atTop (R := ℝ))
have hsum : Tendsto (fun n : ℕ => ∑ k ∈ Finset.range n, B k ω) atTop atTop := by
apply hmul.congr'
exact Filter.Eventually.of_forall fun n => by
by_cases hn : n = 0
· subst n
simp
· exact div_mul_cancel₀ _ (Nat.cast_ne_zero.mpr hn)
apply tendsto_atTop_mono _ hsum
intro n
apply Finset.sum_le_sum
intro k _
by_cases hk : 1 < X k ω
· have hraw := Real.le_coe_toNNReal (X k ω)
simpa [B, b, Set.indicator_of_mem, hk, ε] using hk.le.trans hraw
· simp [B, b, hk]
exact ⟨hP, fun k => ⟨hX k, hε k, hmap k⟩, hindep, hgood, hdiv⟩
end AutoSamplingTheory.TechnicalLemmas.Probability.UnitExponentialProduct
Open AutoSamplingTheory/TechnicalLemmas/Probability/UnitExponentialProduct.lean:34published source at ed709a7f320d
Proof architecture
PBPS clock consumer; no SALD claim
Lean proof walkthrough
- Read the quantified variables and typeclass brackets as part of the mathematical statement; inferred arguments are not missing assumptions.
- `intro` introduces quantified hypotheses into the local proof context.
- `have` creates a named intermediate mathematical fact.
- `calc` records an equality or inequality chain matching a paper calculation.
- `rw` rewrites by an established identity.
- `simp` normalizes through registered definitional and theorem rewrites.
- `apply` reduces the goal to the hypotheses of a reusable theorem.
- `exact` closes the current goal with an already typed term.
Why the statement has this shape
The declaration is kept at the reusable level recorded by its Registry tags and direct consumers. Explicit measures, spaces, wrappers, and regularity hypotheses expose interfaces that paper notation often infers. A theorem card explains those interfaces but never widens the compiled statement.
Hidden assumptions and non-claims
- Measurability is represented explicitly or must be supplied by a dependency.
- Integrability is an input or proved output; a displayed integral alone does not supply it.
- Almost-everywhere hypotheses depend on the stated measure and representative.