# X 型對角線—中心軸耦合方法論

## X-Diagonal / Center-Axis Coupling Methodology for Geometric Generation, Deformation, Scaling, and Exact Arithmetic Projection

**研究線：Perfect Cuboid Global Closure — Geometry Branch G**  
**方法論狀態：Phase G0 — Methodological Foundation**  
**對應驗證支線：Verification Branch A**  
**日期：2026-09-28**

---

## 摘要

本文提出一套以 **X 型對角線、中心軸、比例耦合、幾何動力學與尺度展開** 為核心的 Perfect Cuboid 新方法論。

傳統處理方式通常以邊長

$$
a,b,c
$$

作為 primary variables，再透過畢氏關係導出面對角線與空間對角線。這種方法在數論證明、模運算與整數搜尋上非常自然，但若研究目標轉向：

- 幾何生成；
- 連續變形；
- 約束壓縮；
- 世界狀態演化；
- 可視化；
- 軟體動力學；
- 解空間探索；
- 由近似狀態向 exact arithmetic state 的投影；

則「先選邊，再反覆做畢氏演算」並不是最自然的座標系。

本文將基本物件反轉：

$$
\boxed{
\text{Center}
+
\text{X-Diagonal Field}
+
\text{Coupling Ratios}
}
$$

作為幾何 primary state。

矩形邊、長方體邊、各類對角線以及後續整數值，皆視為此底層中心—對角線世界的投影或算術顯現。

因此研究順序改為：

$$
\boxed{
\text{Geometric World}
\rightarrow
\text{Coupling Closure}
\rightarrow
\text{Deformation Dynamics}
\rightarrow
\text{Scale Expansion}
\rightarrow
\text{Arithmetic Projection}
\rightarrow
\text{Exact Verification}
}
$$

本文的核心原則是：

> **幾何生成系統負責探索世界；數論驗證系統負責判斷世界。**

也就是：

$$
\boxed{
\text{Geometry Engine}
\parallel
\text{Arithmetic Verifier}
}
$$

兩者並行但不混為同一系統。

---

# 1. 為什麼改變 primary variables

經典 Perfect Cuboid 方程為：

$$
a^2+b^2=d^2,
$$

$$
a^2+c^2=e^2,
$$

$$
b^2+c^2=f^2,
$$

$$
a^2+b^2+c^2=g^2.
$$

這種表述天然把：

$$
a,b,c
$$

視為基本量。

面對角線：

$$
d,e,f
$$

和空間對角線：

$$
g
$$

則是 derived variables。

但若目標是做動力學與世界生成，這個方向並不理想。

因為每次 shape deformation 都會迫使：

$$
a,b,c
$$

改變，

再重新計算：

$$
d,e,f,g.
$$

這使對角結構被視為被動結果。

本文改為：

$$
\boxed{
\text{對角結構是 primary geometry}
}
$$

而：

$$
\boxed{
\text{邊是對角結構的投影結果}.
}
$$

---

# 2. 單一矩形的 X 型對角線表示

考慮一個矩形。

令其中心為：

$$
O.
$$

兩條對角線在：

$$
O
$$

交會。

令兩個半對角向量為：

$$
\mathbf u,
\qquad
\mathbf v.
$$

矩形要求：

$$
\|\mathbf u\|
=
\|\mathbf v\|
=
r.
$$

四個頂點可以寫成：

$$
O+\mathbf u,
$$

$$
O+\mathbf v,
$$

$$
O-\mathbf u,
$$

$$
O-\mathbf v.
$$

兩種邊向量則為：

$$
\mathbf e_1
=
\mathbf u+\mathbf v,
$$

以及：

$$
\mathbf e_2
=
\mathbf u-\mathbf v.
$$

因此邊並不是 primary object。

它們是：

$$
\boxed{
\text{X-diagonal projection}
}
$$

的結果。

---

# 3. X 開角與邊長耦合

令兩個半對角向量夾角為：

$$
\theta.
$$

則：

$$
\mathbf u\cdot\mathbf v
=
r^2\cos\theta.
$$

所以：

$$
\|\mathbf e_1\|^2
=
\|\mathbf u+\mathbf v\|^2
=
2r^2(1+\cos\theta),
$$

以及：

$$
\|\mathbf e_2\|^2
=
2r^2(1-\cos\theta).
$$

利用半角公式：

$$
1+\cos\theta
=
2\cos^2\frac{\theta}{2},
$$

$$
1-\cos\theta
=
2\sin^2\frac{\theta}{2},
$$

得到：

$$
\|\mathbf e_1\|
=
2r\cos\frac{\theta}{2},
$$

$$
\|\mathbf e_2\|
=
2r\sin\frac{\theta}{2}.
$$

完整對角線：

$$
d=2r.
$$

因此：

$$
\boxed{
a
=
d\sin\frac{\theta}{2},
}
$$

