Rate–Distortion for Reversible Causal Nets under Closure-Preserving Fidelity

Jianfeng Xu
Koguan School of Law, China Institute for Smart Justice,
School of Computer Science, Shanghai Jiao Tong University,
Shanghai 200030, China.
xujf@sjtu.edu.cn


Abstract

We develop a semantic rate–distortion theory for reversible logging under a closure-preservation fidelity criterion. A single execution history is represented as a finite fact base \(S_O\subseteq\mathbb{S}\), and rollback-relevant semantics are modeled by a monotone reversible semantic closure operator \(\mathrm{Cn}_{\mathrm{rev}}\) induced by an effective rule system (e.g., function-free Horn rules / Datalog). We define a bounded single-symbol distortion \(d_{\mathrm{Cn}}\) by editing one logged fact at a time and measuring the resulting change in closure via a Jaccard-type distance. Our first result is a canonical decomposition \(S_O=A\uplus J\) into an irredundant core \(A\) and a redundant part \(J\), computed by a deterministic deletion scan under a public canonical order. Under an admissible reconstruction alphabet \(\hat{\mathbb{S}}\subseteq \mathrm{Cn}_{\mathrm{rev}}(S_O)\), the entire redundant part \(J\) is information-theoretically invisible: every \(j\in J\) has zero distortion against any admissible reconstruction. Consequently, the full semantic rate–distortion function factorizes into a core-only problem scaled by the core mass \(P_A=P_O(A)\). At zero distortion, overlaps among zero-distortion reconstruction sets on the core induce a confusability hypergraph \(\Gamma_0\), and the minimum perfect-fidelity rate admits an exact hypergraph-entropy characterization \(R_{\mathrm{sem}}(0)=P_A\,H_{\Gamma_0}(\pi_A)\), where \(\pi_A\) is the source distribution conditioned on the core. We also introduce a rollback-task loss \(\ell_{\mathrm{rb}}\) and establish an analogous core-only factorization and hypergraph-entropy endpoint for \(\,R_{\mathrm{rb}}(L)\). We instantiate the framework on reversible causal nets (RCN) and reversible prime event structures (rPES) under multiple reversing disciplines (causal, cause-respecting, inverse-causal) by defining discipline-indexed monotone closures. Numerically, on a medium instance with \(B=4\) branches and depth \(d=3\), causal and cause-respecting closures yield a frontier-sized core \(|A|=4\) out of \(|S_O|=12\) (hence \(P_A=1/3\) under a uniform symbol source), giving \(R_{\mathrm{sem}}(0)=2/3\) bits/symbol, whereas inverse-causal closure expands the core to \(|A|=12\) and increases the endpoint rate to \(R_{\mathrm{sem}}(0)=\log_2(12)\approx 3.585\) bits/symbol. We further provide enumeration and Monte Carlo evidence validating the zero-distortion endpoint identities and the predicted core-only factorizations.

0.0.0.1 Keywords.

Reversible computation; causal-consistent reversibility; reversible causal nets (RCN);
reversible prime event structures (rPES); semantic rate–distortion; closure-preserving fidelity;
irredundant core decomposition; hypergraph entropy; rollback safety; Blahut–Arimoto algorithm.

1 Introduction↩︎

1.0.0.1 Rollback is not free.

Reversible computation studies models in which executed actions may be undone, motivated by fault recovery, debugging, and reversible views of concurrent or biochemical dynamics [1][4]. A recurring observation is that safe rollback requires auxiliary information about the forward run: to decide which reverse steps are legal and in what order, a system (or debugger) must retain enough evidence of causal dependencies, conflicts, prevention, and sometimes reverse-causality constraints [5][7]. This makes reversibility inherently discipline-sensitive: changing the reversing discipline changes what must be remembered.

1.0.0.2 A quantitative question.

While operational and axiomatic frameworks provide crisp correctness criteria (e.g., causal consistency and related safety properties), an orthogonal and practically central question remains: how many bits are necessary to represent a history so that the reconstructed history preserves rollback-relevant consequences? Classical information theory addresses “how many bits” questions via rate–distortion theory: given a source and a fidelity criterion, Shannon’s rate–distortion function characterizes the minimum rate needed to achieve a prescribed average distortion [8][10]. However, the fidelity criterion for rollback is not symbolwise (e.g., not Hamming distance on logged atoms): what matters is whether the decoder can answer the same rollback-relevant queries, such as which undo steps are blocked and which precedence obligations hold. A symbolwise distortion can over-penalize semantically redundant facts and under-represent global logical effects of local edits.

1.0.0.3 Closure-preserving fidelity as a semantic interface.

To align compression with rollback semantics, we adopt a closure-based interface. A single run is represented as a finite fact base \(S_O\subseteq\mathbb{S}\), and rollback-relevant semantics are modeled by a monotone closure operator \(\mathrm{Cn}_{\mathrm{rev}}\) induced by an effective rule system (e.g., function-free Horn rules / Datalog) [11], [12]. Rollback capability is then a closure observable, \(\mathsf{RB}(S)=\mathrm{Cn}_{\mathrm{rev}}(S)\cap\mathbb{Q}_{\mathrm{rb}}\), for a designated set \(\mathbb{Q}_{\mathrm{rb}}\) of rollback-relevant facts. Within this interface, a reconstruction \(\hat{S}_O\) is perfectly faithful for rollback if it preserves closure (\(\mathrm{Cn}_{\mathrm{rev}}(\hat{S}_O)=\mathrm{Cn}_{\mathrm{rev}}(S_O)\)), or more minimally preserves the rollback observable. We instantiate this at the single-symbol level by editing one fact at a time and measuring the induced closure change via a Jaccard-type distance, yielding a bounded finite-alphabet distortion suitable for Shannon rate–distortion analysis.

1.0.0.4 Key mechanism: redundancy becomes information-theoretically invisible.

Closure-preserving fidelity makes redundancy explicit. Many logged facts are consequences of others under \(\mathrm{Cn}_{\mathrm{rev}}\) and can be deleted (or replaced) without changing rollback semantics. We formalize this by a deterministic deletion scan that decomposes \(S_O\) into an irredundant core \(A\) and a redundant remainder \(J\). Under an admissible reconstruction alphabet \(\hat{\mathbb{S}}\subseteq \mathrm{Cn}_{\mathrm{rev}}(S_O)\), every redundant fact \(j\in J\) has zero distortion against every admissible reconstruction. As a result, both the zero-distortion limit and the full rate–distortion curve reduce to a core-only optimization problem scaled by the core mass \(P_A=P_O(A)\). This “core reduction” viewpoint is closely related in spirit to closure-based rate–distortion for deductive sources [13], and we show that it yields a natural quantitative frontier for reversible logging.

1.0.0.5 Endpoint law at \(D=0\): hypergraph entropy.

At zero distortion, the relevant object is not always Shannon entropy. If distinct core symbols admit overlapping sets of zero-distortion reconstructions, the \(D=0\) limit becomes a structured confusability problem. We capture this structure by a confusability hypergraph \(\Gamma_0\) induced by overlaps of zero-distortion reconstruction sets, and obtain an exact hypergraph-entropy characterization of the perfect-fidelity rate \(R_{\mathrm{sem}}(0)\). We further introduce a rollback-task loss that counts how many rollback judgments change under an edit, giving a task-aligned alternative rate–distortion function with the same core-only reduction principle.

1.0.0.6 Discipline-indexed instantiation on RCN/rPES.

We instantiate \(\mathrm{Cn}_{\mathrm{rev}}\) on reversible causal nets (RCN) and reversible prime event structures (rPES) by defining a family of discipline-indexed monotone closures for causal, cause-respecting, and inverse-causal semantics [7], [14]. This makes discipline sensitivity quantitative: different closures induce different cores, hence different zero-distortion rates and different rate–distortion trade-offs. We complement the theory with numerical evidence obtained by constructing finite alphabets/distortion matrices and computing finite-alphabet rate–distortion curves via Blahut–Arimoto [15], [16].

1.0.0.7 Contributions.

  1. Semantic rate–distortion for reversible logging. We formulate reversible logging as a Shannon rate–distortion problem where fidelity is measured by preserving a reversible semantic closure \(\mathrm{Cn}_{\mathrm{rev}}\), and define a bounded single-symbol closure distortion \(d_{\mathrm{Cn}}\) aligned with rollback semantics.

  2. Canonical core decomposition and redundancy invisibility. We prove a deterministic core decomposition \(S_O=A\uplus J\) with \(\mathrm{Cn}_{\mathrm{rev}}(A)=\mathrm{Cn}_{\mathrm{rev}}(S_O)\), and show that under admissibility \(\hat{\mathbb{S}}\subseteq\mathrm{Cn}_{\mathrm{rev}}(S_O)\) the redundant part \(J\) is distortion-free against all reconstructions. Consequently, \(R_{\mathrm{sem}}(D)\) factorizes into a core-only rate–distortion problem scaled by \(P_A\).

  3. Exact zero-distortion law via hypergraph entropy. We characterize \(R_{\mathrm{sem}}(0)\) as a hypergraph-entropy quantity induced by overlaps of zero-distortion reconstruction sets on the core.

  4. Rollback-task RD and discipline-indexed RCN/rPES instantiation. We introduce a rollback-task loss \(\ell_{\mathrm{rb}}\), derive a parallel core-only reduction principle, and instantiate the full framework on RCN/rPES under multiple reversing disciplines, with numerical verification of endpoint identities and factorization predictions.

1.0.0.8 Organization.

Section 2 defines the fact-base interface, reversible closure, and rollback observables. Section 3 develops semantic rate–distortion under closure-preserving fidelity. Section 4 connects semantic distortion to rollback safety and introduces rollback-task rate–distortion. Section 5 instantiates discipline-indexed closures on RCN/rPES and analyzes induced cores. Section 6 reports numerical evidence (enumeration, Blahut–Arimoto curves, and Monte Carlo sweeps). Section 7 reviews related work, and Section 8 concludes.

2 Preliminaries: Fact Bases, Proof Systems, and Rollback Semantics↩︎

This section fixes the semantic interface used throughout the paper. A single execution history is represented as a finite fact base \(S_O\subseteq\mathbb{S}\), and rollback-relevant semantics are expressed via invariance of a monotone closure operator \(\mathrm{Cn}_{\mathrm{rev}}\) induced by an effective proof system. Figure 1 depicts how this closure interface overlays a standard reversible logging pipeline and supports an application-level rate–distortion (RD) design loop. In the rest of the paper, preserving the full closure \(\mathrm{Cn}_{\mathrm{rev}}(S_O)\) is used as a sufficient fidelity criterion for rollback, while \(\mathsf{RB}(S)\) (Definition 3) captures the minimal rollback observable of interest. Our instantiations follow standard causal-consistent reversibility frameworks (e.g., RCCS/LTSI and reversible Petri-net/event-structure accounts) and reversible message-passing logs; see, e.g., [5], [7], [17].

2.0.0.1 Design choice (semantic interface).

Throughout, rollback-relevant semantics are treated as (projections of) closure consequences \(\mathrm{Cn}_{\mathrm{rev}}(S)\). Accordingly, we adopt closure preservation \(\mathrm{Cn}_{\mathrm{rev}}(\hat{S})=\mathrm{Cn}_{\mathrm{rev}}(S)\) as a principled and sufficient semantic fidelity criterion for reversible logging, aligning the reversible setting with closure-based compression.

Figure 1: Semantic interface for closure-preserving reversible logging.The outer solid loop is the reversible pipeline (execution \rightarrow instrumentation \rightarrow log \rightarrow storage/indexing \rightarrow replay \rightarrow rollback \rightarrow execution).The inner dashed loop is the rate–distortion (RD) design layer specialized to this paper: the fidelity target is invariance of the reversible semantic closure \mathrm{Cn}_{\mathrm{rev}}; distortion is measured by the closure-based distortion d_{\mathrm{Cn}} (or the rollback-task loss \ell_{\mathrm{rb}}); and coding design exploits the canonical core reduction S_O=A\uplus J with A=\mathrm{Atom}_{\mathrm{rev}}(S_O) before numerical evaluation (e.g., Blahut–Arimoto) of the resulting finite-alphabet RD problem.

2.1 Fact universe and log fact bases↩︎

2.1.0.1 Event vocabulary.

Fix a finite set \(\mathcal{E}\) of forward events. Let \(\underline{\mathcal{E}}\) be a disjoint set of corresponding reverse events; we write \(\underline{e}\) for the reverse of \(e\in\mathcal{E}\). In Petri-net settings, events may be transition occurrences; in process-calculus settings, events may be equivalence classes of transitions (as in LTSI/event-based accounts); in message-passing settings, events may be log primitives.

2.1.0.2 From events to constants.

We assume each event identifier \(e\in \mathcal{E}\cup \underline{\mathcal{E}}\) is represented by a corresponding constant symbol, so that event occurrences and relations can be recorded as ground facts in \(\mathbb{S}\).

2.1.0.3 Relations (model-agnostic interface).

