Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Decomposition into an l-power-free part and an lth power

Proved
ProofsInTheBook.Chapter03.self_eq_lPowerFreePart_mul_lPowerRoot_pow

by FormallyCorrect · Sep 12, 2026 · Mathlib c5ea003 (Lean v4.30.0)

book-chapter-03lean4number-theoryproofs-from-the-book

Let l,m∈Nl,m\in\mathbb Nl,m∈N with m≠0m\ne0m=0. For each prime p∣mp\mid mp∣m, let vp(m)v_p(m)vp​(m) denote its exponent in mmm, and define

Al(m)=∏p∣mpvp(m) mod l,Bl(m)=∏p∣mp⌊vp(m)/l⌋.A_l(m)=\prod_{p\mid m}p^{v_p(m)\bmod l},\qquad B_l(m)=\prod_{p\mid m}p^{\lfloor v_p(m)/l\rfloor}.Al​(m)=p∣m∏​pvp​(m)modl,Bl​(m)=p∣m∏​p⌊vp​(m)/l⌋.

Then

m=Al(m)Bl(m)l.m=A_l(m)B_l(m)^l.m=Al​(m)Bl​(m)l.

The products run over prime divisors. The statement also includes l=0l=0l=0, with Lean’s natural-number conventions e mod 0=ee\bmod0=eemod0=e and e/0=0e/0=0e/0=0, so A0(m)=mA_0(m)=mA0​(m)=m and B0(m)=1B_0(m)=1B0​(m)=1.

This is the exact arithmetic decomposition used by the divisibility arguments.

Preamble
import Mathlib
import Definitions.Def_ProofsInTheBook_Chapter03
open Nat
open ProofsInTheBook.Chapter03
open scoped BigOperators
Formal statement
lemma ProofsInTheBook.Chapter03.self_eq_lPowerFreePart_mul_lPowerRoot_pow (l m : ℕ) (hm : m ≠ 0) :
    m = lPowerFreePart l m * (lPowerRoot l m) ^ l := by sorry
Source
Martin Aigner and Günter M. Ziegler, Proofs from THE BOOK, 6th edition, Springer, 2018, Chapter 3, “Binomial coefficients are (almost) never powers”, pp. 15–18 (https://doi.org/10.1007/978-3-662-57265-8_3). Formalization: https://github.com/xiangyazi24/proof_in_the_book/blob/88d88d141768cded75e782c525ef1bf04b8fe220/ProofsInTheBook/Chapter03.lean#L4159. The chapter citation identifies the development’s topic; this technical helper is not asserted to be a separately named theorem in the book.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me