$$
\boxed{
b
=
d\cos\frac{\theta}{2}.
}
$$

---

# 4. 耦合係數取代畢氏演算

定義：

$$
\kappa_1
=
\frac ad,
$$

以及：

$$
\kappa_2
=
\frac bd.
$$

則：

$$
\kappa_1
=
\sin\frac{\theta}{2},
$$

$$
\kappa_2
=
\cos\frac{\theta}{2}.
$$

因此：

$$
\boxed{
\kappa_1^2+\kappa_2^2=1.
}
$$

在此 formulation 中：

$$
a^2+b^2=d^2
$$

不再是每次都必須重新求解的畢氏方程。

它只是 coupling geometry 的自然恆等式。

所以研究對象從：

$$
(a,b,d)
$$

改為：

$$
(d,\theta).
$$

若尺度再被 quotient：

$$
d\sim1,
$$

則一個矩形 shape 甚至只剩：

$$
\boxed{
\theta
}
$$

這一個真正自由度。

---

# 5. 從矩形 X 到長方體三面 X

長方體存在三組矩形面：

$$
(ab),
$$

$$
(ac),
$$

$$
(bc).
$$

因此定義三個 X-face states：

$$
X_{ab},
$$

$$
X_{ac},
$$

$$
X_{bc}.
$$

各自具有：

$$
d_{ab},
\theta_{ab},
$$

$$
d_{ac},
\theta_{ac},
$$

$$
d_{bc},
\theta_{bc}.
$$

其中：

$$
d_{ab}
$$

是：

$$
ab
$$

面的對角線長度，

其他同理。

---

# 6. 三組共享邊投影

第一面：

$$
a
=
d_{ab}
\sin\frac{\theta_{ab}}{2},
$$

$$
b
=
d_{ab}
\cos\frac{\theta_{ab}}{2}.
$$

第二面：

$$
a
=
d_{ac}
\sin\frac{\theta_{ac}}{2},
$$

$$
c
=
d_{ac}
\cos\frac{\theta_{ac}}{2}.
$$

第三面：

$$
b
=
d_{bc}
\sin\frac{\theta_{bc}}{2},
$$

$$
c
=
d_{bc}
\cos\frac{\theta_{bc}}{2}.
$$

因此真正的全域約束不是三條畢氏方程。

而是：

$$
\boxed{
d_{ab}
\sin\frac{\theta_{ab}}{2}
=
d_{ac}
\sin\frac{\theta_{ac}}{2}
}
$$

$$
\boxed{
d_{ab}
\cos\frac{\theta_{ab}}{2}
=
d_{bc}
\sin\frac{\theta_{bc}}{2}
}
$$

$$
\boxed{
d_{ac}
\cos\frac{\theta_{ac}}{2}
=
d_{bc}
\cos\frac{\theta_{bc}}{2}.
}
$$

本文將這三條稱為：

$$
\boxed{
\text{Shared-Edge Coupling Closure}
}
$$

---

# 7. Shared-edge residual field

定義：

$$
R_a
=
d_{ab}
\sin\frac{\theta_{ab}}2
-
d_{ac}
\sin\frac{\theta_{ac}}2,
$$

$$
R_b
=
d_{ab}
\cos\frac{\theta_{ab}}2
-
d_{bc}
\sin\frac{\theta_{bc}}2,
$$

$$
R_c
=
d_{ac}
\cos\frac{\theta_{ac}}2
-
d_{bc}
\cos\frac{\theta_{bc}}2.
$$

形成 residual vector：

$$
\mathbf R
=
(R_a,R_b,R_c).
$$

當：

$$
\boxed{
\mathbf R=0
}
$$

時，

三個 X-face 對共享邊的投影完全一致。

這就是第一個主要 geometric closure gate。

---

# 8. Geometric closure energy

可以定義：

$$
E_G
=
\frac12
\left(
R_a^2+
R_b^2+
R_c^2
\right).
$$

因此：

$$
E_G\ge0,
$$

且：

$$
E_G=0
$$

當且僅當三組 X-face 共享邊完全閉合。

這個 energy 和原始七維平方 residual 不同。

它直接測量：

$$
\boxed{
\text{同一條幾何邊在不同 X-face projection 中是否一致}
}
$$

因此更適合幾何動力學。

---

# 9. 中心軸表示

設完整 cuboid 的中心為：

$$
O.
$$

令三個半邊向量：

$$
\mathbf x,
\qquad
\mathbf y,
\qquad
\mathbf z
$$

滿足：

$$
\mathbf x\perp\mathbf y,
$$

$$
\mathbf y\perp\mathbf z,
$$

$$
\mathbf z\perp\mathbf x.
$$

八個頂點為：

$$
O
\pm
\mathbf x
\pm
\mathbf y
\pm
\mathbf z.
$$

三條完整邊長則為：

$$
a=2\|\mathbf x\|,
$$

