AFTD Auto-Formalizing Theoretical Domains

weighted_catalan_conjecture_counterexample

theoremverifiedformalization

For every integer t, the function weighted_catalan_poly t satisfies: weighted_catalan_poly t 0 is odd; for all natural numbers k ≥ 2 and all natural numbers x, 2^(k - binary_digit_sum k) divides iter_forward_diff k (weighted_catalan_poly t) x; weighted_catalan_poly t 0 ≡ weighted_catalan_poly t 1 [ZMOD 4]; and the 2-adic valuation padicValInt 2 of weighted_catalan_four (weighted_catalan_poly t) is not equal to padicValNat 2 (catalan 4).

Statement

theorem weighted_catalan_conjecture_counterexample (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]) ∧
    padicValInt 2 (weighted_catalan_four (weighted_catalan_poly t)) ≠ padicValNat 2 (catalan 4)
Formalizes
arXiv:2611.26953, Theorem 6
Verified
24 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 7
  • weighted_catalan_counterexample_satisfies_conditionsFor 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…
  • weighted_catalan_four_poly_dvdFor every integer t, 4 divides weighted_catalan_four (weighted_catalan_poly t).
  • catalan_four_padic_valuationThe 2-adic valuation of the fourth Catalan number is equal to 1.
  • 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.
  • binary_digit_sumThe sum of the digits in the binary representation of a natural number k.
  • 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…
  • weighted_catalan_fourFor a function b : ℕ → ℤ from natural numbers to integers, weighted_catalan_four b is defined as the integer b 0 ^ 4 + 3 * b 0 ^ 3 * b 1 +…

Read back from the Lean

