Operator-Native RDSS:Dynamic CEES、Branch Quotient Safety 與 History-Preserving Folding
Versioned Event Semantics, Safe Branch Quotients, and History-Preserving Folding
版本: v0.10 Working Proof Draft
日期: 2026-08-10
作者:Neo.K
機構:EveMissLab/一言諾科技有限公司
定位: ON-RDSS 動態事件語義/分支商化/歷史保真封裝
前置: ON-RDSS v0.3–v0.9
摘要
ON-RDSS v0.9 已提出 Certified Effect Event Structure(CEES):
Et=(Et,Cont,⊢t,λt,Tyt,Autht,Certt,Vert),
以表示:
- causality;
- concurrency;
- conflict;
- disjunctive enabling;
- branch history;
- authority;
- certificates;
- version。
本文件進一步處理三個問題。
第一,ON-RDSS 的 Meta-Operator 可以改寫:
Cont,⊢t,
因此 Event Structure 本身必須版本化:
EtMtEt+1.
第二,不同 branch 何時可以安全商化成同一個 parent state?
本文不以:
ΠQ(C1)=ΠQ(C2)
作為充分條件,而要求一種 ON-RDSS-specific、history-preserving future equivalence。
第三,event folding 的合法性不是永久真理。即使:
Ft:Et→Et
在版本 t 上安全,Meta rewrite 後:
Ft
不自動對:
Et+1
仍安全。
因此提出:
Version-Relative Fold Certificate
與:
Fold Stability under Meta.
本文件亦提出:
No Silent Retroactivity
原則:新 Event Semantics 可以改變未來可生成行為,但不得在沒有明示 migration / reinterpretation certificate 的情況下,偷偷重寫已提交歷史在原版本中的合法性。
1. 靜態 CEES Snapshot
定義:
Ev=(Ev,Conv,⊢v,λv,Tyv,Authv,Residualv,Certv,Qv)
其中 v 是 Event Semantics Version。
Qv 可包含:
- projection rules;
- behavioural equivalence rules;
- branch quotient policy;
- folding policy。
2. Configuration
C⊆Ev
若:
- C consistent;
- 存在合法 enabling enumeration;
- event types / authority / certificates 對每一步成立;
則:
C∈Conf(Ev).
3. Dynamic CEES
定義 Event-Semantics Meta-Operator:
Mv:(Ev,Evidence,Policy)⇀Ev+1.
它可以明示修改:
- event vocabulary;
- consistency;
- conflict;
- enabling;
- event type;
- authority;
- residual rules;
- branch quotient policy;
- folding equivalence。
4. Meta Witness
任何正式 Dynamic CEES rewrite 必須產生:
WM=(BaseVersion,NewVersion,Diff,Reason,Evidence,Migration,Rollback,AffectedFolds,AffectedBranches,Cert).
其中:
AffectedFolds
列出所有可能因 semantics change 而失效的 folding certificates。
5. Event-Semantics Identity
不要把:
Ev
與:
Ev+1
因名稱相同就視為同一 formal system。
定義:
EventSemanticsIdentity=(SystemID,VersionID,ContentHash,Lineage).
因此:
SameSystemID⇒SameSemanticsVersion.
6. Prospective Validity 與 Historical Validity
這是本版最重要的區分之一。
Prospective validity
對目前 snapshot:
Validvpros(C⊢e).
回答:
在版本 v 的當前事件語義下,現在是否允許生成這一步?
Historical validity
一條 committed step:
rk=(Ck,ek,vk,Certk)
歷史合法性寫:
Validhist(rk)=Checkvk(Ck⊢vkek,Certk).
它以當時 pinned version 判定。
7. No Silent Retroactivity
若:
Validv1hist(r)=true
而新版本:
Validv2pros(r)=false,
不能推出:
History(r)=Invalid.
正確是:
Valid when committed under v1
但:
not prospectively generable under v2.
因此:
NewSemantics=RetroactiveHistoryRewrite.
8. Historical Ledger
History entry 至少保存:
hk=(Event,ConfigurationBefore,ConfigurationAfter,EventSemanticsVersion,OperatorAlgebraVersion,Cert,AuthorityContext,Timestamp/LocalOrder).
Replay:
Replay(hk)
預設使用:
EventSemanticsVersion(hk).
9. Explicit Reinterpretation / Migration
若希望用新版本重新解釋舊歷史,必須有:
OHistMig:(Hv1,Ev1,Ev2)⇀(Hv2′,Certmigration).
它不能靜默發生。
10. Branch Quotient 的危險
最弱、但不足的商化條件:
ΠQ(C1)=ΠQ(C2).
v0.9 已給反例:
ΠQ(C1)=ΠQ(C2)
但:
Enabled(C1)=Enabled(C2).
所以 parent state projection 一樣,不代表 branch 可以合併。
11. ON-RDSS Branch Equivalence
本文定義候選關係:
C1≈Q,vONC2.
它不是宣稱一個全新的通用 bisimulation,而是 ON-RDSS 對既有 history-preserving behavioural equivalence 的工程增強。
至少需要五層。
12. BQ1 — Current Observation Equivalence
ΠQ,v(C1)=ΠQ,v(C2).
只是最低條件。
13. BQ2 — Past-Structure Correspondence
存在配置歷史對應:
f:Hist(C1)≃Hist(C2)
至少保持:
- observable event labels;
- type;
- causal order;
- branch-relevant conflict;
- selected-choice structure。
這一層對接 hp / hhp-bisimulation 中「配置與歷史映射一起比較」的思想。
14. BQ3 — Future Back-and-Forth
對每個:
C1⊢e1
且 e1 對任務 Q 有效,
存在:
C2⊢e2
使:
ProfileQ(e1)=ProfileQ(e2),
並且後繼:
C1∪{e1}≈Q,vONC2∪{e2}.
反方向亦要求。
這形成 task-relative back-and-forth。
15. BQ4 — Governance Equivalence
要求:
AuthObligationQ(C1)=AuthObligationQ(C2)
以及:
ResidualProfileQ(C1)=ResidualProfileQ(C2).
否則即使行為表面一致,治理義務不同,也不得安全商掉。
16. BQ5 — Version Compatibility
最簡單版本要求:
Version(C1)=Version(C2)=v.
跨版本 quotient 必須另外有:
VersionTransportCert.
17. Hereditary 條件
如果希望更接近 hereditary history-preserving safety,
則:
C1≈Q,vONC2
還應要求對相應過去子配置:
D1⊆C1,D2=f(D1)⊆C2
關係仍成立。
這避免只有「現在和未來」看起來一樣,但刪回過去時結構不一致。
18. Branch Quotient Certificate
定義:
BQCertQv(C1,C2)
至少包含:
(ObservationWitness,HistoryMap,FutureBackForth,AuthorityCheck,ResidualCheck,Version,Scope).
只有:
BQCertQv(C1,C2)↓
才允許:
[C1]Q=[C2]Q.
19. Parent-State Quotient
若一族 configurations:
Cα={C1,…,Cn}
兩兩具有相容 Branch Quotient Certificates,
可以建立 parent-level state:
Sα=QuotientQ(Cα).
但 parent state 必須保留:
QuotientWitnessα.
20. Quotient 並不刪除 History
Parent view 只使用:
Sα,
但 deeper replay 可以透過:
QuotientWitnessα
還原或尋址實際 branch history。
所以:
Quotient=HistoryDeletion.
21. Folding
對 event structure:
Ev
定義 folding map:
Fv:Ev↠Ev.
它可把多個事件映射到同一 folded event。
22. ON-RDSS Safe Folding
候選定義:
SafeFoldQv(Fv)
當:
- Fv 保持 event profile / type;
- configuration images 合法;
- induced quotient 具有 history-preserving behavioural correspondence;
- authority / residual obligations 保存;
- folding certificate 綁定 v ;
- fold 不使互斥 branch 變成非法共同可能;
- alternative enabling 不被錯誤改成 conjunctive enabling。
23. Folding Certificate
FoldCertQv=(Map,EventClasses,HistoryRelation,BoundaryBehaviour,Authority,Residual,Version,ProofRefs).
24. History-Preserving Folding
若:
Fv(e1)=Fv(e2),
不能只因:
λ(e1)=λ(e2).
還需要事件在可達 configurations 中的 history / future behaviour 能被安全對應。
因此:
SameLabel⇒Foldable.
25. Branch Quotient vs Event Folding
兩者相關但不同。
Branch quotient
合併的是:
Configurations/parentstates.
Event folding
合併的是:
Events/occurrences.
所以:
BranchQuotient=EventFolding.
但兩者都應以 history-preserving behavioural equivalence 為主要安全參考。
26. Dynamic Fold Stability
假設:
SafeFoldQv(Fv).
Meta:
Mv:Ev→Ev+1.
不能推出:
SafeFoldQv+1(Fv).
因為 Meta 可能只在其中一個被折疊 branch 加入:
- new future;
- new authority;
- new residual;
- new conflict;
- new enabling。
27. Fold Stability 判定
定義:
FoldStable(Fv,Mv)
當存在新 folding:
Fv+1:Ev+1→Ev+1
與 quotient-level Meta:
Mv
使某種版本化交換圖成立:
Fv+1∘Mv≃QMv∘Fv.
這只是候選 commuting criterion。
28. 為什麼需要 transported fold?
若:
Fv
把:
a,b
折成同一事件:
x.
而 Meta 在 v+1 只給:
a
新增 future:
a⊢z,
則原 folding:
a∼b
失效。
因此:
FoldCertificate
必須進入 Meta impact analysis。
29. Meta Impact Radius
Meta proposal 應計算:
ImpactM=(AffectedEvents,AffectedConfigs,AffectedFolds,AffectedQuotients,AffectedBoundaries).
如果:
AffectedFolds=∅,
commit 前必須:
- revalidate;
- split quotient;
- migrate;
- 或明示 mark stale。
30. Fold Status
定義:
FoldStatus∈{Fresh,Stale,Invalid,Migrating}.
這直接承接 RDSS Runtime 的:
Fresh/Stale/Missing.
31. Quotient Status
同樣:
QuotientStatus∈{Fresh,Stale,SplitRequired,Invalid}.
Meta 不應直接偷偷讓 parent state quotient 變語義錯誤。
32. No Silent Quotient Drift
若:
BQCertQv(C1,C2)
成立,
而在新版本:
C1≈Q,v+1ONC2,
則:
QuotientStatus=SplitRequired
而不是繼續假裝兩者是同一 parent state。
33. History-Preserving Split
若舊 parent state:
Sα=[C1,C2]Q
在新版本須拆分:
Sα→Sα1,Sα2,
必須保存:
SplitWitness=(OldQuotient,NewClasses,Reason,Version,HistoryMap).
因此 state birth / dimension birth 可以由 quotient failure 觸發。
34. Dynamic CEES 與 RDSS Meta-State
以前 RDSS:
Gt
描述規則/schema 狀態。
ON-RDSS 現在可以更具體寫:
Gt⇝(At,Et,Qt,FoldRegistryt).
Meta:
Mt:(At,Et,Qt,FoldRegistryt)⇀(At+1,Et+1,Qt+1,FoldRegistryt+1).
35. Dynamic Causality
Meta 可以修改 enabling / cause:
⊢t=⊢t+1.
例如:
X⊢te
但:
X⊢t+1e.
或新增:
Y⊢t+1e.
這對接既有 dynamic-causality event-structure 研究,但 ON-RDSS 額外版本化 governance / certificate / historical replay。
36. Dynamic Conflict
同理:
Cont=Cont+1.
例如政策或資源改變,使原本可共存的 events 變 conflict,或原本 conflict 被解除。
這類 Meta 必須特別檢查:
CommittedHistory
是否只是不再可生成,而不是被 retroactively 宣告「從未合法」。
37. Dynamic Residual
若新版本讓一個舊 parent quotient 失效,
可以產生:
Residual[QuotientStale(StateID,OldVersion,NewVersion)].
而不是立即任意選 branch。
38. Event-Semantics Migration
對 live runtime instance:
Cv
若要升級到:
Ev+1,
需要:
Mig:(Cv,Ev,Ev+1)⇀(Cv+1,Certmig).
可能結果:
Migrated,Grandfathered,SplitRequired,Rejected.
39. Grandfathering
若 configuration:
C
在舊版本合法,但無法直接映入新版本,
可選擇:
Grandfather(C,v)
讓其繼續存在,但禁止由新 runtime 再次生成。
這是 governance policy,不是普遍數學必然。
40. Dynamic Replay
Replay 不應問:
這個歷史在今天的規則下還合法嗎?
而應先問:
它在當時 pinned rules 下是否合法?
然後另行標記:
CurrentCompatibility.
所以:
HistoricalValidity=CurrentCompatibility.
41. 有限 Checker:Safe Symmetric Fold
Toy v1 兩條 branch:
a→ra→fa
與:
b→rb→fb
在 toy profile 中:
- labels 相同;
- history profile 相同;
- bounded future branching signature 相同。
結果:
safe_toy=true.
這只是有限 bounded proxy,不是完整 hhp-bisimulation。
42. 有限 Checker:Same Observation / Different Future
修改 branch B future:
fb
使其 label / authority profile 不同。
目前 projection 仍相同,
但:
FutureSigA=FutureSigB.
結果:
safe_toy=false.
因此 current-state equality 不足以折疊。
43. 有限 Checker:Meta Breaks Fold
v1:
a,b
安全 fold。
v2 透過 Meta 只對 branch A 新增:
ra⊢xa.
結果:
SafeFoldv1=true,
SafeFoldv2=false.
所以:
FoldStableAcrossMeta=false.
44. 有限 Checker:No Silent Retroactivity
舊版本:
C={a,ra}
可達。
新版本移除:
a⊢ra.
結果:
Reachablev1(C)=true,
但:
Reachablev2(C)=false.
同時 pinned-v1 replay 仍視為:
HistoricallyValid=true.
這正是:
ProspectiveInvalidity⇒HistoricalInvalidity.
45. 一個重要語義修正:Missing ≠ Empty
Checker 也暴露一個正式語義問題。
對 enabling:
e∈/Dom(⊢)
不能解讀成:
∅⊢e.
兩者應嚴格區分:
MissingEnabling=Disabled/Undefined
而:
∅⊢e=InitiallyEnabled.
這與 ON-RDSS 一貫的:
Fresh=Stale=Missing
同構。
46. Folding 與既有研究的邊界
既有 event-structure reduction / minimisation 已研究:
- folding;
- history-preserving bisimulation;
- hereditary history-preserving bisimilarity;
- minimal behaviour-preserving quotients。
因此 ON-RDSS 不應宣稱「用 history preservation 來決定 event folding」本身是新發明。
ON-RDSS 的增量在於把 folding 置入:
Versioned Dynamic Semantics+Authority+Residual+Certificate+Meta Impact
的 runtime governance 中。
47. Theorem Candidate DF1 — Version-Relative Folding Safety
若:
SafeFoldQv(Fv)
且:
FoldCertQv(Fv)
有效,
則 folding 在 snapshot v 下保持指定 ON-RDSS behavioural obligations。
但:
SafeFoldQv(Fv)⇒SafeFoldQv+1(Fv).
後者一般不成立;有限 checker 已提供 toy counterexample。
48. Theorem Candidate DF2 — No Silent Retroactivity
對 committed history record:
h=(C,e,v,c),
若:
Checkv(h)=true,
則任意新版本:
v′>v
不能在沒有明示 historical migration / reinterpretation operator 的情況下,把:
HistoricalValidity(h)
改成 false。
新版本只可改:
CurrentCompatibility(h,v′).
這更接近治理公理而非純事件結構定理。
49. Theorem Candidate DF3 — Safe Branch Quotient
若:
BQCertQv(C1,C2)
存在,
則 parent-level quotient:
[C1]Q=[C2]Q
可在指定 scope 中安全使用。
反之:
ΠQ(C1)=ΠQ(C2)
單獨不足以推出 quotient safety。
50. Theorem Candidate DF4 — Meta Quotient Invalidation
存在:
Mv
使:
BQCertQv(C1,C2)
成立,
但:
BQCertQv+1(C1,C2)
不成立。
有限 checker 已構造此類模型。
因此 quotient certificate 必須版本化。
51. ON-RDSS Parent State 的新定義
原本 parent state 可理解為:
Π↑(Container).
現在更精確:
Sparent=QuotientQv(C∣BQCert).
也就是 parent state 本質上是:
一族在特定 version、scope 與 behavioural equivalence 下被證明可安全合併的 configurations。
所以 parent state 不再只是普通 projection value。
52. State Split
當:
BQCert
因 Meta 失效,
parent state 可以發生:
StateSplit.
即:
S→{S1,S2,…}.
這提供 RDSS State Birth / Dimension Birth 的一個具體形式來源。
53. State Merge
反過來,如果新的證明表明:
C1≈Q,vONC2,
原本兩個 parent states 可以:
StateMerge.
並保留 MergeWitness。
54. Classification-as-State 再次接回來
若兩個 configuration 原本不同分類:
Class(C1)=Class(C2),
後來被安全 quotient,
則 type regime 可以 merge。
反之 quotient 失效則 type regime split。
因此:
ClassificationEvolution
可部分由:
BehaviouralQuotientEvolution
誘發。
55. 新的完整演化式
現在 ON-RDSS 更完整地寫成:
(Ct,Et,At,Qt,FoldRegistryt,Ht)
經 ordinary event execution:
Cte,cCt+1,
以及 Meta:
(Et,At,Qt,FoldRegistryt)Mt(Et+1,At+1,Qt+1,FoldRegistryt+1).
然後:
Revalidate(Folds,Quotients,Boundaries).
56. 下一輪
現在真正值得繼續的是:
- 把 ≈Q,vON 寫成正式 back-and-forth relation;
- 把 hereditary restriction 寫成完整推導規則;
- 實作 bounded hp/hhp-like checker,而不是現在的 structural signature proxy;
- 實作 folding map 並檢查 configuration images;
- 自動找 Meta 前後失效的 quotient classes;
- 定義 StateSplit / StateMerge runtime protocol;
- 研究 folding minimality 是否能與 RDSS 的 finite effective support 接合;
- 建立
FoldRegistry -> stale -> revalidate -> split/merge 的 Runtime MVP。
57. 暫定結論
到 v0.10,ON-RDSS 已經得到一個新的核心觀點:
Parent State
不是單純對低階世界做壓縮。
更精確地,它是:
Versioned Behaviour-Preserving Quotient of Event Histories.
因此 parent state 的身份依賴:
- current observation;
- history correspondence;
- future capability;
- authority;
- residual obligations;
- Event Semantics Version。
同時:
Fold Safety is Version-Relative.
Meta 可以讓昨天合法的 state merge 在今天必須 split。
但:
New rules may change future legality without silently rewriting old committed history.
這使 RDSS 原本的:
State↔Container↔Process
現在可以被重新精化為:
State=Certified, Versioned, History-Preserving Quotient of Process/Container Configurations.