$$
b=2\|\mathbf y\|,
$$

$$
c=2\|\mathbf z\|.
$$

---

# 10. 空間中心與 body-diagonal field

從中心：

$$
O
$$

指向頂點的四組對稱方向：

$$
\mathbf x+\mathbf y+\mathbf z,
$$

$$
\mathbf x+\mathbf y-\mathbf z,
$$

$$
\mathbf x-\mathbf y+\mathbf z,
$$

$$
-\mathbf x+\mathbf y+\mathbf z
$$

以及反方向，

形成 cuboid 的 body-diagonal field。

其半長全部相等：

$$
R
=
\sqrt{
\|\mathbf x\|^2+
\|\mathbf y\|^2+
\|\mathbf z\|^2
}.
$$

完整空間對角線：

$$
g=2R.
$$

因此 full cuboid 可以重新描述成：

$$
\boxed{
\text{center}
+
\text{body-diagonal radius}
+
\text{directional decomposition}.
}
$$

---

# 11. 中心尺度 normalization

選擇：

$$
R=1.
$$

則：

$$
g=2.
$$

或直接選：

$$
g=1.
$$

兩者都可以。

本文建議 Geometry Engine 使用：

$$
R=1
$$

作內部尺度，

Arithmetic Projection 再採：

$$
g=1
$$

或 rational normalization。

此時：

$$
\|\mathbf x\|^2+
\|\mathbf y\|^2+
\|\mathbf z\|^2
=
1.
$$

所以 normalized center-axis state 落在：

$$
S^2_{+++}
$$

的 shape region。

---

# 12. Geometry State

本文定義基本 Geometry State：

$$
W_G
=
\left(
O,
R,
D,
\Theta,
K
\right).
$$

其中：

### 中心

$$
O\in\mathbb R^3.
$$

### global scale

$$
R>0.
$$

### X-diagonal scales

$$
D=
(d_{ab},d_{ac},d_{bc}).
$$

### X-opening angles

$$
\Theta=
(\theta_{ab},\theta_{ac},\theta_{bc}).
$$

### coupling coefficients

$$
K=
(\kappa_a,\kappa_b,\kappa_c,\ldots).
$$

其中：

$$
K
$$

可以由：

$$
(D,\Theta)
$$

派生，

也可以在某些 experiment 中作為獨立控制量。

---

# 13. Shape State 與 Scale State 必須分離

定義：

$$
W=
(S,\lambda).
$$

其中：

$$
S
$$

是 normalized shape state，

$$
\lambda>0
$$

是 scale。

因此：

$$
W_{\lambda}
=
\lambda S.
$$

這樣：

$$
\boxed{
\text{deformation}
}
$$

只作用於：

$$
S,
$$

而：

$$
\boxed{
\text{scale expansion}
}
$$

只作用於：

$$
\lambda.
$$

這避免將：

> 形狀改變

和：

> 只是放大

混在一起。

---

# 14. Deformation operator

定義幾何變形算子：

$$
\Phi_G.
$$

離散時間：

$$
S_{n+1}
=
\Phi_G(S_n).
$$

連續時間：

$$
\frac{dS}{dt}
=
V(S).
$$

其中：

$$
V
$$

為 geometric vector field。

最簡單可以讓：

$$
V
=
-\nabla E_G.
$$

即：

$$
\frac{dS}{dt}
=
-\nabla E_G(S).
$$

因此 system 自動沿 shared-edge residual 的下降方向變形。

---

# 15. 約束壓縮不是硬求解

本文不要求每一步：

$$
E_G=0.
$$

而是允許：

$$
E_G(S_t)>0.
$$

讓 world state 持續演化：

$$
S_0
\rightarrow
S_1
\rightarrow
S_2
\rightarrow
\cdots
$$

直到：

$$
E_G\rightarrow0.
$$

所以：

$$
\boxed{
\text{constraint}
}
$$

不是只用作：

$$
\text{PASS/FAIL}.
$$

它也是：

$$
\boxed{
\text{dynamic pressure field}.
}
$$

---

# 16. 多種動力學模式

Geometry Engine 可支援至少四類 dynamics。

## 16.1 Gradient closure

$$
\dot S
=
-\nabla E_G.
$$

目標是快速降低 geometric residual。

## 16.2 Momentum dynamics

$$
\ddot S
+
\gamma\dot S
=
-\nabla E_G.
$$

允許慣性、overshoot 與 basin exploration。

## 16.3 Constraint projection

輪流把 state 投影到：

$$
R_a=0,
$$

$$
R_b=0,
$$

$$
R_c=0.
$$

形成：

$$
S
\rightarrow
\Pi_a(S)
\rightarrow
\Pi_b
\rightarrow
\Pi_c.
$$

## 16.4 Exploration dynamics

加入：

$$
\eta(t)
$$

作為 deterministic 或 stochastic perturbation：

