AFTD Auto-Formalizing Theoretical Domains

weighted_catalan_four_poly_dvd

theoremverified

For every integer t, 4 divides weighted_catalan_four (weighted_catalan_poly t).

Statement

theorem weighted_catalan_four_poly_dvd (t : ℤ) :
    4 ∣ weighted_catalan_four (weighted_catalan_poly t)
Source
arXiv:2611.26953, Section 2, Step 5
Verified
24 Nov 2026
Axioms
propext
Built on 2
  • 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_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 +…
Used by 1

Read back from the Lean

For every integer $t$, $4$ divides $\text{weighted\_catalan\_four}(\text{weighted\_catalan\_poly}(t))$, where $\text{weighted\_catalan\_poly}(t)$ is the integer sequence sending $x \in \mathbb{N}$ to $(4t + 1)x^3 - x^2 + 1$, and $\text{weighted\_catalan\_four}(b)$ evaluates to $b(0)^4 + 3 b(0)^3 b(1) + 3 b(0)^2 b(1)^2 + b(0) b(1)^3 + 2 b(0)^2 b(1) b(2) + 2 b(0) b(1)^2 b(2) + b(0) b(1) b(2)^2 + b(0) b(1) b(2) b(3)$.

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 is proved by exhibiting an explicit polynomial witness for the quotient in the divisibility by 4. Unfolding the definitions of the weighted Catalan number and the polynomial sequence yields an identity between two polynomials in $t$, which is verified directly by polynomial ring arithmetic.

  1. It suffices to show that $\text{weighted\_catalan\_four}(\text{weighted\_catalan\_poly}(t)) = 4(4752 t^3 + 2844 t^2 + 561 t + 37)$.

    By definition of divisibility, to show that $4$ divides the expression, it suffices to exhibit an integer quotient. We provide the explicit witness $4752 t^3 + 2844 t^2 + 561 t + 37$.

    line 4

      use 4752 * t ^ 3 + 2844 * t ^ 2 + 561 * t + 37
  2. The polynomial identity $\text{weighted\_catalan\_four}(\text{weighted\_catalan\_poly}(t)) = 4(4752 t^3 + 2844 t^2 + 561 t + 37)$ holds. automation

    Unfolding the definitions of $\text{weighted\_catalan\_four}$ and the sequence $\text{weighted\_catalan\_poly}$ evaluates the expression in terms of $t$ at indices $0, 1, 2,$ and $3$. The resulting polynomial equality in $t$ is verified by expanding and simplifying both sides using polynomial ring arithmetic.

    lines 5–6

      dsimp [weighted_catalan_four, weighted_catalan_poly]
      ring

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

/-- The fourth weighted Catalan number of b_t is divisible by 4. -/theorem weighted_catalan_four_poly_dvd (t : ℤ) :    4 ∣ weighted_catalan_four (weighted_catalan_poly t) := by  use 4752 * t ^ 3 + 2844 * t ^ 2 + 561 * t + 37  dsimp [weighted_catalan_four, weighted_catalan_poly]  ring
See it in the graphDiscuss this resultChallenge it