Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The two multisets have identical power sums up to degree `n - 1`.

Proved
TraceDistribution.binom_powerSum_eq

by raver1975 · Sep 12, 2026 · Mathlib c5ea003 (Lean v4.30.0)

aether-cataloglogic

The two multisets have identical power sums up to degree n - 1.

theorem TraceDistribution.binom_powerSum_eq(n j : ℕ) (hj : j < n) :
    (Multiset.map (fun a => a ^ j) (binomEven n)).sum
      = (Multiset.map (fun a => a ^ j) (binomOdd n)).sum := by sorry

Formalization Note Transplanted verbatim from the Aether Catalog source Logic/TraceDistribution/Sharpness.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.

Preamble
-- Thm stub generated from Logic/TraceDistribution/Sharpness.lean
import Mathlib
import Definitions.Def_Logic_TraceDistribution_Sharpness
/-
# The power-sum threshold is exactly optimal

`Logic.TraceDistribution.PowerSums` shows that a multiset of naturals with all values
`< n` (equivalently, with joint support of size `≤ n`) is determined by its power sums
`p_0, …, p_{n-1}`.  This file proves that this threshold cannot be lowered by even one
degree, by an explicit construction:

`binomEven n` and `binomOdd n` are the *even* and *odd* parts of the `n`-th alternating
binomial (finite-difference) measure on `{0, 1, …, n}`, i.e.

  `binomEven n = ⨄_{k ≤ n, n-k even} C(n,k) copies of k`,
  `binomOdd  n = ⨄_{k ≤ n, n-k odd } C(n,k) copies of k`.

Because the `n`-th forward difference annihilates every polynomial of degree `< n`, the
two multisets have *identical* power sums `p_0, …, p_{n-1}`, while they differ (the
value `n` occurs once in the first and never in the second).  Both have all values
`≤ n` and joint support exactly `{0, …, n}`, of size `n + 1`.

Combining with `multiset_eq_of_powerSum_eq` this pins the threshold exactly:

* `powerSum_rigidity_at_threshold` — `n + 1` power sums suffice;
* `powerSum_rigidity_fails_below_threshold` — `n` power sums do not.

This is the *cross-domain* half of the trace-distribution story: rigidity comes from
Lagrange interpolation (linear algebra over `ℚ`), and the exact failure boundary comes
from the calculus of finite differences (the binomial transform).

## Lab notes (experimental data)

`n = 2`: `binomEven 2 = {0, 2}` (`k = 0, 2`), `binomOdd 2 = {1, 1}`.
  `p_0 : 2 = 2`,  `p_1 : 2 = 2`,  `p_2 : 4 ≠ 2`.  Threshold `n + 1 = 3` is needed.
`n = 3`: `binomEven 3 = {1,1,1,3}`, `binomOdd 3 = {0,2,2,2}`.
  `p_0 : 4 = 4`,  `p_1 : 6 = 6`,  `p_2 : 12 = 12`,  `p_3 : 30 ≠ 24`.
`n = 4`: `binomEven 4 = {0,2,2,2,2,2,2,4}`, `binomOdd 4 = {1,1,1,1,3,3,3,3}`.
  `p_0 = 8 = 8`, `p_1 = 16 = 16`, `p_2 = 40 = 40`, `p_3 = 112 = 112`, `p_4 = 352 ≠ 328`.
`n = 5`: `p_0 … p_4` all agree (`16, 40, 120, 400, 1440`), and `p_5 : 5560 ≠ 5440`.

The top-degree gaps are `4-2 = 2`, `30-24 = 6`, `352-328 = 24`, `5560-5440 = 120`, i.e.
exactly `n !` (OEIS A000142).  This is proved in general as `binom_powerSum_top_gap`,
so the two multisets are not merely different — the discrepancy is the factorial.
-/

open Finset

open TraceDistribution

/-! ## A multiset built from a multiplicity function -/





/-! ## The alternating binomial pair -/
Formal statement
theorem TraceDistribution.binom_powerSum_eq(n j : ℕ) (hj : j < n) :
    (Multiset.map (fun a => a ^ j) (binomEven n)).sum
      = (Multiset.map (fun a => a ^ j) (binomOdd n)).sum := by sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/Logic/TraceDistribution/Sharpness.lean#L118

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