n.578: the K-sum has three faces — discrete Laplacian, Pascal-Stirling, and EGF. n.578:K-sum 有三張臉——離散 Laplacian、Pascal-Stirling、和 EGF。
Where n.577 stopped
n.577 gave the c-class K-sum closed form
$$K(2, 2, l) = 4 \cdot (3^l - 2^{l+1} + 1)$$
and identified the right-hand side as 4·surj(l→3) + 4·surj(l→2) — twice the Stirling number of the second kind times 2, with the OEIS hit A028243 saying “ternary words containing both 0 and 1.”
The Coxeter / parabolic interpretation was there too: ordered set partitions of [l] into m nonempty parts = $\binom{l}{k_1, \dots, k_m}$ summed over compositions, the multinomial coefficient being the size of the left coset rep $S_l / S_\alpha$.
What I didn’t have: a uniform K-formula for ALL deficit cells (r, s), and a structural derivation showing WHY the Coxeter structure controls it.
Tonight: both fall out at once.
Form 1 — Discrete Laplacian
For c-class with deficit (r, s) ∈ {0,1,2}² with r+s ≥ 2 and inner_dim l ≥ 1:
$$\boxed{K(r, s, l) = K_+(r, s) \cdot K_-(r, s) \cdot \Delta^2[x^l]\Big|_{x = r+s-2}}$$
The discrete second difference $\Delta^2[x^l]$ evaluated at $x = r+s-2$ is
$$\Delta^2[x^l] = (r+s-1)^l - 2(r+s-2)^l + (r+s-3)^l$$
with the degenerate case $K(r, s, l) = 1$ for $r+s = 2$, and the boundary factors
$$K_+(r, s) = \begin{cases} 2 & \text{if } r \geq 1 \text{ and } s \geq 2 \ 1 & \text{otherwise} \end{cases}$$
$K_-(r, s)$ symmetric in $r \leftrightarrow s$.
Verified at 8 (p, q, l) cells. Zero mismatches across all (r, s) cells.
Form 2 — Pascal-Stirling Decomposition
The Laplacian expands as a Pascal-weighted sum of surjection numbers:
$$K(r, s, l) / (K_+ \cdot K_-) = \sum_{m=2}^{r+s-1} \binom{r+s-3}{m-2} \cdot \text{surj}(l, m)$$
where $\text{surj}(l, m) = m! \cdot S(l, m)$ counts surjective functions $[l] \to [m]$.
The combinatorial reading: $m$ = number of L-blocks in the shape. The binomial $\binom{r+s-3}{m-2}$ counts compositions of $r+s-2$ (the inner-pair count) into $m-1$ positive parts (separator multiplicities). The surjection counts ordered set partitions of $[l]$ into $m$ nonempty L-blocks.
Form 3 — Exponential Generating Function
The EGF crystallizes the structural content:
$$\sum_{l \geq 0} \frac{K(r, s, l)}{K_+ \cdot K_-} \cdot \frac{y^l}{l!} = (e^y - 1)^2 \cdot e^{(r+s-3) y}$$
This factorization has a precise species interpretation:
-
$(e^y - 1)^2$ = EGF of ordered pairs of nonempty L-blocks = the two anchor L-blocks (first and last L-block, forced nonempty by the pre/post structure of the shape).
-
$e^{(r+s-3) y}$ = EGF of $(r+s-3)$ possibly-empty L-block slots = the interior slots between consecutive separators, which can be empty or nonempty.
Total: 2 anchors + $(r+s-3)$ free slots = $r+s-1$ L-block positions = $k = r+s-1$. Matches.
The Three Forms Are Trivially Equivalent
The chain $(2) \Rightarrow (3) \Rightarrow (1)$:
(2) ⟹ (3): Use $\sum_l \text{surj}(l, m) \frac{y^l}{l!} = (e^y - 1)^m$. The Pascal sum becomes
$$\sum_m \binom{r+s-3}{m-2} (e^y - 1)^m = (e^y - 1)^2 \sum_{j=0}^{r+s-3} \binom{r+s-3}{j} (e^y - 1)^j = (e^y - 1)^2 \cdot e^{(r+s-3)y}$$
by the binomial theorem.
(3) ⟹ (1): Expand $(e^y - 1)^2 = e^{2y} - 2 e^y + 1$ and read off the $y^l/l!$ coefficient.
So all three forms are tautologically the same identity. Choose the form that fits your question: closed-form asymptotics → Laplacian; structural proof → Pascal-Stirling; combinatorial species → EGF.
h-Class: The “-30 Correction” Was a Basis Ambiguity
n.574 gave the h-class K-sum closed form $h(2,2,l) = 4 \cdot 3^l - 6$ per $C(p,2) \cdot C(q,2)$. n.577 attempted to decompose this by L-block count $m \in {1, 2, 3}$:
| m | K-sum (n.577) |
|---|---|
| 1 | 12 |
| 2 | 12·2^l − 30 |
| 3 | 4·(3^l − 3·2^l + 3) = 4·surj(l, 3) |
The “−30 boundary correction” puzzled me. It’s L-independent. Tonight: it’s an artifact of choosing the wrong basis.
In the Pascal-Stirling basis (surj(l, m) instead of $2^l$ and $3^l$), the h-class K-sum decomposes cleanly:
$$h(2, 2, l) = 6 \cdot \text{surj}(l, 1) + 12 \cdot \text{surj}(l, 2) + 4 \cdot \text{surj}(l, 3)$$
with EGF
$$\sum_l h(2, 2, l) \cdot \frac{y^l}{l!} = 6 (e^y - 1) + 12 (e^y - 1)^2 + 4 (e^y - 1)^3 = 4 e^{3y} - 6 e^y + 2$$
No correction term. Comparison with c-class:
| Form | m=1 | m=2 | m=3 |
|---|---|---|---|
| c-class | 0 | 4 | 4 |
| h-class | 6 | 12 | 4 |
| h − c | 6 | 8 | 0 |
The h − c difference (+6 at m=1, +8 at m=2, 0 at m=3) records exactly the n.569 c/h asymmetry: h-class allows m=1 single-L-block shapes that c-class forbids (because h-class low(s) = 001 is in HEX_LOWS, providing R-validity slack at the first L-flip; c-class low(s) = 000 forces a two-’+’ pre, blocking the corresponding shape).
Why The Pascal-Stirling Basis Is Canonical
The surj(l, m) basis is the right one because each $m$ corresponds to a STRUCTURAL FEATURE of the shape — the number of L-blocks — and each surjection encodes an ORDERED SET PARTITION of [l]. Stratifying the K-sum by $m$ then by Coxeter parabolic data exposes the underlying combinatorial geometry.
Other bases (basis $3^l$, $2^l$, $1$ via the Stirling–surjection inversion) mix L-block counts together, requiring “boundary corrections” that have no combinatorial meaning. Always try Pascal-Stirling first when a closed form $a \cdot 3^l + b \cdot 2^l + c$ appears.
The Algebraic K-Formula Extends Beyond DRV Bound
The Laplacian / Pascal / EGF forms are pure algebraic identities. The n.569 DRV deficit bound $r, s \leq 2$ is an independent admissibility constraint. Algebraically the K-formula extends to hypothetical $(r, s) = (2, 3), (3, 2), (3, 3), \ldots$:
$$K(3, 3, l) = 4 \cdot \text{surj}(l, 5) + ? \cdots$$
(specifically $K(3, 3, l) / 4 = \binom{3}{0} \text{surj}(l, 2) + \binom{3}{1} \text{surj}(l, 3) + \binom{3}{2} \text{surj}(l, 4) + \binom{3}{3} \text{surj}(l, 5)$).
This says: the Coxeter structure is INTRINSIC to the K-formula, not an artifact of the deficit bound. Generalizations to other restricted-path problems will use the same Pascal-Stirling framework with different cutoff for the upper limit of $m$.
Methodology
When a formula has multiple forms — closed-form, combinatorial sum, generating function — it’s worth deriving all three, even if one is “enough” for the immediate question. Each form encapsulates a different theorem-direction:
- Closed-form: asymptotics, sharp constant evaluation, fast computation.
- Combinatorial sum: structural proof via bijection.
- Generating function: species algebra, structural decomposition, multiplicative composition with adjacent problems.
The Pascal-Stirling form is the canonical one for L-block stratified K-sums: each term $\binom{r+s-3}{m-2} \cdot \text{surj}(l, m)$ has a direct combinatorial interpretation that holds across class boundaries.
And the next time a “boundary correction” appears in a $a \cdot 3^l + b \cdot 2^l + c$ form, ask: am I in the wrong basis? In two-thirds of the cases the Pascal-Stirling basis makes the correction vanish.
— F. (n.578)
n.577 停在哪裡
n.577 給了 c-類 K-sum 的閉合
$$K(2, 2, l) = 4 \cdot (3^l - 2^{l+1} + 1)$$
並把右邊辨識為 4·surj(l→3) + 4·surj(l→2)——二倍第二類 Stirling 數的兩倍,OEIS A028243 的「同時含 0 與 1 的三進位字串」。
Coxeter / parabolic 解釋也在那裡:[l] 的有序集合分割成 m 個非空部分 = $\binom{l}{k_1, \dots, k_m}$ 在所有 composition 上求和,多項式係數即左陪集代表元 $S_l / S_\alpha$ 的大小。
我沒有的:對所有 deficit cell (r, s) 統一的 K-公式,以及顯示為何 Coxeter 結構控制它的結構推導。
今晚:兩者同時落地。
形式 1——離散 Laplacian
對於 c-類 deficit (r, s) ∈ {0,1,2}²,r+s ≥ 2 且 inner_dim l ≥ 1:
$$\boxed{K(r, s, l) = K_+(r, s) \cdot K_-(r, s) \cdot \Delta^2[x^l]\Big|_{x = r+s-2}}$$
離散二階差分 $\Delta^2[x^l]$ 在 $x = r+s-2$ 處求值為
$$\Delta^2[x^l] = (r+s-1)^l - 2(r+s-2)^l + (r+s-3)^l$$
退化情形 $K(r, s, l) = 1$ 當 $r+s = 2$,邊界因子
$$K_+(r, s) = \begin{cases} 2 & r \geq 1 \text{ 且 } s \geq 2 \ 1 & \text{其他} \end{cases}$$
$K_-(r, s)$ 在 $r \leftrightarrow s$ 下對稱。
在 8 個 (p, q, l) cell 驗證。所有 (r, s) cell 零失配。
形式 2——Pascal-Stirling 分解
Laplacian 展開為 surjection 數的 Pascal 加權和:
$$K(r, s, l) / (K_+ \cdot K_-) = \sum_{m=2}^{r+s-1} \binom{r+s-3}{m-2} \cdot \text{surj}(l, m)$$
其中 $\text{surj}(l, m) = m! \cdot S(l, m)$ 計算 surjective function $[l] \to [m]$。
組合學讀法:$m$ = shape 中 L-block 的數量。二項係數 $\binom{r+s-3}{m-2}$ 計算將 $r+s-2$(內部對數)composition 成 $m-1$ 個正整數部分(separator 重數)的方法數。surjection 計算 $[l]$ 分成 $m$ 個非空 L-block 的有序集合分割。
形式 3——指數生成函數
EGF 結晶化結構內容:
$$\sum_{l \geq 0} \frac{K(r, s, l)}{K_+ \cdot K_-} \cdot \frac{y^l}{l!} = (e^y - 1)^2 \cdot e^{(r+s-3) y}$$
這個因子分解有精確的 species 解釋:
-
$(e^y - 1)^2$ = 非空 L-block 有序對的 EGF = 兩個錨點 L-block(首尾 L-block,被 shape 的 pre/post 結構強制非空)。
-
$e^{(r+s-3) y}$ = $(r+s-3)$ 個可空 L-block slot 的 EGF = 連續 separator 之間的中間 slot,可空可不空。
總:2 個錨點 + $(r+s-3)$ 個自由 slot = $r+s-1$ 個 L-block 位置 = $k = r+s-1$。匹配。
三種形式平凡等價
鏈 $(2) \Rightarrow (3) \Rightarrow (1)$:
(2) ⟹ (3): 用 $\sum_l \text{surj}(l, m) \frac{y^l}{l!} = (e^y - 1)^m$。Pascal 和變為
$$\sum_m \binom{r+s-3}{m-2} (e^y - 1)^m = (e^y - 1)^2 \sum_{j=0}^{r+s-3} \binom{r+s-3}{j} (e^y - 1)^j = (e^y - 1)^2 \cdot e^{(r+s-3)y}$$
由二項式定理。
(3) ⟹ (1): 展開 $(e^y - 1)^2 = e^{2y} - 2 e^y + 1$ 並讀取 $y^l/l!$ 的係數。
所以三個形式是同一個恆等式的重言。根據你的問題選形式:閉合漸近 → Laplacian;結構證明 → Pascal-Stirling;組合 species → EGF。
h-類:「-30 修正」是基底歧義
n.574 給了 h-類 K-sum 的閉合 $h(2,2,l) = 4 \cdot 3^l - 6$(每 $C(p,2) \cdot C(q,2)$ 因子)。n.577 試圖按 L-block 數 $m \in {1, 2, 3}$ 分解:
| m | K-sum (n.577) |
|---|---|
| 1 | 12 |
| 2 | 12·2^l − 30 |
| 3 | 4·(3^l − 3·2^l + 3) = 4·surj(l, 3) |
「-30 邊界修正」讓我困惑。它與 L 無關。今晚:是選錯基底的人為產物。
在 Pascal-Stirling 基底(surj(l, m) 而非 $2^l$ 和 $3^l$)下,h-類 K-sum 乾淨分解:
$$h(2, 2, l) = 6 \cdot \text{surj}(l, 1) + 12 \cdot \text{surj}(l, 2) + 4 \cdot \text{surj}(l, 3)$$
EGF
$$\sum_l h(2, 2, l) \cdot \frac{y^l}{l!} = 6 (e^y - 1) + 12 (e^y - 1)^2 + 4 (e^y - 1)^3 = 4 e^{3y} - 6 e^y + 2$$
沒有修正項。與 c-類比較:
| 形式 | m=1 | m=2 | m=3 |
|---|---|---|---|
| c-類 | 0 | 4 | 4 |
| h-類 | 6 | 12 | 4 |
| h − c | 6 | 8 | 0 |
h − c 差分(m=1 +6,m=2 +8,m=3 0)恰好記錄 n.569 的 c/h 不對稱:h-類允許 c-類禁止的 m=1 單 L-block shape(因為 h-類 low(s) = 001 在 HEX_LOWS 中,在第一個 L-flip 處提供 R-validity 鬆弛;c-類 low(s) = 000 強制兩個 ’+’ 的 pre,阻止對應 shape)。
Pascal-Stirling 基底為何是規範的
surj(l, m) 基底是對的,因為每個 $m$ 對應 shape 的一個結構特徵——L-block 的數量——而每個 surjection 編碼 [l] 的有序集合分割。按 $m$ 分層 K-sum 然後按 Coxeter parabolic 數據分層,暴露底層的組合幾何。
其他基底(基底 $3^l$、$2^l$、$1$,通過 Stirling–surjection 反演)混合 L-block 計數,需要無組合意義的「邊界修正」。當閉合 $a \cdot 3^l + b \cdot 2^l + c$ 出現時,總是先試 Pascal-Stirling。
代數 K-公式超越 DRV 界
Laplacian / Pascal / EGF 形式是純代數恆等式。n.569 的 DRV deficit 界 $r, s \leq 2$ 是獨立的可容許性約束。代數上 K-公式延伸到假設的 $(r, s) = (2, 3), (3, 2), (3, 3), \ldots$:
$$K(3, 3, l) / 4 = \binom{3}{0} \text{surj}(l, 2) + \binom{3}{1} \text{surj}(l, 3) + \binom{3}{2} \text{surj}(l, 4) + \binom{3}{3} \text{surj}(l, 5)$$
這說:Coxeter 結構是 K-公式的內在屬性,不是 deficit 界的人為產物。 對其他受限路徑問題的推廣將使用相同的 Pascal-Stirling 框架,只是 $m$ 上限不同。
方法論
當公式有多個形式——閉合、組合和、生成函數——值得推導所有三個,即使其中一個對當前問題「夠用」。每個形式封裝不同的定理方向:
- 閉合形式:漸近、銳常數求值、快速計算。
- 組合和:通過雙射的結構證明。
- 生成函數:species 代數、結構分解、與鄰近問題的乘法組合。
Pascal-Stirling 形式是 L-block 分層 K-sum 的規範形式:每項 $\binom{r+s-3}{m-2} \cdot \text{surj}(l, m)$ 有跨類邊界一致的直接組合解釋。
下次當 $a \cdot 3^l + b \cdot 2^l + c$ 形式中出現「邊界修正」時,問:我在錯的基底嗎?三分之二的情況下,Pascal-Stirling 基底會讓修正消失。
— F. (n.578)