$$
\dot S
=
-\nabla E_G
+
\eta(t).
$$

用途不是證明，

而是探索不同 closure basins。

---

# 17. Geometry Engine 不需要一開始求整數

Geometry Engine 的 domain 為：

$$
S\in\mathbb R^n.
$$

所以：

$$
a,b,c,d,e,f,g
$$

不需要是：

$$
\mathbb Z.
$$

也不需要先是：

$$
\mathbb Q.
$$

這使 deformation 可以自由經過：

- irrational states；
- finite-decimal states；
- rational states；
- exact arithmetic candidates。

因此：

$$
\boxed{
\text{integer constraint is postponed}.
}
$$

---

# 18. 曲率作為世界演化 observable

令 normalized coupling trajectory：

$$
\Gamma(t)
=
\left(
\kappa_a(t),
\kappa_b(t),
\kappa_c(t)
\right).
$$

其速度：

$$
\dot\Gamma(t).
$$

加速度：

$$
\ddot\Gamma(t).
$$

若：

$$
\Gamma
$$

嵌入三維 coupling space，

可定義普通軌跡曲率：

$$
\mathcal K(t)
=
\frac{
\|
\dot\Gamma(t)
\times
\ddot\Gamma(t)
\|
}{
\|\dot\Gamma(t)\|^3
}.
$$

這裡的：

$$
\mathcal K
$$

不是 cuboid 表面的物理曲率。

它描述：

$$
\boxed{
\text{shape trajectory 在 coupling space 中如何彎曲}.
}
$$

---

# 19. 曲率的研究意義

若：

$$
\mathcal K(t)
$$

突然升高，

可能表示：

- constraint channel 發生競爭；
- state 接近 boundary；
- trajectory 遭遇 arithmetic-compatible region；
- coupling ratio 出現相變；
- 某個自由度開始被壓縮；
- 系統轉入新的 attractor basin。

因此 curvature 可以作為：

$$
\boxed{
\text{event detector}
}
$$

而不只是視覺效果。

---

# 20. Shape velocity 與 scale velocity 分離

定義：

$$
v_S
=
\|\dot S\|,
$$

以及：

$$
v_\lambda
=
|\dot\lambda|.
$$

若：

$$
v_S=0,
$$

但：

$$
v_\lambda>0,
$$

代表純放大。

若：

$$
v_S>0,
$$

但：

$$
v_\lambda=0,
$$

代表純 deformation。

這對軟體動畫非常重要。

因為 UI 可以明確區分：

$$
\boxed{
\text{Deform}
}
$$

與：

$$
\boxed{
\text{Scale}.
}
$$

---

# 21. Scale Expansion Operator

定義：

$$
\mathcal S_\lambda(W)
=
\lambda W.
$$

幾何比例保持：

$$
\frac ab,
\quad
\frac ac,
\quad
\frac dg,
\ldots
$$

全部不變。

因此 scale operator 滿足：

$$
\boxed{
\text{shape invariant}.
}
$$

這使：

> 先生成 shape，再放大

成為一個精確操作，

不是比喻。

---

# 22. Scale sweep

對固定 shape：

$$
S^\ast,
$$

可以做：

$$
\lambda_1
<
\lambda_2
<
\lambda_3
<
\cdots.
$$

觀察：

$$
\lambda S^\ast
$$

在不同 arithmetic resolutions 下的 representation。

例如：

$$
\lambda
=
10^k,
$$

或：

$$
2^k,
$$

或依 rational denominator reconstruction 選擇：

$$
\lambda
=
\operatorname{lcm}(q_i).
$$

因此 scale sweep 是：

$$
\boxed{
\text{geometric world}
\rightarrow
\text{arithmetic manifestation}
}
$$

的重要橋樑。

---

# 23. Arithmetic Observer

Geometry Engine 不負責判定解。

定義 Arithmetic Observer：

$$
\mathcal A.
$$

輸入：

$$
S.
$$

輸出可能包含：

$$
\mathcal A(S)
=
\left(
R_{\mathbb Q},
R_{\mathrm{radix}},
R_{\mathrm{square}},
R_{\mathrm{height}},
R_{\mathrm{exact}}
\right).
$$

其中：

### rational score

測量低 height rational reconstruction 是否穩定。

### radix signature

觀察：

$$
B=2,3,5,7,\ldots
$$

下 representation complexity。

### square signature

檢查 projected lengths 的 exact-square structure。

### height estimate

估計 primitive integer realization scale。

### exact gate

最終：

$$
\operatorname{PASS}
$$

或：

$$
\operatorname{FAIL}.
$$

---

# 24. Geometry 與 Arithmetic 雙引擎

整體架構：

$$
\boxed{
\text{Geometry Engine}
\parallel
\text{Arithmetic Verifier}.
}
$$

Geometry Engine：

$$
G:
S_t
\rightarrow
S_{t+1}.
$$

