原题
对每个自然数 n,τ(n)² ≤ 4n。
来源:初等经典结果(按一般资料填写,没有逐条核对原文)。中文陈述由本项目改写,以来源为准。
第一轮的提示(Claude 写的):Let r = Nat.sqrt n. Divisors d ≤ r number at most r; d ↦ n/d injects the divisors d > r into divisors ≤ r. So card ≤ 2r, and r*r ≤ n.
第 2 轮的方向(Claude 写的):
intro n; if n = 0: simp. Let r := Nat.sqrt n, A := n.divisors.filter (· ≤ r), B := n.divisors.filter (fun d => ¬ d ≤ r). 1. A.card + B.card = n.divisors.card (Finset.card_filter_add_card_filter_not or the similarly named lemma). 2. A ⊆ Finset.Icc 1 r, so A.card ≤ r (Finset.card_le_card, Nat.card_Icc). 3. B.card ≤ r: Finset.card_le_card_of_injOn (fun d => n / d) from B into Finset.Icc 1 r. For d > r: n/d ≤ r because n < (r+1)*(r+1) (Nat.lt_succ_sqrt n) (Nat.div_lt_iff_lt_mul). Injective: n/a = n/b with a, b ∣ n and n ≠ 0 gives a = b (Nat.div_mul_cancel, Nat.eq_of_mul_eq_mul_left). 4. r*r ≤ n (Nat.sqrt_le n); finish with nlinarith.
第 4 轮的方向(Claude 写的):
Don't use omega for the division bound. Use: have h1 : n < (r+1) * d := lt_of_lt_of_le hrlt (Nat.mul_le_mul_left _ hd) with hd : r + 1 ≤ d; then n / d ≤ r by Nat.lt_succ_iff.mp ((Nat.div_lt_iff_lt_mul hdpos).mpr h1). Where the goal or hab contains (fun d => n / d) a, first do `change n / a = n / b at hab` or `simp only [] at hab` / `show`. Keep the rest. Keep the file short, without comments.
第 5 轮的方向(Claude 写的):
Replace the end of the injectivity part, from `have heq` on, by: `have hvpos : 0 < v := Nat.pos_of_ne_zero (by rintro rfl; simp at hv; omega)`, then `have e : a * v = b * v := by rw [← hv, ← huv]; exact hu.symm` (or by omega/nlinarith from hu : n = a*u, hv : n = b*v, huv : u = v, after subst), then `exact Nat.eq_of_mul_eq_mul_right hvpos e`. Never rewrite with u after it has been replaced by v.
Lean 陈述
∀ n : ℕ, (Nat.divisors n).card ^ 2 ≤ 4 * n
证明
theorem solution : FSpec.Target := by
unfold FSpec.Target
intro n
rcases Nat.eq_zero_or_pos n with rfl | hn
· simp
let r := Nat.sqrt n
let A := n.divisors.filter (· ≤ r)
let B := n.divisors.filter (fun d => ¬ d ≤ r)
have hAB : A.card + B.card = n.divisors.card := by
rw [Finset.card_filter_add_card_filter_not]
have hA : A.card ≤ r := by
have hsub : A ⊆ Finset.Icc 1 r := by
intro d hd
rw [Finset.mem_filter] at hd
obtain ⟨hddiv, hle⟩ := hd
rw [Nat.mem_divisors] at hddiv
obtain ⟨hdvd, _⟩ := hddiv
have hdpos : 0 < d := Nat.pos_of_dvd_of_pos hdvd hn
rw [Finset.mem_Icc]
exact ⟨hdpos, hle⟩
calc A.card ≤ (Finset.Icc 1 r).card := Finset.card_le_card hsub
_ = r := by simp
have hrlt : n < (r + 1) * (r + 1) := by
have := Nat.lt_succ_sqrt n
rw [Nat.succ_eq_add_one] at this
exact this
have hmaps : Set.MapsTo (fun d => n / d) ↑B ↑(Finset.Icc 1 r) := by
intro d hd
rw [Finset.mem_coe, Finset.mem_filter] at hd
obtain ⟨hddiv, hdgt⟩ := hd
rw [Nat.mem_divisors] at hddiv
obtain ⟨hdvd, _⟩ := hddiv
have hdpos : 0 < d := Nat.pos_of_dvd_of_pos hdvd hn
rw [Finset.mem_coe, Finset.mem_Icc]
refine ⟨Nat.div_pos (Nat.le_of_dvd hn hdvd) hdpos, ?_⟩
have hd : r + 1 ≤ d := by omega
have h1 : n < (r + 1) * d :=
lt_of_lt_of_le hrlt (Nat.mul_le_mul_left _ hd)
exact Nat.lt_succ_iff.mp ((Nat.div_lt_iff_lt_mul hdpos).mpr h1)
have hinj : Set.InjOn (fun d => n / d) ↑B := by
intro a ha b hb hab
change n / a = n / b at hab
rw [Finset.mem_coe, Finset.mem_filter] at ha hb
obtain ⟨hadiv, _⟩ := ha
obtain ⟨hbdiv, _⟩ := hb
rw [Nat.mem_divisors] at hadiv hbdiv
obtain ⟨hadvd, _⟩ := hadiv
obtain ⟨hbdvd, _⟩ := hbdiv
have hapos : 0 < a := Nat.pos_of_dvd_of_pos hadvd hn
have hbpos : 0 < b := Nat.pos_of_dvd_of_pos hbdvd hn
obtain ⟨u, hu⟩ := hadvd
obtain ⟨v, hv⟩ := hbdvd
have hu' : u = n / a := by
rw [hu, Nat.mul_div_cancel_left u hapos]
have hv' : v = n / b := by
rw [hv, Nat.mul_div_cancel_left v hbpos]
have huv : u = v := by rw [hu', hv', hab]
have hvpos : 0 < v := Nat.pos_of_ne_zero (by rintro rfl; simp at hv; omega)
have e : a * v = b * v := by rw [← hv, ← huv]; exact hu.symm
exact Nat.eq_of_mul_eq_mul_right hvpos e
have hB : B.card ≤ r :=
calc B.card ≤ (Finset.Icc 1 r).card :=
Finset.card_le_card_of_injOn (fun d => n / d) hmaps hinj
_ = r := by simp
have hcard : n.divisors.card ≤ r + r := by omega
have hr : r * r ≤ n := Nat.sqrt_le n
have h3 : n.divisors.card ^ 2 ≤ (2 * r) ^ 2 := by
nlinarith [Nat.zero_le n.divisors.card]
have h4 : (2 * r) ^ 2 = 4 * (r * r) := by ring
nlinarith
检查记录
| 查现状 | 按关键词查了本机 Mathlib,按文件名查了 lefttosolve 的证明库,没找到同样的结果。没找到不等于没人做过。 |
| 陈述探测 | 简单策略证不了,也否不掉(正常) |
| 陈述初查 | DeepSeek:通过。VERDICT: FAITHFUL | For positive n, card of divisors is τ(n); n=0 case is trivial and harmless. |
| 有限搜索 | 不适用 |
| 证明尝试 | DeepSeek 写的证明通过了 Lean 检查,陈述已由独立 agent 核对(第 5 轮;检查 2 次) |
| 用量 | 16 次调用,59,186 token |
复核
| 2026-11-29T22:53:25Z | 独立 Claude agent(只看题意和 Lean 陈述):final_statement → ok。6 条盲测中判为忠于原题;盲测混了 2 条改弱的陈述,都被查出。 没有人工审稿。 |
重跑
需要项目存档里的程序,这个网站上没有。
cd 数学猜想工厂 python3 factory/verify.py # 重查所有保存的证明,不花 token python3 factory/controls.py known # 会调用模型;对照必须先全部通过 python3 factory/run_known.py # 做完的阶段会跳过 python3 factory/build_site.py
AI 和人各做了什么
AI:Claude 选题、写 Lean 陈述和证明思路、写检查和搜索程序;DeepSeek 初查陈述、尝试证明,通过的题再由另一个 Claude agent 核对陈述。程序:查现状、有限搜索、Lean 检查。
人:项目负责人提出目标并定规则,没有审过这道题的数学内容。
局限
这是已知结果,不是新结果,也不算解决开放问题。查现状只看了几个来源,搜不到不等于没人解决。DeepSeek 的初查不能代替独立的陈述核对。失败只说明这一次尝试没有成功。
版本和更正
| 2026-11-29T20:43:33Z | probe:ok |
| 2026-11-29T20:49:55Z | faith:ok |
| 2026-11-29T20:51:37Z | attempt:fail |
| 2026-11-29T21:02:12Z | attempt:fail |
| 2026-11-29T22:29:45Z | attempt:fail |
| 2026-11-29T22:40:59Z | attempt:lean_ok |
| 2026-11-29T21:05:04Z | 更正:第二轮记成 no_proof,其实是修复时写到 4,000 token 上限被截断。 |