← 全部题目

powerful 数恰好是 a²b³

已知结果:完整形式化验证 已知结果,初等数论,档:低(只在本项目放宽),已知结果的形式化

原题

n>0 是 powerful 数,当且仅当 n=a²b³(a、b 是自然数)。

来源:S. W. Golomb, Powerful numbers, Amer. Math. Monthly 77 (1970)(按一般资料填写,没有逐条核对原文)。中文陈述由本项目改写,以来源为准。

第一轮的提示(Claude 写的):Write n = b*s^2 with b squarefree (Nat.sq_mul_squarefree). Each prime p | b has p^2 | n, so b | s; s = b*a gives n = a^2*b^3. Converse: a prime dividing a^2*b^3 divides a or b.

第 2 轮的方向(Claude 写的):

intro n hn; constructor.
(→) intro h. obtain ⟨b, s, hbs, hb⟩ := Nat.sq_mul_squarefree n (hbs : s^2 * b = n, hb : Squarefree b). Show b ∣ s: by (UniqueFactorizationMonoid.dvd_of_squarefree...) or by Nat.Prime-wise argument: for prime p ∣ b, write b = p*c; as hb is squarefree, ¬ p ∣ c; p^2 ∣ s^2*p*c gives p ∣ s^2*c, so p ∣ s. Turn "every prime factor of b divides s" into b ∣ s with Nat.prod_primeFactors_of_squarefree hb and Finset.prod_primes_dvd (primes as Nat.Prime.prime). Then s = b*a and n = a^2*b^3 by ring.
(←) rintro ⟨a, b, rfl⟩ p hp hd. rcases (Nat.Prime.dvd_mul hp).1 hd with h | h; in each case p divides the base (hp.dvd_of_dvd_pow); use pow_dvd_pow_of_dvd h 2, and b^2 ∣ b^3 for the second case.

第 3 轮的方向(Claude 写的):

`Nat.dvd_iff_prime_dvd` doesn't exist. To prove b ∣ s: rw [← Nat.prod_primeFactors_of_squarefree hb]; apply Finset.prod_primes_dvd; for each p in b.primeFactors show Prime p (Nat.Prime.prime) and p ∣ s.
p ∣ s: obtain ⟨c, hc⟩ from p ∣ b (b = p*c). ¬ p ∣ c, since p*p ∣ b would contradict hb (Nat.isUnit_iff and hp.one_lt). p^2 ∣ n = s^2*b = p*(s^2*c), so p ∣ s^2*c (Nat.dvd_of_mul_dvd_mul_left hp.pos); then (Nat.Prime.dvd_mul hp).1 and hp.dvd_of_dvd_pow.
With s = b*a the final witness is ⟨a, b, by rw [← hbs]; ring⟩, as (b*a)^2*b = a^2*b^3. Keep your (←) direction.

第 4 轮的方向(Claude 写的):

Four small fixes. (1) To contradict hb, build `have hpp : p * p ∣ b := by rw [hc]; exact mul_dvd_mul_left p hpdvdc` (hpdvdc : p ∣ c), then `exact hpprime.one_lt.ne' (Nat.isUnit_iff.mp (hb p hpp))`; hb takes p and a proof of p * p ∣ b. (2) Don't use Irreducible.not_unit. (3) For p ^ 2 ∣ s ^ 2 * b use `by rw [hbs]; exact hp2dvd`. (4) Use pow_two to change p ^ 2 into p * p where needed.

Lean 陈述

∀ n : ℕ, 0 < n → ((∀ p : ℕ, p.Prime → p ∣ n → p ^ 2 ∣ n) ↔ ∃ a b : ℕ, n = a ^ 2 * b ^ 3)

证明

theorem solution : FSpec.Target := by
  unfold FSpec.Target
  intro n hn
  constructor
  · intro h
    obtain ⟨b, s, hbs, hb⟩ := Nat.sq_mul_squarefree n
    have hbn : b ∣ n := by rw [← hbs]; exact dvd_mul_left b (s ^ 2)
    have hbdvd : b ∣ s := by
      rw [← Nat.prod_primeFactors_of_squarefree hb]
      apply Finset.prod_primes_dvd
      · intro p hp
        exact Nat.Prime.prime (Nat.prime_of_mem_primeFactors hp)
      · intro p hp
        have hpb : p ∣ b := Nat.dvd_of_mem_primeFactors hp
        have hpprime : p.Prime := Nat.prime_of_mem_primeFactors hp
        have hpn : p ∣ n := dvd_trans hpb hbn
        have hp2dvd : p ^ 2 ∣ n := h p hpprime hpn
        obtain ⟨c, hc⟩ := hpb
        have hpc : ¬ p ∣ c := by
          intro hpdvdc
          have hpp : p * p ∣ b := by rw [hc]; exact mul_dvd_mul_left p hpdvdc
          have hunit : IsUnit p := hb p hpp
          exact hpprime.one_lt.ne' (Nat.isUnit_iff.mp hunit)
        have hpdv : p ∣ s ^ 2 * c := by
          have hkey : p * (s ^ 2 * c) = s ^ 2 * b := by
            rw [hc]; ring
          have hp2key : p ^ 2 ∣ p * (s ^ 2 * c) := by
            rw [hkey]; rw [hbs]; exact hp2dvd
          rw [pow_two] at hp2key
          exact Nat.dvd_of_mul_dvd_mul_left hpprime.pos hp2key
        rcases (Nat.Prime.dvd_mul hpprime).1 hpdv with hps | hpc'
        · exact hpprime.dvd_of_dvd_pow hps
        · exact absurd hpc' hpc
    obtain ⟨a, rfl⟩ := hbdvd
    refine ⟨a, b, ?_⟩
    rw [← hbs]
    ring
  · rintro ⟨a, b, rfl⟩ p hp hd
    rcases (Nat.Prime.dvd_mul hp).1 hd with h | h
    · have hpa : p ∣ a := hp.dvd_of_dvd_pow h
      have : p ^ 2 ∣ a ^ 2 := pow_dvd_pow_of_dvd hpa 2
      exact dvd_trans this (dvd_mul_right _ _)
    · have hpb : p ∣ b := hp.dvd_of_dvd_pow h
      have h2 : p ^ 2 ∣ b ^ 2 := pow_dvd_pow_of_dvd hpb 2
      have h3 : b ^ 2 ∣ b ^ 3 := by
        rw [pow_succ]
        exact dvd_mul_right _ _
      exact dvd_trans h2 (dvd_trans h3 (dvd_mul_left _ _))

检查记录

查现状按关键词查了本机 Mathlib,按文件名查了 lefttosolve 的证明库,没找到同样的结果。没找到不等于没人做过。
陈述探测简单策略证不了,也否不掉(正常)
陈述初查DeepSeek:通过。VERDICT: FAITHFUL | Matches positive powerful numbers via prime-square divisibility iff n=a²b³ representation.
有限搜索不适用
证明尝试DeepSeek 写的证明通过了 Lean 检查,陈述已由独立 agent 核对(第 4 轮;检查 2 次)
用量11 次调用,30,538 token

复核

2026-11-29T22:53:25Z独立 Claude agent(只看题意和 Lean 陈述):final_statement → ok。9 条盲测中判为忠于原题;盲测混了 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:33Zprobe:ok
2026-11-29T20:45:13Zfaith:ok
2026-11-29T20:45:58Zattempt:fail
2026-11-29T20:59:58Zattempt:fail
2026-11-29T22:20:42Zattempt:fail
2026-11-29T22:28:17Zattempt:lean_ok
2026-11-29T21:05:04Z更正:第二轮记成 no_proof,其实是修复时写到 4,000 token 上限被截断。