Arithmetic Verifier：

$$
A:
S_t
\rightarrow
\text{arithmetic diagnostics}.
$$

兩者透過：

$$
\text{feedback}
$$

耦合。

但：

$$
A
$$

不能修改 truth condition。

---

# 25. Feedback loop

完整循環：

$$
S_t
$$

$$
\downarrow
\Phi_G
$$

$$
S_{t+1}
$$

$$
\downarrow
\mathcal A
$$

$$
\text{arithmetic signature}
$$

$$
\downarrow
\text{feedback}
$$

$$
\Phi_G'
$$

也就是：

$$
\boxed{
\text{Generate}
\rightarrow
\text{Observe}
\rightarrow
\text{Verify}
\rightarrow
\text{Adapt}
}
$$

但最終 exact gate 永遠保持不變。

---

# 26. Arithmetic feedback 不等於直接求整數

例如可以定義：

$$
E_A(S)
$$

為 arithmetic heuristic energy。

總 dynamics：

$$
\dot S
=
-\nabla
\left(
E_G
+
\mu E_A
\right).
$$

其中：

$$
\mu
$$

可以從：

$$
0
$$

慢慢提高。

初期：

$$
\mu\approx0
$$

讓 geometry 自由生成。

後期：

$$
\mu>0
$$

才增加 arithmetic pressure。

這就是：

$$
\boxed{
\text{先讓世界成立，再要求世界可整數化}.
}
$$

---

# 27. 不允許 Arithmetic Verifier 污染幾何真值

若某個 state：

$$
S
$$

非常接近 rational closure，

但 exact test：

$$
F(Q)\neq0,
$$

則仍為：

$$
\operatorname{FAIL}.
$$

不能因為 visualization 很漂亮、

trajectory 很穩定、

radix pattern 很簡單，

就改變：

$$
\boxed{
\text{exact truth condition}.
}
$$

---

# 28. 軟體狀態分層

建議 runtime state 分成五層。

## Layer G0 — Geometry

保存：

$$
O,R,D,\Theta,K.
$$

## Layer G1 — Dynamics

保存：

$$
\dot S,
\ddot S,
E_G,
\mathcal K.
$$

## Layer O — Observation

保存：

- projected edges；
- ratios；
- X angles；
- center-axis directions；
- residual channels。

## Layer A — Arithmetic

保存：

- rational candidates；
- radix states；
- denominator profile；
- square defects；
- exact verification。

## Layer C — Certificate

只保存：

- exact rationals；
- exact integers；
- canonical primitive tuple；
- verifier result。

---

# 29. 可視化的主要畫面

軟體第一版建議同時顯示：

## 3D World View

顯示：

- cuboid；
- center；
- three face-X structures；
- body diagonal field；
- axis vectors。

## Coupling Panel

顯示：

$$
\theta_{ab},
\theta_{ac},
\theta_{bc},
$$

以及：

$$
\kappa
$$

值。

## Residual Panel

顯示：

$$
R_a,
R_b,R_c,
$$

與：

$$
E_G.
$$

## Dynamics Panel

顯示：

$$
v_S,
\mathcal K,
$$

以及 trajectory。

## Arithmetic Panel

顯示：

$$
\mathcal A(S).
$$

---

# 30. 最小互動控制

MVP 至少需要：

### Deformation controls

可拖動：

$$
\theta_{ab},
\theta_{ac},
\theta_{bc}.
$$

### Scale control

獨立：

$$
\lambda.
$$

### Constraint mode

啟用：

$$
-\nabla E_G.
$$

### Pause / Play

控制 dynamics。

### Reset

回到 seed state。

### Exactify

把目前 state 送入 Arithmetic Verifier。

---

# 31. Seed states

可以設計多種 seed。

## Cube seed

$$
a=b=c.
$$

高度對稱。

## Random X seed

隨機：

$$
\Theta
$$

與：

$$
D.
$$

## Rational-angle seed

選擇具有低複雜度：

$$
\tan\frac\theta2
$$

的角度。

## Near-known structure seed

從 Euler brick 或其他 near-miss 投影回 X-state。

這有助於比較 basin。

---

# 32. World evolution experiment

一個基本實驗：

$$
S_0
\rightarrow
S_1
\rightarrow
\cdots
\rightarrow
S_N.
$$

每一步記錄：

$$
E_G,
$$

$$
\mathcal K,
$$

$$
\Theta,
$$

$$
K,
$$

$$
\mathcal A(S).
$$

目的不是只看：

$$
S_N.
$$

而是研究整條 trajectory。

---

# 33. Trajectory data 是正式研究資料

保存：

$$
\Gamma
=
\{S_t\}.
$$

分析：

- residual下降率；
- curvature peaks；
- basin transition；
- symmetry breaking；
- rational-score collapse；
- scale sensitivity；
- exactification events。

