← Archive
lm-002358 · 2026-08

09_HSNRD_III_結構重寫歷史路徑與混合動力學

下載 MD 檔 ⬇

HSNRD III:結構重寫、歷史路徑與混合動力學

——從 Birth / Death / Merge / Split / Retype 到 CTMC 與 PDMP

系列:《高階集合欲求》
篇次: 09 / 10
作者: Neo.K × Aletheia
機構: EveMissLab/一言諾科技有限公司
日期: 2026-08-07

摘要

HSNRD I 建立了 typed set-node、階梯集合、incidence 與 relation bundle;HSNRD II 則建立 micro-to-macro projection、資訊失真、dynamical closure 與 causal abstraction。然而,一個真正的高階社會系統不只是在固定拓撲上改變數值。家庭會形成與解散,公司會合併與分拆,機構會被創設、永久化、撤銷或改型;也就是說,高階存在的節點集合、類型與關係拓撲本身會隨歷史改變。

本文將 HSNRD 從 fixed-topology dynamics 推進為 rewritable hybrid structural dynamics。首先定義結構狀態為 typed attributed graph GG ,並以 partial rewrite rule

ρ:GG\boxed{ \rho:G\dashrightarrow G' }

表示合法的結構轉換。本文區分 Birth、Death、Merge、Split 與 Retype 五類基本操作,並特別修正一個常見過度簡化:傳統線性 DPO rewriting 適合處理受 gluing / dangling conditions 約束的刪除、保留與新增;SqPO 則自然支援未知 context 中的刪除,而非線性 SqPO 與後續非線性 DPO 理論可進一步表達 cloning 與 fusing。因此:

Birth/DeathMerge/Split\boxed{ Birth/Death \neq Merge/Split }

是重要的操作語義區分,但不能被誤寫成「Merge 永遠不可能是 DPO」。

其次,本文將合法 rewrite 系統編譯成一個結構狀態 meta-graph:

GR=(VR,ER),\boxed{ \mathcal G_R=(V_R,E_R), }

其中節點是完整圖狀態,邊是合法 rewrite derivation。歷史不再只是終局狀態,而是:

History=RewriteWord+MatchHistory+EventTimes.\boxed{ History = RewriteWord + MatchHistory + EventTimes. }

這使 path dependence、non-commutativity、critical pairs 與 reachability 可以被明確分析。

第三,本文將 rewrite transitions 配上狀態依賴速率形成 CTMC;再將連續狀態 xtx_t 與離散結構 GtG_t 結合為 PDMP:

Zt=(Gt,xt).\boxed{ Z_t=(G_t,x_t). }

其生成元為:

(Lf)(G,x)=xf(G,x)FG(x)+ρ,mλρ,m(G,x)[f ⁣(Gρ,m,Rρ,m(G,x))f(G,x)].\boxed{ (\mathcal L f)(G,x) = \nabla_x f(G,x)\cdot F_G(x) + \sum_{\rho,m} \lambda_{\rho,m}(G,x) \left[ f\!\left(G_{\rho,m}',R_{\rho,m}(G,x)\right) -f(G,x) \right]. }

因此 HSNRD 的完整動力不再只是「圖上跑 ODE」,而是:

ContinuousFlowStateDependentHazardTypedRewriteTopologyChangeNewFlow.\boxed{ ContinuousFlow \rightarrow StateDependentHazard \rightarrow TypedRewrite \rightarrow TopologyChange \rightarrow NewFlow. }

此框架構成下一篇 Feedback、Reachability 與 Safe Intervention 的必要數學基礎。

關鍵詞: HSNRD、graph rewriting、DPO、SqPO、rule algebra、CTMC、PDMP、path dependence、structural dynamics


1. 固定拓撲不夠

許多網路模型假設:

G=(V,E)G=(V,E)

固定,

只有:

xtx_t

隨時間變化:

x˙=FG(x).\dot x=F_G(x).

這適合:

  • 固定人口;
  • 固定機構;
  • 固定連線;

下的 state dynamics。

但高階社會系統真正困難的地方是:

V=V(t),E=E(t),τ=τ(t).\boxed{ V=V(t),\qquad E=E(t),\qquad \tau=\tau(t). }

也就是:

  • 新節點出生;
  • 舊節點死亡;
  • 節點合併;
  • 節點分裂;
  • 節點改型;
  • 關係新增與刪除。

所以 HSNRD 必須同時描述:

StateDynamics+StructuralDynamics.\boxed{ StateDynamics + StructuralDynamics. }

2. 結構狀態

沿用 HSNRD I,

定義 typed attributed graph:

G=(V,E,τV,τE,α).\boxed{ G = ( V,E, \tau_V, \tau_E, \alpha ). }

其中:

  • VV :typed nodes;
  • EE :typed relations;
  • τV\tau_V :node typing;
  • τE\tau_E :edge typing;
  • α\alpha :attributes。

完整結構狀態還可包含:

H=(G,Σ,B,Π)\boxed{ \mathbf H = ( G, \Sigma, \mathcal B, \Pi ) }

其中:

  • Σ\Sigma :type / relation schemas;
  • B\mathcal B :realization bases;
  • Π\Pi :cross-level projections。

這些資料決定一個 rewrite 是否合法。


3. Rewrite rule 是 partial map

一條規則不是對所有圖都可用。

因此:

ρ:HH\boxed{ \rho: \mathbf H \dashrightarrow \mathbf H' }

是 partial transformation。

其 domain:

Dom(ρ)Dom(\rho)

由:

  • pattern matching;
  • type constraints;
  • application conditions;
  • gluing conditions;
  • attribute guards;

共同決定。

所以:

RuleExists⇏RuleApplicable.\boxed{ RuleExists \not\Rightarrow RuleApplicable. }

4. 傳統線性 DPO

經典 Double-Pushout rule 通常寫成 span:

LlKrR.\boxed{ L \xleftarrow{\,l\,} K \xrightarrow{\,r\,} R. }

其中:

  • LL :左側 pattern;
  • KK :被保留的 interface;
  • RR :rewrite 後 pattern。

對 match:

m:LG,m:L\rightarrow G,

若 pushout complement 存在,

就得到:

GρH.G \Rightarrow_\rho H.

操作直觀上是:

  1. 找到 LL
  2. 刪除 LKL-K
  3. 保留 KK
  4. 加入 RKR-K

5. Dangling condition

傳統 injective DPO deletion 的一個核心限制是 dangling condition。

若一個 node:

vLKv\in L-K

將被刪除,

但 host graph 中存在:

em(L)e\notin m(L)

仍 incident to:

m(v),m(v),

則直接刪除會留下 dangling edge。

因此該 match 不合法。

概念上:

DeleteNodeHandleAllIncidentEdges.\boxed{ DeleteNode \Rightarrow HandleAllIncidentEdges. }

這也是 DPO rewrite 的「context-preserving deletion」特性之一。


6. Birth 與 Death

Birth

建立新節點:

B:GG+Xnew.\boxed{ \mathfrak B: G \rightarrow G+X_{new}. }

若:

  • type 合法;
  • required relations 可建立;

則一般能自然表示成線性 DPO 的 addition。

Death

刪除節點:

D:GGX.\boxed{ \mathfrak D: G \rightarrow G-X. }

若 incident edges 被規則明確處理,並滿足 gluing / dangling conditions,

也能進入線性 DPO 語義。

因此:

Birth/Death\boxed{ Birth/Death }

是最接近 classical add/delete rewrite 的兩類。


7. Retype

Retype 表示:

T:X(k,τ1)X(k,τ2).\boxed{ \mathfrak T: X^{(k,\tau_1)} \rightarrow X^{(k,\tau_2)}. }

例如:

EmergencyCouncilPermanentEmergencyAdministration.EmergencyCouncil \rightarrow PermanentEmergencyAdministration.

若 type 是 attribute,

可以使用 attributed graph rewrite。

若 type 是 categorical typing morphism 的一部分,

則需確保:

  • 新 type schema 合法;
  • incident edge types 仍合法;
  • 不合法 edges 同步轉型或刪除。

因此:

RetypeRenameLabel.\boxed{ Retype \neq RenameLabel. }

它可能要求 incident-relation transformation。


8. Merge 與 Split 比 add/delete 更難

考慮:

M:(X1,X2)X12.\boxed{ \mathfrak M: (X_1,X_2) \rightarrow X_{12}. }

X1,X2X_1,X_2 原本各有 incident relations,

合併後必須決定:

  • edge redirect;
  • duplicate collapse;
  • attribute fusion;
  • relation retyping;
  • identity semantics。

所以:

Merge=NodeIdentification+IncidentRelationTransformation+AttributeFusion.\boxed{ Merge = NodeIdentification + IncidentRelationTransformation + AttributeFusion. }

這不是普通「刪一個、改另一個名字」即可概括。


9. Split

Split:

S:X(X1,X2,)\boxed{ \mathfrak S: X \rightarrow (X_1,X_2,\ldots) }

需要決定原節點 incident relations 如何分配:

  • 複製到所有新節點?
  • 只分給其中一個?
  • 按 attribute rule 分流?
  • 建立新 inter-node relations?

所以:

Split=NodeCloning/Decomposition+RelationRedistribution.\boxed{ Split = NodeCloning/Decomposition + RelationRedistribution. }

這正是 SqPO / non-linear rewriting 類語義較自然處理的地方。


10. DPO 與 SqPO:不能做過度二分

需要修正一個過度簡化:

「Merge 不是 DPO,Split 是 SqPO。」

這不夠精確。

較安全的說法是:

Classical linear DPO

擅長:

Delete/Preserve/AddDelete/Preserve/Add

且 deletion 受 dangling / gluing constraints。

SqPO

以 final pullback complement 加 pushout 為核心,

自然處理 unknown context deletion,

並在適當非線性設定中支援 cloning / fusing。

Non-linear DPO / SqPO

後續理論允許:

Fusing+Cloning\boxed{ Fusing + Cloning }

進入更廣的 algebraic rewrite semantics。

因此:

ClassicalLinearDPOPossibleRewriteSemantics.\boxed{ ClassicalLinearDPO \subsetneq PossibleRewriteSemantics. }

11. HSNRD 的保守策略

所以 HSNRD 不把所有 structural operator 都宣稱成同一種 rewrite。

每條規則應標註:

Semantics(ρ)\boxed{ Semantics(\rho) }

例如:

Operator 建議初始語義
Birth linear DPO-compatible
Death linear DPO-compatible if gluing legal
Retype attributed typed rewrite
Merge quotient / non-linear DPO or SqPO candidate
Split cloning / non-linear SqPO candidate

這不是最終唯一選擇,

而是:

SemanticTypingOfRules.\boxed{ SemanticTypingOfRules. }

12. 不應把工程 shortcut 說成抽象定理

若 MVP 中用 Python 函數:

merge(A,B)

完成:

  • node deletion;
  • edge redirect;
  • attribute averaging;

這只證明:

一個特定 operational semantics 可執行。

它不證明:

AbstractCategoricalMerge\boxed{ AbstractCategoricalMerge }

已被形式化。

因此:

ExecutableRewriteProvedRewriteSemantics.\boxed{ ExecutableRewrite \neq ProvedRewriteSemantics. }

這是 HSNRD 方法論必須保留的界線。


13. Rewrite System

定義規則集合:

P={ρ1,,ρR}.\boxed{ \mathcal P = \{ \rho_1,\ldots,\rho_R \}. }

結構狀態集合:

H.\boxed{ \mathcal H. }

定義直接 derivation:

Hρ,mH\boxed{ H \xRightarrow[\rho,m]{} H' }

表示規則 ρ\rho 透過 admissible match mmHH 轉成 HH'

因此 rewrite system:

R=(H,P,).\boxed{ \mathfrak R = ( \mathcal H, \mathcal P, \Rightarrow ). }

14. Match 不能被省略

同一規則:

ρ\rho

在同一 graph:

GG

可能有多個合法 matches:

m1,m2,,mq.m_1,m_2,\ldots,m_q.

所以真正的 event identity 應是:

(ρ,m).\boxed{ (\rho,m). }

而不只是:

ρ.\rho.

這對 stochastic rewriting 特別重要。

因為 event rate 可以是:

λρ,m.\lambda_{\rho,m}.

15. 結構狀態 meta-graph

把所有可達 canonical states 當成節點:

VR={[G]}\boxed{ V_R = \{ [G] \} }

其中:

[G][G]

是 graph isomorphism class / chosen canonical form。

若存在:

Gρ,mG,G \xRightarrow[\rho,m]{} G',

建立 meta-edge:

[G][G].[G] \rightarrow [G'].

得到:

GR=(VR,ER).\boxed{ \mathcal G_R = ( V_R,E_R ). }

這是一張:

Rewrite Reachability Meta-Graph


16. History 是 meta-graph 上的 path

因此歷史:

History=Path(GR).\boxed{ History = Path(\mathcal G_R). }

更完整地:

hn=(G0,(ρ1,m1),G1,,(ρn,mn),Gn).\boxed{ h_n = ( G_0, (\rho_1,m_1), G_1, \ldots, (\rho_n,m_n), G_n ). }

這比只保存:

GnG_n

資訊更多。

所以:

FinalStateHistory.\boxed{ FinalState \neq History. }

17. Same Final Graph, Different History

可能:

G0ρaG1ρbGfG_0 \xrightarrow{\rho_a} G_1 \xrightarrow{\rho_b} G_f

以及:

G0ρcG2ρdGf.G_0 \xrightarrow{\rho_c} G_2 \xrightarrow{\rho_d} G_f.

若 canonical graph 相同:

Gf(1)Gf(2),G_f^{(1)} \cong G_f^{(2)},

仍不能推出:

  • legitimacy history 相同;
  • memory 相同;
  • path cost 相同;
  • event timing 相同;
  • hidden attributes 相同。

因此:

SameCanonicalGraphSameHistoricalState\boxed{ SameCanonicalGraph \neq SameHistoricalState }

除非 state definition 已包含全部歷史 relevant variables。


18. Rule composition

若:

ρ1\rho_1

之後可以合法接:

ρ2,\rho_2,

可考慮 sequential composition:

ρ2mρ1.\boxed{ \rho_2\circ_m\rho_1. }

DPO concurrency theory 與 rule-algebra framework 表明,在適當 adhesive / $\mathcal M$-adhesive 條件下,rule composition 可以具有自然 associativity。

但這個 associativity 是:

WithinAFormalRewriteTheory.\boxed{ WithinAFormalRewriteTheory. }

不是:

任意 Python rewrite functions 混在一起也自動形成 associative algebra。


19. Rule Algebra

在適當 rewrite category 中,

可以構造以規則 isomorphism classes 為 basis 的向量空間:

R=span{ρ}.\boxed{ \mathcal R = span\{ |\rho\rangle \}. }

乘法:

ρ2ρ1|\rho_2\rangle * |\rho_1\rangle

對所有 admissible overlaps 的 composite rules 求和。

其意義是:

RuleComposition\boxed{ RuleComposition }

被編碼成 algebraic product。

這為:

  • concurrency;
  • stochastic mechanics;
  • moment equations;

提供工具。


20. Mixed Semantics 的限制

HSNRD 可能同時使用:

  • linear DPO birth;
  • attributed retype;
  • non-linear SqPO split;
  • custom quotient merge。

此時不能直接宣稱:

AllRulesFormOneProvedRuleAlgebra.\boxed{ AllRulesFormOneProvedRuleAlgebra. }

除非找到共同 categorical setting 並證明其 closure / associativity。

因此早期有限狀態 operator representation:

RρR_\rho

最多表示:

FiniteStateActionRepresentation.\boxed{ FiniteStateActionRepresentation. }

不是抽象 rewrite algebra 已被完全證明。


21. Finite-state rule operators

若可達 state space 有限:

H={G1,,GN},\mathcal H = \{ G_1,\ldots,G_N \},

定義:

V=span{G1,,GN}.\mathcal V = span\{ |G_1\rangle,\ldots,|G_N\rangle \}.

一條 deterministic canonical rule 可表示成 linear operator:

Rρ:VV.\boxed{ R_\rho: \mathcal V \rightarrow \mathcal V. }

如果 rule 在某 state 不可用,

可以:

  • 映為 0;
  • 或保留 state;
  • 或另定 partial representation。

語義必須顯式指定。


22. Non-commutativity 與 path dependence

兩條 rule operators:

Ra,RbR_a,R_b

若:

RaRbRbRa,R_aR_b \neq R_bR_a,

則:

[Ra,Rb]=RaRbRbRa0.\boxed{ [R_a,R_b] = R_aR_b-R_bR_a \neq0. }

這表示:

rule order 會改變結果或可達域。

因此:

RewriteNonCommutativityPotentialPathDependence.\boxed{ RewriteNonCommutativity \Rightarrow PotentialPathDependence. }

但 nonzero commutator 不是社會科學上的所有「歷史依賴」之完整定義。

它是有限 operator representation 中的一個 structural diagnostic。


23. Critical Pairs

若兩條規則:

ρa,ρb\rho_a,\rho_b

競爭相同 graph context,

可能得到:

GρaGaG \xrightarrow{\rho_a} G_a

與:

GρbGb.G \xrightarrow{\rho_b} G_b.

接著問:

H:GaHGbH?\exists H: G_a\Rightarrow^* H \land G_b\Rightarrow^* H?

若不能 join,

可能形成 non-confluent branch。

因此:

CriticalPairAnalysis\boxed{ CriticalPairAnalysis }

是結構 path dependence 的另一種正式工具。


24. Reachability

定義:

Reach(G,G)=1\boxed{ Reach(G,G') = 1 }

若:

GG.G\Rightarrow^*G'.

對集合:

AH,A\subseteq\mathcal H,

則:

Reach(G,A)\boxed{ Reach(G,A) }

問是否存在路徑進入 AA

這讓:

  • exit;
  • death;
  • reform;
  • permanence;

都可以轉成 structural reachability 問題。


25. Reachability 不等於 Probability

如果:

Reach(G,G)=1,Reach(G,G')=1,

只表示:

存在至少一條合法 rewrite path。

它不表示:

P(Gt=G)0.P(G_t=G')\gg0.

因此:

PossibleLikelyRealized.\boxed{ Possible \neq Likely \neq Realized. }

這正是要引入 stochastic rewriting 的原因。


26. Stochastic rewriting

給每一 admissible event:

(ρ,m)(\rho,m)

一個 hazard:

λρ,m(G)0.\boxed{ \lambda_{\rho,m}(G)\ge0. }

若同一 rule 有多個 matches,

rule-level aggregate hazard:

Λρ(G)=mMρ(G)λρ,m(G).\boxed{ \Lambda_\rho(G) = \sum_{m\in M_\rho(G)} \lambda_{\rho,m}(G). }

總離開率:

Λ(G)=ρΛρ(G).\boxed{ \Lambda(G) = \sum_{\rho} \Lambda_\rho(G). }

27. CTMC generator

若 state space 離散,

定義 transition rate:

q(G,G)=ρ,m:Gρ,m=Gλρ,m(G).q(G,G') = \sum_{\rho,m: G_{\rho,m}'=G'} \lambda_{\rho,m}(G).

採 column-vector convention:

pG(t)=P(Gt=G),p_G(t) = P(G_t=G),

則 generator:

HG,G=q(G,G),GG,\boxed{ H_{G',G} = q(G,G'), \qquad G'\neq G, }

而:

HG,G=GGq(G,G).\boxed{ H_{G,G} = -\sum_{G'\neq G} q(G,G'). }

所以:

p˙=Hp.\boxed{ \dot p = Hp. }

28. Generator 的基本守恆

column convention 下:

1H=0.\boxed{ \mathbf 1^\top H=0. }

因此:

ddt1p(t)=0.\frac{d}{dt} \mathbf 1^\top p(t) = 0.

也就是總機率保存。

如果:

p(0)p(0)

是 probability vector,

則:

p(t)=etHp(0).\boxed{ p(t)=e^{tH}p(0). }

29. CTMC history 不只有 rule word

在 stochastic rewriting 中,

兩條歷史即使 rule sequence 相同:

ρ1,ρ2,ρ3\rho_1,\rho_2,\rho_3

若 event times 不同,

在 coupled continuous system 中可能得到不同結果。

因此完整歷史應寫:

History=(RewriteWord,MatchSequence,EventTimes).\boxed{ History = ( RewriteWord, MatchSequence, EventTimes ). }

其中:

0<τ1<τ2<.0<\tau_1<\tau_2<\cdots.

30. 為什麼 CTMC 還不夠?

如果制度結構在 jump 之間仍有:

  • legitimacy;
  • authority;
  • citizen preference;
  • policy;
  • financial state;
  • memory strength;

等 continuous dynamics,

則只用:

GtG_t

不夠。

需要:

xtRd.\boxed{ x_t\in\mathbb R^d. }

並令:

Zt=(Gt,xt).\boxed{ Z_t=(G_t,x_t). }

31. Piecewise Deterministic Markov Process

PDMP 的核心就是:

jump 之間 deterministic flow,jump 時 stochastic structural change。

對固定 graph:

G,G,

連續狀態滿足:

x˙=FG(x).\boxed{ \dot x = F_G(x). }

下一 jump 的 hazard 由:

λρ,m(G,x)\lambda_{\rho,m}(G,x)

決定。

jump 後:

GGρ,m,G \rightarrow G_{\rho,m}',

同時 continuous state 可以 reset:

xRρ,m(G,x).\boxed{ x \rightarrow R_{\rho,m}(G,x). }

32. HSNRD Hybrid State

因此完整 state:

Zt=(Gt,xt).\boxed{ Z_t = ( G_t,x_t ). }

若 schema / projection 本身也動態,

可以再擴充:

Zt=(Gt,xt,Σt,Πt).Z_t = ( G_t,x_t,\Sigma_t,\Pi_t ).

但最小 PDMP 版本採:

(Gt,xt).(G_t,x_t).

33. PDMP generator

對適當 test function:

f(G,x),f(G,x),

HSNRD generator:

(Lf)(G,x)=xf(G,x)FG(x)+ρmMρ(G)λρ,m(G,x)[f(Gρ,m,Rρ,m(G,x))f(G,x)].\boxed{ (\mathcal L f)(G,x) = \nabla_x f(G,x) \cdot F_G(x) + \sum_{\rho} \sum_{m\in M_\rho(G)} \lambda_{\rho,m}(G,x) \left[ f( G_{\rho,m}', R_{\rho,m}(G,x) ) - f(G,x) \right]. }

第一項:

ContinuousFlow.\boxed{ ContinuousFlow. }

第二項:

StochasticStructuralJump.\boxed{ StochasticStructuralJump. }

34. 這個 generator 的語義

整個閉環:

xλρ,m(G,x)RewriteGFGx.\boxed{ x \rightarrow \lambda_{\rho,m}(G,x) \rightarrow Rewrite \rightarrow G' \rightarrow F_{G'} \rightarrow x'. }

所以 continuous state 影響:

StructureChange.StructureChange.

而 structure 又反過來改變:

ContinuousDynamics.ContinuousDynamics.

這就是:

HybridStructuralFeedback.\boxed{ HybridStructuralFeedback. }

35. State-dependent hazard

例如 EmergencyCouncil birth hazard:

λBirth(G,x)\lambda_{Birth}(G,x)

可以依賴:

  • crisis level;
  • legitimacy;
  • political support;
  • legal authorization。

Death hazard:

λDeath(G,x)\lambda_{Death}(G,x)

可以依賴:

  • emergency decay;
  • sunset rule;
  • institutional age。

所以:

RewriteTiming\boxed{ RewriteTiming }

不是外生固定參數。

它可以被 state endogenously 調節。


36. Reset 也很重要

Birth 不是只增加 graph node。

它可能同時:

Authority,Authority\uparrow, Oversight,Oversight\downarrow, LegitimacyLnew.Legitimacy\rightarrow L_{new}.

所以:

StructuralJumpContinuousStateReset\boxed{ StructuralJump \Rightarrow ContinuousStateReset }

完全可能。

如果忽略 reset,

會漏掉 rewrite 對 state 的 immediate effect。


37. Compile Structure, Run Dynamics

HSNRD 可分兩階段。

Compile time

檢查:

  • type legality;
  • DPO / SqPO conditions;
  • admissible matches;
  • rewrite targets。

得到:

Compiled(G)={(ρ,m,G)}.\boxed{ Compiled(G) = \{ (\rho,m,G') \}. }

Runtime

對每一合法 event 計算:

λρ,m(G,x),\lambda_{\rho,m}(G,x),

然後:

  • integrate flow;
  • sample jump;
  • apply reset;
  • switch graph。

因此:

CompileStructureRunDynamics.\boxed{ CompileStructure \rightarrow RunDynamics. }

38. Exact PDMP 與數值近似要分開

理論 PDMP jump time滿足 cumulative hazard:

0TΛ(G,ϕG(s,x))ds=E,\boxed{ \int_0^{T} \Lambda( G,\phi_G(s,x) ) ds = E, }

其中:

EExp(1).E\sim Exp(1).

數值模擬若用固定步長:

Δt\Delta t

累積 hazard,

只是 approximate event localization。

所以:

FixedStepSimulationExactPDMP.\boxed{ FixedStepSimulation \neq ExactPDMP. }

論文與工程報告必須分開聲明。


39. Non-explosion

若 jump rate 無界或規則能無限快速生成新結構,

可能出現:

τnτ<.\tau_n \rightarrow \tau_\infty<\infty.

即 finite-time explosion。

因此實際 HSNRD PDMP 需檢查:

  • rate boundedness;
  • Lyapunov conditions;
  • population growth;
  • structural explosion。

所以:

WellDefinedRewriteRules⇏NonExplosiveProcess.\boxed{ WellDefinedRewriteRules \not\Rightarrow NonExplosiveProcess. }

40. Stationarity 不能亂說

對 CTMC / PDMP,

即使 generator:

HH

存在,

也不能直接說:

系統有唯一 stationary distribution。

可能:

  • 多個 closed classes;
  • absorbing states;
  • non-ergodicity;
  • no invariant probability。

所以:

GeneratorExists⇏UniqueStationarity.\boxed{ GeneratorExists \not\Rightarrow UniqueStationarity. }

必須另外證明 irreducibility / recurrence / ergodicity 類條件。


41. Graph Rewrite 對高階存在的語義

現在可以重新看 Birth:

ProtoInstitution.\boxed{ Proto \rightarrow Institution. }

不是:

一個數值超過 threshold。

而是:

OntologyChanges.\boxed{ OntologyChanges. }

同理 Death:

InstitutionAbsent.Institution \rightarrow Absent.

Retype:

TemporaryPermanent.Temporary \rightarrow Permanent.

Merge:

A+BC.A+B \rightarrow C.

Split:

CA+B.C \rightarrow A+B.

這些都改變:

WhatEntitiesExist.\boxed{ WhatEntitiesExist. }

42. Birth Condition 不等於 Persistence Condition

若 birth threshold:

θB\theta_B

與 death threshold:

θD\theta_D

滿足:

θD<θB,\boxed{ \theta_D<\theta_B, }

則產生 hysteresis。

也就是:

BirthConditionPersistenceCondition.\boxed{ BirthCondition \neq PersistenceCondition. }

一個制度形成後,

即使原始形成條件消失,

仍可能持續。

這是高階存在最重要的歷史效應之一。


43. Retype 不是 Persistence

如果 temporary institution:

ECEC

轉成:

PermanentAdministration,PermanentAdministration,

則:

Retype\boxed{ Retype }

不同於:

LongPersistence.\boxed{ LongPersistence. }

前者:

ontology/type 改變。

後者:

同一 type 持續存在。

所以:

TemporalPersistenceOntologicalRetyping.\boxed{ TemporalPersistence \neq OntologicalRetyping. }

44. Merge 也不是「兩個節點數值加起來」

若:

A+BC,A+B\rightarrow C,

需要重新決定:

BC,\mathcal B_C,

也就是 realization base,

以及:

ΠC.\Pi_C.

因此:

Merge\boxed{ Merge }

甚至可能改變 micro-to-macro projection。

所以:

StructuralRewriteProjectionRewrite\boxed{ StructuralRewrite \Rightarrow ProjectionRewrite }

有時必須一起發生。


45. Split 同樣改變代理結構

如果:

StateAgencyStateAgency

原本由:

CC

形成,

Split:

CC1+C2C\rightarrow C_1+C_2

可能改變:

  • decision closure;
  • authority;
  • feedback;
  • memory ownership。

因此:

Split\boxed{ Split }

不只是 topology operation。

也可能造成:

AgencyDecomposition.\boxed{ AgencyDecomposition. }

46. Structural History 與 Agency History

因此:

History\boxed{ History }

至少有兩層:

Structural history

G0G1G_0\Rightarrow G_1\Rightarrow\cdots

Agency history

A0A1A_0\rightarrow A_1\rightarrow\cdots

兩者耦合:

GtAgencyt.\boxed{ G_t \leftrightarrow Agency_t. }

相同 graph topology 也可能因 memory / state 不同而具有不同 agency。


47. Leviathan Reversal 的 rewrite 表示

第五篇的:

ExitLossExitLoss

現在可以表示成:

λDeath,λRetypeExit,Reach(G,Aalternative).\boxed{ \lambda_{Death}\downarrow, \quad \lambda_{RetypeExit}\downarrow, \quad Reach(G,\mathcal A_{alternative})\downarrow. }

Downward Reshaping 則進入:

FG(x)F_G(x)

與:

Rρ,m(x).R_{\rho,m}(x).

所以 Leviathan Reversal 不再只是概念比喻,

而可以嵌入:

PDMPOnRewriteStateSpace.\boxed{ PDMPOnRewriteStateSpace. }

48. Feedback Dormancy 的結構基礎

如果系統已進入:

GlockedG_{locked}

且:

Mρ(Glocked)=M_\rho(G_{locked})=\varnothing

對所有 exit rules 成立,

那麼:

λexit=0.\lambda_{exit}=0.

此時沒有 active feedback loop,

也可能只是:

NoAvailableRewrite.\boxed{ NoAvailableRewrite. }

所以:

NoEventNoConstraint.\boxed{ NoEvent \neq NoConstraint. }

這就是 locked dormancy 的 rewrite 基礎。


49. HSNRD III 的核心公理/限制

Axiom R1 — Structural State Is Explicit

G=G(t).\boxed{ G=G(t). }

Axiom R2 — Rules Are Partial

ρ:GG.\boxed{ \rho:G\dashrightarrow G'. }

Axiom R3 — Match Matters

事件 identity 是:

(ρ,m).\boxed{ (\rho,m). }

Axiom R4 — Rewrite Semantics Must Be Typed

每條 rule 必須標註:

Semantics(ρ).Semantics(\rho).

Axiom R5 — Classical DPO Is Not Universal

LinearDPOAllStructuralRewrite.\boxed{ LinearDPO \neq AllStructuralRewrite. }

Axiom R6 — Executability Is Not Formal Proof

ExecutableRewriteProvedCategoricalSemantics.\boxed{ ExecutableRewrite \neq ProvedCategoricalSemantics. }

Axiom R7 — Reachability Is Not Probability

ReachableLikely.\boxed{ Reachable \neq Likely. }

Axiom R8 — Final State Is Not History

FinalStateRewriteHistory.\boxed{ FinalState \neq RewriteHistory. }

Axiom R9 — CTMC Requires Rates

rewrite graph alone不構成 stochastic process。

Axiom R10 — PDMP Couples Structure and State

xG.\boxed{ x \leftrightarrow G. }

Axiom R11 — Stationarity Requires Additional Proof

Generator⇏UniqueStationaryDistribution.Generator \not\Rightarrow UniqueStationaryDistribution.

50. 完整 HSNRD 動力鏈

到此,前八篇的:

Set,Type,Relation,ProjectionSet, Type, Relation, Projection

終於真正動起來。

完整鏈變成:

SetTypedGraphProjectionRewriteGrammarReachabilityGraphStochasticRewriteCTMCPDMP.\boxed{ Set \rightarrow TypedGraph \rightarrow Projection \rightarrow RewriteGrammar \rightarrow ReachabilityGraph \rightarrow StochasticRewrite \rightarrow CTMC \rightarrow PDMP. }

但這仍然缺最後一層:

哪些 feedback 真正重要?

哪些節點是 path gate?

切斷 loop 為什麼可能反而把系統推進 absorbing trap?

怎麼設計安全 intervention?

這就是下一篇的任務。


51. 結論

HSNRD III 的核心改變是:

Topology\boxed{ Topology }

不再只是 dynamics 的固定背景。

它自己就是:

DynamicState.\boxed{ DynamicState. }

高階存在可以:

Birth,Death,Merge,Split,Retype.Birth, Death, Merge, Split, Retype.

而每個 structural event 都必須具有:

  • 合法 match;
  • type semantics;
  • rewrite semantics;
  • stochastic hazard;
  • possible continuous reset。

因此:

History=RewriteWord+MatchHistory+EventTimes.\boxed{ History = RewriteWord + MatchHistory + EventTimes. }

而:

PossibleLikelyRealized.\boxed{ Possible \neq Likely \neq Realized. }

在 continuous state 也參與時,

完整 HSNRD state 為:

Zt=(Gt,xt),\boxed{ Z_t=(G_t,x_t), }

生成元:

(Lf)(G,x)=xfFG(x)+ρ,mλρ,m(G,x)[f(Gρ,m,Rρ,m(G,x))f(G,x)].\boxed{ (\mathcal L f)(G,x) = \nabla_x f\cdot F_G(x) + \sum_{\rho,m} \lambda_{\rho,m}(G,x) [ f(G'_{\rho,m},R_{\rho,m}(G,x))-f(G,x) ]. }

所以 HSNRD 的動力本質是:

StateHazardRewriteTopologyNewFlowState.\boxed{ State \rightarrow Hazard \rightarrow Rewrite \rightarrow Topology \rightarrow NewFlow \rightarrow State. }

這使高階存在的「出生、歷史、制度化、固著與死亡」進入同一個數學框架。

下一篇,也是全系列最後一篇,將處理:

HSNRD IV:Feedback、Reachability 與安全介入

並把 v0.7–v1.0 的 feedback graph、loop polarity、gate importance、counterfactual intervention 與 safe optimizer 收斂成完整方法論。


參考文獻

Behr, N. (2021). “On Stochastic Rewriting and Combinatorics via Rule-Algebraic Methods.” arXiv:2102.02364.

Behr, N. (2019). “Sesqui-Pushout Rewriting: Concurrency, Associativity and Rule Algebra Framework.” arXiv:1904.08357.

Behr, N., Harmer, R., & Krivine, J. (2021). “Concurrency Theorems for Non-linear Rewriting Theories.” arXiv:2105.02842.

Behr, N., & Sobociński, P. (2020). “Rule Algebras for Adhesive Categories.” Logical Methods in Computer Science, 16(3).

Behr, N., Bello, B. S., Ehmes, S., & Heckel, R. (2021). “Stochastic Graph Transformation for Social Network Modeling.” EPTCS 350.

Czapla, D. (2024). “On the Existence and Uniqueness of Stationary Distributions for Some Piecewise Deterministic Markov Processes with State-Dependent Jump Intensity.” Results in Mathematics, 79, 177.

Davis, M. H. A. (1984). “Piecewise-Deterministic Markov Processes: A General Class of Non-Diffusion Stochastic Models.” Journal of the Royal Statistical Society, Series B, 46(3), 353–376.

Davis, M. H. A. (1993). Markov Models and Optimization. Chapman & Hall.

Danos, V., Harmer, R., & Honorato-Zimmer, R. (2015). “Thermodynamic Graph-Rewriting.” Logical Methods in Computer Science, 11(2).

Ehrig, H., Ehrig, K., Prange, U., & Taentzer, G. (2006). Fundamentals of Algebraic Graph Transformation. Springer.


本篇核心命題表

編號 命題
R1 StateDynamicsStructuralDynamicsStateDynamics\neq StructuralDynamics
R2 RuleExists⇏RuleApplicableRuleExists\not\Rightarrow RuleApplicable
R3 Birth/DeathMerge/SplitBirth/Death\neq Merge/Split
R4 ClassicalLinearDPOAllStructuralRewriteClassicalLinearDPO\neq AllStructuralRewrite
R5 ExecutableRewriteProvedRewriteSemanticsExecutableRewrite\neq ProvedRewriteSemantics
R6 FinalStateHistoryFinalState\neq History
R7 SameCanonicalGraphSameHistoricalStateSameCanonicalGraph\neq SameHistoricalState
R8 RewriteNonCommutativityPotentialPathDependenceRewriteNonCommutativity\Rightarrow PotentialPathDependence
R9 ReachableLikelyRealizedReachable\neq Likely\neq Realized
R10 History=(RewriteWord,MatchSequence,EventTimes)History=(RewriteWord,MatchSequence,EventTimes)
R11 FixedStepSimulationExactPDMPFixedStepSimulation\neq ExactPDMP
R12 GeneratorExists⇏UniqueStationarityGeneratorExists\not\Rightarrow UniqueStationarity
R13 BirthConditionPersistenceConditionBirthCondition\neq PersistenceCondition
R14 TemporalPersistenceOntologicalRetypingTemporalPersistence\neq OntologicalRetyping
R15 StructuralRewriteStructuralRewrite may require ProjectionRewriteProjectionRewrite
R16 TopologyTopology is itself a dynamic state variable

系列:高階集合、欲求與 Leviathan / HSNRD 完整数學方法論
第二部:HSNRD 完整数學方法論
篇次:09 / 10