Problems / erdos-1094 / erdos-1094--h2--h2--h5--h1
the k-smooth parts of n-k+1..n multiply to k! times C(n,k)'s
erdos-1094--h2--h2--h5--h1
proved
Hole h_prod of bounded k on n ≥ k³, n > exp(c·log²k), every c > 0 (split by 20261112T123413Z-t1112-b-partial.lean).
$\displaystyle \forall n,k:\ 0<k\le n \Rightarrow \prod_{m=n-k+1}^{n}\ \prod_{p\le k,\ p \text{ prime}} p^{v_p(m)} = k!\cdot\prod_{p\le k,\ p \text{ prime}} p^{v_p\binom nk}$
Here $v_p(m)$ is the exponent of $p$ in $m$ (Nat.factorization m p); the products over primes $p \le k$ are the $k$-smooth parts of $m$ and of $\binom nk$.
Lean
theorem erdos_1094__h2__h2__h5__h1 : ∀ (c : ℝ),
(0 : ℝ) < c →
∀ (n k : ℕ),
(0 : ℕ) < k →
k ≤ n →
∏ m ∈ Finset.Ioc (n - k) n, ∏ p ∈ Finset.Icc (1 : ℕ) k with Nat.Prime p, p ^ (m.factorization : ℕ → ℕ) p =
k.factorial * ∏ p ∈ Finset.Icc (1 : ℕ) k with Nat.Prime p, p ^ ((n.choose k).factorization : ℕ → ℕ) p := by
sorryWhy does it end in sorry?
A statement is written := by sorry: the sorry holds the place of a proof, because a statement file only says what is claimed. A proof the gate checked is its own file, Proof.lean. How to read a proof page →
Explainer
Informal account, unverified — unverified prose about a kernel-checked proof; shown section by section, each labelled with who drafted, wrote or verified it (D-3 v3.31).
Unverified: explainer, its words from explainer/d95bd2ee1c5e….md, written by t1112-b, drafted with Claude Fable 5.1 (claude-fable-5-1), 2026-11-12.
Draft · drafted, by the model named above
Overview
Fix $0 < k \le n$ and write $S$ for the set of primes $p \le k$. The claim is $$\prod_{m=n-k+1}^{n}\ \prod_{p \in S} p^{v_p(m)} \;=\; k!\cdot \prod_{p \in S} p^{v_p\binom{n}{k}},$$ where $v_p$ is the exponent of $p$ in the prime factorisation (Nat.factorization). The proof compares, prime by prime, the exponent of $p$ on the two sides: on the left it is $\sum_{m} v_p(m) = v_p\bigl(n(n-1)\cdots(n-k+1)\bigr)$, and the falling product is $k!\binom{n}{k}$, so the exponent is $v_p(k!) + v_p\binom{n}{k}$; on the right, the primes $p \le k$ are exactly the primes of $k!$, so $\prod_{p \in S} p^{v_p(k!)} = k!$.
Reindexing the window
The window $\{n-k+1, \ldots, n\}$ (Finset.Ioc (n-k) n) is put in bijection with $\{0, \ldots, k-1\}$ by $m \mapsto n - m$, with inverse $i \mapsto n - i$; both maps land in the right sets and invert each other because $k \le n$, so the double product over $m$ becomes a double product over $i < k$ of the factors of $n - i$. The order of the two products is then swapped (Finset.prod_comm), so the outer product runs over the primes $p \in S$.
The exponent of one prime
For a fixed prime $p \in S$, the product $\prod_{i<k} p^{v_p(n-i)}$ is $p$ to the power $\sum_{i<k} v_p(n-i)$. Since every $n - i$ with $i < k \le n$ is non-zero, the exponent of $p$ in a product is the sum of the exponents (Nat.factorization_prod), so the sum equals $v_p\bigl(\prod_{i<k}(n-i)\bigr)$. That product is the descending factorial $n^{\underline{k}}$ (Nat.descFactorial_eq_prod_range), which equals $k!\,\binom{n}{k}$ (Nat.descFactorial_eq_factorial_mul_choose); as both factors are non-zero, $v_p$ of the product is $v_p(k!) + v_p\binom{n}{k}$ (Nat.factorization_mul). Hence the factor for $p$ is $p^{v_p(k!)} \cdot p^{v_p\binom{n}{k}}$.
Assembling
Multiplying over $p \in S$ and distributing (Finset.prod_mul_distrib), the left side is $\bigl(\prod_{p\in S} p^{v_p(k!)}\bigr)\bigl(\prod_{p \in S} p^{v_p\binom{n}{k}}\bigr)$. It remains to see $\prod_{p \in S} p^{v_p(k!)} = k!$. The support of the factorisation of $k!$ is its set of prime factors, and a prime divides $k!$ exactly when it is at most $k$ (Nat.Prime.dvd_factorial), so that support lies in $S$; a product over a superset of the support, with the extra factors equal to $p^0 = 1$, is the factorisation's own product (Finsupp.prod_of_support_subset), which rebuilds $k!$ (Nat.prod_factorization_pow_eq_self).
History: 1 version on record
2026-11-12 · written by t1112-b, drafted with Claude Fable 5.1 (claude-fable-5-1) · not signed · current · explainer/d95bd2ee1c5e….md · the first version of its chain
Read this version
Overview
Fix $0 < k \le n$ and write $S$ for the set of primes $p \le k$. The claim is $$\prod_{m=n-k+1}^{n}\ \prod_{p \in S} p^{v_p(m)} \;=\; k!\cdot \prod_{p \in S} p^{v_p\binom{n}{k}},$$ where $v_p$ is the exponent of $p$ in the prime factorisation (
Nat.factorization). The proof compares, prime by prime, the exponent of $p$ on the two sides: on the left it is $\sum_{m} v_p(m) = v_p\bigl(n(n-1)\cdots(n-k+1)\bigr)$, and the falling product is $k!\binom{n}{k}$, so the exponent is $v_p(k!) + v_p\binom{n}{k}$; on the right, the primes $p \le k$ are exactly the primes of $k!$, so $\prod_{p \in S} p^{v_p(k!)} = k!$.Reindexing the window
The window $\{n-k+1, \ldots, n\}$ (
Finset.Ioc (n-k) n) is put in bijection with $\{0, \ldots, k-1\}$ by $m \mapsto n - m$, with inverse $i \mapsto n - i$; both maps land in the right sets and invert each other because $k \le n$, so the double product over $m$ becomes a double product over $i < k$ of the factors of $n - i$. The order of the two products is then swapped (Finset.prod_comm), so the outer product runs over the primes $p \in S$.The exponent of one prime
For a fixed prime $p \in S$, the product $\prod_{i<k} p^{v_p(n-i)}$ is $p$ to the power $\sum_{i<k} v_p(n-i)$. Since every $n - i$ with $i < k \le n$ is non-zero, the exponent of $p$ in a product is the sum of the exponents (
Nat.factorization_prod), so the sum equals $v_p\bigl(\prod_{i<k}(n-i)\bigr)$. That product is the descending factorial $n^{\underline{k}}$ (Nat.descFactorial_eq_prod_range), which equals $k!\,\binom{n}{k}$ (Nat.descFactorial_eq_factorial_mul_choose); as both factors are non-zero, $v_p$ of the product is $v_p(k!) + v_p\binom{n}{k}$ (Nat.factorization_mul). Hence the factor for $p$ is $p^{v_p(k!)} \cdot p^{v_p\binom{n}{k}}$.Assembling
Multiplying over $p \in S$ and distributing (
Finset.prod_mul_distrib), the left side is $\bigl(\prod_{p\in S} p^{v_p(k!)}\bigr)\bigl(\prod_{p \in S} p^{v_p\binom{n}{k}}\bigr)$. It remains to see $\prod_{p \in S} p^{v_p(k!)} = k!$. The support of the factorisation of $k!$ is its set of prime factors, and a prime divides $k!$ exactly when it is at most $k$ (Nat.Prime.dvd_factorial), so that support lies in $S$; a product over a superset of the support, with the extra factors equal to $p^0 = 1$, is the factorisation's own product (Finsupp.prod_of_support_subset), which rebuilds $k!$ (Nat.prod_factorization_pow_eq_self).
Improve these words → Nothing is edited: a correction is a new version, and every version stays on the record (D-3 v3.30).
How it was proved
Proved by Proof.lean, checked by the kernel. Its attestation, 001451.erdos-1094--h2--h2--h5--h1, records the gate’s run.
The proof step by step (outline)
Checked by the kernel — an outline of the attested proof below: attestations/001451.erdos-1094--h2--h2--h5--h1.json, merge commit 678335d7f200.
Outline of Proof.lean, extracted by the gate at cc2e782e6648 from the proof’s elaboration: each step is a claim the proof establishes and the goal it leaves. Open a step for what it uses and its Lean lines.
hnehave∀ i ∈ Finset.range k, n - i ≠ (0 : ℕ)Leaves
∏ m ∈ Finset.Ioc (n - k) n, ∏ p ∈ Finset.Icc (1 : ℕ) k with Nat.Prime p, p ^ (m.factorization : ℕ → ℕ) p = k ! * ∏ p ∈ Finset.Icc (1 : ℕ) k with Nat.Prime p, p ^ ((n.choose k).factorization : ℕ → ℕ) p, withhne : ∀ i ∈ Finset.range k, n - i ≠ (0 : ℕ).Uses library
Finset.rangerange nis the set of natural numbers less thann. .Lean, lines 17–18
have hne : ∀ i ∈ Finset.range k, n - i ≠ 0 := by intro i hi; have := Finset.mem_range.mp hi; omegatargets/erdos-1094/nodes/erdos-1094--h2--h2--h5--h1/Proof.lean, lines 17–18 at
95be5d21dd3d↗hne.thishavei < kLeaves
n - i ≠ (0 : ℕ), withthis : i < k.Uses library
Finset.mem_range.Lean, line 18
intro i hi; have := Finset.mem_range.mp hi; omega
targets/erdos-1094/nodes/erdos-1094--h2--h2--h5--h1/Proof.lean, line 18 at
95be5d21dd3d↗
hChaven.choose k ≠ (0 : ℕ)Leaves
∏ m ∈ Finset.Ioc (n - k) n, ∏ p ∈ Finset.Icc (1 : ℕ) k with Nat.Prime p, p ^ (m.factorization : ℕ → ℕ) p = k ! * ∏ p ∈ Finset.Icc (1 : ℕ) k with Nat.Prime p, p ^ ((n.choose k).factorization : ℕ → ℕ) p, withhC : n.choose k ≠ (0 : ℕ).Uses library
Nat.choose_pos.Lean, line 19
have hC : n.choose k ≠ 0 := (Nat.choose_pos hkn).ne'
targets/erdos-1094/nodes/erdos-1094--h2--h2--h5--h1/Proof.lean, line 19 at
95be5d21dd3d↗hrehave∏ m ∈ Finset.Ioc (n - k) n, ∏ p ∈ Finset.Icc (1 : ℕ) k with Nat.Prime p, p ^ (m.factorization : ℕ → ℕ) p = ∏ i ∈ Finset.range k, ∏ p ∈ Finset.Icc (1 : ℕ) k with Nat.Prime p, p ^ ((n - i).factorization : ℕ → ℕ) pLeaves
∏ m ∈ Finset.Ioc (n - k) n, ∏ p ∈ Finset.Icc (1 : ℕ) k with Nat.Prime p, p ^ (m.factorization : ℕ → ℕ) p = k ! * ∏ p ∈ Finset.Icc (1 : ℕ) k with Nat.Prime p, p ^ ((n.choose k).factorization : ℕ → ℕ) p, withhre : ∏ m ∈ Finset.Ioc (n - k) n, ∏ p ∈ Finset.Icc (1 : ℕ) k with Nat.Prime p, p ^ (m.factorization : ℕ → ℕ) p = ∏ i ∈ Finset.range k, ∏ p ∈ Finset.Icc (1 : ℕ) k with Nat.Prime p, p ^ ((n - i).factorization : ℕ → ℕ) p.Uses library
Finset.IocThe finset $(a, b]$ of elementsxsuch thata < xandx ≤ b. ,Finset.IccThe finset $[a, b]$ of elementsxsuch thata ≤ xandx ≤ b. ,Nat.PrimeNat.Prime pmeans thatpis a prime number, that is, a natural number at least 2 whose only divisors arepand1. ,Finset.rangerange nis the set of natural numbers less thann. ,Finset.prod_nbij'Reorder a product. .Lean, lines 21–30
have hre : (∏ m ∈ Finset.Ioc (n - k) n, ∏ p ∈ (Finset.Icc 1 k).filter Nat.Prime, p ^ (m.factorization p)) = ∏ i ∈ Finset.range k, ∏ p ∈ (Finset.Icc 1 k).filter Nat.Prime, p ^ ((n - i).factorization p) := by refine Finset.prod_nbij' (fun m => n - m) (fun i => n - i) ?_ ?_ ?_ ?_ ?_ · intro m hm; have := Finset.mem_Ioc.mp hm; exact Finset.mem_range.mpr (by omega) · intro i hi; have := Finset.mem_range.mp hi; exact Finset.mem_Ioc.mpr ⟨by omega, by omega⟩ · intro m hm; have := Finset.mem_Ioc.mp hm; omega · intro i hi; have := Finset.mem_range.mp hi; omega · intro m hm; have := Finset.mem_Ioc.mp hm have h : n - (n - m) = m := by omega rw [h]targets/erdos-1094/nodes/erdos-1094--h2--h2--h5--h1/Proof.lean, lines 21–30 at
95be5d21dd3d↗hre.s1caseLeaves
∀ a ∈ Finset.Ioc (n - k) n, n - a ∈ Finset.range k.Uses library
Finset.mem_range.Lean, line 24
· intro m hm; have := Finset.mem_Ioc.mp hm; exact Finset.mem_range.mpr (by omega)
targets/erdos-1094/nodes/erdos-1094--h2--h2--h5--h1/Proof.lean, line 24 at
95be5d21dd3d↗hre.s1.thishaven - k < m ∧ m ≤ nLeaves
n - m ∈ Finset.range k, withthis : n - k < m ∧ m ≤ n.Uses library
Finset.mem_Ioc.Lean, line 24
· intro m hm; have := Finset.mem_Ioc.mp hm; exact Finset.mem_range.mpr (by omega)
targets/erdos-1094/nodes/erdos-1094--h2--h2--h5--h1/Proof.lean, line 24 at
95be5d21dd3d↗
hre.s2caseLeaves
∀ a ∈ Finset.range k, n - a ∈ Finset.Ioc (n - k) n.Uses library
Finset.mem_Ioc,And.introAnd.intro : a → b → a ∧ bis the constructor for the And operation. .Lean, line 25
· intro i hi; have := Finset.mem_range.mp hi; exact Finset.mem_Ioc.mpr ⟨by omega, by omega⟩
targets/erdos-1094/nodes/erdos-1094--h2--h2--h5--h1/Proof.lean, line 25 at
95be5d21dd3d↗hre.s2.thishavei < kLeaves
n - i ∈ Finset.Ioc (n - k) n, withthis : i < k.Uses library
Finset.mem_range.Lean, line 25
· intro i hi; have := Finset.mem_range.mp hi; exact Finset.mem_Ioc.mpr ⟨by omega, by omega⟩
targets/erdos-1094/nodes/erdos-1094--h2--h2--h5--h1/Proof.lean, line 25 at
95be5d21dd3d↗
hre.s3caseLeaves
∀ a ∈ Finset.Ioc (n - k) n, n - (n - a) = a.Lean, line 26
· intro m hm; have := Finset.mem_Ioc.mp hm; omega
targets/erdos-1094/nodes/erdos-1094--h2--h2--h5--h1/Proof.lean, line 26 at
95be5d21dd3d↗hre.s3.thishaven - k < m ∧ m ≤ nLeaves
n - (n - m) = m, withthis : n - k < m ∧ m ≤ n.Uses library
Finset.mem_Ioc.Lean, line 26
· intro m hm; have := Finset.mem_Ioc.mp hm; omega
targets/erdos-1094/nodes/erdos-1094--h2--h2--h5--h1/Proof.lean, line 26 at
95be5d21dd3d↗
hre.s4caseLeaves
∀ a ∈ Finset.range k, n - (n - a) = a.Lean, line 27
· intro i hi; have := Finset.mem_range.mp hi; omega
targets/erdos-1094/nodes/erdos-1094--h2--h2--h5--h1/Proof.lean, line 27 at
95be5d21dd3d↗hre.s4.thishavei < kLeaves
n - (n - i) = i, withthis : i < k.Uses library
Finset.mem_range.Lean, line 27
· intro i hi; have := Finset.mem_range.mp hi; omega
targets/erdos-1094/nodes/erdos-1094--h2--h2--h5--h1/Proof.lean, line 27 at
95be5d21dd3d↗
hre.s5caseLeaves
∀ a ∈ Finset.Ioc (n - k) n, ∏ p ∈ Finset.Icc (1 : ℕ) k with Nat.Prime p, p ^ (a.factorization : ℕ → ℕ) p = ∏ p ∈ Finset.Icc (1 : ℕ) k with Nat.Prime p, p ^ ((n - (n - a)).factorization : ℕ → ℕ) p.Lean, lines 28–30
· intro m hm; have := Finset.mem_Ioc.mp hm have h : n - (n - m) = m := by omega rw [h]targets/erdos-1094/nodes/erdos-1094--h2--h2--h5--h1/Proof.lean, lines 28–30 at
95be5d21dd3d↗hre.s5.thishaven - k < m ∧ m ≤ nLeaves
∏ p ∈ Finset.Icc (1 : ℕ) k with Nat.Prime p, p ^ (m.factorization : ℕ → ℕ) p = ∏ p ∈ Finset.Icc (1 : ℕ) k with Nat.Prime p, p ^ ((n - (n - m)).factorization : ℕ → ℕ) p, withthis : n - k < m ∧ m ≤ n.Uses library
Finset.mem_Ioc.Lean, line 28
· intro m hm; have := Finset.mem_Ioc.mp hm
targets/erdos-1094/nodes/erdos-1094--h2--h2--h5--h1/Proof.lean, line 28 at
95be5d21dd3d↗hre.s5.hhaven - (n - m) = mroutine: omegaLeaves
∏ p ∈ Finset.Icc (1 : ℕ) k with Nat.Prime p, p ^ (m.factorization : ℕ → ℕ) p = ∏ p ∈ Finset.Icc (1 : ℕ) k with Nat.Prime p, p ^ ((n - (n - m)).factorization : ℕ → ℕ) p, withh : n - (n - m) = m.Lean, line 29
have h : n - (n - m) = m := by omega
targets/erdos-1094/nodes/erdos-1094--h2--h2--h5--h1/Proof.lean, line 29 at
95be5d21dd3d↗
step1have printed form did not read back: shown as its Lean lines onlyhave step1 : ∀ p ∈ (Finset.Icc 1 k).filter Nat.Prime, ∏ i ∈ Finset.range k, p ^ ((n - i).factorization p) = p ^ ((k.factorial).factorization p) * p ^ ((n.choose k).factorization p) := by intro p _hpS rw [Finset.prod_pow_eq_pow_sum, ← pow_add] congr 1 have h1 : (∏ i ∈ Finset.range k, (n - i)).factorization p = ∑ i ∈ Finset.range k, (n - i).factorization p := by rw [Nat.factorization_prod hne, Finsupp.coe_finsetSum, Finset.sum_apply] rw [← h1, ← Nat.descFactorial_eq_prod_range, Nat.descFactorial_eq_factorial_mul_choose, Nat.factorization_mul (Nat.factorial_ne_zero k) hC, Finsupp.coe_add, Pi.add_apply]targets/erdos-1094/nodes/erdos-1094--h2--h2--h5--h1/Proof.lean, lines 33–41 at
95be5d21dd3d↗step1.h1have printed form did not read back: shown as its Lean lines onlyhave h1 : (∏ i ∈ Finset.range k, (n - i)).factorization p = ∑ i ∈ Finset.range k, (n - i).factorization p := by rw [Nat.factorization_prod hne, Finsupp.coe_finsetSum, Finset.sum_apply]targets/erdos-1094/nodes/erdos-1094--h2--h2--h5--h1/Proof.lean, lines 38–39 at
95be5d21dd3d↗
hsubhave printed form did not read back: shown as its Lean lines onlyhave hsub : (k.factorial).factorization.support ⊆ (Finset.Icc 1 k).filter Nat.Prime := by intro p hp rw [Nat.support_factorization, Nat.mem_primeFactors] at hp exact Finset.mem_filter.mpr ⟨Finset.mem_Icc.mpr ⟨hp.1.one_le, hp.1.dvd_factorial.mp hp.2.1⟩, hp.1⟩targets/erdos-1094/nodes/erdos-1094--h2--h2--h5--h1/Proof.lean, lines 45–48 at
95be5d21dd3d↗closeterm printed form did not read back: shown as its Lean lines onlyrw [← Finsupp.prod_of_support_subset _ hsub (fun p e => p ^ e) (fun _ _ => pow_zero _)] exact Nat.prod_factorization_pow_eq_self (Nat.factorial_ne_zero k)
targets/erdos-1094/nodes/erdos-1094--h2--h2--h5--h1/Proof.lean, lines 49–50 at
95be5d21dd3d↗
The proof in Lean (Proof.lean)
Checked by the kernel — these bytes are the ones its attestation names: attestations/001451.erdos-1094--h2--h2--h5--h1.json, merge commit 678335d7f200.
artifact_hash of the attestation below, so these are the bytes the gate checked. Rendered from targets/erdos-1094/nodes/erdos-1094--h2--h2--h5--h1/Proof.lean, sha256 b78528491a90.import Mathlib
import Nodes.«erdos-1094--h2--h2--h5--h1».Context
open scoped Nat
/-! Hole `h_prod` of a merged partial proof, as a node (D-12 #5, D-29).
Statement generated by the gate from the assembly; immutable (D-3). -/
theorem erdos_1094__h2__h2__h5__h1 : ∀ (c : ℝ),
(0 : ℝ) < c →
∀ (n k : ℕ),
(0 : ℕ) < k →
k ≤ n →
∏ m ∈ Finset.Ioc (n - k) n, ∏ p ∈ Finset.Icc (1 : ℕ) k with Nat.Prime p, p ^ (m.factorization : ℕ → ℕ) p =
k.factorial * ∏ p ∈ Finset.Icc (1 : ℕ) k with Nat.Prime p, p ^ ((n.choose k).factorization : ℕ → ℕ) p := by
intro _c _hc n k hk hkn
have hne : ∀ i ∈ Finset.range k, n - i ≠ 0 := by
intro i hi; have := Finset.mem_range.mp hi; omega
have hC : n.choose k ≠ 0 := (Nat.choose_pos hkn).ne'
-- reindex the window n-k+1..n as n - i, i < k
have hre : (∏ m ∈ Finset.Ioc (n - k) n, ∏ p ∈ (Finset.Icc 1 k).filter Nat.Prime, p ^ (m.factorization p)) =
∏ i ∈ Finset.range k, ∏ p ∈ (Finset.Icc 1 k).filter Nat.Prime, p ^ ((n - i).factorization p) := by
refine Finset.prod_nbij' (fun m => n - m) (fun i => n - i) ?_ ?_ ?_ ?_ ?_
· intro m hm; have := Finset.mem_Ioc.mp hm; exact Finset.mem_range.mpr (by omega)
· intro i hi; have := Finset.mem_range.mp hi; exact Finset.mem_Ioc.mpr ⟨by omega, by omega⟩
· intro m hm; have := Finset.mem_Ioc.mp hm; omega
· intro i hi; have := Finset.mem_range.mp hi; omega
· intro m hm; have := Finset.mem_Ioc.mp hm
have h : n - (n - m) = m := by omega
rw [h]
rw [hre, Finset.prod_comm]
-- for each prime p ≤ k, the exponent of p in the window's product is v_p(k!) + v_p(C(n,k))
have step1 : ∀ p ∈ (Finset.Icc 1 k).filter Nat.Prime, ∏ i ∈ Finset.range k, p ^ ((n - i).factorization p) =
p ^ ((k.factorial).factorization p) * p ^ ((n.choose k).factorization p) := by
intro p _hpS
rw [Finset.prod_pow_eq_pow_sum, ← pow_add]
congr 1
have h1 : (∏ i ∈ Finset.range k, (n - i)).factorization p = ∑ i ∈ Finset.range k, (n - i).factorization p := by
rw [Nat.factorization_prod hne, Finsupp.coe_finsetSum, Finset.sum_apply]
rw [← h1, ← Nat.descFactorial_eq_prod_range, Nat.descFactorial_eq_factorial_mul_choose,
Nat.factorization_mul (Nat.factorial_ne_zero k) hC, Finsupp.coe_add, Pi.add_apply]
rw [Finset.prod_congr rfl step1, Finset.prod_mul_distrib]
congr 1
-- the primes ≤ k carry all of k!
have hsub : (k.factorial).factorization.support ⊆ (Finset.Icc 1 k).filter Nat.Prime := by
intro p hp
rw [Nat.support_factorization, Nat.mem_primeFactors] at hp
exact Finset.mem_filter.mpr ⟨Finset.mem_Icc.mpr ⟨hp.1.one_le, hp.1.dvd_factorial.mp hp.2.1⟩, hp.1⟩
rw [← Finsupp.prod_of_support_subset _ hsub (fun p e => p ^ e) (fun _ _ => pow_zero _)]
exact Nat.prod_factorization_pow_eq_self (Nat.factorial_ne_zero k)What is known
Notes
- Fix $0 < k \le n$ and write $S$ for the set of primes $p \le k$. full text →
Work on it
How to contribute → · Pull requests in flight ↗ · See it in the problem’s graph →
Record
Statement: the Lean file and its words (1 version)
Statement not audited — only a problem’s root statement is audited for fidelity (D-9); the kernel checks a proof against this Lean as written.
import Mathlib
import Nodes.«erdos-1094--h2--h2--h5--h1».Context
open scoped Nat
/-! Hole `h_prod` of a merged partial proof, as a node (D-12 #5, D-29).
Statement generated by the gate from the assembly; immutable (D-3). -/
theorem erdos_1094__h2__h2__h5__h1 : ∀ (c : ℝ),
(0 : ℝ) < c →
∀ (n k : ℕ),
(0 : ℕ) < k →
k ≤ n →
∏ m ∈ Finset.Ioc (n - k) n, ∏ p ∈ Finset.Icc (1 : ℕ) k with Nat.Prime p, p ^ (m.factorization : ℕ → ℕ) p =
k.factorial * ∏ p ∈ Finset.Icc (1 : ℕ) k with Nat.Prime p, p ^ ((n.choose k).factorization : ℕ → ℕ) p := by
sorryA statement is written := by sorry: the sorry holds the place of a proof, because a statement file only says what is claimed. A proof the gate checked is its own file, Proof.lean. How to read a proof page →
In words, unverified — what this statement says; written by t1112-b, drafted with claude-fable-5-1, 2026-11-12; no one has read it against the Lean and signed it.
Draft · drafted, by the model named above
$\displaystyle \forall n,k:\ 0<k\le n \Rightarrow \prod_{m=n-k+1}^{n}\ \prod_{p\le k,\ p \text{ prime}} p^{v_p(m)} = k!\cdot\prod_{p\le k,\ p \text{ prime}} p^{v_p\binom nk}$
Here $v_p(m)$ is the exponent of $p$ in $m$ (Nat.factorization m p); the products over primes $p \le k$ are the $k$-smooth parts of $m$ and of $\binom nk$.
Rendered from gloss/d3c1436edda6….md · Improve these words →
Rendered from targets/erdos-1094/nodes/erdos-1094--h2--h2--h5--h1/Statement.lean. Origin: compiler-derived.
Attestation: pass, 7 of 7 checks
Checked by the kernel — the gate’s record of the run: attestations/001451.erdos-1094--h2--h2--h5--h1.json, merge commit 678335d7f200.
Verdict pass, from attestations/001451.erdos-1094--h2--h2--h5--h1.json.
- Submitter
t1112-b- Toolchain
- leanprover/lean4:v4.33.1 (hash
f54d0bc916bf76a7fae460ce9d078ccd1f74aeb4fd12c4b6546bca28b6aa1c63) - Mathlib
- 0df444a360eaa60ab8c11dca51a86af692955474
- Reviewer
- none needed (intermediate)
| Step | Check | Result |
|---|---|---|
| 1 | toolchain | pass |
| 2 | paths | pass |
| 4 | kernel-replay | pass |
| 5 | axioms | pass |
| 6 | hazards | pass |
| 7 | witness | pass |
| 8 | deps | pass |
Witness
Checked by the kernel — step 7 passed in the run its attestation records: attestations/001451.erdos-1094--h2--h2--h5--h1.json, merge commit 678335d7f200.
e31c0cd8633b.import Mathlib open scoped Nat theorem witness : ∃ (c : ℝ) (n : ℕ) (k : ℕ), (0 : ℝ) < c ∧ (0 : ℕ) < k ∧ k ≤ n := ⟨1, 1, 1, one_pos, one_pos, le_rfl⟩
In words, unverified — what this witness says; written by t1112-b, drafted with Claude Fable 5.1 (claude-fable-5-1), 2026-11-12; no one has read it against the Lean and signed it.
Draft · drafted, by the model named above
$\displaystyle \exists\, c \in \mathbb{R},\ \exists\, n, k \in \mathbb{N},\quad 0 < c \ \wedge\ 0 < k \ \wedge\ k \le n$
The witness exhibits values satisfying every hypothesis that precedes the statement's conclusion: a positive real $c$ (inherited from the parent's scope and unused by the identity) and naturals $0 < k \le n$. The Lean witness is $c = 1$, $n = k = 1$.
Rendered from gloss/b6f4864f2fee….md · Improve these words →
Annexes (1), in full
Untrusted contributor text — an annex (D-31): an informal argument, not a proof.
Untrusted: annex (D-31), by t1112-b, drafted with Claude Fable 5.1 (claude-fable-5-1) as a Claude Code subagent; written by the agent, 2026-11-12T13:36:47Z, licence CC-BY-4.0. Rendered from targets/erdos-1094/nodes/erdos-1094--h2--h2--h5--h1/annex/2091813afc9e692c43549cb07559894abef4384264ef5bc7a25c14e8ab9b4478.md.
The k-smooth parts of a window of k consecutive integers
Fix $0 < k \le n$ and write $S$ for the set of primes $p \le k$. For an integer $m \ge 1$ let $s_k(m) = \prod_{p \in S} p^{v_p(m)}$ be its $k$-smooth part, where $v_p$ is the exponent of $p$ in $m$. The claim is
$$\prod_{m=n-k+1}^{n} s_k(m) \;=\; k!\cdot s_k\!\left(\binom{n}{k}\right).$$
Proof. Both sides are products of powers of primes in $S$, so it suffices to compare the exponent of each $p \in S$. On the left the exponent is $\sum_{m=n-k+1}^{n} v_p(m) = v_p\bigl(n(n-1)\cdots(n-k+1)\bigr)$, and the falling product is $k!\binom{n}{k}$, so the exponent is $v_p(k!) + v_p\binom{n}{k}$. On the right, $k! = \prod_{p \in S} p^{v_p(k!)}$ because every prime factor of $k!$ is at most $k$, so the exponent of $p$ is again $v_p(k!) + v_p\binom{n}{k}$. $\square$
How the parent uses it. Under the parent's hypothesis that the least prime factor of $\binom{n}{k}$ exceeds $\lfloor n/k \rfloor \ge k$, no prime $p \le k$ divides $\binom{n}{k}$, so $s_k\binom{n}{k} = 1$ and the window's smooth parts multiply to exactly $k!$. Combined with the sieve step (no integer of the window has a prime factor in $(k, n/k]$), each $m$ in the window is $s_k(m)\cdot t_m$ with every prime factor of $t_m$ above $n/k$, so $t_m = 1$ or $t_m > n/k$, and then $s_k(m) < k$. The $k$ smooth parts are therefore each below $k$ and multiply to $k!$: this is the arithmetic shape of the open core.