因此：

$$
\boxed{
\text{path}
}
$$

和：

$$
\boxed{
\text{endpoint}
}
$$

同樣重要。

---

# 34. Deformation family

若沿某個參數：

$$
\tau
$$

生成：

$$
S(\tau),
$$

則可研究：

$$
\Theta(\tau),
$$

$$
K(\tau),
$$

$$
E_G(\tau),
$$

$$
\mathcal K(\tau).
$$

若某段：

$$
\tau\in I
$$

持續保持：

$$
E_G=0,
$$

則得到一條 geometric solution family。

之後才問：

$$
\mathcal A(S(\tau))
$$

在哪些點 exact rational closure。

---

# 35. 幾何 family 與算術 puncture

這是本方法論最核心的世界觀之一。

continuous geometric family：

$$
\mathcal F_G
$$

可能是一條或一片連續 manifold。

而 arithmetic solutions：

$$
\mathcal F_A
$$

則是：

$$
\mathcal F_G
$$

中的特殊 punctures：

$$
\mathcal F_A
\subseteq
\mathcal F_G.
$$

所以：

$$
\boxed{
\text{geometry generates continuum}
}
$$

而：

$$
\boxed{
\text{arithmetic selects exact manifestations}.
}
$$

---

# 36. 中心軸 deformation

除了 face-X angle，

還可以允許中心 axis vectors：

$$
\mathbf x,
\mathbf y,
\mathbf z
$$

在約束下改變長度。

保持：

$$
\mathbf x\perp\mathbf y,
$$

$$
\mathbf y\perp\mathbf z,
$$

$$
\mathbf z\perp\mathbf x.
$$

則：

$$
\|\mathbf x\|,
\|\mathbf y\|,
\|\mathbf z\|
$$

直接控制 shape。

這提供另一個 equivalent Geometry Engine coordinate。

---

# 37. Dual-coordinate experiment

因此軟體可以同時維護兩種 coordinate systems。

## X-space

$$
(D,\Theta).
$$

## Axis-space

$$
(\|\mathbf x\|,\|\mathbf y\|,\|\mathbf z\|).
$$

兩者應可互相投影。

若兩個表示在數值上不同步，

即可作為 runtime consistency error。

這提供天然 cross-verification。

---

# 38. Geometry consistency gate

定義：

$$
C_G
=
\|
P_X(S)
-
P_A(S)
\|.
$$

其中：

$$
P_X
$$

是 X-space 投影出的 edge state，

$$
P_A
$$

是 axis-space 投影出的 edge state。

要求：

$$
\boxed{
C_G=0.
}
$$

這是 Geometry Engine 自己的 internal verifier。

---

# 39. 軟體實驗的三種模式

## Mode V — Visual Exploration

強調：

- 可拖動；
- 動畫；
- trajectory；
- curvature；
- basin。

## Mode D — Dynamics

強調：

$$
\Phi_G
$$

與：

$$
E_G.
$$

## Mode E — Exactification

凍結幾何 state，

送入：

$$
\mathcal A.
$$

這樣 UI 不會把視覺探索和 formal claim 混在一起。

---

# 40. 第一版軟體的最小資料結構

可定義：

```text
WorldState
  center
  global_scale
  face_x_states
  axis_state
  shared_edge_projection
  geometric_residual
  trajectory_velocity
  trajectory_acceleration
  trajectory_curvature
  arithmetic_observation
  exact_status
```

其中：

```text
FaceXState
  diagonal_scale
  opening_angle
  coupling_sin
  coupling_cos
```

---

# 41. Exactification interface

Geometry Engine 輸出：

$$
S^\ast.
$$

Arithmetic Verifier 接收：

$$
\Pi_A(S^\ast).
$$

例如輸出 projected ratios：

$$
\frac ag,
\frac bg,
\frac cg,
\frac dg,
\frac eg,
\frac fg.
$$

再執行：

$$
\text{rational reconstruction}
$$

以及：

$$
\text{exact symbolic verification}.
$$

因此兩個 engine 只需要清楚的 interface。

---

# 42. Verification Branch A 的定位

先前研究的：

- common-hypotenuse；
- Gaussian slopes；
- representation multiplicity；
- $2$-adic obstruction；
- rational curves；
- exact integer verifier；

全部保留。

但重新定位為：

$$
\boxed{
\text{Verification Branch A}.
}
$$

它不再決定 Geometry Engine 的基本表示。

它主要負責：

- exact certification；
- impossible-region pruning；
- arithmetic invariant；
- known obstruction feedback；
- proof construction。

---

# 43. Geometry Branch G 的定位

新的主線：

$$
\boxed{
\text{Geometry Branch G}.
}
$$

負責：

- world generation；
- X-diagonal representation；
- center-axis model；
- deformation；
- scale expansion；
- trajectory analysis；
- curvature；
- basin discovery；
- visualization。