For every integer $t$, the following four conditions hold simultaneously: 1. The integer $\text{weighted\_catalan\_poly } t\ 0$ is odd. 2. For every natural number $k \ge 2$ and every natural number $x$, $2^{k - \text{binary\_digit\_sum}(k)}$ divides $(\text{iter\_forward\_diff } k\ (\text{weighted\_catalan\_poly } t))(x)$ in $\mathbb{Z}$. 3. $\text{weighted\_catalan\_poly } t\ 0$ is congruent to $\text{weighted\_catalan\_poly } t\ 1$ modulo 4. 4. The 2-adic valuation (as an integer) of $\text{weighted\_catalan\_four}(\text{weighted\_catalan\_poly } t)$ is not equal to the 2-adic valuation (as a natural number) of the 4th Catalan number $\text{catalan}(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 sequence b_t provides a counterexample to the 2-adic valuation conjecture for weighted Catalan numbers. A previously proven lemma verifies that b_t satisfies all three hypotheses of the conjecture (b_t(0) is odd, the 2-adic forward-difference divisibility condition holds, and b_t(0) ≡ b_t(1) mod 4). The proof then shows that 4 divides the 4th weighted Catalan number C₄(b_t), forcing its 2-adic valuation to be either 0 or at least 2, which contradicts the ordinary Catalan valuation v₂(C₄) = 1.

  1. The polynomial b_t satisfies the three conjectural hypotheses, reducing the goal to showing that its 4th weighted Catalan number does not have 2-adic valuation equal to that of the 4th Catalan number.

    The first three conjuncts of the theorem match the three conclusions of `weighted_catalan_counterexample_satisfies_conditions`, which are supplied directly. This leaves only the fourth conjunct: showing that the 2-adic valuation of the 4th weighted Catalan number of b_t differs from that of the standard 4th Catalan number C₄.

    lines 7–10

    uses weighted_catalan_counterexample_satisfies_conditions

      refine ⟨(weighted_catalan_counterexample_satisfies_conditions t).1,
              (weighted_catalan_counterexample_satisfies_conditions t).2.1,
              (weighted_catalan_counterexample_satisfies_conditions t).2.2,
              ?_⟩
  2. It suffices to derive a contradiction assuming that the 2-adic valuation of C₄(b_t) is 1.

    The 2-adic valuation of the 4th Catalan number C₄ = 14 is 1, as stated by `catalan_four_padic_valuation`. Rewriting with this lemma simplifies the goal to showing that the 2-adic valuation of C₄(b_t) is not 1. We then assume for contradiction that it equals 1.

    lines 11–12

    uses catalan_four_padic_valuation

      rw [catalan_four_padic_valuation]
      intro hval
  3. 2² divides the 4th weighted Catalan number C₄(b_t).

    By `weighted_catalan_four_poly_dvd`, 4 divides C₄(b_t). Since 4 is 2², simplifying this divisibility establishes that 2² ∣ C₄(b_t).

    lines 13–16

    uses weighted_catalan_four_poly_dvd

      have hdvd : 4 ∣ weighted_catalan_four (weighted_catalan_poly t) :=
        weighted_catalan_four_poly_dvd t
      have h2 : (2 : ℤ) ^ 2 ∣ weighted_catalan_four (weighted_catalan_poly t) := by
        simpa using hdvd
  4. Either C₄(b_t) = 0 or the 2-adic valuation of C₄(b_t) is at least 2.

    By `padicValInt_dvd_iff_of_ne_one` with p = 2 (which is not 1, checked by `decide`), the divisibility 2² ∣ a is equivalent to a = 0 ∨ 2 ≤ v₂(a). Applying this equivalence to a = C₄(b_t) decomposes the divisibility into these two cases.

    lines 17–18

    uses padicValInt_dvd_iff_of_ne_one

      have hiff := (padicValInt_dvd_iff_of_ne_one (p := 2) (by decide) 2 (weighted_catalan_four (weighted_catalan_poly t))).mp h2
      rcases hiff with heq | hle
  5. The case C₄(b_t) = 0 is impossible.

    By definition of `padicValInt`, the 2-adic valuation of 0 is 0. Substituting C₄(b_t) = 0 into the assumption that its 2-adic valuation is 1 gives 0 = 1, a contradiction.

    lines 19–23

      · have h0 : padicValInt 2 (0 : ℤ) = 0 := by
          unfold padicValInt
          simp
        rw [heq, h0] at hval
        contradiction
  6. The case v₂(C₄(b_t)) ≥ 2 is impossible.

    The case hypothesis gives v₂(C₄(b_t)) ≥ 2, while the contradiction assumption gives v₂(C₄(b_t)) = 1. Linear integer arithmetic (`omega`) closes the goal because 2 ≤ 1 is false.

    line 24

      · omega
weighted_catalan_counterexample_satisfies_conditions
For every integer t, the polynomial sequence weighted_catalan_poly t satisfies the three conjectural conditions: its value at 0 is odd, 2^(k - binary_digit_sum k) divides its k-th forward difference for all k ≥ 2, and its values at 0 and 1 are congruent modulo 4.
catalan_four_padic_valuation
The 2-adic valuation of the 4th Catalan number catalan 4 is 1.
weighted_catalan_four_poly_dvd
For every integer t, 4 divides the 4th weighted Catalan number of the polynomial weighted_catalan_poly t.
padicValInt_dvd_iff_of_ne_one
For any natural number p ≠ 1, p^n divides an integer a if and only if a = 0 or n is at most the p-adic valuation of a.

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

/-- Counterexamples to the 2-adic valuation conjecture for weighted Catalan numbers: b_t satisfies all three hypotheses but has unequal 2-adic valuation at n = 4. -/theorem weighted_catalan_conjecture_counterexample (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]) ∧    padicValInt 2 (weighted_catalan_four (weighted_catalan_poly t)) ≠ padicValNat 2 (catalan 4) := by  refine ⟨(weighted_catalan_counterexample_satisfies_conditions t).1,          (weighted_catalan_counterexample_satisfies_conditions t).2.1,          (weighted_catalan_counterexample_satisfies_conditions t).2.2,          ?_⟩  rw [catalan_four_padic_valuation]  intro hval  have hdvd : 4 ∣ weighted_catalan_four (weighted_catalan_poly t) :=    weighted_catalan_four_poly_dvd t  have h2 : (2 : ℤ) ^ 2 ∣ weighted_catalan_four (weighted_catalan_poly t) := by    simpa using hdvd  have hiff := (padicValInt_dvd_iff_of_ne_one (p := 2) (by decide) 2 (weighted_catalan_four (weighted_catalan_poly t))).mp h2  rcases hiff with heq | hle  · have h0 : padicValInt 2 (0 : ℤ) = 0 := by      unfold padicValInt      simp    rw [heq, h0] at hval    contradiction  · omega
See it in the graphDiscuss this resultChallenge it