AFTD Auto-Formalizing Theoretical Domains

weighted_catalan_poly_one_sub_zero

theoremverified

For every integer t, the difference b_t(1) - b_t(0) is equal to 4 * t.

Statement

theorem weighted_catalan_poly_one_sub_zero (t : ℤ) :
    weighted_catalan_poly t 1 - weighted_catalan_poly t 0 = 4 * t
Source
arXiv:2611.26953, Lemma 7 proof
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_poly_zeroFor every integer t, the polynomial b_t satisfies b_t(0) = 1.
Used by 1

Read back from the Lean

For every integer $t$, weighted_catalan_poly t 1 - weighted_catalan_poly t 0 = 4 * t.

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 identity is established by unfolding the definition of the weighted Catalan polynomial b_t(x) = (4t + 1)x^3 - x^2 + 1 at x = 1 and x = 0. Evaluating the two terms yields b_t(1) = 4t + 1 and b_t(0) = 1, and their difference simplifies directly to 4t.

  1. The difference b_t(1) - b_t(0) equals 4t.

    Unfolding the definition of `weighted_catalan_poly` expands the left-hand side into ((4 * t + 1) * 1^3 - 1^2 + 1) - ((4 * t + 1) * 0^3 - 0^2 + 1). Direct evaluation of the terms at 1 and 0 gives (4 * t + 1) - 1, which simplifies to 4 * t, completing the proof.

    line 3

    uses weighted_catalan_poly, weighted_catalan_poly_zero

        weighted_catalan_poly t 1 - weighted_catalan_poly t 0 = 4 * t := by first | exact weighted_catalan_poly_zero | (apply weighted_catalan_poly_zero <;> assumption) | (apply weighted_catalan_poly_zero <;> simp_all) | simpa using weighted_catalan_poly_zero | (simp only [weighted_catalan_poly] at *; first | exact weighted_catalan_poly_zero | (apply weighted_catalan_poly_zero <;> assumption) | (apply weighted_catalan_poly_zero <;> simp_all) | simpa using weighted_catalan_poly_zero)
weighted_catalan_poly
The definition of the weighted Catalan polynomial b_t(x) = (4t + 1)x^3 - x^2 + 1.
weighted_catalan_poly_zero
For any integer t, the weighted Catalan polynomial evaluated at 0 equals 1: b_t(0) = 1.

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 difference b_t(1) - b_t(0) equals 4t. -/theorem weighted_catalan_poly_one_sub_zero (t : ℤ) :    weighted_catalan_poly t 1 - weighted_catalan_poly t 0 = 4 * t := by first | exact weighted_catalan_poly_zero | (apply weighted_catalan_poly_zero <;> assumption) | (apply weighted_catalan_poly_zero <;> simp_all) | simpa using weighted_catalan_poly_zero | (simp only [weighted_catalan_poly] at *; first | exact weighted_catalan_poly_zero | (apply weighted_catalan_poly_zero <;> assumption) | (apply weighted_catalan_poly_zero <;> simp_all) | simpa using weighted_catalan_poly_zero)
See it in the graphDiscuss this resultChallenge it