AI-centered Lean proof classifies base-three partition counts

For partitions of {1,…,n}\{1,\ldots,n\} into nonempty blocks of at most three elements whose sums are powers of three, the count is exactly one on Nu={1,2,3,4}∪{3t+d:t≥2, d∈{−4,−2,−1,0,1,2,3,5}}N_u=\{1,2,3,4\}\cup\{3^t+d:t\ge2,\ d\in\{-4,-2,-1,0,1,2,3,5\}\}; exactly two on E2={13}∪{3t−3:t≥2}∪{3t−6:t≥3}E_2=\{13\}\cup\{3^t-3:t\ge2\}\cup\{3^t-6:t\ge3\}; and at least three otherwise.

Both partitions of one through twenty-one share nine blocks. They differ only in how they group four, five, nine and eighteen into blocks of sum nine and twenty-seven.
Partition {1,…,n}\{1,\ldots,n\} into nonempty blocks of at most three members whose sums are powers of three. The exact enumeration at n=21n=21 gives two partitions. They share {1,2}\{1,2\}, {3}\{3\} and the seven sum-27 pairs {6,21}\{6,21\}, {7,20}\{7,20\}, {8,19}\{8,19\}, {10,17}\{10,17\}, {11,16}\{11,16\}, {12,15}\{12,15\} and {13,14}\{13,14\}. The other two blocks are shown. The formal classification gives exactly two on the full family n=3t−6n=3^t-6 for t≥3t\ge3, along with the other two-count cases in the source.

What was already known

Gurvich and Naumova conjectured existence for every n, proved exact counts in selected cases, and conjectured more than two partitions in the remaining cases.

How the result developed

  1. 31 Jul 2025 · Earlier partition classification [1]

    Vladimir Gurvich and Mariya Naumova proved uniqueness of the base-three partition for a specified family of sizes and conjectured existence for every size.

  2. 18 Sept 2026 · Registry publication [2]

    Palomar published the Lean proof classifying the base-three partition counts.

Follow new evidence and revisions to this result.

Get email updates

Download contribution history

Contribution Assessment

AI involvement

JD Jones directed the project. The disclosure names Claude, GPT-6 and Grok and says that the classification and its proof arose in consultation among these systems. Claude wrote the repository, which also contains an unchanged copy of the earlier development.

Importance

The classification completes the base-three counting problem and gives infinitely many n=3t−6n=3^{t}-6 with exactly two partitions, contradicting that conjecture.

Technical verification

The source reports kernel-checked exhaustive bases and a sorry-free Lean proof of the four universal classification theorems; independent Python counts supplement finite cases only. This review did not rerun the build.

Machine checking

Lean 4/Mathlib with decide +kernel exact finite search and induction

Checker
Lean 4 kernel
Scope
GNM.count_eq_one_iff, count_eq_two_iff, three_le_count_iff and count_eq_two_of_add_six
Basis
Source-reported

Human understanding

The detailed proof map is available, but no named human explanation of the central stabilization/frame mechanism is documented; Few is an evidence-gap default.

Other useful sources

View revision history
· addition

Added the research timeline.

· addition

Added a source excerpt documenting AI involvement.

· publication

The classification completes the base-three counting problem and gives infinitely many n=3t−6n=3^{t}-6 with exactly two partitions, contradicting that conjecture.

Exactly two partitions at 21

Open SVG

Both partitions of one through twenty-one share nine blocks. They differ only in how they group four, five, nine and eighteen into blocks of sum nine and twenty-seven.
Partition {1,…,n}\{1,\ldots,n\} into nonempty blocks of at most three members whose sums are powers of three. The exact enumeration at n=21n=21 gives two partitions. They share {1,2}\{1,2\}, {3}\{3\} and the seven sum-27 pairs {6,21}\{6,21\}, {7,20}\{7,20\}, {8,19}\{8,19\}, {10,17}\{10,17\}, {11,16}\{11,16\}, {12,15}\{12,15\} and {13,14}\{13,14\}. The other two blocks are shown. The formal classification gives exactly two on the full family n=3t−6n=3^t-6 for t≥3t\ge3, along with the other two-count cases in the source.JD Jones directed the work. Claude, GPT-6 and Grok contributed to the classification and proof. Claude wrote the new Lean counting development, building on the earlier existence work.