Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Integer quartic comparison is exactly the analytic threshold test

Proved
ThreeSum1960614.cleared_switch_equivalence

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

3sumentropyexact-certificates

For arbitrary natural J,s,j,q with J>0, s>0 and j<J, the published clearedSwitch integer comparison holds if and only if P(q/((J-j)s)) is at least (v+j/J)/(1-j/J), with v=159243801/500000000 and the exact quartic P. There is no restriction on q beyond being a natural number. The positive-depth hypothesis identifies real subtraction with truncated natural subtraction and makes all cleared denominators positive.

Preamble
import Definitions.Def_ThreeSum1960614_Analysis

set_option autoImplicit false
set_option relaxedAutoImplicit false
open ThreeSum1960614
Formal statement
theorem ThreeSum1960614.cleared_switch_equivalence (J s j q : ℕ) (hJ : 0 < J) (hs : 0 < s) (hj : j < J) :
    clearedSwitch J s j q ↔
      threshold ((j : ℝ) / J) ≤ phi ((q : ℝ) / ((J - j) * s))  := by sorry
Source
Author-supplied 3sum_certificate_1p960614_v3/3sum_certificate_v3/PROOF.md, Section 4.2, comparison (I); certificate c232_quartic.json; 14 October 2026.

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