Skip to content

P001: connect Nat two-branch criterion to Int prime reconstruction (bridge requested in #25) - #5

Draft
betyourluck wants to merge 2 commits into
AwakeningOS:codex/p001-reverse-divisorfrom
betyourluck:luna/p001-prime-branch-bridge
Draft

betyourluck wants to merge 2 commits into
AwakeningOS:codex/p001-reverse-divisorfrom
betyourluck:luna/p001-prime-branch-bridge

Conversation

@betyourluck

Copy link
Copy Markdown

Outcasts #23 で未形式化と指摘し、#25 で境界測量士から正式に依頼された Nat/Int の橋渡しです。base は PR #3 のブランチ codex/p001-reverse-divisor(head a997d0f)で、PR #3 のソースと凍結問題文には触れていません。作成者はルナ側(Outcasts Neo & ルナ)で、前提の 6 定理の作成者とは別です。この追補の独立した仕様レビューは未実施で、PR #3 と同じく Draft です。

追加

  • OutcastsMathLab/Problems/P001_ErdosStraus1201/PrimeBranchBridge.lean(9 定理)
  • Problems/P001_ErdosStraus1201/BRIDGE.md(自然言語の仕様)
  • OutcastsMathLab.lean に import 1 行

命題(#25 の依頼に対応する 2 つ)

奇素数 p(Nat.Prime p, p ≠ 2)、p < 4x、x < p で

  • shift_cast: ((4 * x - p : Nat) : Int) = 4 * (x : Int) - (p : Int)(素数性は不要、p < 4x のみ)
  • shift_coprime: Nat.Coprime (4 * x - p) p(odd_prime_coprimality の Int.gcd (4x−p) (px) = 1 を Int.gcd_natCast_natCast で Nat に戻し、p ∣ px で右側を p に落とす)

依頼文の上側条件は 0 < x < p だったので、4x ≤ 3p ではなく x < p を仮定にしています(0 < x は p < 4x から出ます)。

接続(残り 7 つ)

  • prime_factor_witness_iff_branches: c = 4x−p を factor_witness_iff_branches に代入した形。gcd の仮定が消える
  • factor_witness_reconstruction / branchI_reconstruction / branchII_reconstruction: Nat の FactorWitness / BranchI / BranchII から odd_prime_reconstruction の結論(0 < x ≤ y ≤ z、4xyz = p(xy+xz+yz)、Int 上)へ。こちらは元定理が要求する 4x ≤ 3p を仮定に持つ
  • example_1201_branchII / example_1201_reconstruction / example_1201_branchI: 1201 の既知解で Branch II(t=108)と Branch I(t=34)が空でないこと、橋渡しを実際に適用して 4/1201 = 1/306 + 1/21618 + 1/61251 の等式が出ること

検証(ローカル Windows、Lean 4.34.0 / mathlib v4.34.0)

項目 結果
lake build(PrimeBranchBridge の生成物を削除して再コンパイル) PrimeBranchBridge Built(86s)、645 jobs、終了コード 0
#print axioms(9 定理) shift_cast は propext / Quot.sound、example_1201_branchI / example_1201_branchII は propext、他の 6 定理は propext / Classical.choice / Quot.sound
check_policy.py 7 files 通過
git merge-tree PR #2(3c410a8)および PR #4(6e513c7)とは OutcastsMathLab.lean の import 行で衝突する(内容は両方の行を残せばよい)。統合順が決まった側に合わせてリベースする

含まないもの

各対象素数で表のどちらかの行を満たす x, t が存在すること(本題)、2 枝の非重複、復元した分母の Type I/II 判定、Python 列挙器の形式検証。#25 で分けると決めた後ろ 2 つは別補題にします。

🤖 Generated with Claude Code

betyourluck and others added 2 commits October 2, 2026 12:38
Add PrimeBranchBridge.lean (9 theorems) linking PrimeDivisorBranches
(Nat, general c) and PrimeCoprimality (Int, 4x-p):

- shift_cast: for p < 4x, Nat subtraction 4*x-p casts to 4x-p
- shift_coprime: Nat.Coprime (4*x-p) p from odd_prime_coprimality
- prime_factor_witness_iff_branches: two-branch equivalence at c=4x-p
- factor_witness_reconstruction, branchI/branchII_reconstruction:
  a Nat factor witness or branch parameter yields 0<x<=y<=z and
  4xyz = p(xy+xz+yz) over Int, with b = (px)^2/a as an exact quotient
- 1201 examples: Branch II t=108 -> (306,21618,61251) via
  branchII_reconstruction, Branch I t=34 -> (306,15980,172727820)

Local lake build: PrimeBranchBridge built, 645 jobs, exit 0; axioms
within propext/Classical.choice/Quot.sound; check_policy 7 files.
No existence theorem for the witness t is claimed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
shift_coprime and prime_factor_witness_iff_branches now assume p < 4x and
x < p instead of p < 4x <= 3p; the reconstruction theorems keep 4x <= 3p
because odd_prime_reconstruction requires it. Rebuilt from deleted build
products: PrimeBranchBridge Built, 645 jobs, standard axioms only.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@betyourluck

Copy link
Copy Markdown
Author

CI(fork 側、upstream の verify.yml は main 宛て以外では動かないため fork で手動実行): https://github.com/betyourluck/Outcasts-MathLab/actions/runs/37233414553

  • head ccea714、3 ジョブ(Lean kernel verification / Exact finite regression / Trust-boundary policy)とも success
  • ログ上で PrimeBranchBridge Built、645 jobs、Build completed successfully
  • #print axioms 9 定理はローカルの再ビルドと同一: shift_cast は propext / Quot.sound、example_1201_branchI / example_1201_branchII は propext、他の 6 定理は propext / Classical.choice / Quot.sound

— Outcasts Neo & ルナ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant