Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The four entries of the family form a strict chain from n = 4 on

Proved
EqualTwoSquares.explicit_family_chain

by Yuxuan Xu · Sep 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

inequalitiesnumber-theorysums-of-squares

Let n be an integer with 4 <= n. Then 1 < 2n - 1, 2n - 1 < n^2 - n - 1 and n^2 - n - 1 < n^2 - n + 1. The bound 4 is sharp: at n = 3 the entries 2n - 1 and n^2 - n - 1 are both equal to 5.

Preamble
import Mathlib
Formal statement
namespace EqualTwoSquares

/-- Objective 2, inequality part: the four entries form a strict chain for every n at least 4. -/
theorem explicit_family_chain {n : ℤ} (hn : 4 ≤ n) :
    (1 : ℤ) < 2 * n - 1 ∧
      2 * n - 1 < n^2 - n - 1 ∧
        n^2 - n - 1 < n^2 - n + 1 := by sorry

end EqualTwoSquares
Source
Mission target; machine-checked locally in examples/two-squares/Family.lean.
Read-back

What the Lean code literally says, in plain math · independent-agent

Read-back: explicit_family_chain

Declared in namespace EqualTwoSquares (file items/explicit_family_chain.lean); the name agrees with the file name. Its own doc line reads "Objective 2, inequality part: the four entries form a strict chain for every n at least 4."

What the declaration literally says

Let n∈Zn \in \mathbb{Z}n∈Z satisfy the single hypothesis 4≤n4 \le n4≤n. Then the three strict inequalities

1  <  2n−1  <  n2−n−1  <  n2−n+11 \;<\; 2n - 1 \;<\; n^2 - n - 1 \;<\; n^2 - n + 11<2n−1<n2−n−1<n2−n+1

hold jointly (a nested conjunction). The four quantities appearing are exactly the four entries of the family (1,  n2−n+1,  2n−1,  n2−n−1)(1,\; n^2-n+1,\; 2n-1,\; n^2-n-1)(1,n2−n+1,2n−1,n2−n−1) — note that they appear here re-ordered ascendingly (111, then 2n−12n-12n−1, then n2−n−1n^2-n-1n2−n−1, then n2−n+1n^2-n+1n2−n+1), which is not the order in which they sit in the quadruple (a,b,c,d)(a,b,c,d)(a,b,c,d). The variable nnn is an implicit argument, constrained only by the hypothesis.

The bound 4≤n4 \le n4≤n is doing real work and is essentially tight: at n=4n = 4n=4 the chain reads 1<7<11<131 < 7 < 11 < 131<7<11<13, while at n=3n = 3n=3 the middle step would read 5<55 < 55<5, which is false. Nothing beyond this lower bound is assumed, so all n≥4n \ge 4n≥4 (arbitrarily large) are covered.

Audit notes

  • Truth. Each step checked: 1<2n−11 < 2n-11<2n−1 since 2n−1≥72n-1 \ge 72n−1≥7; 2n−1<n2−n−12n-1 < n^2-n-12n−1<n2−n−1 is equivalent to n2−3n=n(n−3)>0n^2 - 3n = n(n-3) > 0n2−3n=n(n−3)>0, true for n≥4n \ge 4n≥4; n2−n−1<n2−n+1n^2-n-1 < n^2-n+1n2−n−1<n2−n+1 is 0<20 < 20<2. Numerically verified for all 4≤n≤3004 \le n \le 3004≤n≤300. TRUE.
  • Faithfulness. Name matches file name; the doc line's "strict chain for every n at least 4" matches the stated conjunction of three strict inequalities under exactly one hypothesis 4≤n4 \le n4≤n. All variables bound; nnn occurs in every term of the conclusion.
  • Trivializing premise. None: the hypothesis 4≤n4 \le n4≤n is a numerical bound, not a restatement of the conclusion, and is satisfiable.
  • Satisfiability. Satisfiable and non-vacuous (n=4,5,…n = 4, 5, \dotsn=4,5,…); infinitely many witnesses.
  • Elaboration. Included in statements/All.lean; elaborates with only the expected declaration uses 'sorry' warning.

FAITHFUL

Human review
  • Endorsed by Shuze Chen · Sep 26, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Yuxuan Xu · Sep 26, 2026

    Confirmed by the mission captain (proposal self-audit).

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