We assume the target reversible model induces (possibly partially defined) relations on events:

  • Causality \(<\;\subseteq \mathcal{E}\times \mathcal{E}\);

  • Conflict \(\#\;\subseteq \mathcal{E}\times \mathcal{E}\);

  • Reverse-causality \(\prec\;\subseteq \mathcal{E}\times \underline{\mathcal{E}}\) (“\(e\) is a cause of undoing \(u\)”);

  • Prevention \(\triangleright\;\subseteq \mathcal{E}\times \underline{\mathcal{E}}\) (“presence of \(e\) blocks undoing \(u\)”);

  • Optionally, sustained causation \(\ll\;\subseteq \mathcal{E}\times \mathcal{E}\), used in axiomatic frameworks to tie \(<\) to prevention constraints.

The concrete meaning of these relations is instantiated in Section 5.

2.1.0.4 Fact signature and ambient universe.

Let \(\Sigma_{\mathrm{rev}}\) be a finite relational signature containing at least the predicate symbols: \[\mathsf{Fwd}(\cdot),\;\mathsf{Rev}(\cdot),\;\mathsf{Occurs}(\cdot),\; \mathsf{Cause}(\cdot,\cdot),\;\mathsf{Conflict}(\cdot,\cdot),\; \mathsf{RevCause}(\cdot,\cdot),\;\mathsf{Prevent}(\cdot,\cdot).\] (Concrete instantiations may add, e.g., \(\mathsf{Key}(k,\cdot,\cdot)\), FIFO order facts, place/marking facts, etc.) Fix a finite set of constants containing all event identifiers for the execution under study (and any auxiliary identifiers such as keys). Let \(\mathbb{S}\) denote the set of all ground atoms over \(\Sigma_{\mathrm{rev}}\) and these constants. Since both the signature and the constant set are finite, the ambient universe \(\mathbb{S}\) is finite.

Definition 1 (Log fact base). A (single-run) log fact base* is any finite set \(S_O\subseteq\mathbb{S}\). Intuitively, \(S_O\) contains:*

  1. **Dynamic history facts, e.g., \(\mathsf{Occurs}(e)\) for executed forward events \(e\), and possibly model-dependent facts such as “a send with key \(k\) occurred”.

  2. **Static semantic facts* needed for rollback reasoning, e.g., \(\mathsf{Cause}(e,e')\), \(\mathsf{RevCause}(e,\underline{u})\), \(\mathsf{Prevent}(e,\underline{u})\), and \(\mathsf{Conflict}(e,e')\), when these are not globally fixed by the model.*

2.1.0.5 Background theory vs.logged facts.

For readability, we allow two equivalent presentations:

  • All-in-log: \(S_O\) contains both dynamic and static facts relevant to the run.

  • Fixed background: a fixed finite set \(\mathcal{B}\subseteq\mathbb{S}\) encodes the static semantics for the program/model, and \(S_O\) contains only dynamic history facts; then reasoning is performed over \(\mathcal{B}\cup S_O\).

All definitions below work in either view; when needed we will write \(\mathrm{Cn}_{\mathrm{rev}}(S)\) as shorthand for \(\mathrm{Cn}_{\mathrm{rev}}(\mathcal{B}\cup S)\) in the “fixed background” view.

Assumption 1 (Finite universe). For every execution under study, the logged fact base \(S_O\subseteq\mathbb{S}\) is finite, and the ambient universe \(\mathbb{S}\) of ground atoms (over a finite relational signature and a finite constant set) is finite.

Lemma 1 (Finite Horn closure is effectively computable). Assume \(\mathbb{S}\) is finite and \(\mathsf{PS}_{\mathrm{rev}}\) is a function-free Horn rule system over \(\mathbb{S}\). Then for every \(S\subseteq\mathbb{S}\), the closure \(\mathrm{Cn}_{\mathrm{rev}}(S)\) is finite and can be computed by iterative saturation, i.e., by repeatedly applying rules until a fixed point is reached.

Proof. Because \(\mathbb{S}\) is finite and \(\mathrm{Cn}_{\mathrm{rev}}(S)\subseteq \mathbb{S}\), any increasing sequence of derived fact sets stabilizes after at most \(|\mathbb{S}|\) strict additions. For Horn rules, the immediate-consequence operator is monotone, hence iterating it from \(S\) reaches the least fixed point in finitely many steps, which equals the set of derivable facts (see, e.g., [11], [18]). ◻

2.2 A monotone reversible proof system and semantic closure↩︎

We now define the semantic closure operator that serves as the fidelity target for compression.

2.2.0.1 Proof system.

We assume an effective monotone proof system \(\mathsf{PS}_{\mathrm{rev}}\) over ground facts. In the concrete instantiations in this paper, \(\mathsf{PS}_{\mathrm{rev}}\) is given as a function-free Horn rule system (Datalog), so that \(\mathrm{Cn}_{\mathrm{rev}}(S)\) is the least fixed point of the associated immediate-consequence operator. The concrete rules are model-dependent, but conceptually they (i) propagate derived consequences of history facts and background structure, and (ii) derive rollback-relevant judgments (e.g., blocking evidence and precedence obligations). Crucially, we require that the induced closure operator satisfy the Tarski axioms (Assumption 2 below). For background on Datalog/Horn-rule inference and least-fixed-point semantics, see standard database references (e.g., [11]).

Definition 2 (Reversible semantic closure). Fix a monotone proof system \(\mathsf{PS}_{\mathrm{rev}}\) over \(\mathbb{S}\). For any finite \(S\subseteq \mathbb{S}\), define \[\mathrm{Cn}_{\mathrm{rev}}(S) \mathrel{\vcenter{:}}= \{ s\in \mathbb{S} : S \vdash_{\mathsf{PS}_{\mathrm{rev}}} s \}.\]

2.2.0.2 Least-fixed-point reading.

When \(\mathsf{PS}_{\mathrm{rev}}\) is given as function-free Horn rules (Datalog), we take \(\mathrm{Cn}_{\mathrm{rev}}(S)\) to be the least fixed point of the immediate-consequence operator induced by the rules, which coincides with Horn derivability [11], [18].

Assumption 2 (Tarski closure axioms / sufficient conditions). The operator \(\mathrm{Cn}_{\mathrm{rev}}\) satisfies: (i) \(S\subseteq \mathrm{Cn}_{\mathrm{rev}}(S)\) (reflexivity), (ii) \(S\subseteq T \Rightarrow \mathrm{Cn}_{\mathrm{rev}}(S)\subseteq \mathrm{Cn}_{\mathrm{rev}}(T)\) (monotonicity), (iii) \(\mathrm{Cn}_{\mathrm{rev}}(\mathrm{Cn}_{\mathrm{rev}}(S))=\mathrm{Cn}_{\mathrm{rev}}(S)\) (idempotence).

A sufficient (and typical) condition is that \(\mathsf{PS}_{\mathrm{rev}}\) is a function-free Horn rule system (e.g., Datalog) and \(\mathrm{Cn}_{\mathrm{rev}}(S)\) is its least fixed point.

Lemma 2 (Horn closure implies Tarski axioms). If \(\mathsf{PS}_{\mathrm{rev}}\) is a monotone Horn inference system and \(\mathrm{Cn}_{\mathrm{rev}}(S)\) is defined as the set of all facts derivable from \(S\) (equivalently, the least fixed point of the immediate-consequence operator), then \(\mathrm{Cn}_{\mathrm{rev}}\) satisfies the three Tarski closure axioms in Assumption 2.

Proof. For Horn rules, let \(T_{\mathsf{PS}}\) be the immediate-consequence operator. It is monotone, hence by the Knaster–Tarski fixed-point theorem its least fixed point \(\mathsf{lfp}(T_{\mathsf{PS}})\) exists [19]. By definition, \(\mathrm{Cn}_{\mathrm{rev}}(S)\) is obtained by iterating \(T_{\mathsf{PS}}\) from \(S\) to the least fixed point, so: (i) \(S\subseteq \mathrm{Cn}_{\mathrm{rev}}(S)\) holds because the iteration starts from \(S\); (ii) monotonicity holds because \(T_{\mathsf{PS}}\) is monotone in its input; (iii) idempotence holds because \(\mathrm{Cn}_{\mathrm{rev}}(S)\) is already a fixed point of \(T_{\mathsf{PS}}\), hence closing it again adds no facts. ◻

2.2.0.3 Remark (negative enabling conditions and monotone closures).

Many operational presentations of reversibility phrase enabling conditions negatively (e.g., “\(\underline{u}\) is enabled only if no preventer is present”). Such conditions are non-monotone if encoded directly as logical inference. In this paper, \(\mathrm{Cn}_{\mathrm{rev}}\) is required to be a monotone closure operator, so we do not derive conclusions from the absence of facts inside \(\mathrm{Cn}_{\mathrm{rev}}\). Instead, we encode evidence of blocking as positive derived facts, e.g., \[\mathsf{Prevent}(e,\underline{u}) \wedge \mathsf{Occurs}(e) \Rightarrow \mathsf{Blocked}(\underline{u}),\] and we choose rollback-relevant observables \(\mathbb{Q}_{\mathrm{rb}}\) so that rollback capability can be expressed using such positive evidence (e.g., blockers and precedence obligations). This keeps \(\mathrm{Cn}_{\mathrm{rev}}\) within the standard monotone Horn/Datalog setting while still capturing rollback constraints.

2.3 Rollback semantics and closure invariance↩︎

The role of \(\mathrm{Cn}_{\mathrm{rev}}\) is to provide a semantic interface for rollback. Concretely, we select a set \(\mathbb{Q}_{\mathrm{rb}}\subseteq \mathbb{S}\) of rollback-relevant query facts and define rollback capability as the closure projected to \(\mathbb{Q}_{\mathrm{rb}}\).

2.3.0.1 Rollback-relevant query vocabulary.

Let \(\mathbb{Q}_{\mathrm{rb}}\subseteq \mathbb{S}\) be a designated set of rollback-relevant ground facts. Typical examples include \[\mathsf{Blocked}(\underline{e}),\quad \mathsf{MustUndoBefore}(\underline{e},\underline{u}),\quad \mathsf{Maximal}(e),\quad \mathsf{NonMax}(e),\] depending on the chosen reversible model. Since \(\mathbb{S}\) is finite (Assumption 1) and \(\mathbb{Q}_{\mathrm{rb}}\subseteq \mathbb{S}\), the query set \(\mathbb{Q}_{\mathrm{rb}}\) is finite.

Definition 3 (Rollback capability as a closure observable). Define the rollback capability induced by a log \(S\subseteq\mathbb{S}\) as \[\mathsf{RB}(S)\;\mathrel{\vcenter{:}}=\;\mathrm{Cn}_{\mathrm{rev}}(S)\;\cap\;\mathbb{Q}_{\mathrm{rb}}.\]

Definition 4 (Rollback-equivalence (semantic target)). Two logs \(S,T\subseteq \mathbb{S}\) are rollback-equivalent, written \(S \equiv_{\mathrm{rb}} T\), if \[S \equiv_{\mathrm{rb}} T \quad\Longleftrightarrow\quad \mathsf{RB}(S)=\mathsf{RB}(T).\]

2.3.0.2 Closure invariance.

The next statement explains when rollback-equivalence coincides with full closure equivalence.

Proposition 1 (When rollback-equivalence matches full closure equivalence). If \(\mathbb{Q}_{\mathrm{rb}}=\mathbb{S}\), then for all finite \(S,T\subseteq\mathbb{S}\), \[S \equiv_{\mathrm{rb}} T \quad\Longleftrightarrow\quad \mathrm{Cn}_{\mathrm{rev}}(S)=\mathrm{Cn}_{\mathrm{rev}}(T).\] More generally, \(\mathrm{Cn}_{\mathrm{rev}}(S)=\mathrm{Cn}_{\mathrm{rev}}(T)\) always implies \(S\equiv_{\mathrm{rb}}T\) for any choice of \(\mathbb{Q}_{\mathrm{rb}}\). In particular, full closure equivalence is a sufficient condition for rollback-equivalence for any \(\mathbb{Q}_{\mathrm{rb}}\), while the converse need not hold when \(\mathbb{Q}_{\mathrm{rb}}\subsetneq \mathbb{S}\).

Proof. If \(\mathbb{Q}_{\mathrm{rb}}=\mathbb{S}\), then \(\mathsf{RB}(S)=\mathrm{Cn}_{\mathrm{rev}}(S)\) by Definition 3, so the equivalence is immediate from Definition 4. The general implication \(\mathrm{Cn}_{\mathrm{rev}}(S)=\mathrm{Cn}_{\mathrm{rev}}(T)\Rightarrow \mathsf{RB}(S)=\mathsf{RB}(T)\) follows by intersecting both sides with \(\mathbb{Q}_{\mathrm{rb}}\). ◻

2.3.0.3 Interpretation and instantiation.

In applications (Section 5), we choose \(\mathbb{Q}_{\mathrm{rb}}\) so that \(\mathsf{RB}(S)\) captures the rollback-relevant consequences that are representable by positive evidence in a monotone setting (e.g., blocking evidence and precedence obligations). Thus, preserving \(\mathrm{Cn}_{\mathrm{rev}}(S_O)\) is a sufficient condition for preserving rollback capability, while preserving \(\mathsf{RB}(S_O)\) is the minimal requirement when only rollback observables matter. With this interface in place, we can apply closure-preserving rate–distortion ideas in the spirit of [13].

3 Semantic Rate–Distortion under Closure-Preserving Fidelity↩︎

This section instantiates a Shannon-style rate–distortion problem where distortion is measured by preservation of reversible semantic closure. The construction is in the same spirit as closure-based compression for finite deductive systems (cf.[13]), with the reversible closure \(\mathrm{Cn}_{\mathrm{rev}}\) playing the role of deductive closure.

3.1 Closure fidelity and single-symbol distortion↩︎

We follow the “single stored log” viewpoint: a finite log \(S_O\subseteq\mathbb{S}\) is given, and a random symbol is sampled from it.

Assumption 3 (Symbol source from a fixed log). Fix a reference log \(S_O\subseteq\mathbb{S}\). Let \(S\sim P_O\) be a random fact symbol taking values in \(S_O\).

Assumption 4 (Admissible reconstruction alphabet). The reconstruction alphabet \(\hat{\mathbb{S}}\subseteq\mathbb{S}\) is nonempty and admissible* in the sense that \[\hat{\mathbb{S}} \subseteq \mathrm{Cn}_{\mathrm{rev}}(S_O).\]*

3.1.0.1 Interpretation.

Admissibility says reconstructions are drawn from what is already semantically entailed by the original log. This matches the reversible-logging intuition: we only reconstruct facts that are semantically compatible with the original run.

Definition 5 (Closure Jaccard fidelity). For finite \(S,T\subseteq\mathbb{S}\), define \[\mathsf{F}_{\mathrm{Cn}}(S,T) \mathrel{\vcenter{:}}= \frac{|\mathrm{Cn}_{\mathrm{rev}}(S)\cap \mathrm{Cn}_{\mathrm{rev}}(T)|}{|\mathrm{Cn}_{\mathrm{rev}}(S)\cup \mathrm{Cn}_{\mathrm{rev}}(T)|}, \quad \text{with } 0/0 \mathrel{\vcenter{:}}= 1.\] The convention \(0/0\mathrel{\vcenter{:}}= 1\) corresponds to treating two empty closures as perfectly matching.

Definition 6 (Single-symbol closure distortion). For \(s\in S_O\) and \(\hat{s}\in \hat{\mathbb{S}}\), define \[d_{\mathrm{Cn}}(s,\hat{s}) \mathrel{\vcenter{:}}= 1-\mathsf{F}_{\mathrm{Cn}}\bigl(S_O,\;(S_O\setminus\{s\})\cup\{\hat{s}\}\bigr).\]

Lemma 3 (Basic properties of \(d_{\mathrm{Cn}}\)). For all \(s\in S_O\) and \(\hat{s}\in\hat{\mathbb{S}}\), \(0\le d_{\mathrm{Cn}}(s,\hat{s})\le 1\). Moreover, \(d_{\mathrm{Cn}}(s,\hat{s})=0\) if and only if \(\mathrm{Cn}_{\mathrm{rev}}(S_O)=\mathrm{Cn}_{\mathrm{rev}}((S_O\setminus\{s\})\cup\{\hat{s}\})\).

Proof. Both claims follow directly from Definition 5 (Jaccard similarity lies in \([0,1]\) under the \(0/0\mathrel{\vcenter{:}}= 1\) convention) and Definition 6. ◻

3.1.0.2 Zero distortion.

By Lemma 3, \(d_{\mathrm{Cn}}(s,\hat{s})=0\) exactly when the single-symbol replacement preserves the full closure.

3.1.0.3 Remark (why single-symbol replacement).

The distortion \(d_{\mathrm{Cn}}(s,\hat{s})\) measures the semantic impact of modifying a log by one symbol while keeping the remaining facts fixed. This is the natural “local” perturbation in closure-based compression: although the edit is local at the syntactic level, its effect is global at the semantic level through \(\mathrm{Cn}_{\mathrm{rev}}\). This matches the reversible-logging viewpoint where a small change in the recorded history may enable/disable many rollback-relevant consequences.

3.2 Irredundant core and redundant part↩︎

Assumption 5 (Public canonical order). Encoder and decoder share a public canonical total order \(\preceq\) over \(\mathbb{S}\).

Definition 7 (Irredundant core via deletion scan). Define \(A=\mathrm{Atom}_{\mathrm{rev}}(S_O)\) by the deterministic deletion scan: start from \(A\leftarrow S_O\); scan \(s\in S_O\) in \(\preceq\)-order and delete \(s\) if \(s\in \mathrm{Cn}_{\mathrm{rev}}(A\setminus\{s\})\). Let \(J\mathrel{\vcenter{:}}= S_O\setminus A\).

Theorem 2 (Core properties). Under Assumptions 2 and 5, the core \(A\) satisfies:

  1. \(\mathrm{Cn}_{\mathrm{rev}}(A)=\mathrm{Cn}_{\mathrm{rev}}(S_O)\).

  2. \(\forall a\in A,\;a\notin \mathrm{Cn}_{\mathrm{rev}}(A\setminus\{a\})\) (irredundancy).

  3. \(A\) is uniquely determined by \((S_O,\mathrm{Cn}_{\mathrm{rev}},\preceq)\).

Proof. Let \(s_1\prec s_2\prec \cdots \prec s_m\) be the \(\preceq\)-increasing enumeration of \(S_O\). Set \(A^{(0)}\mathrel{\vcenter{:}}= S_O\). For \(k=1,\dots,m\), define \(A^{(k)}\) by \[A^{(k)}\mathrel{\vcenter{:}}= \begin{cases} A^{(k-1)}\setminus\{s_k\}, & \text{if } s_k\in \mathrm{Cn}_{\mathrm{rev}}\!\bigl(A^{(k-1)}\setminus\{s_k\}\bigr),\\ A^{(k-1)}, & \text{otherwise.} \end{cases}\] Let \(A\mathrel{\vcenter{:}}= A^{(m)}\).

(1) If \(s_k\) is deleted, then by assumption \(s_k\in \mathrm{Cn}_{\mathrm{rev}}(A^{(k)})\). Since \(A^{(k-1)}=A^{(k)}\cup\{s_k\}\subseteq \mathrm{Cn}_{\mathrm{rev}}(A^{(k)})\), monotonicity yields \(\mathrm{Cn}_{\mathrm{rev}}(A^{(k-1)})\subseteq \mathrm{Cn}_{\mathrm{rev}}(A^{(k)})\). The reverse inclusion \(\mathrm{Cn}_{\mathrm{rev}}(A^{(k)})\subseteq \mathrm{Cn}_{\mathrm{rev}}(A^{(k-1)})\) follows from \(A^{(k)}\subseteq A^{(k-1)}\) and monotonicity. Hence \(\mathrm{Cn}_{\mathrm{rev}}(A^{(k)})=\mathrm{Cn}_{\mathrm{rev}}(A^{(k-1)})\). If \(s_k\) is kept, then \(A^{(k)}=A^{(k-1)}\) and the closure is trivially unchanged. By induction over \(k\), \(\mathrm{Cn}_{\mathrm{rev}}(A)=\mathrm{Cn}_{\mathrm{rev}}(S_O)\).

(2) If some \(a\in A\) satisfied \(a\in \mathrm{Cn}_{\mathrm{rev}}(A\setminus\{a\})\), then when \(a\) was scanned it would have been deleted by the rule defining \(A\), contradicting \(a\in A\).

(3) The scan is deterministic given \((S_O,\mathrm{Cn}_{\mathrm{rev}},\preceq)\), hence \(A\) is unique. ◻

Proposition 3 (Redundant facts have zero distortion against any admissible reconstruction). Assume Assumption 4. For any \(j\in J\) and any \(\hat{s}\in \hat{\mathbb{S}}\), \[d_{\mathrm{Cn}}(j,\hat{s})=0.\]

Proof. Fix \(j\in J\). By Theorem 2(1), \(\mathrm{Cn}_{\mathrm{rev}}(S_O)=\mathrm{Cn}_{\mathrm{rev}}(A)\). Since \(j\notin A\), we have \(A\subseteq S_O\setminus\{j\}\). Thus, by monotonicity, \[\mathrm{Cn}_{\mathrm{rev}}(S_O)=\mathrm{Cn}_{\mathrm{rev}}(A)\subseteq \mathrm{Cn}_{\mathrm{rev}}(S_O\setminus\{j\})\subseteq \mathrm{Cn}_{\mathrm{rev}}(S_O),\] so \(\mathrm{Cn}_{\mathrm{rev}}(S_O\setminus\{j\})=\mathrm{Cn}_{\mathrm{rev}}(S_O)\).

Now let \(\hat{s}\in\hat{\mathbb{S}}\). By admissibility, \(\hat{s}\in \mathrm{Cn}_{\mathrm{rev}}(S_O)=\mathrm{Cn}_{\mathrm{rev}}(S_O\setminus\{j\})\). Hence \((S_O\setminus\{j\})\cup\{\hat{s}\}\subseteq \mathrm{Cn}_{\mathrm{rev}}(S_O\setminus\{j\})\), and by idempotence, \[\mathrm{Cn}_{\mathrm{rev}}((S_O\setminus\{j\})\cup\{\hat{s}\})=\mathrm{Cn}_{\mathrm{rev}}(S_O\setminus\{j\})=\mathrm{Cn}_{\mathrm{rev}}(S_O).\] Therefore the closures compared in Definition 6 coincide, so \(d_{\mathrm{Cn}}(j,\hat{s})=0\). ◻

3.3 Zero-distortion hypergraph and entropy law↩︎

Definition 8 (Zero-distortion reconstruction sets). For \(s\in S_O\), define \[R_0(s)\mathrel{\vcenter{:}}= \{ \hat{s}\in\hat{\mathbb{S}} : d_{\mathrm{Cn}}(s,\hat{s})=0\}.\]

Definition 9 (Core distribution). Let \(P_A\mathrel{\vcenter{:}}= P_O(A)\). When \(P_A>0\), define \(\pi_A(\cdot)\mathrel{\vcenter{:}}= P_O(\cdot \mid A)\). Let \(A^\star\sim \pi_A\) denote a random core symbol.

Definition 10 (Zero-distortion confusability hypergraph and hypergraph entropy). Define the hypergraph \(\Gamma_0\) on vertex set \(A\) by \[\Gamma_0 \mathrel{\vcenter{:}}= \Bigl\{ W\subseteq A: W\neq\emptyset,\;\bigcap_{a\in W}R_0(a)\neq\emptyset \Bigr\}.\] Define the hypergraph entropy \[H_{\Gamma_0}(\pi_A)\mathrel{\vcenter{:}}= \inf_{\substack{P_{W\mid A^\star}:\\ W\in\Gamma_0\;\text{a.s.},\;A^\star\in W\;\text{a.s.}}} I(A^\star;W),\] where \(W\) is a random subset of \(A\) taking values in \(\Gamma_0\).

This quantity is a hypergraph-valued analogue of confusability-based graph entropy (Körner) for zero-error settings [20], [21].

3.3.0.1 Witness-hyperedge view.

For each reconstruction symbol \(\hat{s}\in \hat{\mathbb{S}}\), define the induced witness set \[W_{\hat{s}}\mathrel{\vcenter{:}}= \{a\in A:\;\hat{s}\in R_0(a)\}.\] Then \(W_{\hat{s}}\in \Gamma_0\) whenever it is nonempty, since \(\hat{s}\in\bigcap_{a\in W_{\hat{s}}}R_0(a)\). Conversely, \(W\in\Gamma_0\) iff there exists some \(\hat{s}\in\hat{\mathbb{S}}\) such that \(W\subseteq W_{\hat{s}}\). Thus \(\Gamma_0\) is downward closed, and it can be visualized by representative witness hyperedges \(W_{\hat{s}}\) (cf.Figure 2, right).

Definition 11 (Semantic rate–distortion function). Let \(\hat{S}\) be generated from \(S\) via a test channel \(P_{\hat{S}\mid S}\) with \(\hat{S}\in\hat{\mathbb{S}}\). Define \[R_{\mathrm{sem}}(D) \mathrel{\vcenter{:}}= \inf_{P_{\hat{S}\mid S}: \mathbb{E}[d_{\mathrm{Cn}}(S,\hat{S})]\le D} I(S;\hat{S}).\]

3.3.0.2 Operational interpretation.

We interpret \(R_{\mathrm{sem}}(D)\) as the single-letter rate–distortion function of the memoryless extension in which \((S_1,\dots,S_n)\) are drawn i.i.d.from \(P_O\), and the encoder/decoder operates on blocks of length \(n\) with average distortion constraint. Under this standard setting, \(R_{\mathrm{sem}}(D)\) gives the optimal asymptotic rate; see, e.g., [9], [10].

The next theorem gives the exact zero-distortion rate in terms of a confusability hypergraph induced by the closure-preserving zero-distortion sets.

Theorem 4 (Zero-distortion hypergraph entropy law). Under Assumptions 34, the minimum achievable rate for zero distortion is \[R_{\mathrm{sem}}(0)=P_A \, H_{\Gamma_0}(\pi_A),\] with the convention \(P_A H_{\Gamma_0}(\pi_A)=0\) when \(P_A=0\).

Proof. If \(P_A=0\), then \(S\in J\) almost surely, so by Proposition 3 any admissible reconstruction yields zero distortion with \(I(S;\hat{S})\ge 0\), hence \(R_{\mathrm{sem}}(0)=0\).

Assume \(P_A>0\). Let \(\mathsf{B}\mathrel{\vcenter{:}}= \mathbf{1}[S\in A]\) be the core indicator. Consider any test channel \(P_{\hat{S}\mid S}\) achieving \(\mathbb{E}[d_{\mathrm{Cn}}(S,\hat{S})]=0\). Then \(d_{\mathrm{Cn}}(S,\hat{S})=0\) almost surely, hence \(\hat{S}\in R_0(S)\) almost surely.

Converse. By the chain rule and non-negativity of mutual information, \[I(S;\hat{S}) = I(\mathsf{B};\hat{S}) + I(S;\hat{S}\mid \mathsf{B}) \ge I(S;\hat{S}\mid \mathsf{B}=1)\,P_A.\] Conditioned on \(\mathsf{B}=1\), the random variable \(S\) has distribution \(\pi_A\), i.e., \(S\mid(\mathsf{B}=1)\equiv A^\star\). Thus \[I(S;\hat{S}) \ge P_A\, I(A^\star;\hat{S}).\] To expose the induced confusability structure, define the random subset \[W \mathrel{\vcenter{:}}= \{a\in A : \hat{S}\in R_0(a)\}.\] Then \(A^\star\in W\) almost surely (since \(\hat{S}\in R_0(A^\star)\) a.s.), and \(W\in\Gamma_0\) almost surely by construction: indeed, \(\hat{S}\in \bigcap_{a\in W} R_0(a)\), so the intersection is nonempty. Moreover, \(W\) is a measurable function of \(\hat{S}\), hence by data processing, \(I(A^\star;\hat{S}) \ge I(A^\star;W)\). Therefore, \[I(S;\hat{S}) \ge P_A\, I(A^\star;W) \ge P_A\, H_{\Gamma_0}(\pi_A).\] Taking the infimum over all zero-distortion channels yields \(R_{\mathrm{sem}}(0)\ge P_A H_{\Gamma_0}(\pi_A)\).

Achievability. Let \(P_{W\mid A^\star}\) be \(\epsilon\)-optimal in Definition 10, so that \(I(A^\star;W)\le H_{\Gamma_0}(\pi_A)+\epsilon\), with \(A^\star\in W\) and \(W\in\Gamma_0\) almost surely. Since \(\mathbb{S}\) (hence \(\hat{\mathbb{S}}\)) is finite, for each \(W\in\Gamma_0\) we can fix a selector \(\psi(W)\in \bigcap_{a\in W}R_0(a)\) (choose any element in the nonempty intersection). Define a test channel \(P_{\hat{S}\mid S}\) as follows:

  • If \(S=a\in A\), draw \(W\sim P_{W\mid A^\star}(\cdot\mid a)\) and output \(\hat{S}=\psi(W)\).

  • If \(S=j\in J\), output \(\hat{S}\) according to the marginal distribution of \(\psi(W)\) under \(A^\star\sim\pi_A\) and \(W\mid A^\star\).

By construction, when \(S\in A\) we have \(\hat{S}\in \bigcap_{a\in W}R_0(a)\subseteq R_0(S)\), hence zero distortion. When \(S\in J\), Proposition 3 ensures zero distortion for any admissible output, hence the channel achieves \(\mathbb{E}[d_{\mathrm{Cn}}(S,\hat{S})]=0\).

It remains to bound the rate. By construction, \(\hat{S}=\psi(W)\) is a (deterministic) function of \(W\), and hence \[I(A^\star;\hat{S}) \le I(A^\star;W)\] by the data processing inequality (Markov chain \(A^\star \to W \to \hat{S}\)).

Moreover, the output distribution under \(S\in J\) is chosen to match the unconditional output marginal induced by \(A^\star\sim\pi_A\) and \(W\mid A^\star\). Therefore \(\hat{S}\) has the same distribution under \(\mathsf{B}=0\) and \(\mathsf{B}=1\), and thus \(I(\mathsf{B};\hat{S})=0\). Using the chain rule, \[I(S;\hat{S}) = I(\mathsf{B};\hat{S}) + I(S;\hat{S}\mid \mathsf{B}) = P_A\, I(A^\star;\hat{S}) \le P_A\, I(A^\star;W) \le P_A\,(H_{\Gamma_0}(\pi_A)+\epsilon).\] Since \(\epsilon>0\) is arbitrary, \(R_{\mathrm{sem}}(0)\le P_A H_{\Gamma_0}(\pi_A)\). ◻

Figure 2: Two-view visualization of closure-preserving semantic RD at zero distortion.Left (core/closure view). The observed log S_O decomposes canonically as S_O=A\uplus J,where the irredundant core A=\mathrm{Atom}_{\mathrm{rev}}(S_O) preserves closure\mathrm{Cn}_{\mathrm{rev}}(A)=\mathrm{Cn}_{\mathrm{rev}}(S_O), while the redundant part J is distortion-invisible under admissibility(\forall j\in J,\forall \hat{s}\in\hat{\mathbb{S}}:\;d_{\mathrm{Cn}}(j,\hat{s})=0).Dashed arrows indicate exemplar zero-distortion witnesses \hat{s}\in R_0(s) for single-symbol replacement.The labels P_A=P_O(A) and \pi_A(a)=P_O(a\mid A) highlight the core probability mass and the core-conditioned distribution.Right (confusability hypergraph view). Each reconstruction symbol \hat{s}\in\hat{\mathbb{S}} induces a witness hyperedgeW_{\hat{s}}\mathrel{\vcenter{:}}= \{a\in A:\;\hat{s}\in R_0(a)\}, and such hyperedges encode which core symbols are mutually confusable atzero distortion. The confusability hypergraph \Gamma_0 (Definition 10) consists of all nonemptyW\subseteq A with \bigcap_{a\in W}R_0(a)\neq\emptyset (hence it is downward closed); the figure depicts representativehyperedges W_{\hat{s}} witnessing these overlaps.The resulting hypergraph entropy yields the exact perfect-rollback rate R_{\mathrm{sem}}(0)=P_A\,H_{\Gamma_0}(\pi_A).

Figure 2 visualizes the key structural invariants: the partition \(S_O=A\uplus J\) with \(\mathrm{Cn}_{\mathrm{rev}}(A)=\mathrm{Cn}_{\mathrm{rev}}(S_O)\), and the way overlaps of \(R_0(a)\) over \(a\in A\) induce \(\Gamma_0\) and hence \(R_{\mathrm{sem}}(0)\).

Corollary 1 (Disjoint-core formula). If the core is disjoint, i.e., \(R_0(a_1)\cap R_0(a_2)=\emptyset\) for all distinct \(a_1,a_2\in A\), and \(A\subseteq \hat{\mathbb{S}}\), then \[R_{\mathrm{sem}}(0)=P_A H(\pi_A).\]

Proof. Under disjointness, the hypergraph \(\Gamma_0\) has only singleton hyperedges, hence \(H_{\Gamma_0}(\pi_A)=H(\pi_A)\). Substitute into Theorem 4. ◻

3.3.0.3 From \(D=0\) to \(D>0\).

We now extend the zero-distortion law (Theorem 4) to general \(D\ge 0\) and show that, under admissibility, the full curve \(R_{\mathrm{sem}}(D)\) reduces to a core-only problem scaled by \(P_A=P_O(A)\).

3.4 General distortion: core-only factorization of the semantic rate–distortion function↩︎

3.4.0.1 Remark (effective distortion range).

Since \(d_{\mathrm{Cn}}\in[0,1]\) and \(d_{\mathrm{Cn}}(j,\hat{s})=0\) for all \(j\in J\) under admissibility (Proposition 3), the maximum achievable average distortion for the full source is \(D_{\max}=P_A\). Hence \(R_{\mathrm{sem}}(D)=0\) for all \(D\ge P_A\).

For convenience, let \(\mathsf{B}\mathrel{\vcenter{:}}= \mathbf{1}[S\in A]\) denote the indicator of whether the source symbol lies in the core.

Theorem 5 (Core factorization for all \(D\)). Assume Assumption 4. Let \(P_A\mathrel{\vcenter{:}}= P_O(A)\). Then for all \(D\ge 0\), \[R_{\mathrm{sem}}(D)= \begin{cases} 0, & P_A=0,\\[1mm] P_A \cdot R_A\!\bigl(\min\{D/P_A,\,1\}\bigr), & P_A>0, \end{cases}\] where \(R_A(\delta)\) is the rate–distortion function of the core sub-source* \(A^\star\sim \pi_A(\cdot)=P_O(\cdot\mid A)\) under the same single-symbol closure distortion \(d_{\mathrm{Cn}}\) (Definition 6, with the same reference log \(S_O\)), namely \[R_A(\delta)\mathrel{\vcenter{:}}= \inf_{P_{\hat{S}\mid A^\star}:\;\mathbb{E}[d_{\mathrm{Cn}}(A^\star,\hat{S})]\le \delta} I(A^\star;\hat{S}).\] In particular, since \(d_{\mathrm{Cn}}\in[0,1]\), we have \(R_{\mathrm{sem}}(D)=0\) for all \(D\ge P_A\).*

Proof. The argument is the same core-decomposition reduction as in [13], specialized to the reversible closure \(\mathrm{Cn}_{\mathrm{rev}}\).

If \(P_A=0\), then \(S\in J\) almost surely and, by Proposition 3, every admissible reconstruction achieves \(\mathbb{E}[d_{\mathrm{Cn}}(S,\hat{S})]=0\). Hence \(R_{\mathrm{sem}}(D)=0\) for all \(D\ge 0\).

Assume \(P_A>0\) and let \(\mathsf{B}\mathrel{\vcenter{:}}= \mathbf{1}[S\in A]\).

Step 1 (distortion depends only on the core). By Proposition 3, \(d_{\mathrm{Cn}}(S,\hat{S})=0\) almost surely on \(\{\mathsf{B}=0\}\) for any test channel. Therefore, \[\mathbb{E}[d_{\mathrm{Cn}}(S,\hat{S})] = \mathbb{E}[d_{\mathrm{Cn}}(S,\hat{S})\,\mathbf{1}[\mathsf{B}=1]] = P_A\,\mathbb{E}[d_{\mathrm{Cn}}(A^\star,\hat{S})\mid \mathsf{B}=1],\] where \(A^\star\sim\pi_A\) denotes \(S\) conditioned on \(\{\mathsf{B}=1\}\). In particular, any constraint \(\mathbb{E}[d_{\mathrm{Cn}}(S,\hat{S})]\le D\) implies \(\mathbb{E}[d_{\mathrm{Cn}}(A^\star,\hat{S})\mid \mathsf{B}=1]\le \min\{D/P_A,1\}\).

Step 2 (converse). By the chain rule and non-negativity, \[I(S;\hat{S})=I(\mathsf{B};\hat{S})+I(S;\hat{S}\mid \mathsf{B}) \ge P_A\,I(S;\hat{S}\mid \mathsf{B}=1) = P_A\,I(A^\star;\hat{S}).\] The induced conditional channel \(P_{\hat{S}\mid A^\star}\) satisfies the core distortion constraint from Step 1, hence \(I(A^\star;\hat{S}) \ge R_A(\min\{D/P_A,1\})\). Therefore \(I(S;\hat{S})\ge P_A R_A(\min\{D/P_A,1\})\), and taking the infimum yields the desired lower bound.

Step 3 (achievability). Let \(P^{\star}_{\hat{S}\mid A^\star}\) be optimal (or \(\epsilon\)-optimal) for \(R_A(\min\{D/P_A,1\})\), and let \(P^{\star}_{\hat{S}}\) be its induced output marginal under \(A^\star\sim\pi_A\). Define a channel on \(S\) by \[P_{\hat{S}\mid S}(\cdot\mid s)\mathrel{\vcenter{:}}= \begin{cases} P^{\star}_{\hat{S}\mid A^\star}(\cdot\mid s), & s\in A,\\ P^{\star}_{\hat{S}}(\cdot), & s\in J. \end{cases}\] It is admissible since \(\hat{S}\in\hat{\mathbb{S}}\) by construction, and it achieves \(\mathbb{E}[d_{\mathrm{Cn}}(S,\hat{S})]=P_A\,\mathbb{E}[d_{\mathrm{Cn}}(A^\star,\hat{S})]\le D\). Moreover, \(\hat{S}\) has the same marginal distribution under \(\mathsf{B}=0\) and \(\mathsf{B}=1\), so \(I(\mathsf{B};\hat{S})=0\) and \[I(S;\hat{S})=P_A\,I(A^\star;\hat{S})=P_A\,R_A(\min\{D/P_A,1\}) \;(\text{up to }\epsilon).\] Letting \(\epsilon\to 0\) yields the upper bound and completes the proof. ◻

4 Rollback Safety via Semantic Rate–Distortion↩︎

Section 3 gives a semantic RD theory under closure-preserving fidelity. Here we connect it to rollback computing in two steps: (i) we show that controlling the semantic distortion \(d_{\mathrm{Cn}}\) already yields exact and computable rollback-safety guarantees; (ii) we then introduce a rollback-task loss \(\ell_{\mathrm{rb}}\) that provides tighter, task-aligned guarantees and a refined RD tradeoff.

4.1 Rollback safety induced by closure-preserving fidelity↩︎

We work with the same single-symbol edit model as in Section 3.

Definition 12 (Edited log and violation indicators). Fix the reference log \(S_O\subseteq \mathbb{S}\). For \(s\in S_O\) and \(\hat{s}\in \hat{\mathbb{S}}\), define the edited log \[S_O[s\leftarrow \hat{s}]\;\mathrel{\vcenter{:}}=\;(S_O\setminus\{s\})\cup\{\hat{s}\}.\] Define the rollback violation indicator \[\mathsf{Viol}(s,\hat{s})\;\mathrel{\vcenter{:}}=\;\mathbf{1}\!\big[\mathsf{RB}(S_O[s\leftarrow \hat{s}])\neq \mathsf{RB}(S_O)\big],\] and the closure violation indicator \[\mathsf{Viol}_{\mathrm{Cn}}(s,\hat{s})\;\mathrel{\vcenter{:}}=\;\mathbf{1}\!\big[\mathrm{Cn}_{\mathrm{rev}}(S_O[s\leftarrow \hat{s}])\neq \mathrm{Cn}_{\mathrm{rev}}(S_O)\big],\] where \(\mathsf{RB}(S)=\mathrm{Cn}_{\mathrm{rev}}(S)\cap \mathbb{Q}_{\mathrm{rb}}\) (Definition 3).

Lemma 4 (Closure invariance implies rollback invariance). For all \(s\in S_O\) and \(\hat{s}\in \hat{\mathbb{S}}\), \[\mathsf{Viol}(s,\hat{s})\;\le\;\mathsf{Viol}_{\mathrm{Cn}}(s,\hat{s}).\] Consequently, for any test channel \(P_{\hat{S}\mid S}\), \[\Pr[\mathsf{Viol}(S,\hat{S})=1]\;\le\;\Pr[\mathsf{Viol}_{\mathrm{Cn}}(S,\hat{S})=1].\]

Proof. If \(\mathrm{Cn}_{\mathrm{rev}}(S_O[s\leftarrow \hat{s}])=\mathrm{Cn}_{\mathrm{rev}}(S_O)\), then intersecting both sides with \(\mathbb{Q}_{\mathrm{rb}}\) gives \(\mathsf{RB}(S_O[s\leftarrow \hat{s}])=\mathsf{RB}(S_O)\) (Proposition 1), hence \(\mathsf{Viol}(s,\hat{s})=0\). ◻

Lemma 5 (A distortion-to-closure-violation bound). For all \(s\in S_O\) and \(\hat{s}\in \hat{\mathbb{S}}\), \[\mathsf{Viol}_{\mathrm{Cn}}(s,\hat{s})\;\le\;|\mathbb{S}|\cdot d_{\mathrm{Cn}}(s,\hat{s}).\] Consequently, for any test channel, \[\Pr[\mathsf{Viol}_{\mathrm{Cn}}(S,\hat{S})=1]\;\le\;|\mathbb{S}|\cdot \mathbb{E}[d_{\mathrm{Cn}}(S,\hat{S})].\]

Proof. If \(\mathsf{Viol}_{\mathrm{Cn}}(s,\hat{s})=0\) then the inequality is trivial. Otherwise let \[U \;\mathrel{\vcenter{:}}=\;\mathrm{Cn}_{\mathrm{rev}}(S_O)\;\cup\;\mathrm{Cn}_{\mathrm{rev}}(S_O[s\leftarrow \hat{s}]).\] Then \(U\subseteq \mathbb{S}\), so \(1\le |U|\le |\mathbb{S}|\). Since the two closures are not equal, their intersection is a strict subset of the union, hence \(|\mathrm{Cn}_{\mathrm{rev}}(S_O)\cap \mathrm{Cn}_{\mathrm{rev}}(S_O[s\leftarrow \hat{s}])|\le |U|-1\). By Definition 5, \[\mathsf F_{\mathrm{Cn}}\bigl(S_O,\;S_O[s\leftarrow \hat{s}]\bigr) =\frac{|\cap|}{|U|} \le \frac{|U|-1}{|U|} =1-\frac{1}{|U|},\] so \(d_{\mathrm{Cn}}(s,\hat{s})=1-\mathsf F_{\mathrm{Cn}}\ge 1/|U|\ge 1/|\mathbb{S}|\). Thus \(\mathbf{1}[\mathsf{Viol}_{\mathrm{Cn}}(s,\hat{s})=1]\le |\mathbb{S}|\cdot d_{\mathrm{Cn}}(s,\hat{s})\), and taking expectations yields the probability bound. ◻

Theorem 6 (Exact perfect rollback-safety rate under closure-preserving fidelity). Under Assumptions 34, any scheme achieving zero semantic distortion \(\mathbb{E}[d_{\mathrm{Cn}}(S,\hat{S})]=0\) satisfies \[\Pr[\mathsf{Viol}(S,\hat{S})=1]=0.\] Moreover, the minimum rate required to guarantee perfect rollback safety via closure preservation equals \[\inf_{P_{\hat{S}\mid S}:\;\mathbb{E}[d_{\mathrm{Cn}}(S,\hat{S})]=0} I(S;\hat{S}) =R_{\mathrm{sem}}(0) =P_A\,H_{\Gamma_0}(\pi_A),\] where the last equality is Theorem 4.

Proof. If \(\mathbb{E}[d_{\mathrm{Cn}}(S,\hat{S})]=0\) then \(d_{\mathrm{Cn}}(S,\hat{S})=0\) almost surely, hence \(\mathrm{Cn}_{\mathrm{rev}}(S_O[S\leftarrow \hat{S}])=\mathrm{Cn}_{\mathrm{rev}}(S_O)\) almost surely by Lemma 3. Lemma 4 then gives \(\mathsf{Viol}(S,\hat{S})=0\) almost surely. The rate identity is by Definition 11 and Theorem 4. ◻

Corollary 2 (A conservative approximate rollback-safety design rule). For any test channel with \(\mathbb{E}[d_{\mathrm{Cn}}(S,\hat{S})]\le D\), \[\Pr[\mathsf{Viol}(S,\hat{S})=1]\;\le\;|\mathbb{S}|\cdot D.\] In particular, a sufficient condition for \(\Pr[\mathsf{Viol}(S,\hat{S})=1]\le \varepsilon\) is \(D\le \varepsilon/|\mathbb{S}|\), and the corresponding semantic rate bound is \[\text{rate}\;\ge\;R_{\mathrm{sem}}(\varepsilon/|\mathbb{S}|) \;=\;P_A\cdot R_A\!\Bigl(\min\Bigl\{\frac{\varepsilon}{|\mathbb{S}|P_A},1\Bigr\}\Bigr),\] where the last identity uses Theorem 5.

Proof. Combine Lemma 4 and Lemma 5. The rate expression is Theorem 5 applied at \(D=\varepsilon/|\mathbb{S}|\). ◻

4.2 Rollback-task loss and rollback-task rate–distortion↩︎

Closure-preserving fidelity yields conservative guarantees. We now introduce a task-aligned loss that measures how many rollback-relevant judgments change.

Definition 13 (Rollback-task loss: “how many rollback judgments are wrong?”). Fix the reference log \(S_O\subseteq\mathbb{S}\). For \(s\in S_O\) and \(\hat{s}\in \hat{\mathbb{S}}\), define \[\ell_{\mathrm{rb}}(s,\hat{s}) \;\mathrel{\vcenter{:}}=\; \bigl|\mathsf{RB}(S_O[s\leftarrow \hat{s}])\;\Delta\;\mathsf{RB}(S_O)\bigr|,\] where \(\Delta\) denotes symmetric difference.

Lemma 6 (Range and a tight safety bridge). For all \(s\in S_O\) and \(\hat{s}\in\hat{\mathbb{S}}\), \[0\le \ell_{\mathrm{rb}}(s,\hat{s})\le |\mathbb{Q}_{\mathrm{rb}}|, \qquad \mathsf{Viol}(s,\hat{s})\;\le\;\mathbf{1}[\ell_{\mathrm{rb}}(s,\hat{s})\ge 1]\;\le\;\ell_{\mathrm{rb}}(s,\hat{s}).\] Consequently, for any test channel \(P_{\hat{S}\mid S}\), \[\Pr[\mathsf{Viol}(S,\hat{S})=1]\;\le\;\mathbb{E}[\ell_{\mathrm{rb}}(S,\hat{S})].\]

Proof. The range bound holds because \(\mathsf{RB}(\cdot)\subseteq\mathbb{Q}_{\mathrm{rb}}\). If \(\mathsf{Viol}(s,\hat{s})=1\) then the symmetric difference is nonempty, so \(\ell_{\mathrm{rb}}(s,\hat{s})\ge 1\). Since \(\ell_{\mathrm{rb}}\) is a nonnegative integer, \(\mathbf{1}[\ell_{\mathrm{rb}}\ge 1]\le \ell_{\mathrm{rb}}\). Taking expectations gives the final inequality. ◻

Definition 14 (Rollback-task rate–distortion function). Let \(\hat{S}\) be generated from \(S\sim P_O\) via a test channel \(P_{\hat{S}\mid S}\) over \(\hat{\mathbb{S}}\). Define \[R_{\mathrm{rb}}(L) \;\mathrel{\vcenter{:}}=\; \inf_{P_{\hat{S}\mid S}:\;\mathbb{E}[\ell_{\mathrm{rb}}(S,\hat{S})]\le L}\;I(S;\hat{S}).\]

4.2.0.1 Admissibility and redundancy invisibility.

As in Section 3, admissibility (\(\hat{\mathbb{S}}\subseteq \mathrm{Cn}_{\mathrm{rev}}(S_O)\), Assumption 4) eliminates the redundant part \(J\) from the information-theoretic tradeoff.

Lemma 7 (Redundant facts are rollback-task invisible under admissibility). Assume Assumption 4. For any \(j\in J\) and any \(\hat{s}\in\hat{\mathbb{S}}\), \[\ell_{\mathrm{rb}}(j,\hat{s})=0.\]

Proof. By Proposition 3, for \(j\in J\) and any admissible \(\hat{s}\), \(\mathrm{Cn}_{\mathrm{rev}}(S_O[j\leftarrow \hat{s}])=\mathrm{Cn}_{\mathrm{rev}}(S_O)\). Intersect with \(\mathbb{Q}_{\mathrm{rb}}\) to obtain \(\mathsf{RB}(S_O[j\leftarrow \hat{s}])=\mathsf{RB}(S_O)\), hence \(\ell_{\mathrm{rb}}(j,\hat{s})=0\). ◻

Definition 15 (Core rollback-task RD function). Let \(P_A\mathrel{\vcenter{:}}= P_O(A)\). When \(P_A>0\), let \(\pi_A(\cdot)=P_O(\cdot\mid A)\) and \(A^\star\sim \pi_A\). Define \[R_{\mathrm{rb},A}(\lambda) \;\mathrel{\vcenter{:}}=\; \inf_{P_{\hat{S}\mid A^\star}:\;\mathbb{E}[\ell_{\mathrm{rb}}(A^\star,\hat{S})]\le \lambda}\;I(A^\star;\hat{S}),\] where \(\ell_{\mathrm{rb}}(a,\hat{s})\) is evaluated with the same reference log \(S_O\) via Definition 13.

Theorem 7 (Core-only factorization of \(R_{\mathrm{rb}}(L)\)). Assume Assumption 4. Let \(P_A\mathrel{\vcenter{:}}= P_O(A)\). Then for all \(L\ge 0\), \[R_{\mathrm{rb}}(L)= \begin{cases} 0, & P_A=0,\\[1mm] P_A\cdot R_{\mathrm{rb},A}\!\bigl(\min\{L/P_A,\;|\mathbb{Q}_{\mathrm{rb}}|\}\bigr), & P_A>0. \end{cases}\] In particular, \(R_{\mathrm{rb}}(L)=0\) for all \(L\ge P_A|\mathbb{Q}_{\mathrm{rb}}|\).

Proof. If \(P_A=0\), then \(S\in J\) almost surely and \(\ell_{\mathrm{rb}}(S,\hat{S})=0\) for any admissible \(\hat{S}\) by Lemma 7, so \(R_{\mathrm{rb}}(L)=0\).

Assume \(P_A>0\) and let \(\mathsf B\mathrel{\vcenter{:}}= \mathbf{1}[S\in A]\). By Lemma 7, \(\ell_{\mathrm{rb}}(S,\hat{S})=0\) almost surely on \(\{\mathsf B=0\}\), hence \[\mathbb{E}[\ell_{\mathrm{rb}}(S,\hat{S})] = P_A\,\mathbb{E}[\ell_{\mathrm{rb}}(A^\star,\hat{S})\mid \mathsf B=1].\] Moreover, \[I(S;\hat{S})=I(\mathsf B;\hat{S})+I(S;\hat{S}\mid \mathsf B)\ge P_A\,I(A^\star;\hat{S}).\] The remaining converse/achievability steps follow the same marginal-matching reduction pattern as in Theorem 5. ◻

4.3 Perfect rollback: hypergraph law and comparison with perfect closure preservation↩︎

Definition 16 (Zero-loss reconstruction sets for rollback). For \(s\in S_O\), define \[R^{\mathrm{rb}}_0(s)\mathrel{\vcenter{:}}= \{\hat{s}\in\hat{\mathbb{S}}:\;\ell_{\mathrm{rb}}(s,\hat{s})=0\}.\]

Definition 17 (Rollback confusability hypergraph and hypergraph entropy). Define the rollback confusability hypergraph \(\Gamma^{\mathrm{rb}}_0\) on vertex set \(A\) by \[\Gamma^{\mathrm{rb}}_0 \mathrel{\vcenter{:}}= \Bigl\{ W\subseteq A:\;W\neq\emptyset,\;\bigcap_{a\in W}R^{\mathrm{rb}}_0(a)\neq\emptyset \Bigr\}.\] Define its hypergraph entropy \[H_{\Gamma^{\mathrm{rb}}_0}(\pi_A)\mathrel{\vcenter{:}}= \inf_{\substack{P_{W\mid A^\star}:\\ W\in\Gamma^{\mathrm{rb}}_0\;\text{a.s.},\;A^\star\in W\;\text{a.s.}}} I(A^\star;W).\]

Theorem 8 (Perfect-rollback hypergraph entropy law). Under Assumptions 34, the minimum achievable rate for perfect rollback* \(\mathbb{E}[\ell_{\mathrm{rb}}(S,\hat{S})]=0\) is \[R_{\mathrm{rb}}(0)=P_A\,H_{\Gamma^{\mathrm{rb}}_0}(\pi_A),\] with the convention \(P_A H_{\Gamma^{\mathrm{rb}}_0}(\pi_A)=0\) when \(P_A=0\).*

Proof. The proof follows the same hypergraph-entropy converse/achievability pattern as Theorem 4, with \(R^{\mathrm{rb}}_0(\cdot)\) in place of \(R_0(\cdot)\) and \(\ell_{\mathrm{rb}}\) in place of \(d_{\mathrm{Cn}}\). Redundant symbols contribute neither loss nor rate under admissibility (Lemma 7), so the optimization reduces to the core and yields the factor \(P_A\). ◻

Lemma 8 (Monotonicity of hypergraph entropy under hyperedge enlargement). Let \(\Gamma\subseteq \Gamma'\) be two families of nonempty subsets of \(A\). Then \[H_{\Gamma'}(\pi_A)\;\le\;H_{\Gamma}(\pi_A).\]

