Repository navigation
feat: a composite strong law of large numbers under bounded centred first moments - #433
Open
RemyDegenne wants to merge 2 commits into
Open
RemyDegenne wants to merge 2 commits into
RemyDegenne wants to merge 2 commits into
Conversation
…irst moments For a set of integrable laws on ℝ with centred first absolute moments at most c, for every α > 0 some stopping time of Filtration.piLE is finite on every sequence whose sample means do not converge and finite with probability at most α under i.i.d. sampling from each law: the stopping-time form of the composite strong law of EValues, Layer 3, item 5. On the way: Doob's upcrossing inequality with the initial term, and maximal and upcrossing inequalities for the sample means of an exchangeable sequence, from the reverse martingale of the sample means. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0196ftMVbgjSJzPQEwdek3kM
The unicode style linter rejects U+0304 (combining macron) in `X̄ₙ`; write the sample means as `Aₙ` instead. Co-Authored-By: Claude Code <noreply@github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request proves a composite strong law of large numbers in stopping-time form. Take a set of integrable laws on
ℝwhose centred first absolute moments are at most one constantc. For everyα > 0, some stopping time ofFiltration.piLEis finite on every sequence whose sample means do not converge, and finite with probability at mostαunder i.i.d. sampling from each law. On the way it proves Doob's upcrossing inequality with the initial term, and a maximal inequality and an upcrossing inequality for the sample means of an exchangeable sequence. It adds three new files and changes no existing file:LMLExplore/Probability/Martingale/Upcrossing.lean(85 lines)LMLExplore/Probability/Martingale/SampleMean.lean(285 lines)LMLExplore/EValues/CompositeStrongLaw.lean(258 lines)Main declarations
ProbabilityTheory.exists_isStoppingTime_lt_top_of_not_tendsto_mean, the composite strong law. It takesS : Set (Measure ℝ)with∀ P ∈ S, Integrable id Pand∀ P ∈ S, ∫ x, |x - ∫ y, y ∂P| ∂P ≤ c, and a level0 < α. It givesτ : (ℕ → ℝ) → WithTop ℕsuch that:IsStoppingTime (Filtration.piLE (X := fun _ : ℕ ↦ ℝ)) τ;Measure.infinitePi (fun _ ↦ P) {ω | τ ω < ⊤} ≤ αfor everyP ∈ S;τ ω < ⊤for everyωsuch that(∑ i ∈ Finset.range n, ω i) / nhas no limit inℝ.ProbabilityTheory.mul_measure_exists_le_abs_sum_div_sub_le, the maximal inequality for sample means. Letμbe a finite exchangeable law onℕ → ℝ(Tau Ceti'sExchangeableLaw) whose first coordinate is integrable. Then for everym : ℝandL : ℝ≥0,L * μ {ω | ∃ n, L ≤ |(∑ i ∈ range (n + 1), ω i) / (n + 1) - m|} ≤ ENNReal.ofReal (∫ ω, |ω 0 - m| ∂μ).ProbabilityTheory.mul_lintegral_upcrossings_sum_div_le, the upcrossing inequality for sample means. Letμbe an exchangeable probability measure whose first coordinate is integrable, with meanm = ∫ ω, ω 0 ∂μ. ThenENNReal.ofReal (b - a) * ∫⁻ ω, upcrossings a b (sample means) ω ∂μ ≤ ENNReal.ofReal (∫ ω, |ω 0 - m| ∂μ). This holds for alla,b, and the bound does not depend on where[a, b]lies relative tom.MeasureTheory.Submartingale.mul_integral_upcrossingsBefore_le_integral_posPart_sub:(b - a) * 𝔼[upcrossingsBefore a b f N] ≤ 𝔼[(f N - a)⁺] - 𝔼[(f 0 - a)⁺], for every submartingalefand alla,b. Mathlib'sSubmartingale.mul_integral_upcrossingsBefore_le_integral_pos_partdrops the last term.MeasureTheory.StronglyAdapted.adapted_upcrossingsBefore: the upcrossing counts of an adapted process are adapted. Mathlib'sStronglyAdapted.measurable_upcrossingsBeforegives measurability only for the ambient σ-algebra.Roadmap coverage (EValues, Layer 3, item 5)
Covered: the bullet "Instance, a composite strong law", in the stopping-time form that the bullet gives. The null is the set of i.i.d. laws
Measure.infinitePi fun _ ↦ P, wherePranges over integrable laws with∫ |x - ∫ y dP(y)| dP(x) ≤ c. The setAis the set of sequences whose sample means do not converge inℝ. The theorem gives, for everyα > 0, a stopping time ofFiltration.piLEthat is finite onAand finite with probability at mostαunder every member of the null.Left: the statement
ν A = 0. LMLExplore does not have the inverse capital outer measureνof this item yet, so that statement waits for its definition. It follows from this theorem by the definition ofν. The rest of item 5 is not touched:νand its outer-measure properties, [RLKR23, Theorems 3.1 and 3.7], and the truncated-Cauchy example.Notes for reviewers
N. Under an exchangeable law,k ↦ X̄_{N - k}is a martingale for the σ-algebras of the events that are symmetric in the firstN - k + 1coordinates. HereX̄ₙ = (X₀ + ⋯ + Xₙ) / (n + 1)is the sample mean.|X̄_{N - k} - m|.upcrossingsBefore_le_upcrossingsBefore_neg_revProcess_succ. It bounds the upcrossings of[a, b]byX̄by the upcrossings of[-b, -a]by the negated reversed means.𝔼(b - X₀)⁺ - 𝔼(b - X̄_N)⁺ ≤ 𝔼(b - X₀)⁺ - (b - m)⁺ ≤ 𝔼|X₀ - m|. Mathlib's form of Doob's inequality gives𝔼(b - X₀)⁺, which grows withb - m, so it would not give a bound uniform over the null.nat which, for some rational paira < b, the meansX̄₀, …, X̄ₙhave completedK (a, b)upcrossings of[a, b], or at which|X̄ₙ - X₀| ≥ 2L.K (a, b)come from summable positive weights onℚ × ℚ(ENNReal.exists_pos_sum_of_countable).tendsto_of_upcrossings_lt_top.MeasureTheory.revFiltration, and the time reversal is Tau Ceti'srevProcess,upcrossingsBefore_le_upcrossingsBefore_neg_revProcess_succandupcrossingsBefore_succ_congr. The maximal inequality comes from Tau Ceti'sMartingale.submartingale_normandSubmartingale.mul_measure_exists_mem_le_le. Exchangeability comes from Tau Ceti'sExchangeableLaw,ExchangeableLaw.measurePreserving_permReindexandexchangeableLaw_infinitePi_const. Integrals and measurability under products come from Statlib'sintegral_comp_eval_infinitePiandFiltration.measurable_piLE_apply. The symmetric σ-algebras and the sample means are private helpers.ν A = 0; see above.S : Set (Measure ℝ), and the members are not assumed to be probability measures. The hypothesis∀ P ∈ S, IsProbabilityMeasure Pof the Conventions is dropped because the proof does not use it: for aPthat is not a probability measure,Measure.infinitePi fun _ ↦ Pis zero.mΩ = ⨆ n, ℱ nfor item 5 is not needed for this statement.ℕ → ℝ, since the proof only uses the invariance of the law under swaps of coordinates. They are not restricted to i.i.d. laws. The maximal inequality holds for every centrem, not only the mean, and for finite measures.nobservations of an i.i.d. sequence, but this proof does not need them. No public name is shared with an open pull request.Probability/Martingale/: the upcrossing inequality inUpcrossing.lean, the sample-mean inequalities inSampleMean.lean. Only the composite strong law is inEValues/.Roadmap: EValues
Paper: RemyDegenne/evalues_research
Item: R19
🤖 Generated with Claude Code
https://claude.ai/code/session_0196ftMVbgjSJzPQEwdek3kM