weighted_catalan_counterexample_satisfies_conditions
For every integer t, the polynomial b_t satisfies: b_t(0) is odd; 2^(k - s_2(k)) divides (Δ^k b_t)(x) for all k ≥ 2 and all natural numbers x, where s_2(k) is the sum of the binary digits of k; and b_t(0) ≡ b_t(1) mod 4.
Statement
theorem weighted_catalan_counterexample_satisfies_conditions (t : ℤ) :
Odd (weighted_catalan_poly t 0) ∧
(∀ k ≥ 2, ∀ x : ℕ, (2 : ℤ) ^ (k - binary_digit_sum k) ∣ iter_forward_diff k (weighted_catalan_poly t) x) ∧
(weighted_catalan_poly t 0 ≡ weighted_catalan_poly t 1 [ZMOD 4])- Formalizes
- arXiv:2611.26953, Lemma 7
- Verified
- 24 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 6
- forward_diffThe forward difference of a function f from the natural numbers to the integers is given by (Δ f)(x) = f(x + 1) - f(x).
- iter_forward_diffFor a natural number $k$ and a function $f : ℕ → ℤ$, the $k$-th iterated forward difference of $f$ is defined as the $k$-th iterate of the…
- binary_digit_sumThe sum of the digits in the binary representation of a natural number k.
- weighted_catalan_polyFor each integer parameter t, the polynomial function b_t from natural numbers to integers is defined by b_t(x) = (4t + 1)x^3 - x^2 + 1.
- weighted_catalan_poly_zeroFor every integer t, the polynomial b_t satisfies b_t(0) = 1.
- weighted_catalan_poly_one_sub_zeroFor every integer t, the difference b_t(1) - b_t(0) is equal to 4 * t.
- Used by 1
- weighted_catalan_conjecture_counterexampleFor every integer t, the function weighted_catalan_poly t satisfies: weighted_catalan_poly t 0 is odd; for all natural numbers k ≥ 2 and…
Read back from the Lean
For every integer $t$, the polynomial $P_t(x) = (4t+1)x^3 - x^2 + 1$ satisfies three conditions: 1. $P_t(0)$ is odd; 2. For every natural number $k \ge 2$ and every natural number $x$, $2^{k - s_2(k)}$ divides $(\Delta^k P_t)(x)$, where $s_2(k)$ is the sum of the base-2 digits of $k$, and $\Delta^k$ is the $k$-th iterated forward difference operator; 3. $P_t(0) \equiv P_t(1) \pmod 4$.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
The proof, explained
The theorem establishes that for every integer t, the polynomial b_t(x) = (4t+1)x^3 - x^2 + 1 satisfies the three conditions of the 2-adic valuation conjecture: b_t(0) is odd, 2^(k - s_2(k)) divides (Δ^k b_t)(x) for all k ≥ 2, and b_t(0) ≡ b_t(1) mod 4. The first condition holds because b_t(0) = 1. For the divisibility condition, the orders k = 2 and k = 3 are verified by providing explicit quotient witnesses and checking the polynomial identities, while for all k ≥ 4, the k-th forward difference vanishes identically because b_t has degree at most 3, so 2^(k - s_2(k)) divides 0. Finally, b_t(1) - b_t(0) = 4t, which is divisible by 4, yielding the modular congruence.
Iterating the forward difference k + 1 times is equivalent to applying the forward difference to the k-th iterated forward difference: Δ^(k+1) f = Δ(Δ^k f).
Unfolding the definition of the iterated forward difference as function iteration, this is the standard successor property of function iteration, Function.iterate_succ_apply'.
uses
Function.iterate_succ_apply'simp only [iter_forward_diff] exact Function.iterate_succ_apply' forward_diff k f
The forward difference of the zero function vanishes identically: Δ(0) = 0.
By functional extensionality, for any natural number x, the forward difference of the constant zero function is 0(x + 1) - 0(x) = 0 - 0 = 0.
funext x simp [forward_diff]
The fourth forward difference of the cubic polynomial b_t vanishes at every point: (Δ^4 b_t)(x) = 0. automation
Expanding the definition of the fourfold forward difference of the cubic polynomial b_t(x) = (4t+1)x^3 - x^2 + 1 into a combination of values of b_t, expanding all powers and products, and canceling terms using polynomial arithmetic yields 0, since the fourth difference of any polynomial of degree at most 3 is identically zero.
uses
Function.iterate_succ,Function.iterate_zero,Function.comp_apply,id_eqsimp only [iter_forward_diff, forward_diff, Function.iterate_succ, Function.iterate_zero, Function.comp_apply, id_eq, weighted_catalan_poly] push_cast ring
Every iterated forward difference of b_t of order k ≥ 4 vanishes identically: Δ^k b_t = 0.
We argue by induction on k ≥ 4 using Nat.le_induction. The base case k = 4 is weighted_catalan_counterexample_satisfies_conditions_fourth_diff. For the induction step, Δ^(n+1) b_t = Δ(Δ^n b_t) by weighted_catalan_counterexample_satisfies_conditions_iter_succ, which becomes Δ(0) by the induction hypothesis, and Δ(0) = 0 by weighted_catalan_counterexample_satisfies_conditions_forward_diff_zero.
uses
Nat.le_induction,weighted_catalan_counterexample_satisfies_conditions_fourth_diff,weighted_catalan_counterexample_satisfies_conditions_iter_succ,weighted_catalan_counterexample_satisfies_conditions_forward_diff_zerointro k hk induction k, hk using Nat.le_induction with | base => funext x; exact weighted_catalan_counterexample_satisfies_conditions_fourth_diff t x | succ n hn ih => rw [weighted_catalan_counterexample_satisfies_conditions_iter_succ, ih] exact weighted_catalan_counterexample_satisfies_conditions_forward_diff_zero
The theorem's three conjuncts are split, and the first conjunct holds: b_t(0) is odd.
We split the conjunction into three goals. For the first, evaluating the polynomial at 0 gives b_t(0) = 1 by weighted_catalan_poly_zero, and 1 is odd by odd_one.
uses
weighted_catalan_poly_zero,odd_onerefine ⟨?_, ?_, ?_⟩ · rw [weighted_catalan_poly_zero]; exact odd_one
For k = 2 and any natural number x, 2^(2 - s_2(2)) divides (Δ^2 b_t)(x). automation
We introduce k ≥ 2 and x, and split on whether k < 4 or k ≥ 4 using Nat.lt_or_ge. When k < 4, the possible values are k = 2 and k = 3. For k = 2, its binary digit sum is 1, so the required divisor is 2^(2 - 1) = 2. We provide the explicit cofactor 3 * ((4t + 1)(x + 1)) - 1, and verify by expanding the second forward difference and using ring arithmetic that (Δ^2 b_t)(x) = 2 * (3 * ((4t + 1)(x + 1)) - 1).
uses
Nat.lt_or_ge,Function.iterate_succ,Function.iterate_zero,Function.comp_apply,id_eq· intro k hk x rcases Nat.lt_or_ge k 4 with h | h · interval_cases k · have h2 : binary_digit_sum 2 = 1 := by decide rw [h2] norm_num refine ⟨3 * ((4 * t + 1) * (↑x + 1)) - 1, ?_⟩ simp only [iter_forward_diff, forward_diff, Function.iterate_succ, Function.iterate_zero, Function.comp_apply, id_eq, weighted_catalan_poly] push_cast ring
For k = 3 and any natural number x, 2^(3 - s_2(3)) divides (Δ^3 b_t)(x). automation
For k = 3, the binary digit sum is 2, so the required divisor is 2^(3 - 2) = 2. We provide the witness 3 * (4t + 1), and expand the third forward difference, verifying by polynomial arithmetic that (Δ^3 b_t)(x) = 2 * (3 * (4t + 1)).
uses
Function.iterate_succ,Function.iterate_zero,Function.comp_apply,id_eq· have h3 : binary_digit_sum 3 = 2 := by decide rw [h3] norm_num refine ⟨3 * (4 * t + 1), ?_⟩ simp only [iter_forward_diff, forward_diff, Function.iterate_succ, Function.iterate_zero, Function.comp_apply, id_eq, weighted_catalan_poly] push_cast ring
For all k ≥ 4 and any natural number x, 2^(k - s_2(k)) divides (Δ^k b_t)(x).
When k ≥ 4, the k-th forward difference Δ^k b_t is the zero function by weighted_catalan_counterexample_satisfies_conditions_iter_eq_zero. Since every integer divides 0 by dvd_zero, the divisibility condition holds.
uses
weighted_catalan_counterexample_satisfies_conditions_iter_eq_zero,dvd_zero· rw [weighted_catalan_counterexample_satisfies_conditions_iter_eq_zero t k h] exact dvd_zero _
The third conjunct holds: b_t(0) ≡ b_t(1) mod 4.
Congruence modulo 4 is equivalent to 4 dividing b_t(1) - b_t(0) by Int.modEq_iff_dvd. By weighted_catalan_poly_one_sub_zero, this difference is 4 * t, which is divisible by 4 by dvd_mul_right.
uses
Int.modEq_iff_dvd,weighted_catalan_poly_one_sub_zero,dvd_mul_right· rw [Int.modEq_iff_dvd, weighted_catalan_poly_one_sub_zero] exact dvd_mul_right 4 t
Function.iterate_succ_apply'- Iterating a function f a total of n + 1 times on an input x equals applying f to the n-th iterate of f on x: f^(n+1)(x) = f(f^n(x)).
Function.iterate_succ- The (n+1)-th iterate of a function f is the composition of the n-th iterate with f: f^(n+1) = f^n ∘ f.
Function.iterate_zero- The 0-th iterate of any function is the identity function: f^0 = id.
Function.comp_apply- Evaluating the composition of two functions at x gives f(g(x)): (f ∘ g)(x) = f(g(x)).
id_eq- The identity function returns its input unchanged: id(a) = a.
Nat.le_induction- Induction principle for natural numbers starting at a base value m: if P(m) holds, and P(n) implies P(n+1) for all n ≥ m, then P(n) holds for all n ≥ m.
weighted_catalan_counterexample_satisfies_conditions_fourth_diff- The fourth forward difference of the cubic polynomial b_t vanishes at every natural number x: (Δ^4 b_t)(x) = 0.
weighted_catalan_counterexample_satisfies_conditions_iter_succ- The (k+1)-th iterated forward difference of f is the forward difference of the k-th iterated forward difference: Δ^(k+1) f = Δ(Δ^k f).
weighted_catalan_counterexample_satisfies_conditions_forward_diff_zero- The forward difference of the constant zero function is the constant zero function: Δ(0) = 0.
weighted_catalan_counterexample_satisfies_conditions_iter_eq_zero- For every order k ≥ 4, the k-th iterated forward difference of b_t is identically zero: Δ^k b_t = 0.
weighted_catalan_poly_zero- The cubic polynomial b_t evaluated at 0 equals 1: b_t(0) = 1.
odd_one- The integer 1 is odd.
Nat.lt_or_ge- For any natural numbers n and m, either n < m or n ≥ m.
dvd_zero- Every element divides zero: a ∣ 0.
Int.modEq_iff_dvd- Two integers a and b are congruent modulo n if and only if n divides b - a.
weighted_catalan_poly_one_sub_zero- The difference b_t(1) - b_t(0) equals 4t.
dvd_mul_right- An element a divides the product a * b for any b.
- The binary digit sums s_2(2) = 1 and s_2(3) = 2 are evaluated by computational reflection (decide), and the forward difference polynomial identities for orders 2, 3, and 4 are expanded and verified by the ring tactic.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
/-- One step of the forward-difference iteration. -/private lemma weighted_catalan_counterexample_satisfies_conditions_iter_succ (k : ℕ) (f : ℕ → ℤ) : iter_forward_diff (k + 1) f = forward_diff (iter_forward_diff k f) := by simp only [iter_forward_diff] exact Function.iterate_succ_apply' forward_diff k f/-- The forward difference of the zero function vanishes. -/private lemma weighted_catalan_counterexample_satisfies_conditions_forward_diff_zero : forward_diff (fun _ => (0 : ℤ)) = fun _ => 0 := by funext x simp [forward_diff]/-- The fourth forward difference of the cubic b_t vanishes. -/private lemma weighted_catalan_counterexample_satisfies_conditions_fourth_diff (t : ℤ) (x : ℕ) : iter_forward_diff 4 (weighted_catalan_poly t) x = 0 := by simp only [iter_forward_diff, forward_diff, Function.iterate_succ, Function.iterate_zero, Function.comp_apply, id_eq, weighted_catalan_poly] push_cast ring/-- Every forward difference of b_t of order at least four vanishes. -/private lemma weighted_catalan_counterexample_satisfies_conditions_iter_eq_zero (t : ℤ) : ∀ k ≥ 4, iter_forward_diff k (weighted_catalan_poly t) = fun _ => 0 := by intro k hk induction k, hk using Nat.le_induction with | base => funext x; exact weighted_catalan_counterexample_satisfies_conditions_fourth_diff t x | succ n hn ih => rw [weighted_catalan_counterexample_satisfies_conditions_iter_succ, ih] exact weighted_catalan_counterexample_satisfies_conditions_forward_diff_zero/-- The polynomial b_t satisfies the three conditions of the 2-adic valuation conjecture. -/theorem weighted_catalan_counterexample_satisfies_conditions (t : ℤ) : Odd (weighted_catalan_poly t 0) ∧ (∀ k ≥ 2, ∀ x : ℕ, (2 : ℤ) ^ (k - binary_digit_sum k) ∣ iter_forward_diff k (weighted_catalan_poly t) x) ∧ (weighted_catalan_poly t 0 ≡ weighted_catalan_poly t 1 [ZMOD 4]) := by refine ⟨?_, ?_, ?_⟩ · rw [weighted_catalan_poly_zero]; exact odd_one · intro k hk x rcases Nat.lt_or_ge k 4 with h | h · interval_cases k · have h2 : binary_digit_sum 2 = 1 := by decide rw [h2] norm_num refine ⟨3 * ((4 * t + 1) * (↑x + 1)) - 1, ?_⟩ simp only [iter_forward_diff, forward_diff, Function.iterate_succ, Function.iterate_zero, Function.comp_apply, id_eq, weighted_catalan_poly] push_cast ring · have h3 : binary_digit_sum 3 = 2 := by decide rw [h3] norm_num refine ⟨3 * (4 * t + 1), ?_⟩ simp only [iter_forward_diff, forward_diff, Function.iterate_succ, Function.iterate_zero, Function.comp_apply, id_eq, weighted_catalan_poly] push_cast ring · rw [weighted_catalan_counterexample_satisfies_conditions_iter_eq_zero t k h] exact dvd_zero _ · rw [Int.modEq_iff_dvd, weighted_catalan_poly_one_sub_zero] exact dvd_mul_right 4 t