Proof. In the definition of \(H_{\Gamma}(\pi_A)\), the infimum is taken over channels \(P_{W\mid A^\star}\) with \(W\in\Gamma\) a.s. Replacing \(\Gamma\) by the larger family \(\Gamma'\) enlarges the feasible set, hence the infimum cannot increase. ◻

Proposition 9 (Perfect rollback is no harder than perfect closure preservation). Under Assumptions 34, \[R_{\mathrm{rb}}(0)\le R_{\mathrm{sem}}(0).\] Moreover, if rollback-equivalence coincides with full closure equivalence on the admissible reconstruction class (e.g., when \(\mathbb{Q}_{\mathrm{rb}}=\mathbb{S}\)), then \(R_{\mathrm{rb}}(0)=R_{\mathrm{sem}}(0)\).

Proof. For every \(s\in S_O\), closure preservation implies rollback preservation (Proposition 1), hence \(R_0(s)\subseteq R^{\mathrm{rb}}_0(s)\). Therefore \(\Gamma_0\subseteq \Gamma^{\mathrm{rb}}_0\), and Lemma 8 yields \(H_{\Gamma^{\mathrm{rb}}_0}(\pi_A)\le H_{\Gamma_0}(\pi_A)\). Multiply by \(P_A\) and apply Theorem 4 and Theorem 8. The equality condition follows from the stated equivalence. ◻

4.3.0.1 Implication for computable design loops.

The finite-alphabet pipeline of Section 5.3.3 applies to both objectives: one may compute \(R_A(\delta)\) using \(d_{\mathrm{Cn}}\), or compute \(R_{\mathrm{rb},A}(\lambda)\) using \(\ell_{\mathrm{rb}}\), via the same Blahut–Arimoto machinery after constructing the corresponding distortion/loss matrix.

5 RCN/rPES Instantiation: Discipline-Indexed Closures and Core Structure↩︎

This section instantiates closure-preserving semantic rate–distortion on the reversible causal nets (RCN) and reversible prime event structures (rPES) correspondence of [7]. Our goal here is theoretical: define a discipline-indexed family of monotone closures capturing rollback-relevant semantics, and derive the resulting closure cores and zero-distortion confusability structure. Section 6 then reports the numerical and Monte Carlo evidence.

The discipline-indexed closures defined in this section are not merely modeling choices: combined with the safety theorems of Section 4, they induce discipline-indexed lower bounds on the minimum logging rate required for perfect rollback safety and computable rate budgets for prescribed rollback-violation probability targets. In particular, once \(\mathrm{Cn}_{\mathrm{rev}}\) is instantiated as \(\mathrm{Cn}^{\mathrm{disc}}_{\mathrm{rcn}}\), Theorem 6 identifies the exact perfect-safety rate \(R_{\mathrm{sem}}(0)\), while Corollary 2 and Lemma 6 turn RD design objectives into explicit (conservative or tight) rollback-safety guarantees.

5.1 RCN/rPES background, logging interface, and discipline-indexed closures↩︎

We adopt the rcn setting of [7]. Let \(\overline{T}\) be the finite set of forward transitions and \(\underline{T}\) the set of backward transitions, with pairing \(\mathsf{pair}:\underline{T}\to\overline{T}\). Forward causality is induced by inhibitor arcs: \[t\;\ell\;t' \quad\Longleftrightarrow\quad {^\bullet t}\cap {^\circ t'}\neq\emptyset,\] and forward conflict is induced by shared preset: \[t\;\#\;t' \quad\Longleftrightarrow\quad {^\bullet t}\cap {^\bullet t'}\neq\emptyset.\] As in Sections 24, an execution state is logged as a finite fact base.

5.1.0.1 Configuration and log.

A (forward) configuration is a finite set \(X\subseteq \overline{T}\) of forward transitions currently present. The run-specific fact base is \[S_O^{\mathrm{rcn}}(X)\;\mathrel{\vcenter{:}}=\;\{\mathsf{In}(t): t\in X\}.\] Static net structure facts (preset/inhibitor/pairing) live in a background theory \(\mathcal{B}_{\mathrm{rcn}}\) [7]. Concretely, \(\mathcal{B}_{\mathrm{rcn}}\) contains ground facts for \(\mathsf{Pre}(p,t)\), \(\mathsf{Inhib}(p,t)\), and the pairing map (e.g., a predicate \(\mathsf{Pair}(\underline{t},t)\) encoding \(\mathsf{pair}(\underline{t})=t\)), so that \(\mathrm{Cn}_{\mathrm{rev}}(S)\) reasons over \(\mathcal{B}_{\mathrm{rcn}}\cup S\) rather than requiring these structural facts to be logged per run.

A central message of [7] is that different reversing disciplines (causal, cause-respecting, inverse causal, out-of-causal-order) change which facts are rollback-relevant. To capture this systematically within our closure-preserving interface, we define a discipline-indexed family of monotone Horn systems \(\mathsf{PS}^{\mathrm{disc}}_{\mathrm{rcn}}\) inducing closures \(\mathrm{Cn}^{\mathrm{disc}}_{\mathrm{rcn}}\).

5.1.1 Common structural rules: causality and conflict evidence↩︎

We use the following shared predicates in \(\Sigma_{\mathrm{rev}}\): \[\mathsf{Pre}(p,t),\;\mathsf{Inhib}(p,t),\;\mathsf{In}(t),\; \mathsf{Cause}(t,t'),\;\mathsf{Cause}^\star(t,t'),\; \mathsf{Conf}(t,t').\] All ground \(\mathsf{Pre}(\cdot,\cdot)\) and \(\mathsf{Inhib}(\cdot,\cdot)\) facts are assumed to be part of the background theory \(\mathcal{B}_{\mathrm{rcn}}\). We write \(\mathsf{Conf}(\cdot,\cdot)\) as a shorthand for the conflict predicate \(\mathsf{Conflict}(\cdot,\cdot)\) introduced in Section 2. Rules (R1)–(R2) provide a fact-level encoding of the structural relations \(t\;\ell\;t'\) and \(t\;\#\;t'\) introduced above: \(\mathsf{Cause}(t,t')\) captures inhibitor-induced causality, and \(\mathsf{Conf}(t,t')\) captures shared-preset conflict.

5.1.1.1 (R1) Inhibitor-induced causality and its transitive closure.

\[\mathsf{Pre}(p,t)\wedge \mathsf{Inhib}(p,t')\Rightarrow \mathsf{Cause}(t,t'), \qquad \mathsf{Cause}(t,t')\Rightarrow \mathsf{Cause}^\star(t,t'),\] \[\mathsf{Cause}^\star(t,u)\wedge \mathsf{Cause}^\star(u,t')\Rightarrow \mathsf{Cause}^\star(t,t').\]

5.1.1.2 (R2) Conflict evidence (structural).

\[\mathsf{Pre}(p,t)\wedge \mathsf{Pre}(p,t')\wedge (t\neq t')\Rightarrow \mathsf{Conf}(t,t').\] We treat \(t\neq t'\) as a built-in inequality predicate on constants (standard in Datalog-style presentations).

5.1.2 Causal-consistent (“causal”) discipline closure↩︎

5.1.2.1 (CC1) Semantic downward closure of presence.

\[\mathsf{In}(t)\wedge \mathsf{Cause}^\star(u,t)\Rightarrow \mathsf{In}(u).\]

5.1.2.2 (CC2) Non-maximality and rollback blockers.

\[\mathsf{In}(t)\wedge \mathsf{Cause}^\star(t,u)\wedge \mathsf{In}(u)\Rightarrow \mathsf{NonMax}(t), \qquad \mathsf{NonMax}(t)\Rightarrow \mathsf{Blocked}(\underline{t}).\] Optionally record order constraints: \[\mathsf{In}(t)\wedge \mathsf{In}(u)\wedge \mathsf{Cause}^\star(t,u)\Rightarrow \mathsf{MustUndoBefore}(\underline{t},\underline{u}).\]

5.1.2.3 Closure and rollback query set.

Let \(\mathsf{PS}^{\mathrm{causal}}_{\mathrm{rcn}}\) be the Horn system comprising (R1)–(R2) plus (CC1)–(CC2). Define \[\mathrm{Cn}^{\mathrm{causal}}_{\mathrm{rcn}}(S)\;\mathrel{\vcenter{:}}=\;\{s\in\mathbb{S}:\;\mathcal{B}_{\mathrm{rcn}}\cup S\vdash_{\mathsf{PS}^{\mathrm{causal}}_{\mathrm{rcn}}} s\}, \quad \mathbb{Q}^{\mathrm{causal}}_{\mathrm{rb}}\mathrel{\vcenter{:}}= \{\mathsf{Blocked}(\underline{t}),\mathsf{NonMax}(t),\mathsf{MustUndoBefore}(\underline{t},\underline{u})\}.\]

5.1.3 Cause-respecting discipline closure↩︎

5.1.3.1 Sustained causation evidence.

We introduce \(\mathsf{Sust}(t,u)\), intended to represent the sustained causation relation \(\ll\) in [7]. For our purposes it is sufficient to treat \(\mathsf{Sust}\) as either (i) a background predicate in \(\mathcal{B}_{\mathrm{rcn}}\), or (ii) a derived predicate computed by a fixed (finite) Horn rule set.

5.1.3.2 (CR1) Sustained-nonmaximality and blockers.

\[\mathsf{In}(t)\wedge \mathsf{Sust}(t,u)\wedge \mathsf{In}(u)\Rightarrow \mathsf{NonMax}^{\ll}(t), \qquad \mathsf{NonMax}^{\ll}(t)\Rightarrow \mathsf{Blocked}(\underline{t}).\]

5.1.3.3 Closure and query set.

Let \(\mathsf{PS}^{\mathrm{cr}}_{\mathrm{rcn}}\) be (R1)–(R2) plus (CC1) plus (CR1). Define \[\mathrm{Cn}^{\mathrm{cr}}_{\mathrm{rcn}}(S)\mathrel{\vcenter{:}}= \{s:\mathcal{B}_{\mathrm{rcn}}\cup S\vdash_{\mathsf{PS}^{\mathrm{cr}}_{\mathrm{rcn}}} s\}, \quad \mathbb{Q}^{\mathrm{cr}}_{\mathrm{rb}}\mathrel{\vcenter{:}}= \{\mathsf{Blocked}(\underline{t}),\mathsf{NonMax}^{\ll}(t)\}.\]

5.1.4 Inverse causal discipline closure↩︎

5.1.4.1 Why (CC1) is not assumed under inverse-causal reversibility.

In causal-consistent settings, forward presence is downward closed: if a consequence is present, then its causes are present as well, which is precisely what (CC1) captures in a monotone proof system. In contrast, inverse-causal (and more generally out-of-causal-order) reversibility may admit states in which a cause has been undone while some of its former consequences remain present. Therefore downward closure of \(\mathsf{In}(\cdot)\) is not a discipline-invariant semantic law, and we do not include (CC1) in \(\mathsf{PS}^{\mathrm{inv}}_{\mathrm{rcn}}\). This is exactly the mechanism by which inverse-causal rollback evidence can force additional log atoms into the closure core (Section 5.2).

Inverse causal reversibility changes rollback gating: undoing is prevented by the presence of causes rather than consequences [7].

5.1.4.2 (IC1) Blockers from causes present.

\[\mathsf{In}(u)\wedge \mathsf{Cause}^\star(u,t)\Rightarrow \mathsf{CausePresent}(u,t), \qquad \mathsf{CausePresent}(u,t)\Rightarrow \mathsf{Blocked}(\underline{t}).\]

5.1.4.3 Closure and query set.

Let \(\mathsf{PS}^{\mathrm{inv}}_{\mathrm{rcn}}\) be (R1)–(R2) plus (IC1). Define \[\mathrm{Cn}^{\mathrm{inv}}_{\mathrm{rcn}}(S)\mathrel{\vcenter{:}}= \{s:\mathcal{B}_{\mathrm{rcn}}\cup S\vdash_{\mathsf{PS}^{\mathrm{inv}}_{\mathrm{rcn}}} s\}, \quad \mathbb{Q}^{\mathrm{inv}}_{\mathrm{rb}}\mathrel{\vcenter{:}}= \{\mathsf{Blocked}(\underline{t}),\mathsf{CausePresent}(u,t)\}.\]

5.2 Core computation depends on the rollback discipline↩︎

The closure-based core \(A=\mathrm{Atom}_{\mathrm{rev}}(S_O)\) (Definition 7) is discipline-dependent through the chosen \(\mathrm{Cn}_{\mathrm{rev}}\). We now characterize the causal and cause-respecting cores as frontier-shaped, and give an explicit counterexample for inverse causal semantics.

5.2.1 Causal discipline: frontier-core result↩︎

Definition 18 (Frontier (maximal set)). Let \(X\subseteq\overline{T}\). Define the frontier of \(X\) (w.r.t.the derived causal reachability \(\mathsf{Cause}^\star\)) as \[\mathop{\mathrm{Fr}}(X)\;\mathrel{\vcenter{:}}=\;\{t\in X:\;\nexists u\in X\;\text{with}\;\mathsf{Cause}^\star(t,u)\;\text{and}\;t\neq u\}.\]

Proposition 10 (Frontier is the core under \(\mathrm{Cn}^{\mathrm{causal}}_{\mathrm{rcn}}\)). Fix \(X\subseteq\overline{T}\) and \(S_O=S_O^{\mathrm{rcn}}(X)\). Under \(\mathrm{Cn}^{\mathrm{causal}}_{\mathrm{rcn}}\), the deletion-scan core equals \[\mathrm{Atom}_{\mathrm{rev}}(S_O)\;=\;S_O^{\mathrm{rcn}}(\mathop{\mathrm{Fr}}(X)).\]

Proof. By (CC1), every non-frontier \(\mathsf{In}(t)\) is derivable from some frontier atom, hence deletable without changing closure. Conversely, a frontier atom cannot be derived from other frontier atoms under (CC1) due to maximality. The additional rollback evidence rules (CC2) are closure consequences of presence, hence preserved once presence closure is preserved. ◻

5.2.2 Inverse causal discipline: frontier can be insufficient↩︎

Proposition 11 (Inverse causal core need not be the frontier). There exists a net and a configuration \(X\) such that the core under \(\mathrm{Cn}^{\mathrm{inv}}_{\mathrm{rcn}}\) is not \(S_O^{\mathrm{rcn}}(\mathop{\mathrm{Fr}}(X))\).

Proof. Consider a chain \(a<b\) with \(X=\{a,b\}\) and no conflicts. Then \(\mathop{\mathrm{Fr}}(X)=\{b\}\). Under (IC1), \(\mathsf{In}(a)\wedge \mathsf{Cause}^\star(a,b)\Rightarrow \mathsf{Blocked}(\underline{b})\). If we log only \(\{\mathsf{In}(b)\}\), then \(\mathsf{In}(a)\) is missing and the blocker evidence disappears, changing rollback closure. Thus \(\mathsf{In}(a)\) is core-relevant; the frontier alone is insufficient. ◻

5.2.3 Cause-respecting discipline: frontier core under downward-closed presence↩︎

Proposition 12 (Frontier core under cause-respecting closure with (CC1)). Fix a configuration \(X\subseteq\overline{T}\) and let \(S_O=S_O^{\mathrm{rcn}}(X)\). Assume \(\mathrm{Cn}^{\mathrm{cr}}_{\mathrm{rcn}}\) includes (CC1). Then \[\mathrm{Atom}_{\mathrm{rev}}(S_O)\;=\;S_O^{\mathrm{rcn}}(\mathop{\mathrm{Fr}}(X)).\]

Proof. Let \(X\subseteq \overline{T}\) and \(S_O=S_O^{\mathrm{rcn}}(X)=\{\mathsf{In}(t):t\in X\}\). Write \(F\mathrel{\vcenter{:}}= \mathop{\mathrm{Fr}}(X)\) and \(S_F\mathrel{\vcenter{:}}= S_O^{\mathrm{rcn}}(F)=\{\mathsf{In}(f):f\in F\}\).

Step 1: every \(t\in X\) is below some frontier event. Since \((X,\mathsf{Cause}^\star)\) is finite, for each \(t\in X\) there exists a \(\mathsf{Cause}^\star\)-maximal element \(f\in X\) such that \(\mathsf{Cause}^\star(t,f)\) holds. By definition of \(\mathop{\mathrm{Fr}}(X)\), such an \(f\) lies in \(F\).

Step 2: \(S_F\) entails all presence facts in \(S_O\) under (CC1). Fix any \(t\in X\). Choose \(f\in F\) with \(\mathsf{Cause}^\star(t,f)\) as in Step 1. Since \(\mathsf{In}(f)\in S_F\) and (CC1) is included in \(\mathrm{Cn}^{\mathrm{cr}}_{\mathrm{rcn}}\), \[\mathsf{In}(f)\;\wedge\;\mathsf{Cause}^\star(t,f)\;\Rightarrow\;\mathsf{In}(t),\] so \(\mathsf{In}(t)\in \mathrm{Cn}^{\mathrm{cr}}_{\mathrm{rcn}}(S_F)\). Hence \(S_O\subseteq \mathrm{Cn}^{\mathrm{cr}}_{\mathrm{rcn}}(S_F)\), and by monotonicity and idempotence of closure, \[\mathrm{Cn}^{\mathrm{cr}}_{\mathrm{rcn}}(S_O)\;\subseteq\;\mathrm{Cn}^{\mathrm{cr}}_{\mathrm{rcn}}(\mathrm{Cn}^{\mathrm{cr}}_{\mathrm{rcn}}(S_F)) =\mathrm{Cn}^{\mathrm{cr}}_{\mathrm{rcn}}(S_F).\] The reverse inclusion \(\mathrm{Cn}^{\mathrm{cr}}_{\mathrm{rcn}}(S_F)\subseteq \mathrm{Cn}^{\mathrm{cr}}_{\mathrm{rcn}}(S_O)\) holds because \(S_F\subseteq S_O\). Therefore, \[\mathrm{Cn}^{\mathrm{cr}}_{\mathrm{rcn}}(S_F)=\mathrm{Cn}^{\mathrm{cr}}_{\mathrm{rcn}}(S_O).\] In particular, the full closure (including rollback-relevant consequences derived by (CR1)) is preserved once the presence closure is preserved, since (CR1) does not derive new \(\mathsf{In}(\cdot)\) facts but only derives \(\mathsf{NonMax}^{\ll}(\cdot)\) and \(\mathsf{Blocked}(\cdot)\) from already-derived presence facts.

Step 3: non-frontier presence facts are redundant (hence deleted by the scan). Let \(t\in X\setminus F\). By Step 2 we have \(\mathsf{In}(t)\in \mathrm{Cn}^{\mathrm{cr}}_{\mathrm{rcn}}(S_F)\). Since \(t\notin F\), we have \(S_F\subseteq S_O\setminus\{\mathsf{In}(t)\}\), and by monotonicity, \[\mathsf{In}(t)\in \mathrm{Cn}^{\mathrm{cr}}_{\mathrm{rcn}}(S_F)\;\subseteq\;\mathrm{Cn}^{\mathrm{cr}}_{\mathrm{rcn}}(S_O\setminus\{\mathsf{In}(t)\}).\] Thus \(\mathsf{In}(t)\) is redundant with respect to the scan criterion \(s\in \mathrm{Cn}^{\mathrm{cr}}_{\mathrm{rcn}}(A\setminus\{s\})\) at the moment it is considered (the working set \(A\) initially contains \(S_O\), hence also contains \(S_F\)). Therefore every \(\mathsf{In}(t)\) with \(t\notin F\) is deleted by the deletion scan.

Step 4: frontier presence facts are irredundant (hence kept). Let \(f\in F\). Suppose for contradiction that \(\mathsf{In}(f)\in \mathrm{Cn}^{\mathrm{cr}}_{\mathrm{rcn}}(S_O\setminus\{\mathsf{In}(f)\})\). Observe that, in the cause-respecting closure, the only rule that can derive new \(\mathsf{In}(\cdot)\) facts is (CC1). Therefore any derivation of \(\mathsf{In}(f)\) from a set of presence facts must ultimately be justified by (CC1) from some base presence atom \(\mathsf{In}(x)\in S_O\setminus\{\mathsf{In}(f)\}\) such that \(\mathsf{Cause}^\star(f,x)\) holds (i.e., \(f\) is a cause of \(x\)). Concretely, one can induct on the number of (CC1) applications used to derive \(\mathsf{In}(f)\) and obtain: \[\mathsf{In}(f)\in \mathrm{Cn}^{\mathrm{cr}}_{\mathrm{rcn}}(S)\;\Longrightarrow\;\exists\,x\in X\text{ with }\mathsf{In}(x)\in S\;\wedge\;\mathsf{Cause}^\star(f,x),\] for any \(S\subseteq S_O\). Applying this to \(S=S_O\setminus\{\mathsf{In}(f)\}\), we get some \(x\in X\) with \(x\neq f\) and \(\mathsf{Cause}^\star(f,x)\), contradicting the maximality of \(f\) in \(F=\mathop{\mathrm{Fr}}(X)\). Hence \(\mathsf{In}(f)\notin \mathrm{Cn}^{\mathrm{cr}}_{\mathrm{rcn}}(S_O\setminus\{\mathsf{In}(f)\})\), so \(f\) is kept by the scan.

Conclusion. The scan deletes exactly the non-frontier presence atoms and keeps exactly the frontier presence atoms, hence \(\mathrm{Atom}_{\mathrm{rev}}(S_O)=S_O^{\mathrm{rcn}}(\mathop{\mathrm{Fr}}(X))\), as claimed. ◻

5.2.3.1 Running example (Fig. 8 in [7]).

Figure 3 visualizes, on the Fig. 8 instance of [7], how the closure interface \(\mathrm{Cn}_{\mathrm{rev}}\) makes redundancy invisible and reduces logging complexity to the frontier-shaped core. Starting from \(S_O=\{\mathsf{In}(a),\mathsf{In}(b),\mathsf{In}(c),\mathsf{In}(d)\}\), the deletion scan (Definition 7) deletes \(\mathsf{In}(a)\) and \(\mathsf{In}(b)\) because, in that instance, they are derivable from \(\{\mathsf{In}(c),\mathsf{In}(d)\}\) under the downward-closure rule (CC1), while \(\mathsf{In}(c)\) and \(\mathsf{In}(d)\) are irredundant. Thus the core coincides with the frontier: \(A=S_O^{\mathrm{rcn}}(\mathop{\mathrm{Fr}}(X))\). The bottom row of the figure also previews why inverse-causal closures can force additional causes into the core to preserve blocker evidence (cf.Proposition 11).

Figure 3: RCN instance based on [7] illustrating the relationship between reversible semantic closure\mathrm{Cn}_{\mathrm{rev}}, deletion-scan core A, and frontier \mathop{\mathrm{Fr}}(X).Left: the net with frontier \{c,d\} (red dashed box) and redundant events \{a,b\} (gray dashed box).Right: fact base, example closure consequences, deletion scan outcome, and A=\{\mathsf{In}(c),\mathsf{In}(d)\} matching \mathop{\mathrm{Fr}}(X)under causal/cause-respecting closures; inverse-causal reversal can enlarge the core by requiring causes to preserve blocker evidence.

5.3 Rates, reconstruction alphabets, and computability↩︎

5.3.0.1 Discipline-indexed logging rates for rollback safety.

We now make explicit how the general safety theorems of Section 4 specialize to the RCN instantiation. These discipline-indexed quantities are exactly what we compute in Section 6 to obtain the BA curves and core sizes.

Proposition 13 (Perfect rollback safety: discipline-indexed rate). Fix a discipline \(\mathrm{disc}\in\{\mathrm{causal},\mathrm{cr},\mathrm{inv}\}\) and instantiate \(\mathrm{Cn}_{\mathrm{rev}}=\mathrm{Cn}^{\mathrm{disc}}_{\mathrm{rcn}}\) with some admissible \(\hat{\mathbb{S}}\subseteq \mathrm{Cn}^{\mathrm{disc}}_{\mathrm{rcn}}(S_O)\). Let \(A\) be the deletion-scan core induced by \(\mathrm{Cn}^{\mathrm{disc}}_{\mathrm{rcn}}\) (Definition 7). Then the minimum rate required to guarantee perfect rollback safety \(\Pr[\mathsf{Viol}(S,\hat{S})=1]=0\) equals \[R_{\mathrm{sem}}(0)=P_A\,H_{\Gamma_0}(\pi_A),\] where \(\Gamma_0\) is the zero-distortion confusability hypergraph induced by \(\mathrm{Cn}^{\mathrm{disc}}_{\mathrm{rcn}}\) (Definitions 810). In particular, different reversing disciplines can induce different cores \(A\) (hence different \(P_A,\pi_A,\Gamma_0\)), and therefore different perfect-safety logging frontiers.

Proof. This is exactly Theorem 6 after instantiating the closure operator to \(\mathrm{Cn}^{\mathrm{disc}}_{\mathrm{rcn}}\). ◻

5.3.0.2 Approximate safety budgets.

For a target rollback-violation probability \(\varepsilon\), Corollary 2 yields the conservative design rule \[\mathbb{E}[d_{\mathrm{Cn}}(S,\hat{S})]\le \varepsilon/|\mathbb{S}| \quad\Longrightarrow\quad \Pr[\mathsf{Viol}(S,\hat{S})=1]\le \varepsilon,\] and hence a computable rate budget \(\text{rate}\ge R_{\mathrm{sem}}(\varepsilon/|\mathbb{S}|)\). Alternatively, the task loss \(\ell_{\mathrm{rb}}\) yields the tighter guarantee \(\Pr[\mathsf{Viol}(S,\hat{S})=1]\le \mathbb{E}[\ell_{\mathrm{rb}}(S,\hat{S})]\) (Lemma 6), which motivates computing the rollback-task RD function \(R_{\mathrm{rb}}(L)\) on the same RCN instance.

5.3.1 Rollback-task instantiation on RCN: \(\ell_{\mathrm{rb}}\), \(R_{\mathrm{rb}}(L)\), and perfect-rollback rates↩︎

Throughout this subsubsection, fix a discipline \(\mathrm{disc}\in\{\mathrm{causal},\mathrm{cr},\mathrm{inv}\}\). We write \(\mathrm{Cn}_{\mathrm{rev}}=\mathrm{Cn}^{\mathrm{disc}}_{\mathrm{rcn}}\) and \(\mathbb{Q}_{\mathrm{rb}}=\mathbb{Q}^{\mathrm{disc}}_{\mathrm{rb}}\) for the corresponding closure operator and rollback query set defined in Section 5.1. All closures \(\mathrm{Cn}^{\mathrm{disc}}_{\mathrm{rcn}}(\cdot)\) are computed over the fixed background theory \(\mathcal{B}_{\mathrm{rcn}}\).

5.3.1.1 Rollback observable for RCN.

For any run-specific fact base \(S\subseteq \mathbb{S}\), define the discipline-indexed rollback observable \[\mathsf{RB}^{\mathrm{disc}}(S)\;\mathrel{\vcenter{:}}=\;\mathrm{Cn}^{\mathrm{disc}}_{\mathrm{rcn}}(S)\;\cap\;\mathbb{Q}^{\mathrm{disc}}_{\mathrm{rb}}.\] (As usual, \(\mathrm{Cn}^{\mathrm{disc}}_{\mathrm{rcn}}(S)\) is computed over \(\mathcal{B}_{\mathrm{rcn}}\cup S\).)

5.3.1.2 Rollback-task loss for RCN (single-symbol edit).

Fix a configuration \(X\subseteq \overline{T}\) and its log \(S_O=S_O^{\mathrm{rcn}}(X)=\{\mathsf{In}(t):t\in X\}\). For \(s\in S_O\) and \(\hat{s}\in \hat{\mathbb{S}}\), write \[S_O[s\leftarrow \hat{s}]\;\mathrel{\vcenter{:}}=\;(S_O\setminus\{s\})\cup\{\hat{s}\}.\] Define the discipline-indexed rollback-task loss \[\ell^{\mathrm{disc}}_{\mathrm{rb}}(s,\hat{s}) \;\mathrel{\vcenter{:}}=\; \bigl|\mathsf{RB}^{\mathrm{disc}}(S_O[s\leftarrow \hat{s}])\;\Delta\;\mathsf{RB}^{\mathrm{disc}}(S_O)\bigr|.\] Thus \(\ell^{\mathrm{disc}}_{\mathrm{rb}}(s,\hat{s})=0\) if and only if the edit preserves all rollback-relevant judgments in \(\mathbb{Q}^{\mathrm{disc}}_{\mathrm{rb}}\) (for the chosen discipline).

5.3.1.3 Rollback-task RD function for RCN.

Let \(S\sim P_O\) be a random fact symbol supported on \(S_O\) (Assumption 3), and let \(\hat{S}\in\hat{\mathbb{S}}\subseteq \mathrm{Cn}^{\mathrm{disc}}_{\mathrm{rcn}}(S_O)\) be generated by a test channel \(P_{\hat{S}\mid S}\). Define \[R^{\mathrm{disc}}_{\mathrm{rb}}(L) \;\mathrel{\vcenter{:}}=\; \inf_{P_{\hat{S}\mid S}:\;\mathbb{E}[\ell^{\mathrm{disc}}_{\mathrm{rb}}(S,\hat{S})]\le L}\;I(S;\hat{S}).\]

5.3.1.4 Core-only factorization (RCN specialization).

This paragraph specializes Theorem 7 to the RCN setting. Recall that the deletion-scan core \(\mathrm{Atom}_{\mathrm{rev}}(S_O)\) depends on the chosen closure operator; here it is computed using \(\mathrm{Cn}^{\mathrm{disc}}_{\mathrm{rcn}}\). Let \(A^{\mathrm{disc}}\mathrel{\vcenter{:}}= \mathrm{Atom}_{\mathrm{rev}}(S_O)\) denote the deletion-scan core of \(S_O\) computed with respect to the closure \(\mathrm{Cn}^{\mathrm{disc}}_{\mathrm{rcn}}\) (Definition 7). Let \(A^\star\sim \pi_A^{\mathrm{disc}}\) denote a random core symbol.

Corollary 3 (RCN rollback-task RD factorization (discipline-indexed)). Assume \(\hat{\mathbb{S}}\subseteq \mathrm{Cn}^{\mathrm{disc}}_{\mathrm{rcn}}(S_O)\). Then for all \(L\ge 0\), \[R^{\mathrm{disc}}_{\mathrm{rb}}(L)= \begin{cases} 0, & P_A^{\mathrm{disc}}=0,\\[1mm] P_A^{\mathrm{disc}}\cdot R^{\mathrm{disc}}_{\mathrm{rb},A}\!\Bigl(\min\Bigl\{\dfrac{L}{P_A^{\mathrm{disc}}},\;|\mathbb{Q}^{\mathrm{disc}}_{\mathrm{rb}}|\Bigr\}\Bigr), & P_A^{\mathrm{disc}}>0, \end{cases}\] where the core rollback-task RD function* is \[R^{\mathrm{disc}}_{\mathrm{rb},A}(\lambda) \;\mathrel{\vcenter{:}}=\; \inf_{P_{\hat{S}\mid A^\star}:\;\mathbb{E}[\ell^{\mathrm{disc}}_{\mathrm{rb}}(A^\star,\hat{S})]\le \lambda}\;I(A^\star;\hat{S}),\] with \(\ell^{\mathrm{disc}}_{\mathrm{rb}}(\cdot,\cdot)\) evaluated w.r.t.the same reference log \(S_O\).*

5.3.1.5 Perfect rollback (RCN form of Theorem 8).

Define the zero-loss reconstruction sets \[R^{\mathrm{rb},\mathrm{disc}}_0(s)\;\mathrel{\vcenter{:}}=\;\{\hat{s}\in\hat{\mathbb{S}}:\;\ell^{\mathrm{disc}}_{\mathrm{rb}}(s,\hat{s})=0\},\] and the induced rollback confusability hypergraph on the core: \[\Gamma^{\mathrm{rb},\mathrm{disc}}_0 \;\mathrel{\vcenter{:}}=\; \Bigl\{W\subseteq A^{\mathrm{disc}}:\;W\neq\emptyset,\;\bigcap_{a\in W}R^{\mathrm{rb},\mathrm{disc}}_0(a)\neq\emptyset\Bigr\}.\] Let \(H_{\Gamma^{\mathrm{rb},\mathrm{disc}}_0}(\pi_A^{\mathrm{disc}})\) be the corresponding hypergraph entropy as in Definition 17 (with \(A=A^{\mathrm{disc}}\) and \(\pi_A=\pi_A^{\mathrm{disc}}\)).

Corollary 4 (Perfect-rollback rate on RCN (discipline-indexed)). Under Assumptions 34 and \(\mathrm{Cn}_{\mathrm{rev}}=\mathrm{Cn}^{\mathrm{disc}}_{\mathrm{rcn}}\), the minimum achievable rate for perfect rollback in the task sense \(\mathbb{E}[\ell^{\mathrm{disc}}_{\mathrm{rb}}(S,\hat{S})]=0\) is \[R^{\mathrm{disc}}_{\mathrm{rb}}(0)\;=\;P_A^{\mathrm{disc}}\,H_{\Gamma^{\mathrm{rb},\mathrm{disc}}_0}(\pi_A^{\mathrm{disc}}),\] with the convention \(P_A^{\mathrm{disc}}H_{\Gamma^{\mathrm{rb},\mathrm{disc}}_0}(\pi_A^{\mathrm{disc}})=0\) when \(P_A^{\mathrm{disc}}=0\).

5.3.1.6 Computability and experimental pipeline.

The same finite-alphabet pipeline used to compute \(R_A(\delta)\) from the distortion matrix \(d(a,\hat{s})=d_{\mathrm{Cn}}(a,\hat{s})\) applies to rollback-task RD as well: one explicitly computes the loss matrix \(\ell(a,\hat{s})=\ell^{\mathrm{disc}}_{\mathrm{rb}}(a,\hat{s})\) (by recomputing \(\mathsf{RB}^{\mathrm{disc}}(\cdot)\) under single-symbol edits), and then runs Blahut–Arimoto to obtain \(R^{\mathrm{disc}}_{\mathrm{rb},A}(\lambda)\). Overall rates are recovered by the scaling in Corollary 3.

5.3.2 Nontrivial hyperedges via admissible summaries↩︎

If the reconstruction alphabet contains only concrete presence facts \(\mathsf{In}(t)\), then zero-distortion sets \(R_0(a)\) are often singletons, making \(\Gamma_0\) trivial. We introduce admissible summary atoms that (i) remain in the closure of the original log, and (ii) create overlaps among the \(R_0(a)\), yielding strict hypergraph-entropy gains.

5.3.2.1 Admissible summary atoms as a fixed rule schema.

To preserve Assumption 4 under a fixed public proof system, we avoid introducing run-specific symbols that depend on private encoder choices. Instead, we use a public, canonical naming scheme in which all summary constants are determined solely by the finite transition-ID set of the run and the shared order \(\prec\).

Concretely, for each ordered pair \((t,u)\) with \(t\prec u\), we allow a summary constant \(\sigma_{t,u}\) and a predicate \(\mathsf{Summ}(\sigma_{t,u})\). We then include the following fixed Horn-rule schema in the background theory (or, equivalently, in \(\mathsf{PS}^{\mathrm{disc}}_{\mathrm{rcn}}\)): \[\mathsf{In}(t)\wedge \mathsf{In}(u)\wedge \mathsf{Conc}(t,u)\Rightarrow \mathsf{Summ}(\sigma_{t,u}),\] \[\mathsf{Summ}(\sigma_{t,u})\Rightarrow \mathsf{In}(t), \qquad \mathsf{Summ}(\sigma_{t,u})\Rightarrow \mathsf{In}(u).\] Here \(\mathsf{Conc}(t,u)\) is a public (static) concurrency predicate, e.g., derivable from the net structure as “not related by \(\mathsf{Cause}^\star\) in either direction and not in conflict (\(\mathsf{Conf}\)).” We treat \(\mathsf{Conc}(\cdot,\cdot)\) as an extensional background predicate (precomputed from the net structure), rather than as a predicate derived inside \(\mathrm{Cn}^{\mathrm{disc}}_{\mathrm{rcn}}\) using negation, in order to preserve monotonicity. With this schema, whenever \(t,u\in X\) are concurrent, we have \(\mathsf{Summ}(\sigma_{t,u})\in \mathrm{Cn}^{\mathrm{disc}}_{\mathrm{rcn}}(S_O^{\mathrm{rcn}}(X))\) for every fixed discipline \(\mathrm{disc}\in\{\mathrm{causal},\mathrm{cr},\mathrm{inv}\}\) that includes the summary-rule schema in its background theory (or proof system). Therefore such summary atoms are admissible reconstruction symbols under Assumption 4 and can create nontrivial overlaps among the sets \(R_0(a)\) (and analogously among the zero-loss sets \(R^{\mathrm{rb}}_0(a)\) defined via \(\ell_{\mathrm{rb}}\)).

In our experiments we restrict to pair summaries (i.e., summaries over two concurrent transitions), which already yield nontrivial overlaps while keeping the alphabet size manageable.

Lemma 9 (A strict zero-distortion gain from pair summaries (toy instance)). Let \(A=\{a_1,a_2,a_3\}\) with \(\pi_A\) uniform. Assume the admissible reconstruction alphabet contains three pair summaries whose zero-distortion witness sets are \(W_{12}=\{a_1,a_2\}\), \(W_{13}=\{a_1,a_3\}\), and \(W_{23}=\{a_2,a_3\}\), and hence the induced confusability hypergraph \(\Gamma_0\) contains all singletons and all pairs, but not \(\{a_1,a_2,a_3\}\). Then \[H_{\Gamma_0}(\pi_A)=\log_2 3 - 1,\] which is strictly smaller than the Shannon entropy \(H(\pi_A)=\log_2 3\).

Proof. (Lower bound.) For any feasible \(P_{W\mid A^\star}\) in Definition 10, we have \(A^\star\in W\) a.s. and \(|W|\le 2\) a.s. Therefore \(H(A^\star\mid W)\le \log_2 2 = 1\), and hence \[I(A^\star;W)=H(A^\star)-H(A^\star\mid W)\ge \log_2 3 - 1.\]

(Achievability.) Define \(W\mid(A^\star=a_i)\) to be uniformly distributed over the two pairs that contain \(a_i\). Then \(H(W\mid A^\star)=1\) and the induced marginal on \(W\) is uniform over \(\{W_{12},W_{13},W_{23}\}\), so \(H(W)=\log_2 3\). Thus \(I(A^\star;W)=H(W)-H(W\mid A^\star)=\log_2 3 - 1\), matching the lower bound. ◻

5.3.3 Computability: finite-alphabet BA evaluation↩︎

Fix a finite core alphabet \(A\) and finite reconstruction alphabet \(\hat{\mathbb{S}}\) (e.g., concrete facts plus summaries). Define the distortion matrix \(d(a,\hat{s})\mathrel{\vcenter{:}}= d_{\mathrm{Cn}}(a,\hat{s})\).

Proposition 14 (Finite-alphabet computability of \(R_A(\delta)\)). If \(A\) and \(\hat{\mathbb{S}}\) are finite, then \(R_A(\delta)\) can be computed to arbitrary precision via Blahut–Arimoto.

Proof sketch. This is the classical finite-alphabet Shannon rate–distortion optimization \(\min I(A^\star;\hat{S})\) subject to an average distortion constraint, hence amenable to BA [9], [10]. ◻

5.3.3.1 Core-only curves vs.overall rates.

Recall from Theorem 5 that the overall semantic RD function satisfies \(R_{\mathrm{sem}}(D)=P_A\cdot R_A(\min\{D/P_A,1\})\). Accordingly, in the RCN experiments we report the core-only curves \(R_A(\cdot)\) (which capture the nontrivial part of the tradeoff), and recover the overall per-symbol rate for the full source via the scaling factor \(P_A=P_O(A)\).

5.3.3.2 Practical pipeline.

Given a discipline closure \(\mathrm{Cn}^{\mathrm{disc}}_{\mathrm{rcn}}\), one can: (i) compute the deletion-scan core \(A\); (ii) generate an admissible alphabet \(\hat{\mathbb{S}}\) (e.g., pair summaries); (iii) compute the distortion matrix by explicit closure computations under single-symbol edits; and (iv) run BA to obtain \(R_A(\delta)\). The next section reports results produced by this pipeline.

6 Experiments: Ablation on Reconstruction Alphabet and Factorization Verification↩︎

6.0.0.1 Experimental scope and what is verified.

Using the RCN instantiation of Section 5, we report four types of numerical evidence computed by a local Python verifier: (i) an ablation at zero semantic distortion comparing a facts-only reconstruction alphabet to an augmented admissible alphabet; (ii) an exact endpoint verification at \(D=0\) of the perfect-safety statement and the zero-distortion hypergraph-entropy identity (Theorem 6 and Theorem 4); (iii) a Monte Carlo verification of the core-only factorization for rollback-task RD (Theorem 7); and (iv) an exact endpoint verification at \(L=0\) of the rollback hypergraph-entropy identity together with the comparison \(R_{\mathrm{rb}}(0)\le R_{\mathrm{sem}}(0)\) (Theorem 8 and Proposition 9).

6.0.0.2 Source distribution convention.

Unless explicitly stated otherwise, we take \(P_O\) to be the uniform distribution over the fixed log fact base \(S_O\) (i.e., \(S\sim P_O\) samples a fact symbol uniformly from \(S_O\)). Accordingly, when \(P_A>0\), the conditional core distribution \(\pi_A(\cdot)=P_O(\cdot\mid A)\) is uniform over \(A\).

6.0.0.3 Medium-scale instance (ablation summary at \(D=0\)).

As a sanity check on the role of the reconstruction alphabet \(\hat{\mathbb{S}}\), Table 1 reports, for a representative medium instance (\(B=4\), depth \(d=3\)), the instance size \(|X|\), frontier size \(|\mathop{\mathrm{Fr}}|\), core size \(|A|\), and the core-only zero-distortion rates \(R_A(0)\) under a facts-only vs.facts+summary admissible reconstruction alphabet.

Table 1: Medium instance (\(B=4,d=3\)): ablation comparing facts-only vs.facts+summary at zero semantic distortion.Here \(\Delta R_A(0)\mathrel{\vcenter{:}}= R_{A,\text{facts}}(0)-R_{A,\text{full}}(0)\).
Discipline \(|X|\) \(|\mathop{\mathrm{Fr}}|\) \(|A|\) \(|\hat{\mathbb{S}}|_{\text{facts}}\) \(R_{A,\text{facts}}(0)\) \(|\hat{\mathbb{S}}|_{\text{full}}\) \(R_{A,\text{full}}(0)\) \(\Delta R_A(0)\)
Causal 12 4 4 4 2.000000 16 2.000000 0.000000
Cause-respecting 12 4 4 4 2.000000 16 2.000000 0.000000
Inverse-causal 12 4 12 12 3.584963 24 3.584963 0.000000

6.0.0.4 Observed ablation outcome.

In this run, the gain \(\Delta R_A(0)\) is numerically \(0\) for all three disciplines (to six decimal places), i.e., the currently implemented admissible summaries do not reduce the \(D=0\) rate. This suggests that, for this instance and summary-rule schema, the added symbols do not create additional useful overlaps among the core zero-distortion sets \(\{R_0(a)\}_{a\in A}\) beyond numerical precision. Accordingly, the rest of Section 6 focuses on validating the key structural theorems linking closure-based RD to rollback safety and discipline-dependent cores.

6.1 Zero-distortion endpoint check (\(D=0\)): safety and hypergraph-entropy identity↩︎

This subsection provides an exact endpoint (\(D=0\)) numerical check for the two key \(D=0\) implications proved in Section 4–Section 3: (i) perfect safety from perfect closure preservation (Theorem 6); and (ii) the zero-distortion hypergraph-entropy law (Theorem 4). All results are computed on the medium instance \((B=4,d=3)\) used in Section 6. We sample a fact symbol \(S\sim P_O\) from the fixed log \(S_O\) (Assumption 3), use an admissible reconstruction alphabet \(\hat{\mathbb{S}}\subseteq \mathrm{Cn}_{\mathrm{rev}}(S_O)\) (Assumption 4), and instantiate \(\mathrm{Cn}_{\mathrm{rev}}=\mathrm{Cn}^{\mathrm{disc}}_{\mathrm{rcn}}\) and \(\mathbb{Q}_{\mathrm{rb}}=\mathbb{Q}_{\mathrm{rb}}^{\mathrm{disc}}\) as in Section 5.

6.1.0.1 Safety check by full enumeration.

We enumerate all pairs \((s,\hat{s})\in S_O\times\hat{\mathbb{S}}\) and verify the pointwise implication \[d_{\mathrm{Cn}}(s,\hat{s})=0 \;\Longrightarrow\;\mathsf{Viol}(s,\hat{s})=0,\] where \(d_{\mathrm{Cn}}\) is the closure Jaccard distortion (Definition 6) and \(\mathsf{Viol}\) is the rollback-violation indicator (Definition 12). Table 2 reports the total number of zero-distortion pairs and the number of violations among them. In all disciplines the number of violations is \(0\), consistent with Theorem 6.

Table 2: Enumeration-based safety evidence at \(D=0\): among all zero-distortion pairs \((s,\hat{s})\), no rollback violation occurs.
Discipline \(|S_O|\) \(|A|\) \(|\hat{\mathbb{S}}|\) #\(\{(s,\hat{s}): d_{\mathrm{Cn}}=0\}\) #violations among them
Causal 12 4 40 324 0
Cause-respecting 12 4 28 228 0
Inverse-causal 12 12 32 12 0

6.1.0.2 Why the number of zero-distortion pairs differs across disciplines.

The count in Table 2, \[\#\bigl\{(s,\hat{s})\in S_O\times\hat{\mathbb{S}}:\;d_{\mathrm{Cn}}(s,\hat{s})=0\bigr\},\] equals \(\sum_{s\in S_O}|R_0(s)|\), where \(R_0(s)=\{\hat{s}\in\hat{\mathbb{S}}:d_{\mathrm{Cn}}(s,\hat{s})=0\}\). Under admissibility (Assumption 4), every redundant symbol \(j\in J\) satisfies \(|R_0(j)|=|\hat{\mathbb{S}}|\) by Proposition 3. Hence \[\#\{(s,\hat{s}): d_{\mathrm{Cn}}(s,\hat{s})=0\} = |J|\cdot|\hat{\mathbb{S}}| + \sum_{a\in A} |R_0(a)|.\] Therefore the counts differ across disciplines because the induced core/redundant split \((A,J)\) and the admissible reconstruction alphabet size \(|\hat{\mathbb{S}}|\) are discipline-dependent. In particular, in this instance the observed zero-distortion pair counts are \(324\) (causal), \(228\) (cause-respecting), and \(12\) (inverse-causal), reflecting that inverse-causal closure typically reduces the redundant mass \(|J|\) and thus removes the dominant \(|J|\cdot|\hat{\mathbb{S}}|\) contribution.

6.1.0.3 Hypergraph-entropy identity at \(D=0\).

We next check the equality of Theorem 4: \[R_{\mathrm{sem}}(0)=P_A\,H_{\Gamma_0}(\pi_A), \qquad P_A\mathrel{\vcenter{:}}= P_O(A),\quad \pi_A(\cdot)\mathrel{\vcenter{:}}= P_O(\cdot\mid A),\] by explicitly constructing the core \(A=\mathrm{Atom}_{\mathrm{rev}}(S_O)\), the zero-distortion sets \(\{R_0(a)\}_{a\in A}\), the induced confusability hypergraph \(\Gamma_0\), and the hypergraph entropy \(H_{\Gamma_0}(\pi_A)\). We then compare \(H_{\Gamma_0}(\pi_A)\) against an independent endpoint computation of the core-only perfect-reconstruction rate \(R_A(0)\) (i.e., minimizing rate subject to the hard constraint \(d_{\mathrm{Cn}}(A^\star,\hat{S})=0\) almost surely). Table 3 reports the resulting values. In all disciplines, \(H_{\Gamma_0}(\pi_A)\) and \(R_A(0)\) coincide to numerical precision, and the scaled quantities \(P_AH_{\Gamma_0}(\pi_A)\) and \(P_AR_A(0)\) match exactly as predicted.

Table 3: Endpoint check at \(D=0\): hypergraph entropy vs.an independent core endpoint computation, and the scaled overall rate.
Discipline \(P_A\) \(H_{\Gamma_0}(\pi_A)\) \(R_A(0)\) \(|R_A(0)-H_{\Gamma_0}|\) \(R_{\mathrm{sem}}(0)=P_AH_{\Gamma_0}\) \(P_AR_A(0)\)
Causal 0.333333 2.000000 2.000000 0.000000e+00 0.666667 0.666667
Cause-respecting 0.333333 2.000000 2.000000 0.000000e+00 0.666667 0.666667
Inverse-causal 1.000000 3.584963 3.584963 0.000000e+00 3.584963 3.584963

6.1.0.4 Interpretation (discipline sensitivity through the core).

Under causal and cause-respecting closures, only \(|A|=4\) out of \(|S_O|=12\) facts are core-relevant on this instance, hence \(P_A=|A|/|S_O|=1/3\) under a uniform source over \(S_O\), yielding \(R_{\mathrm{sem}}(0)=\tfrac{1}{3}\cdot 2=\tfrac{2}{3}\) bits/symbol. Under inverse-causal closure the core expands to the full log (\(|A|=|S_O|\)), so \(P_A=1\) and the endpoint rate increases accordingly. This numerically illustrates the central message of Section 5: changing the reversing discipline changes the closure, thereby changing the core and the information-theoretic logging frontier.

6.2 Rollback-task RD factorization verification (core-only reduction)↩︎

This subsection provides numerical evidence for the core-only factorization of the rollback-task rate–distortion function stated in Theorem 7 (and its RCN specialization Corollary 3). Concretely, under admissibility \(\hat{\mathbb{S}}\subseteq \mathrm{Cn}_{\mathrm{rev}}(S_O)\), redundant symbols \(J\) are loss-invisible (Lemma 7), and the overall rollback-task RD function satisfies \[R_{\mathrm{rb}}(L) = \begin{cases} 0, & P_A=0,\\[1mm] P_A\cdot R_{\mathrm{rb},A}\!\Bigl(\min\bigl\{L/P_A,\;|\mathbb{Q}_{\mathrm{rb}}|\bigr\}\Bigr), & P_A>0, \end{cases}\] where \(A=\mathrm{Atom}_{\mathrm{rev}}(S_O)\) is the deletion-scan core, \(P_A=P_O(A)\), \(R_{\mathrm{rb},A}(\cdot)\) is the rollback-task RD function of the core sub-source \(A^\star\sim \pi_A\), and \(\mathbb{Q}_{\mathrm{rb}}\) is the rollback query set.

6.2.0.1 What is being checked numerically.

For each discipline and each randomized instance/seed, we compute (i) a core-only BA curve \(R_{\mathrm{rb},A}(\lambda)\) on a budget grid \(\lambda\in[0,|\mathbb{Q}_{\mathrm{rb}}|]\), (ii) the overall curve \(R_{\mathrm{rb}}(L)\) on a corresponding overall budget grid \(L\in[0,P_A|\mathbb{Q}_{\mathrm{rb}}|]\), and report a mean absolute deviation (“mean factor.err.”) between the two sides of the factorization after rescaling: \[\text{factorization error} \;\mathrel{\vcenter{:}}=\; \frac{1}{|\mathcal{G}|}\sum_{L\in\mathcal{G}} \Bigl|\,R_{\mathrm{rb}}(L)\;-\;P_A\cdot R_{\mathrm{rb},A}\!\bigl(\min\{L/P_A,|\mathbb{Q}_{\mathrm{rb}}|\}\bigr)\Bigr|,\] for the evaluation grid \(\mathcal{G}\) used by the program.1 Values close to \(0\) indicate exact agreement up to numerical precision, thus validating the factorization identity.

6.2.0.2 Evaluation grid \(\mathcal{G}\).

To make the factorization check fully reproducible, we specify the evaluation grid explicitly. Throughout, we use the same Blahut–Arimoto sweep parameter grid \[\mathcal{B}\;\mathrel{\vcenter{:}}=\;\{0,\;0.5,\;1,\;2,\;4,\;8,\;16\}.\] For each instance and discipline, the program runs BA at each \(\beta\in\mathcal{B}\) and records the corresponding achieved overall loss budget \(L(\beta)\) and rate \(R_{\mathrm{rb}}(L(\beta))\). We then define the evaluation grid used in the mean absolute deviation as \[\mathcal{G}\;\mathrel{\vcenter{:}}=\;\{\,L(\beta):\;\beta\in\mathcal{B}\,\}, \qquad |\mathcal{G}|=|\mathcal{B}|=7,\] and evaluate the factorization identity on these grid points. (Using a denser grid yields the same qualitative conclusion; we report the \(\beta\)-grid results since it is the one directly produced by the BA sweep and shared by all experiments.)

6.2.1 Medium instance: core BA curves (semantic vs.rollback-task)↩︎

Figure 4 reports the core-only BA curves on a medium instance (\(B=4\), \(d=3\)). The left panel is the semantic core RD curve \(R_A(D)\) induced by the closure distortion \(d_{\mathrm{Cn}}\), and the right panel is the rollback-task core RD curve \(R_{\mathrm{rb},A}(L)\) induced by \(\ell_{\mathrm{rb}}\). These curves serve two purposes: (i) they confirm that the BA pipeline over the computed distortion/loss matrices is numerically stable on the core, and (ii) they provide the core-level tradeoff objects that enter the factorization formula via the scaling \(P_A\).

Figure 4: Medium instance BA curves (inlined data).Left: semantic core RD curve R_A(D) induced by the closure distortion d_{\mathrm{Cn}}.Right: rollback-task core RD curve R_{\mathrm{rb},A}(L) induced by the task loss \ell_{\mathrm{rb}}.

6.2.1.1 Interpretation of the medium curves.

On this instance and evaluation grid, the two BA sweeps produce essentially identical rate values (up to printing precision), suggesting that the chosen rollback query set \(\mathbb{Q}_{\mathrm{rb}}\) and the implementation of \(\ell_{\mathrm{rb}}\) are, in this setting, nearly as stringent as full closure preservation on the core. Importantly for the present subsection, factorization does not require the two objectives to differ; it requires only that the overall rollback-task RD curve is a \(P_A\)-scaled version of the core curve, which we test next.

6.2.2 Monte Carlo sweep: mean factorization error across depths↩︎

Table 4 reports a Monte Carlo sweep over depths \(d\in\{2,3,4,5\}\) (with \(B=4\) and seeds \(1\)\(20\)). The key column for Theorem 7 is “mean factor.err.”: for all reported depths and disciplines, the factorization error is on the order of \(10^{-12}\) (or exactly \(0\) in some cases), which is consistent with floating-point numerical precision. This provides strong evidence that the computed \(R_{\mathrm{rb}}(L)\) matches the predicted scaling of the core-only curve \(R_{\mathrm{rb},A}(\cdot)\) by the factor \(P_A=P_O(A)\), as stated by the theorem.

Table 4: Monte Carlo depth sweep (\(B=4\), seeds \(1\)\(20\)): ablation at \(D=0\) (semantic endpoint) and mean factorization error.
Discipline depth \(d\) \(\mathbb{E}[|A|]\) \(\mathbb{E}[R_{A,\text{facts}}(0)]\) \(\mathbb{E}[R_{A,\text{full}}(0)]\) \(\mathbb{E}[\Delta R_A(0)]\) mean factor.err.
Causal 2 \(4.00\pm0.00\) \(2.000\pm0.000\) \(2.000\pm0.000\) \(0.000\pm0.000\) \(9.09\times 10^{-13}\)
Cause-respecting 2 \(4.00\pm0.00\) \(2.000\pm0.000\) \(2.000\pm0.000\) \(0.000\pm0.000\) \(9.09\times 10^{-13}\)
Inverse-causal 2 \(8.00\pm0.00\) \(3.000\pm0.000\) \(3.000\pm0.000\) \(0.000\pm0.000\) \(0\)
Causal 3 \(4.00\pm0.00\) \(2.000\pm0.000\) \(2.000\pm0.000\) \(0.000\pm0.000\) \(1.77\times 10^{-12}\)
Cause-respecting 3 \(4.00\pm0.00\) \(2.000\pm0.000\) \(2.000\pm0.000\) \(0.000\pm0.000\) \(1.77\times 10^{-12}\)
Inverse-causal 3 \(12.00\pm0.00\) \(3.585\pm0.000\) \(3.585\pm0.000\) \(0.000\pm0.000\) \(0\)
Causal 4 \(4.00\pm0.00\) \(2.000\pm0.000\) \(2.000\pm0.000\) \(0.000\pm0.000\) \(2.49\times 10^{-12}\)
Cause-respecting 4 \(4.00\pm0.00\) \(2.000\pm0.000\) \(2.000\pm0.000\) \(0.000\pm0.000\) \(2.49\times 10^{-12}\)
Inverse-causal 4 \(16.00\pm0.00\) \(4.000\pm0.000\) \(4.000\pm0.000\) \(0.000\pm0.000\) \(0\)
Causal 5 \(4.00\pm0.00\) \(2.000\pm0.000\) \(2.000\pm0.000\) \(0.000\pm0.000\) \(3.44\times 10^{-12}\)
Cause-respecting 5 \(4.00\pm0.00\) \(2.000\pm0.000\) \(2.000\pm0.000\) \(0.000\pm0.000\) \(3.44\times 10^{-12}\)
Inverse-causal 5 \(20.00\pm0.00\) \(4.322\pm0.000\) \(4.322\pm0.000\) \(0.000\pm0.000\) \(0\)

6.2.2.1 Core structure vs.factorization (separate roles).

Note that \(|A|\) varies substantially across disciplines (frontier-sized for causal/cause-respecting, depth-scaling for inverse-causal), but the factorization identity holds uniformly regardless of the core size. This is consistent with the theorem: once admissibility holds, redundancy invisibility and the indicator split \(\mathsf B=\mathbf{1}[S\in A]\) enforce the \(P_A\)-scaled reduction structurally, independent of the particular RCN instance.

6.2.3 Plots of factorization error vs.depth (inlined data)↩︎

For completeness, Figure 6 visualizes the mean factorization error on a log scale, confirming that errors remain at numerical-noise level across depths. (We also include Figure 5 for the ablation gain \(\Delta R_A(0)\) reported in the opening paragraphs of Section 6.)

Figure 5: Ablation gain vs.depth (inlined data), where\Delta R_A(0)=R_{A,\text{facts}}(0)-R_{A,\text{full}}(0).Values are within numerical precision of 0 in this run.
Figure 6: Mean factorization error vs.depth (inlined data).Errors are around 10^{-12}, consistent with numerical precision.For the inverse-causal discipline the factorization error is exactly 0 on this sweep, hence it is omitted (it would lie at -\infty on the log scale).

6.2.3.1 Takeaway for Theorem 7.

Across disciplines and depths, the observed factorization error stays at (or below) floating-point noise level. This is consistent with the theoretical prediction that, under admissibility, the redundant part of the log contributes neither rollback-task loss nor rate, and the overall rollback-task RD function reduces exactly to a \(P_A\)-scaled core-only optimization.

6.3 Zero-loss endpoint check (\(L=0\)): rollback hypergraph entropy and comparison with closure preservation↩︎

This subsection provides an exact endpoint (\(L=0\)) numerical check for the perfect-rollback statement proved in Section 4.3. Recall that the rollback-task loss \(\ell_{\mathrm{rb}}(s,\hat{s})\) counts how many rollback-relevant judgments change under the single-symbol edit \(S_O[s\leftarrow \hat{s}]\) (Definition 13). Perfect rollback in the task sense corresponds to the hard constraint \(\ell_{\mathrm{rb}}(S,\hat{S})=0\) almost surely, and Theorem 8 predicts the endpoint identity \[R_{\mathrm{rb}}(0)=P_A\,H_{\Gamma^{\mathrm{rb}}_0}(\pi_A),\] where \(\Gamma^{\mathrm{rb}}_0\) is induced by the zero-loss sets \(R^{\mathrm{rb}}_0(a)=\{\hat{s}\in\hat{\mathbb{S}}:\ell_{\mathrm{rb}}(a,\hat{s})=0\}\) (Definition 17).

6.3.0.1 Rollback hypergraph entropy vs.independent core endpoint computation.

On the same medium instance \((B=4,d=3)\) as in Section 6.1, we compute the core \(A\), explicitly construct \(\Gamma^{\mathrm{rb}}_0\), and compute \(H_{\Gamma^{\mathrm{rb}}_0}(\pi_A)\). We then compare it with an independent core-only endpoint computation of \(R_{\mathrm{rb},A}(0)\) (minimizing rate subject to \(\ell_{\mathrm{rb}}(A^\star,\hat{S})=0\) almost surely). Table 5 reports the results. Across disciplines the two values coincide up to numerical precision; in particular, the inverse-causal deviation is at floating-point noise level (\(\approx 2.13\times 10^{-12}\)).

4pt

Table 5: Endpoint check at \(L=0\): rollback hypergraph entropy vs.an independent core endpoint computation, and the scaled overall rate.The inequality check uses \(R_{\mathrm{sem}}(0)\) from Table 3.
Discipline \(P_A\) \(H_{\Gamma^{\mathrm{rb}}_0}(\pi_A)\) \(R_{\mathrm{rb},A}(0)\) \(|\Delta|\) \(R_{\mathrm{rb}}(0)=P_AH_{\Gamma^{\mathrm{rb}}_0}\) check \(R_{\mathrm{rb}}(0)\le R_{\mathrm{sem}}(0)\)
Causal 0.333333 2.000000 2.000000 0.000000e+00 0.666667 \(✔\)
Cause-respecting 0.333333 2.000000 2.000000 0.000000e+00 0.666667 \(✔\)
Inverse-causal 1.000000 2.000000 2.000000 2.128075e-12 2.000000 \(✔\)

6.3.0.2 Comparison with perfect closure preservation.

Proposition 9 predicts \(R_{\mathrm{rb}}(0)\le R_{\mathrm{sem}}(0)\). The last column of Table 5 confirms this on the instance for all disciplines. Moreover, in the inverse-causal discipline we observe a strict separation: \[R_{\mathrm{rb}}(0)=2.0 \quad<\quad R_{\mathrm{sem}}(0)=\log_2(12)\approx 3.585,\] showing that (for the chosen query set \(\mathbb{Q}_{\mathrm{rb}}^{\mathrm{inv}}\)) preserving all rollback-task judgments can be strictly easier than preserving the full closure.

6.3.0.3 Remark (reduced query sets as a general mechanism).

Section 4.3 also explains how shrinking the rollback query set \(\mathbb{Q}_{\mathrm{rb}}\) enlarges the feasible family \(\Gamma^{\mathrm{rb}}_0\), and by Lemma 8 can only decrease \(H_{\Gamma^{\mathrm{rb}}_0}(\pi_A)\), potentially further reducing \(R_{\mathrm{rb}}(0)\) while leaving \(R_{\mathrm{sem}}(0)\) unchanged. We do not include additional numerical tables for this variant here, since the goal of this section is to validate the endpoint identities and the inequality relationship on the fixed Section 5 instance.

7 Related Work↩︎

Our work sits at the intersection of (i) reversible computation and its operational/denotational models, (ii) Petri nets and event structures for concurrency with reversibility, and (iii) Shannon rate–distortion theory under nonstandard, semantics-driven fidelity criteria. We emphasize that our contribution is not to introduce a new reversible semantics for RCN/rPES, but to make reversible rollback capability quantitative via closure-preserving rate–distortion.

7.1 Reversible computation and causal-consistent reversibility↩︎

Reversible computation is classically motivated by thermodynamic considerations. Landauer’s principle links information erasure to heat dissipation, and Bennett showed that computations can be made logically reversible by retaining suitable history information, establishing a foundational connection between reversibility and stored auxiliary data [22][24]. Early reversible models include reversible Turing machines and reversible cellular automata, as well as conservative/reversible logic constructions [1], [2], [25].

In concurrent and distributed settings, reversibility is discipline-sensitive: the set of backward steps that are admissible depends on causal dependencies, conflict, and additional relations such as reverse causality and prevention evidence. Process-calculus developments (e.g., RCCS and key-based variants) make this dependence explicit via memories/keys and causal bookkeeping [3], [4], [26]. Recent work provides an axiomatic account of causal-consistent reversibility (including the Parabolic Lemma and related safety/liveness properties), clarifying the role of independence and causal equivalence in combined forward/backward transition systems [5], [6]. Tool support has also begun to emerge for the axiomatic approach [27].

Our paper is aligned with this literature in that the semantic object of interest is not a syntactic trace but the discipline-indexed rollback consequences of a run. The difference is that we quantify the information content needed for perfect or approximate rollback via closure-preserving rate–distortion, rather than only proving qualitative safety properties.

7.2 RCN/rPES, Petri nets with inhibitor arcs, and reversible event structures↩︎

Event-structure and Petri-net semantics provide non-interleaving accounts of concurrency; incorporating reversibility requires handling both forward and backward moves and the additional evidence that governs when undo steps are legal. Reversible prime event structures (rPES) capture causality, conflict, reverse causality, and prevention at an abstract level, while net-based models provide operational realizations of these relations [4].

A key recent contribution is the operational correspondence developed in [7], which introduces reversible causal nets (RCN), a disciplined class of Petri nets with inhibitor arcs capable of encoding the dependency evidence needed to support rich reversing disciplines. Subsequent work further relates rPES and net-based models, clarifying the interplay between operational and denotational views and how different reversing disciplines manifest in the underlying structures [14].

Our work builds directly on this semantic foundation: rather than proposing a new reversible operational semantics, we treat the discipline-indexed rollback reasoning as a monotone closure \(\mathrm{Cn}_{\mathrm{rev}}\) and ask how its induced redundancy structure (the closure core) determines the compression frontier for reversible logging.

7.3 Rate–distortion, semantic/source coding, and zero-error confusability↩︎

Classical rate–distortion theory characterizes the minimum rate needed to represent a source under an average fidelity constraint, and is one of the central pillars of information theory [8][10], [28]. For finite alphabets, the rate–distortion function can be computed numerically via the Blahut–Arimoto algorithm once the source distribution and distortion matrix are fixed [15], [16].

When the fidelity criterion is structural rather than symbolwise, zero-distortion (or zero-error) limits are often governed by a confusability object, leading to graph- or hypergraph-based entropic characterizations. In particular, Körner’s graph entropy formalizes the rate of zero-error source coding under confusability constraints, and serves as a key reference point for structured zero-distortion problems [10], [20].

In our setting the distortion is induced by closure preservation under a monotone proof system, so the relevant confusability object becomes a hypergraph induced by overlaps of zero-distortion reconstruction sets on the irredundant core. This connects reversible logging to a zero-distortion regime that is genuinely combinatorial, while still admitting computable finite-alphabet curves beyond the endpoint via Blahut–Arimoto.

7.4 Closure-based rate–distortion and deductive-source viewpoints↩︎

A closely related information-theoretic viewpoint is to model the source alphabet as statements inside a fixed deductive environment and to measure fidelity by preservation of deductive closure. In that setting, the proof system induces a canonical decomposition of the stored source into an irredundant core and a redundant part of re-derivable consequences, and redundancy becomes information-theoretically invisible under admissible reconstructions (those lying inside the original closure).

The companion closure-based rate–distortion framework in [13] develops this idea for deductive sources and yields exact core-only decompositions of both the zero-distortion rate and the full rate–distortion function. Our paper can be read as a reversible-computation instantiation of that closure-based source model: the reversible proof system \(\mathsf{PS}_{\mathrm{rev}}\) and its induced closure \(\mathrm{Cn}_{\mathrm{rev}}\) encode rollback semantics, so that \(\mathrm{Cn}_{\mathrm{rev}}(\cdot)\)-preservation becomes the fidelity criterion for reversible logging.

What is specific to the reversible RCN/rPES setting is that the closure (hence the core) is discipline-dependent: causal and cause-respecting semantics lead to frontier-shaped cores under a downward-closed presence interface, while inverse-causal semantics can force the core to expand to include causal ancestors as rollback evidence. This discipline dependence is not a minor modeling choice; it directly determines the achievable compression gains.

7.4.0.1 Positioning.

In summary, the related-work threads above provide (i) discipline-indexed reversible semantics and rollback correctness criteria, and (ii) classical information-theoretic tools for rate–distortion and confusability. Our contribution is to connect these two lines via closure-preserving fidelity: reversible rollback consequences are treated as closure observables, which induces a canonical core/redundant decomposition and yields both exact endpoint laws and computable finite-alphabet rate–distortion curves for reversible logging.

8 Conclusion↩︎

We presented a semantic rate–distortion theory for reversible logging under a closure-preservation fidelity criterion. Modeling rollback-relevant semantics as a monotone closure \(\mathrm{Cn}_{\mathrm{rev}}\) yields a distortion notion that matches the operational goal: a reconstruction is faithful if it preserves closure consequences (or a designated rollback observable), not if it reproduces log atoms verbatim.

The closure interface induces a canonical structural simplification. A deterministic deletion scan decomposes any finite log fact base \(S_O\) into an irredundant core \(A\) and a redundant remainder \(J\) such that \(\mathrm{Cn}_{\mathrm{rev}}(A)=\mathrm{Cn}_{\mathrm{rev}}(S_O)\). Under admissible reconstructions \(\hat{\mathbb{S}}\subseteq \mathrm{Cn}_{\mathrm{rev}}(S_O)\), the redundant part \(J\) becomes information-theoretically invisible: it contributes neither rate nor distortion. Consequently, the full semantic rate–distortion function factorizes into a core-only problem scaled by the core mass \(P_A\).

At the perfect-fidelity endpoint \(D=0\), we identified the exact minimum rate as a hypergraph-entropy quantity \(R_{\mathrm{sem}}(0)=P_A\,H_{\Gamma_0}(\pi_A)\), where \(\Gamma_0\) captures zero-distortion confusability on the core. We also introduced a rollback-task loss \(\ell_{\mathrm{rb}}\) that directly measures how many rollback judgments change under an edit, and established parallel endpoint and factorization laws for the rollback-task rate–distortion function \(R_{\mathrm{rb}}(L)\). Together, these results provide a quantitative complement to qualitative rollback-correctness criteria: they separate what must be logged (the core) from what can be reconstructed semantically (the redundant closure consequences), and they quantify the price of exact or approximate rollback.

We instantiated the framework on reversible causal nets and reversible prime event structures via discipline-indexed monotone closures. The instantiation makes discipline sensitivity explicit and measurable: different reversing disciplines induce different closures, hence different cores and different information-theoretic logging frontiers. Our numerical evidence (enumeration checks, Blahut–Arimoto curves, and Monte Carlo sweeps) supports the predicted endpoint identities and core-only factorizations and illustrates the gap between causal/cause-respecting and inverse-causal disciplines on medium-scale instances.

8.0.0.1 Limitations and future work.

The present formulation adopts a “single stored log” viewpoint and a single-symbol edit distortion, which yields a clean finite-alphabet rate–distortion problem and transparent structural theorems. Natural next steps include: (i) extending the source model from sampling symbols from a fixed \(S_O\) to streaming and time-evolving logs; (ii) designing explicit coding schemes that approach the derived limits while respecting admissibility and decoder-side closure computation; (iii) enriching admissible reconstruction alphabets with principled summary atoms that provably create useful core confusability in concrete reversible semantics; and (iv) extending the closure interface to settings that require controlled forms of non-monotonicity (e.g., negative enabling conditions) while retaining computable safety guarantees. Finally, applying the same closure-based quantitative lens to other reversible frameworks (e.g., process calculi and message-passing logs) is a promising direction for developing discipline-aware, rate-optimal reversible debuggers and rollback mechanisms.

References↩︎

[1]
T. Toffoli, “Computation and construction universality of reversible cellular automata,” Journal of Computer and System Sciences, vol. 15, no. 2, pp. 213–231, 1977.
[2]
E. Fredkin and T. Toffoli, “Conservative logic,” International Journal of Theoretical Physics, vol. 21, no. 3–4, pp. 219–253, 1982.
[3]
V. Danos and J. Krivine, “Reversible communicating systems,” in Proc. CONCUR 2004, 2004, vol. 3170, pp. 292–307.
[4]
I. Ulidowski, I. Phillips, and S. Yuen, “Reversing event structures,” New Generation Computing, vol. 36, no. 3, pp. 281–306, 2018, doi: 10.1007/s00354-018-0040-8.
[5]
I. Lanese, I. Phillips, and I. Ulidowski, “An axiomatic theory for reversible computation,” ACM Trans. Comput. Logic, vol. 25, no. 2, pp. 11:1–11:40, 2024.
[6]
C. Aubert, I. Phillips, and I. Ulidowski, “Independence and causality in the reversible concurrent setting,” in Reversible computation: 7th international conference (RC 2025), 2025, vol. 15716, pp. 9–26, doi: 10.1007/978-3-031-97063-4_2.
[7]
H. Melgratti, C. A. Mezzina, and G. M. Pinna, “A reversible perspective on petri nets and event structures,” ACM Trans. Comput. Logic, vol. 25, no. 4, pp. 23:1–23:38, 2024.
[8]
C. E. Shannon, Reprinted in Claude E. Shannon: Collected Papers, IEEE Press, 1993“Coding theorems for a discrete source with a fidelity criterion,” in IRE nat. Conv. rec., 1959, vol. 4, pp. 142–163.
[9]
T. M. Cover and J. A. Thomas, Elements of information theory, 2nd ed. Wiley, 2006.
[10]
I. Csiszár and J. Körner, Information theory: Coding theorems for discrete memoryless systems, 2nd ed. Cambridge University Press, 2011.
[11]
S. Abiteboul, R. Hull, and V. Vianu, Foundations of databases. Addison-Wesley, 1995.
[12]
M. Krötzsch, To appear. Preprint available at https://drops.dagstuhl.de/storage/01oasics/oasics-vol138-rw2024+rw2025/OASIcs.RW.2024-2025.7/OASIcs.RW.2024-2025.7.pdf“Modern datalog: Concepts, methods, applications,” in Reasoning web. Declarative artificial intelligence. Knowledge, rules, logic, 2025.
[13]
J. Xu, arXiv:2604.15698v4“Rate-distortion theory for deductive sources under closure fidelity,” ArXiv, vol. 2604.15698v4, 2026.
[14]
H. Melgratti, C. A. Mezzina, and G. M. Pinna, “Relating reversible petri nets and reversible event structures, categorically,” Logical Methods in Computer Science, vol. 21, 2025.
[15]
R. E. Blahut, “Computation of channel capacity and rate-distortion functions,” IEEE Transactions on Information Theory, vol. 18, no. 4, pp. 460–473, 1972, doi: 10.1109/TIT.1972.1054855.
[16]
S. Arimoto, “An algorithm for computing the capacity of arbitrary discrete memoryless channels,” IEEE Transactions on Information Theory, vol. 18, no. 1, pp. 14–20, 1972.
[17]
S. Oguchi, S. Yuen, and N. Yoshida, “RevMiGo: Reversible channel-based communication in go language,” in Proc. RC 2025, 2025.
[18]
E. Dantsin, T. Eiter, G. Gottlob, and A. Voronkov, “Complexity and expressive power of logic programming,” ACM Computing Surveys (CSUR), vol. 33, no. 3, pp. 374–425, 2001.
[19]
A. Tarski, “A LATTICE-THEORETICAL FIXPOINT THEOREM AND ITS APPLICATIONS,” Pacific J. Math, vol. 5, pp. 285–309, 1955.
[20]
J. Korner et al., “Coding of an information source having ambiguous alphabet and the entropy of graphs.” in 6th prague conference on information theory, etc., 1971, pp. 411–425.
[21]
I. Csiszár and J. Körner, Information theory: Coding theorems for discrete memoryless systems. Cambridge University Press, 2011.
[22]
R. Landauer, “Irreversibility and heat generation in the computing process,” IBM Journal of Research and Development, vol. 5, no. 3, pp. 183–191, 1961.
[23]
C. H. Bennett, “Logical reversibility of computation,” IBM Journal of Research and Development, vol. 17, no. 6, pp. 525–532, 1973.
[24]
C. H. Bennett, “The thermodynamics of computation—a review,” International Journal of Theoretical Physics, vol. 21, no. 12, pp. 905–940, 1982.
[25]
T. Toffoli, “Reversible computing,” in Proc. ICALP 1980, 1980, vol. 85, pp. 632–644.
[26]
I. Phillips and I. Ulidowski, “Reversing algebraic process calculi,” Journal of Logic and Algebraic Programming, vol. 73, no. 1–2, pp. 70–96, 2007.
[27]
W. Arnone and I. Lanese, “Tallulah, a tool to support the axiomatic approach to causal-consistent reversibility,” in Reversible computation: 7th international conference (RC 2025), 2025, vol. 15716, pp. 1–8, doi: 10.1007/978-3-031-97063-4_1.
[28]
C. E. Shannon, “A mathematical theory of communication,” Bell System Technical Journal, vol. 27, no. 3, pp. 379–423, 1948.

  1. If your implementation uses a slightly different grid or normalization, only this display should be updated; the interpretation remains the same.↩︎