AFTD Auto-Formalizing Theoretical Domains

catalan_four_padic_valuation

theoremverified

The 2-adic valuation of the fourth Catalan number is equal to 1.

Statement

theorem catalan_four_padic_valuation : padicValNat 2 (catalan 4) = 1
Source
arXiv:2611.26953, Section 2
Verified
24 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
Used by 1

Read back from the Lean

The 2-adic valuation of the 4th Catalan number (i.e. padicValNat 2 (catalan 4)) is equal to 1.

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 proof computes the 2-adic valuation of the fourth Catalan number by first replacing it with its numerical value, 14. Factoring 14 as 2 × 7, the 2-adic valuation decomposes into v₂(7) + 1. Since 7 is odd, its 2-adic valuation is 0, which leaves 0 + 1 = 1.

  1. The goal reduces to showing that the 2-adic valuation of 14 is 1.

    We rewrite the Catalan number using `catalan_four_eq_fourteen`, which states that the fourth Catalan number equals 14.

    line 3

    uses catalan_four_eq_fourteen

      rw [catalan_four_eq_fourteen]
  2. The goal reduces to showing that the 2-adic valuation of 7 plus 1 is 1.

    We note that 14 factors as 2 * 7 (verified by `norm_num`). Then `padicValNat_base_mul` pulls out the factor of 2, since 1 < 2 and 7 ≠ 0 (both discharged by `norm_num`), giving v₂(2 * 7) = v₂(7) + 1.

    lines 4–5

    uses padicValNat_base_mul

      have h : (14:ℕ) = 2 * 7 := by norm_num
      rw [h, padicValNat_base_mul (by norm_num) (by norm_num)]
  3. The 2-adic valuation of 7 is 0.

    By `padicValNat.eq_zero_iff`, the valuation v₂(7) is zero if and only if 2 = 1, 7 = 0, or 2 does not divide 7. Since 7 is odd (¬(2 ∣ 7)), `norm_num` proves this disjunction.

    lines 6–8

    uses padicValNat.eq_zero_iff

      have h7 : padicValNat 2 7 = 0 := by
        rw [padicValNat.eq_zero_iff]
        norm_num
  4. The 2-adic valuation of the fourth Catalan number is 1.

    Substituting v₂(7) = 0 into v₂(7) + 1 = 1 simplifies the expression to 0 + 1 = 1, closing the goal.

    line 9

      rw [h7]
catalan_four_eq_fourteen
The fourth Catalan number is equal to 14.
padicValNat_base_mul
For any natural numbers p and n with 1 < p and n ≠ 0, the p-adic valuation of p * n is equal to the p-adic valuation of n plus 1.
padicValNat.eq_zero_iff
The p-adic valuation of a natural number n is 0 if and only if p = 1, n = 0, or p does not divide n.

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 2-adic valuation of the fourth Catalan number is 1. -/theorem catalan_four_padic_valuation : padicValNat 2 (catalan 4) = 1 := by  rw [catalan_four_eq_fourteen]  have h : (14:ℕ) = 2 * 7 := by norm_num  rw [h, padicValNat_base_mul (by norm_num) (by norm_num)]  have h7 : padicValNat 2 7 = 0 := by    rw [padicValNat.eq_zero_iff]    norm_num  rw [h7]
See it in the graphDiscuss this resultChallenge it