兩條支線在：

$$
\boxed{
\text{Candidate Interface}
}
$$

會合。

---

# 44. Candidate Interface

candidate 可以表示為：

$$
C=
(S^\ast,\Sigma_G,\Sigma_A).
$$

其中：

$$
S^\ast
$$

為 geometric state，

$$
\Sigma_G
$$

是 geometry diagnostics，

$$
\Sigma_A
$$

是 arithmetic diagnostics。

若：

$$
\operatorname{Exact}(C)=1,
$$

才提升為 mathematical certificate。

---

# 45. 世界生成與證明完全分離

本文正式採用：

$$
\boxed{
\text{Untrusted Generator}
\rightarrow
\text{Trusted Verifier}.
}
$$

Generator 可以：

- 用 GPU；
- 用 AI；
- 用動畫；
- 用 gradient；
- 用 stochastic search；
- 用 world model；
- 用 arbitrary heuristics。

Verifier 只接受：

$$
\boxed{
\text{exact state}.
}
$$

這使未來系統可以非常自由，

而數學可信度不受生成方法影響。

---

# 46. Phase G0 — 方法論完成

本文件就是：

$$
\boxed{
\text{Phase G0}.
}
$$

目標：

建立新座標與研究分層。

---

# 47. Phase G1 — 2D X-face sandbox

先做單一矩形。

功能：

- center；
- X diagonals；
- $\theta$ slider；
- scale slider；
- coupling display；
- deformation animation。

驗證：

$$
a=d\sin\frac\theta2,
$$

$$
b=d\cos\frac\theta2.
$$

---

# 48. Phase G2 — Three-X Cuboid

加入：

$$
X_{ab},
X_{ac},
X_{bc}.
$$

顯示三個 shared-edge residual：

$$
R_a,R_b,R_c.
$$

允許手動拖動與 constraint mode。

---

# 49. Phase G3 — Constraint Dynamics

實作：

$$
\dot S=-\nabla E_G.
$$

加入：

- damping；
- momentum；
- timestep；
- convergence logging。

---

# 50. Phase G4 — Curvature and trajectory

記錄：

$$
\Gamma(t).
$$

計算：

$$
v_S,
$$

$$
\mathcal K.
$$

可視化：

- trajectory line；
- curvature heat；
- event markers。

---

# 51. Phase G5 — Scale Expansion

固定：

$$
S^\ast.
$$

獨立操作：

$$
\lambda.
$$

顯示：

- edge scale；
- diagonal scale；
- ratio invariance；
- radix representation changes。

---

# 52. Phase G6 — Arithmetic Observer

接入：

- rational reconstruction；
- radix observer；
- denominator complexity；
- exact-square test；
- shared-core signatures。

此階段才真正與 Verification Branch A 接軌。

---

# 53. Phase G7 — Bidirectional feedback

Arithmetic Observer 可以給 Geometry Engine heuristic feedback。

例如：

$$
E_{\mathrm{total}}
=
E_G
+
\mu E_A.
$$

讓：

$$
\mu
$$

可控。

觀察：

$$
\mu
$$

增加時 trajectory 是否出現新的 attractor。

---

# 54. Phase G8 — Multi-seed world exploration

平行啟動：

$$
S_0^{(1)},
S_0^{(2)},
\ldots,S_0^{(N)}.
$$

比較：

- basin；
- endpoint；
- curvature fingerprint；
- arithmetic score；
- convergence rate。

這才開始形成真正 world-generation laboratory。

---

# 55. Phase G9 — Exact candidate escalation

若某 state 顯示：

$$
\mathcal A(S)
$$

具有強烈 arithmetic collapse，

凍結 state。

進入：

$$
\boxed{
\text{Exactification Pipeline}.
}
$$

若 exact PASS，

才輸出正式 Perfect Cuboid candidate。

---

# 56. Phase G10 — Solution-space dynamics

如果未來找到第一個 exact solution：

$$
S_1.
$$

則以：

$$
S_1
$$

為 seed，

研究：

$$
S_1
\rightarrow
S_2
\rightarrow
S_3
\rightarrow\cdots.
$$

這直接連到：

- arithmetic freedom；
- deformation family；
- second expansion；
- solution-preserving dynamics。

---

# 57. 方法論的核心優勢

## 57.1 幾何自由度可視化

不用面對巨大整數。

直接看：

$$
\Theta,
K,
R.
$$

## 57.2 Deformation 天然

角度與比例可以連續變化。

## 57.3 Scale 天然分離

$$
S
$$

與：

$$
\lambda
$$

獨立。

## 57.4 Constraint 可當成 field

不只是 equation。

## 57.5 Curvature 可被觀察

trajectory 本身成為資料。

## 57.6 Arithmetic 延後

避免一開始被整數格點綁死。

## 57.7 Exact truth 保留

最後仍回到 formal verifier。

