← 全部题目

x 与 y、x+1 与 y+1 素因子分别相同的数对有无穷多

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

原题

对任意 N,存在 N<x<y,使 x 与 y、x+1 与 y+1 的素因子集合分别相同。

来源:R. K. Guy, Unsolved Problems in Number Theory, B19(按一般资料填写,没有逐条核对原文)。中文陈述由本项目改写,以来源为准。

第一轮的提示(Claude 写的):Take x + 2 = 2^k with k = N+3 and y = x*(x+2); then y+1 = (x+1)^2, and x is even so the prime 2 adds nothing new.

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

1. obtain ⟨x, hx⟩ : ∃ x, x + 2 = 2^(N+3) := ⟨2^(N+3) - 2, Nat.sub_add_cancel (by ...)⟩. Use Nat.lt_two_pow_self for N+3 < 2^(N+3), so N < x and 0 < x.
2. Use y = x * 2^(N+3). x < y: nlinarith.
3. (x*2^(N+3)).primeFactors = x.primeFactors ∪ (2^(N+3)).primeFactors by Nat.primeFactors_mul; (2^(N+3)).primeFactors = {2} by Nat.primeFactors_prime_pow (by omega) Nat.prime_two.
4. 2 ∣ x: from hx with pow_succ and omega. So 2 ∈ x.primeFactors (Nat.mem_primeFactors); finish with Finset.union_eq_left and Finset.singleton_subset_iff.
5. y + 1 = (x+1)^2: rewrite ← hx, then ring. Then Nat.primeFactors_pow (x+1) two_ne_zero.

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

Replace the failing rewrites by exact terms: `exact (Finset.union_eq_left.mpr (Finset.singleton_subset_iff.mpr hmem)).symm` for x.primeFactors = x.primeFactors ∪ {2}; and `exact (Nat.primeFactors_pow (x+1) two_ne_zero).symm` (or `by simp`) for (x+1).primeFactors = ((x+1)^2).primeFactors.

Lean 陈述

∀ N : ℕ, ∃ x y : ℕ, N < x ∧ x < y ∧ x.primeFactors = y.primeFactors ∧ (x + 1).primeFactors = (y + 1).primeFactors

证明

theorem solution : FSpec.Target := by
  unfold FSpec.Target
  intro N
  obtain ⟨x, hx⟩ : ∃ x, x + 2 = 2^(N+3) :=
    ⟨2^(N+3) - 2, Nat.sub_add_cancel (by
      have h := Nat.lt_two_pow_self (n := N+3)
      omega)⟩
  have hpow : N + 3 < 2^(N+3) := Nat.lt_two_pow_self
  have hN : N < x := by omega
  have hx0 : 0 < x := by omega
  refine ⟨x, x * 2^(N+3), hN, ?_, ?_, ?_⟩
  · have hpos : 0 < 2^(N+3) := Nat.pow_pos (by norm_num : (0:ℕ) < 2)
    nlinarith
  · rw [Nat.primeFactors_mul (by omega) (by positivity)]
    rw [Nat.primeFactors_prime_pow (by omega) Nat.prime_two]
    have h2 : 2 ∣ x := by
      have hx2 : x = 2^(N+3) - 2 := by omega
      rw [hx2]
      have : 2^(N+3) = 2 * 2^(N+2) := by
        rw [show N+3 = (N+2)+1 from by omega, pow_succ]
        ring
      rw [this]
      omega
    have hmem : 2 ∈ x.primeFactors := by
      rw [Nat.mem_primeFactors]
      exact ⟨Nat.prime_two, h2, by omega⟩
    exact (Finset.union_eq_left.mpr (Finset.singleton_subset_iff.mpr hmem)).symm
  · have hy : x * 2^(N+3) + 1 = (x+1)^2 := by
      have : x + 2 = 2^(N+3) := hx
      nlinarith
    rw [hy]
    exact (Nat.primeFactors_pow (x+1) two_ne_zero).symm

检查记录

查现状按关键词查了本机 Mathlib,按文件名查了 lefttosolve 的证明库,没找到同样的结果。没找到不等于没人做过。
陈述探测简单策略证不了,也否不掉(正常)
陈述初查DeepSeek:通过。VERDICT: FAITHFUL | Exactly matches quantifiers, strict bounds, and prime-factor equalities for x,y and x+1,y+1.
有限搜索不适用
证明尝试DeepSeek 写的证明通过了 Lean 检查,陈述已由独立 agent 核对(第 3 轮;检查 2 次)
用量8 次调用,19,093 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:44:25Zfaith:ok
2026-11-29T20:45:11Zattempt:fail
2026-11-29T20:59:29Zattempt:fail
2026-11-29T22:20:00Zattempt:lean_ok