Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Entropy estimate from the rounded switching inequality

Proved
ThreeSum1960614.Machine.ThreeSum.Parameters.switch_entropy_bound

by Yuxuan Xu · Oct 15, 2026 · Mathlib 0df444a (Lean v4.33.1)

3sum-1960614machine-correctnessruntime-analysis

Let a,t,μ∈Ra,t,\mu\in\mathbb Ra,t,μ∈R satisfy 0≤a≤aterm0\le a\le a_{\rm term}0≤a≤aterm​, 0≤t≤1/20\le t\le1/20≤t≤1/2 and μ>0\mu>0μ>0. Let ϕ\phiϕ, switch threshold S(a)S(a)S(a), binary entropy HHH, entropy ratio RRR, box saving η\etaη and band shift β\betaβ be the fixed certified parameter functions/constants. If

ϕ(t)<S(a)+9(1−a)μ,\phi(t)<S(a)+\frac9{(1-a)\mu},ϕ(t)<S(a)+(1−a)μ9​,

then

(1−a)H(t)<R(1+η−2β)+9Rμ.(1-a)H(t)<R(1+\eta-2\beta)+\frac{9R}{\mu}.(1−a)H(t)<R(1+η−2β)+μ9R​.

This transfers the exact integer switch rounding allowance into the entropy exponent used for finite query counts.

Preamble
import Definitions.Def_ThreeSum1960614_Analysis
import Definitions.Def_ThreeSum1960614_Machine_Bundle001
import Definitions.Def_ThreeSum1960614_Machine_Bundle004
import Definitions.Def_ThreeSum1960614_Machine_Bundle005
import Definitions.Def_ThreeSum1962Source_Bundle01
import Lean
import Mathlib.Analysis.Calculus.MeanValue
import Mathlib.Analysis.Complex.ExponentialBounds
import Mathlib.Analysis.Convex.Deriv
import Mathlib.Analysis.SpecialFunctions.BinaryEntropy
import Mathlib.Analysis.SpecialFunctions.Log.Deriv
import Mathlib.Analysis.SpecialFunctions.Pow.NthRootLemmas
import Mathlib.Analysis.SpecificLimits.Basic
import Mathlib.Analysis.SpecificLimits.Normed
import Mathlib.Data.Finset.Max
import Mathlib.Data.Nat.Choose.Bounds
import Mathlib.Data.Nat.Choose.Sum
import Mathlib.Tactic
import Theorems.Thm_ThreeSum1960614_uniform_entropy_bound

namespace Set
end Set
namespace ThreeSum
end ThreeSum
namespace ThreeSum.Parameters
end ThreeSum.Parameters
namespace ThreeSum1960614.Machine.ThreeSum
end ThreeSum1960614.Machine.ThreeSum
namespace ThreeSum1960614.Machine.ThreeSum.Parameters
end ThreeSum1960614.Machine.ThreeSum.Parameters

open _root_.ThreeSum
open _root_.ThreeSum1960614.Machine.ThreeSum

open _root_.ThreeSum.Parameters
open _root_.ThreeSum1960614.Machine.ThreeSum.Parameters

open _root_.Set
Formal statement
theorem ThreeSum1960614.Machine.ThreeSum.Parameters.switch_entropy_bound {a t mu : ℝ}
    (ha : a ∈ Icc (0 : ℝ) _root_.ThreeSum1960614.Machine.ThreeSum.Parameters.terminalFraction) (ht : t ∈ Icc (0 : ℝ) (1/2))
    (hmu : 0 < mu) (hswitch : _root_.ThreeSum1960614.Machine.ThreeSum.Parameters.phi t < _root_.ThreeSum1960614.Machine.ThreeSum.Parameters.switchThreshold a+9/((1-a)*mu)) :
    (1-a)*_root_.ThreeSum.Parameters.entropy t < _root_.ThreeSum1960614.Machine.ThreeSum.Parameters.entropyRatio*(1+_root_.ThreeSum1960614.Machine.ThreeSum.Parameters.boxSaving-2*_root_.ThreeSum1960614.Machine.ThreeSum.Parameters.bandShift)+9*_root_.ThreeSum1960614.Machine.ThreeSum.Parameters.entropyRatio/mu := by sorry
Source
https://github.com/Anchen0823/three-sum-1960614/blob/8c25c0325de5be4286413f39ca0c9278aad33f52/Submission/ThreeSum/Parameters.lean#L187-L201

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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me