Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

OAI.SharpTerminalLeave.prefix_all_pair_closure: intermediate lemma from OpenAI, The sharp terminal leave in random triangle removal

Proved
OAI.SharpTerminalLeave.prefix_all_pair_closure

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

openai-math

An intermediate lemma of the split of OpenAI's proof of OAI.SharpTerminalLeave.sharp_terminal_leave, carved from OpenAI's openai/math development for this platform. The statement and its proof are OpenAI's (OpenAI, The sharp terminal leave in random triangle removal, OpenAI Math Release, September 25, 2026, result family 188, github.com/openai/math, Apache License 2.0); in Lean it is the declaration OAI.SharpTerminalLeave.prefix_all_pair_closure of lean/OAI/Combinatorics/TriangleRemoval/TriangleRemoval/Tracking/PrefixPairClosureBudget.lean at commit adc7f12, ported to Lean 4.33.1 and Mathlib 0df444a.

The statement, as published (namespace OAI.SharpTerminalLeave, with open scoped BigOperators, open Filter Classical):

theorem prefix_all_pair_closure : ∀ᶠ n : ℕ in atTop,
    ∀ ω : History (Graph n) (prefixTime n),
    ω ∈ (historyLaw (PMF.pure (completeGraph n)) (fun _ => step) (prefixTime n) (prefixTime n)).support →
    PrefixRootedUpper 8001 n ω → PrefixBalancedNoise 8001 n ω →
    PrefixTriangleNoise n ω → PrefixCodegreeNoiseGood n ω →
    ∀ j ≤ prefixTime n, ∀ u v : Fin n, u ≠ v →
      |prefixNormalizedCodegree u v j (ω (historyIndex (prefixTime n) j))-1| ≤ prefixWheelRadius n/2

Definitions. The statement is written with OAI.SharpTerminalLeave.History, OAI.SharpTerminalLeave.PrefixBalancedNoise, OAI.SharpTerminalLeave.PrefixCodegreeNoiseGood, OAI.SharpTerminalLeave.PrefixRootedUpper, OAI.SharpTerminalLeave.PrefixTriangleNoise, OAI.SharpTerminalLeave.historyIndex, OAI.SharpTerminalLeave.historyLaw, OAI.SharpTerminalLeave.prefixNormalizedCodegree, OAI.SharpTerminalLeave.prefixTime and OAI.SharpTerminalLeave.prefixWheelRadius (definitions bundle OAIQ4Tr000 of this split); OAI.SharpTerminalLeave.Graph, OAI.SharpTerminalLeave.completeGraph and OAI.SharpTerminalLeave.step (the published bundle Def_TriangleRemoval).

Used by. The proof of OAI.SharpTerminalLeave.prefix_good_history of this split imports it.

Preamble
import Mathlib
import Definitions.Def_TriangleRemoval
import Definitions.Def_OAIQ4Tr000
Formal statement
section

set_option linter.all false
set_option linter.unusedVariables false
set_option linter.unusedTactic false
set_option linter.unreachableTactic false

namespace OAI

section
noncomputable section
open scoped BigOperators
open Filter Classical

namespace SharpTerminalLeave

theorem prefix_all_pair_closure : ∀ᶠ n : ℕ in atTop,
    ∀ ω : History (Graph n) (prefixTime n),
    ω ∈ (historyLaw (PMF.pure (completeGraph n)) (fun _ => step) (prefixTime n) (prefixTime n)).support →
    PrefixRootedUpper 8001 n ω → PrefixBalancedNoise 8001 n ω →
    PrefixTriangleNoise n ω → PrefixCodegreeNoiseGood n ω →
    ∀ j ≤ prefixTime n, ∀ u v : Fin n, u ≠ v →
      |prefixNormalizedCodegree u v j (ω (historyIndex (prefixTime n) j))-1| ≤ prefixWheelRadius n/2 := by
  sorry

end SharpTerminalLeave
end
end

end OAI
end
Source
OpenAI, The sharp terminal leave in random triangle removal, OpenAI Math Release, September 25, 2026, https://github.com/openai/math (result family 188; paper: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/The-Sharp-Terminal-Leave-in-Random-Triangle-Removal-September-25-2026/The-Sharp-Terminal-Leave-in-Random-Triangle-Removal-September-25-2026.pdf; Apache License 2.0); Lean: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Combinatorics/TriangleRemoval/TriangleRemoval/Tracking/PrefixPairClosureBudget.lean (declaration OAI.SharpTerminalLeave.prefix_all_pair_closure)

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