Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

OAI.DilutedSpinGlass.ConcreteReservoir.scoreError_tendsto: intermediate lemma from OpenAI, The Mézard–Parisi formula for diluted spin glasses (result family 221)

Proved
OAI.DilutedSpinGlass.ConcreteReservoir.scoreError_tendsto

by dbenbenn · Oct 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

openai-math

An intermediate lemma of the split of OpenAI's proof of OAI.DilutedSpinGlass.mezard_parisi, carved from OpenAI's openai/math development for this platform. The statement and its proof are OpenAI's (OpenAI, The Mézard–Parisi formula for diluted spin glasses (result family 221), OpenAI Math Release, September 23, 2026, result family 221, github.com/openai/math, Apache License 2.0); in Lean it is the declaration OAI.DilutedSpinGlass.ConcreteReservoir.scoreError_tendsto of lean/OAI/Probability/DilutedSpin/DilutedSpin/ConcreteReservoir.lean at commit adc7f12, ported to Lean 4.33.1 and Mathlib 0df444a.

The statement, as published (namespace OAI.DilutedSpinGlass.ConcreteReservoir, with open _root_.MeasureTheory ProbabilityTheory HeterogeneousMarks PhysicalRoot, open scoped NNReal BigOperators Topology):

theorem scoreError_tendsto (M : Model p) {C H c : ℝ} (hC : 0 ≤ C) (hH : 0 ≤ H) (hc : 0 < c)
    (hm : ∀ l, c ≤ m l) (hw : ∀ j, 0 < ν.real {j})
    (hD : ∀ q σ y, |D q σ y| ≤ 1) (hE : ∀ q σ y, |E q σ y| ≤ 1) (j : K×ℕ) :
    Filter.Tendsto (fun N => ∫ u, scoreError ν Q m D E M C H j N u
      ∂Measure.infinitePi (fun i : K×ℕ => intervalParameterLaw (probeLow i.2) (probeHigh i.2)))
      Filter.atTop (𝓝 0)

Definitions. The statement is written with OAI.DilutedSpinGlass.FiniteLaw, OAI.DilutedSpinGlass.FinitePath, OAI.DilutedSpinGlass.intervalParameterLaw, OAI.DilutedSpinGlass.probeHigh, OAI.DilutedSpinGlass.probeLow and OAI.DilutedSpinGlass.ConcreteReservoir.scoreError (definitions bundle OAIQ041D000 of this split); OAI.DilutedSpinGlass.Model and OAI.DilutedSpinGlass.Spin (the published bundle Def_DilutedSpin).

Used by. The proof of OAI.DilutedSpinGlass.UniversalDictionary.universal_analytic_selection of this split imports it.

Preamble
import Mathlib
import Definitions.Def_DilutedSpin
import Definitions.Def_OAIQ041D000
Formal statement
section

attribute [-instance] _root_.OAI.DilutedSpinGlass.PrescribedTree.upperDatumLaw_probability _root_.OAI.DilutedSpinGlass.UniversalDictionary.reservoirLaw_prob
set_option linter.all false
set_option linter.unusedVariables false
set_option linter.unusedTactic false
set_option linter.unreachableTactic false

namespace OAI

section
section
namespace DilutedSpinGlass.ConcreteReservoir
open _root_.MeasureTheory ProbabilityTheory HeterogeneousMarks PhysicalRoot
open scoped NNReal BigOperators Topology

variable {K : Type} [Countable K] [MeasurableSpace K] [MeasurableSingletonClass K] [DecidableEq K]
  {A : K → Type} [∀ q, Fintype (A q)] {L p : ℕ}
  (ν : Measure (K×ℕ)) [IsProbabilityMeasure ν]
  (Q : (q : K) → Fin (L+1) → FiniteLaw (A q)) (m : Fin (L+1) → ℝ)
  (D E : (q : K) → Spin → FinitePath (A q) (L+1) → ℝ)

theorem scoreError_tendsto (M : Model p) {C H c : ℝ} (hC : 0 ≤ C) (hH : 0 ≤ H) (hc : 0 < c)
    (hm : ∀ l, c ≤ m l) (hw : ∀ j, 0 < ν.real {j})
    (hD : ∀ q σ y, |D q σ y| ≤ 1) (hE : ∀ q σ y, |E q σ y| ≤ 1) (j : K×ℕ) :
    Filter.Tendsto (fun N => ∫ u, scoreError ν Q m D E M C H j N u
      ∂Measure.infinitePi (fun i : K×ℕ => intervalParameterLaw (probeLow i.2) (probeHigh i.2)))
      Filter.atTop (𝓝 0) := by
  sorry

end DilutedSpinGlass.ConcreteReservoir
end

end

end OAI
end
Source
OpenAI, The Mézard–Parisi formula for diluted spin glasses (result family 221), OpenAI Math Release, September 23, 2026, https://github.com/openai/math (result family 221; paper: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/The-Mezard-Parisi-formula-for-diluted-spin-glasses-September-23-2026/paper.pdf; Apache License 2.0); Lean: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Probability/DilutedSpin/DilutedSpin/ConcreteReservoir.lean (declaration OAI.DilutedSpinGlass.ConcreteReservoir.scoreError_tendsto)

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me