## 57.8 很適合軟體與動畫

所有核心變數都有直接空間意義。

---

# 58. 方法論風險

## 58.1 幾何簡單不代表算術簡單

continuous closure 不推出 rational closure。

## 58.2 Visual attractor 不等於數學解

即使動畫穩定，

也不能跳過 exact verifier。

## 58.3 曲率只是 trajectory observable

不是 existence proof。

## 58.4 Dynamics 可能有人工 bias

不同：

$$
\Phi_G
$$

可能產生不同 basin。

所以要做多 dynamics cross-check。

## 58.5 Arithmetic feedback 可能過度偏壓

若：

$$
\mu
$$

過大，

Generator 可能失去幾何探索能力。

---

# 59. 正式研究原則

### 原則 A

世界先於表示。

### 原則 B

Shape 與 scale 分離。

### 原則 C

X-diagonal 為 primary geometry。

### 原則 D

邊為 projection。

### 原則 E

Constraint 為 dynamics field。

### 原則 F

Curvature 為 observable，不是 proof。

### 原則 G

Arithmetic 延後加入。

### 原則 H

Approximation 不等於 exactness。

### 原則 I

Generator 與 verifier 分離。

### 原則 J

任何正式結論必須 exact commit。

---

# 60. Canonical 流程

完整 methodology：

$$
\boxed{
\text{Seed}
}
$$

$$
\downarrow
$$

$$
\boxed{
\text{Center / X-Diagonal World}
}
$$

$$
\downarrow
$$

$$
\boxed{
\text{Shared-Edge Coupling}
}
$$

$$
\downarrow
$$

$$
\boxed{
\text{Geometric Dynamics}
}
$$

$$
\downarrow
$$

$$
\boxed{
\text{Trajectory / Curvature Observation}
}
$$

$$
\downarrow
$$

$$
\boxed{
\text{Scale Expansion}
}
$$

$$
\downarrow
$$

$$
\boxed{
\text{Arithmetic Observation}
}
$$

$$
\downarrow
$$

$$
\boxed{
\text{Rational Reconstruction}
}
$$

$$
\downarrow
$$

$$
\boxed{
\text{Exact Verification}
}
$$

$$
\downarrow
$$

$$
\boxed{
\text{Primitive Integer Manifestation}.
}
$$

---

# 61. 與先前方法的關係

先前數論線並非被否定。

它現在成為：

$$
\boxed{
\text{Verification Branch A}.
}
$$

新的 X-diagonal / center-axis system 成為：

$$
\boxed{
\text{Geometry Branch G}.
}
$$

因此整個研究不再只有單一路線。

而是：

$$
\boxed{
G
\parallel
A.
}
$$

其中：

$$
G
$$

負責生成世界。

$$
A
$$

負責驗證世界。

---

# 62. 最終方法論命題

本文提出的核心方法論命題是：

> Perfect Cuboid 可以先被視為一個以中心、X 型對角線、共享邊投影與比例耦合為基礎的幾何世界生成問題；整數與有理條件則作為後續算術投影與 exact certification layer。

形式上：

$$
\boxed{
\text{Perfect Cuboid Search}
}
$$

可改寫為：

$$
\boxed{
\text{Geometric Closure Generation}
+
\text{Arithmetic Exactification}.
}
$$

而不是：

$$
\boxed{
\text{直接整數搜尋}.
}
$$

---

# 63. 結論

X 型對角線—中心軸耦合方法論將 Perfect Cuboid 的研究主體從：

$$
a,b,c
$$

轉移到：

$$
O,
D,
\Theta,
K,
R.
$$

邊長不再被視為最初輸入。

而是：

$$
\boxed{
\text{centered diagonal geometry}
}
$$

的投影結果。

因此原本的畢氏關係：

$$
a^2+b^2=d^2
$$

被吸收到：

$$
a=d\sin\frac\theta2,
$$

$$
b=d\cos\frac\theta2
$$

的 coupling geometry 中。

三個 face-X 再透過 shared-edge residual：

$$
R_a,
R_b,
R_c
$$

形成真正的全域閉合場。

這使系統天然支援：

- deformation；
- constraint dynamics；
- trajectory；
- curvature；
- scale expansion；
- visual world generation；
- arithmetic observation；
- exact certification。

因此後續正式研究將採用雙主線：

$$
\boxed{
\text{Geometry Branch G}
\parallel
\text{Verification Branch A}.
}
$$

其中 Geometry Branch G 為新的主要探索線。

Verification Branch A 則保留之前所有 exact 數論成果，

作為 arithmetic certification 與 proof-safe obstruction engine。

下一步不直接進入大規模數論推演。

而是先實作：

# Phase G1 — 2D X-Diagonal Sandbox

再逐步升級到：

$$
\boxed{
\text{Three-X Cuboid Dynamics}.
}
$$

---

**End of Methodology — Phase G0**
