betaFeedback

WorksComputer Science

Automating Observable Closure Analysis for Graph Transformation Models with MolFoundry

Abstract

Graph transformations model changing systems, with applications in software, biology and chemistry, among others. We introduce MolFoundry, a graph transformation framework, and present a workflow for observable analysis that tracks the dynamics of local patterns through rule composition. Analysing rule compositions avoids the need to enumerate a potentially infinite state space. Building on rule-algebraic stochastic rewriting, MolFoundry's kernel composes rules with nested application conditions, including missing-edge constraints. Given rules, rates and query patterns, the algorithms iteratively identify auxiliary pattern counts and search for closure. Using exact counting identities supplied by graph-family backends, successful searches yield closed ordinary differential equations for average counts or, with justified individual jumps, finite event models describing joint changes and rates. We evaluate conditional composition and automated discovery of auxiliary observables against published calculations and independent rule application. Applications to aldol addition, copolymerization and chlorination show how the framework yields quantitative predictions directly from molecular graph rules.

Introduction

Graph transformations are an established approach to modelling systems whose structures change. Applications range from software models and visual languages [18, 12] to chemical reaction systems [1] and biological interaction networks [8]. Graphs represent entities and their relationships; local rules specify how these entities and relationships can be created, deleted or reconnected. A key strength is that this graphical description has rigorous mathematical semantics. In algebraic graph transformation, rules themselves can be composed, providing a formal connection between individual transformations and their combined effects [4, 6].

Several tools make substantial parts of this framework available in practice. AGG supports modelling, execution and validation of graph transformation systems [18]; GROOVE provides state-space exploration and model checking [12]. MØD supports molecular graph rewriting, reaction-network generation and rule composition [1], while the Kappa platform provides simulation and analysis of biochemical models [8]. Despite the range of graph transformation tools, not every theoretical capability is available as an automated analysis.

One particularly compelling capability is to infer quantitative behaviour directly from rules, their rates and a few query patterns. How does the count of each pattern change over time, on average? Which counts change together and which counts influence others? These count functions are called observables; expectations of their values, products and powers are their moments. Behr and collaborators developed a rule-algebraic calculus for their evolution and, through polynomial jump closure, for converting joint moment dynamics into equations for generating functions [3]. This permits the analysis of selected counts without enumerating every graph state, even when the rules generate a potentially infinite state space. Conditional composition theory [6], and its application to stochastic models in the life sciences [7], extend these foundations to rules and observables with structural conditions, such as requiring a connection to be absent (a missing-edge constraint).

Important steps toward executable analysis already exist. FRAGGER automates the expansion of graph rate equations and recursively introduces the counts needed to express their changes [10]; KaDE compiles Kappa rules into reaction-network ordinary differential equation (ODE) models with symmetry-based reductions [9]. Earlier Z3 prototypes address constrained overlaps for rule composition and commutator calculations [5]. These are substantial building blocks, but the published implementations do not combine conditional composition, automatic discovery of auxiliary observables, and extraction of their joint jumps and rates. FRAGGER identifies nested application conditions as future work [10 Section 4]. In a published molecular case study, a conditioned observable had to be replaced by an unconditioned one because the implementation could not represent its condition [7 Section 8.3.1].

Related reductions include stochastic lumping of rule-based models [11] and constrained lumping of existing ODE systems, as in CLUE [17]. Unlike reduction of an existing ODE system, our analysis discovers count dynamics directly from conditional graph rules, even when no finite reaction network is available.

Observable analysis repeatedly computes how each rule changes a selected pattern count. Conditional composition gives an expression for its instantaneous expected change [7]. New pattern counts in the resulting expression are analysed in turn, forming an iterative dependency-discovery process.

The need for auxiliary observables is already visible in a growing A / B chain. The two paths in Figure 1 both have zero occurrences of ABAABA, but appending AA creates an ABAABA occurrence only for the path ending in ABAB. The change in the ABAABA count therefore depends on the ABAB ending count; the motif count alone cannot describe its own changes. This running example follows the analysis in Section 3 and later corresponds to a copolymer sequence.

Paths $w_1=BABB$ and $w_2=BBAB$ with appended $A$

Figure 1. The paths w1=BABBw_1 = BABB and w2=BBABw_2 = BBAB both have zero ABAABA occurrences. Appending AA leaves the upper count unchanged but creates one occurrence below (green), because only w2w_2 ends in ABAB (blue). This ending count is an auxiliary observable discovered by MolFoundry.

A successful search can yield a finite closed system of ODEs for expected counts [10], or a finite event model recording simultaneous count changes and rates. The latter retains fluctuations and dependencies beyond the means, but need not yield a finite expectation ODE. Polynomial expressions for average changes alone do not determine individual jumps. Neither kind of closure is guaranteed for arbitrary rules and queries [3 Section 6].

We present an executable workflow for observable analysis built on MolFoundry, combining multiplicity-preserving conditional composition, sound graph-family pruning, and shared searches for exact observable dynamics. MolFoundry’s kernel computes conditional rule compositions, including missing-edge tests (NoEdge) and transport of nested application conditions. On top of this core, shared algorithms search for linear expectation closure or discover polynomial support and, with justified individual jumps, construct finite event models. Graph-family backends supply exact counting identities; the algorithms discover which auxiliary observables a query needs. The resulting guarantees are relative to these supplied identities and jump arguments, not to arbitrary graph families. Unfinished searches retain partial results and pending work.

We apply this workflow to chemistry, where structural conditions can change quantitative predictions. We automate the conditional compositions in the published aldol-addition case study [7] with the observable’s missing-edge condition intact, derive sequence-count dynamics directly from atom-resolved copolymerization rules on chains of unbounded size, and analyse a stylised chlorination model in which a negative application condition (NAC)—a special case of nested conditions forbidding a pattern extension—prevents further substitution.

Section 2 states the mathematical requirements, Section 3 describes the workflow, and Section 4 evaluates composition, query reuse and agreement with independent calculations. The mathematical appendices and material guide give counting arguments and executable inputs.

Background

The analysis computes how rules change counts, then seeks a finite description of their dynamics. We recall the required conditional double-pushout (DPO) calculus [6, 7] and distinguish the two kinds of output.

Rules, Queries and Count Changes

A linear rule r=(L←K→R,c)r = (L \leftarrow K \rightarrow R,c) has input LL, output RR, preserved part KK, injective maps and an application condition cc. A match m:L↪Gm : L \hookrightarrow G is admissible if it satisfies cc and the DPO gluing conditions; rm(G)r_m(G) is its successor. Deleting a vertex requires all its incident edges to be matched and deleted [7 Definitions 4–5].

Our observable analysis supports conjunctions of NoEdge(u,v)(u,v), forbidding an edge between matched vertices, and local neighbour-count predicates. Their nested-condition encodings are in Appendix A.1. The chlorination example additionally handles a neighbour NAC using a dedicated local reduction and joint-jump certificate.

Fix a possibly infinite family Ω\Omega of finite labelled graphs that is closed under admissible rule applications. Conditions select matches; Ω\Omega restricts whole states. An observable is a real-valued function on Ω\Omega; a query (P,c)(P,c) counts injective matches satisfying cc, written q(G)=[P,c](G)q(G) = [P,c](G). Each admissible rule match has rate κrνr\kappa_r\nu_r, with rate parameter κr≥0\kappa_r \ge0 and rational normalization νr>0\nu_r > 0.

The stochastic generator sums each possible change in an observable FF, multiplied by its rate:

(LF)(G)=∑rκrνr∑m∈Adm⁡r(G)[F(rm(G))−F(G)].(1)(\mathcal{L}F)(G) = \sum_r \kappa_r\nu_r \sum_{m\in\operatorname{Adm}_r(G)} [F(r_m(G)) - F(G)]. \tag*{(1)}

Here Adm⁡r(G)\operatorname{Adm}_r(G) is the admissible-match set and L=∑rκrLr\mathcal{L} = \sum_r \kappa_r\mathcal{L}_r defines rate-free rule contributions. Rules sharing a parameter form a rate channel γ\gamma, with κr=κγ\kappa_r = \kappa_\gamma and Lγ=∑r∈γLr\mathcal{L}_\gamma= \sum_{r\in\gamma}\mathcal{L}_r; independent rates use singleton channels. Write GtG_t for the associated continuous-time Markov chain (CTMC).

To compute a query’s changes, represent it by the identity rule Oi=(Pi←Pi→Pi,ci)O_i = (P_i \leftarrow P_i \rightarrow P_i,c_i). These queries are conditional pattern counts; general DPO observables can also use a proper interface K⊊PiK \subsetneq P_i [7 Theorem 6]. With r1r_1 applied first, conditional composition r2⋆r1=∑μr2∘μr1r_2 \star r_1 = \sum_\mu r_2 \circ_\mu r_1 sums over admissible overlaps between the first rule’s output and the second’s input, retaining both conditions [6]. Multiplicities of isomorphic composites are retained as coefficients in finite formal rational linear combinations of rule basis elements. Projection JDPO(r)=(L←K→L,c)\mathcal{J}_{\mathrm{DPO}}(r) = (L \leftarrow K \rightarrow L,c) preserves KK and admissibility. We extend JDPO\mathcal{J}_{\mathrm{DPO}} linearly to rule expressions. The two composition orders count occurrences after and before a rule application; unchanged occurrences cancel. The commutator gives the normalized count change [7 Theorems 6 and 9, Corollary 1]:

Lrqi=νr⟨ ⁣⟨JDPO(Oi⋆r−r⋆Oi)⟩ ⁣⟩ on Ω.(2)\mathcal{L}_r q_i = \nu_r \langle\!\langle\mathcal{J}_{\mathrm{DPO}}(O_i \star r - r \star O_i) \rangle\!\rangle\text{ on } \Omega. \tag*{(2)}

Here ⟨ ⁣⟨⋅⟩ ⁣⟩\langle\!\langle\cdot\rangle\!\rangle sums projected admissible-match counts with their coefficients, and Lrqi\mathcal{L}_r q_i is the query’s generator image. Exact count reduction rewrites this expression using identities valid throughout Ω\Omega.

Finite Descriptions of Observable Dynamics

Linear expectation closure. If the selected counts and all images Lγbi\mathcal{L}_\gamma b_i are constant-coefficient linear combinations of a finite vector B=(b1,…,bn)TB = (b_1,\ldots,b_n)^\mathsf{T}, its averages satisfy a closed ordinary differential equation (ODE) [10]:

LγB=AγB  on Ω,ddtE[B(Gt)]=(∑γκγAγ)E[B(Gt)].(3)\mathcal{L}_{\gamma}B=A_{\gamma}B\ \text{ on }\Omega,\qquad\frac{d}{dt}\mathbb{E}[B(G_t)]=\left(\sum_{\gamma}\kappa_{\gamma}A_{\gamma}\right)\mathbb{E}[B(G_t)]. \tag*{(3)}

The entries of BB may include products or linear combinations of counts; (Aγ)ij(A_{\gamma})_{ij} is the coefficient of bjb_j in Lγbi\mathcal{L}_{\gamma}b_i.

Finite event model. For a vector ϕ\phi of selected and additional pattern counts, an event records a constant integer change δe\delta_e and polynomial activity aea_e. Its rate is κγ(e)ae(z)\kappa_{\gamma(e)}a_e(z) at z=ϕ(G)z=\phi(G). For real-valued functions ff of these coordinates, the event generator L‾\overline{\mathcal{L}} must preserve the simultaneous changes:

(L‾f)(z)=∑eκγ(e)ae(z)[f(z+δe)−f(z)],(\overline{\mathcal{L}}f)(z)=\sum_e\kappa_{\gamma(e)}a_e(z)[f(z+\delta_e)-f(z)],
L(f∘ϕ)=(L‾f)∘ϕ.(4)\mathcal{L}(f\circ\phi)=(\overline{\mathcal{L}}f)\circ\phi. \tag*{(4)}

Each event groups applications in one rate channel with the same jump; activities include match normalization, are nonnegative on ϕ(Ω)\phi(\Omega), and permit only jumps remaining in that set. This is a sufficient form of polynomial jump closure [3 Definition 4.1]. Choosing f(z)=zif(z)=z_i gives Lzi=∑eκγ(e)δe,iae(z)\mathcal{L}z_i=\sum_e\kappa_{\gamma(e)}\delta_{e,i}a_e(z).

A finite event model determines the exact expectation equations, but polynomial activities may introduce an infinite moment hierarchy even if finite linear closure exists. Conversely, opposite jumps may cancel in the mean drift, yielding a small exact expectation system even when these coordinates admit no finite constant-jump event model. Neither output is universally preferable. Linear closure therefore remains a separate reduction problem even after event closure succeeds.

For the process interpretation we assume nonexplosion and, for expectation equations, the required integrability and interchange with the generator. Appendix § 6.§ 2 gives these qualifications and the conversion from events to a joint exponential moment-generating function (EMGF) equation.

Observable Analysis with MolFoundry

Within the rule and query forms supported by a backend, users supply rules, rates, query patterns and search budgets. The backend provides reusable counting identities and the justification required for event construction, not the query’s closure basis or equations. MolFoundry’s kernel computes the rule compositions in Equation (2); its Python analysis package mfobs discovers auxiliary observables and searches for closed dynamics. Changing the query reuses the backend; a new graph family may require additional counting and jump arguments.

For the running ABA query, discovery introduces free-token and path-ending counts and constructs eight joint event classes. § 3.3 works through this result after the two search procedures below.

Conditional Composition and the Counting Interface

The two algorithms computing the linear and event closures share composition and reduction backends.

The composition kernel enumerates common overlaps, transports application conditions to composite inputs and aggregates their multiplicities. It also implements generic nested-condition transport, subject to a budget on the enumeration used to transport conditions; the observable analysis uses the condition fragment stated in § 2. The analysis composes each query identity with each source rule in both orders and applies jump projection as in Equation (2). Terms are collected by a canonical key for the span and its represented conditions; span isomorphism alone is insufficient. This comparison does not decide logical equivalence of arbitrary nested conditions, which is undecidable in general [14], but suffices for the conditions used in our examples. Further count equalities on Ω\Omega are established by the counting backend.

The counting backend A\mathcal{A} implements exact reductions on the specified graph family Ω\Omega. Its operation A\mathcal{A}.Reduce rewrites a projected rule expression from the composition kernel in terms of pattern counts, e.g. for the AγA_\gamma matrix from Equation (3). It returns the resulting expression, the patterns whose counts occur in it, and the identities used. A pattern factor is one of these count functions appearing as a factor in a product. A term can be removed as zero only when its count vanishes throughout Ω\Omega. Products likewise require a counting identity valid on Ω\Omega. Reduction preserves equality on Ω\Omega but need not recognize every identity. Exact elimination in the backend’s representation can therefore leave redundant count functions, as in the eight-site binding model (§ 4.4).

In the growing A/B path model (§ 3.3), a pattern combining a free AA token with a word ww anchored at the unique path end has MASwM_A S_w matches: MAM_A counts free tokens and SwS_w indicates the ending. Their matches are necessarily disjoint, so the counts multiply. This identity holds for arbitrary finite paths and token pools. The backend implements it for supported words; composition and the worklist determine which words the selected query requires.

The number of overlap candidates in the composition kernel can be reduced by bounds on incident edges in the graph family Ω\Omega. For molecular graphs, these bounds constrain how many bonds of each type may connect an atom to neighbours of specified labels. These supplied restrictions are not a general chemical-validity check. Further identifications may merge vertices and edges that are still distinct in a partial overlap. The enumerator therefore discards all extensions of a partial overlap only if even the largest possible further merging cannot satisfy a supplied bound. Each remaining candidate still undergoes conditional composition. Appendix § 7 gives the bounds and counting arguments used by the supported backends.

Illustration: counting a missing edge. Let uu delete a bound edge between differently labelled vertices U,VU,V. Let XX count such pairs with no edge, represented by the identity rule OXO_X. For the count reduction, take the two-state family containing exactly one U,VU,V pair and only the optional bound edge. In the full overlap of OX⋆uO_X \star u, deletion establishes the query’s absence condition, leaving a positive contribution from uu. For this overlap, the reverse order u⋆OXu \star O_X requires the input edge to be both present and absent, giving a contradictory composite u⊥u_\perp (Figure 2).

Conditions in the two composition orders, showing rule u, query X, and the two composition results

Figure 2. Conditions in the two composition orders. (a) Rule uu deletes the bound edge, preserving both vertices. (b) Query XX counts pairs without that edge (red dashed line). (c) Full overlap in OX⋆uO_X \star u gives +u+u: deletion establishes the absence condition. (d) The reverse order gives −u⊥-u_\perp: its input requires the edge both present and absent, so the condition is unsatisfiable.

The one-endpoint overlaps cancel between the two orders, as does the empty overlap when included. Projection leaves the bound-edge count, which is 1−X1-X on this two-state family. With unit match normalization, rule uu contributes κu(1−X)\kappa_u(1-X) to LX\mathcal{L}X. Appendix § 6.§ 1 gives the full overlap expression.

Discovering Observable Dynamics

Algorithm 1 applies the observable-dependency expansion underlying graph rate equations [10 Section 1.2] to the conditional count-change calculus [7]. It seeks a vector BB satisfying Equation (3), starting with the count observables of the query set Q\mathcal{Q}. A worklist WW holds functions whose generator images still need to be computed. For each function and rate channel, exact elimination attempts to express its image in the current entries of BB, using the backend’s representation. If it succeeds, the algorithm stores the coefficients vjv_j, which form a row of the AγA_\gamma matrix for each rate channel. Otherwise, it adds the residual expression and queues that function. Entries of BB may be pattern counts, products or linear combinations. Contributions from rules sharing a rate parameter are summed before this test; one nonzero residual adds one coordinate.

Algorithm 2 seeks a finite event model in two stages: polynomial-support discovery and event extraction. Starting from the query counts ϕ\phi, it reduces each rule’s activity ar(G)=νr∣Adm⁡r(G)∣a_r(G)=\nu_r\lvert\operatorname{Adm}_r(G)\rvert and each generator image Fi,r=LrϕiF_{i,r}=L_r\phi_i to polynomials in these counts. A new pattern factor becomes a coordinate of ϕ\phi, and its identity rule enters WW. The record TT stores the compositions and reductions. When no new pattern factors are needed, all activities and coordinate images are polynomials in the discovered vector ϕ\phi; this is polynomial support closure.

Event extraction requires uniform matches: at a fixed host graph, every admissible match of a rule has the same change Δrϕ(G)\Delta_r\phi(G). For ar>0a_r>0, this change is F⋅,r/arF_{\cdot,r}/a_r, where F⋅,rF_{\cdot,r} is the vector of coordinate images. The backend partitions

Algorithm 1 Linear expectation-closure search.

Require: Rules RR grouped by rate channel, queries QQ, backend A\mathcal{A} for Ω\Omega, budgets

  1. B←B \leftarrow count observables of QQ; W←BW \leftarrow B

  2. while W≠∅W \ne\varnothing and budget remains do

  3. Remove bib_i from WW

  4. for each rate channel γ\gamma do

  5. Compute F←∑r∈γLrbiF \leftarrow\sum_{r \in\gamma} L_r b_i by (2)

  6. Reduce FF modulo span⁡(B)\operatorname{span}(B) in A\mathcal{A}; add its nonzero residual

  7. Queue the new function, if any; store the exact coefficients of FF

  8. end for

  9. end while

  10. return matrices AγA_\gamma if complete; otherwise partial equations and pending work

the enabled coordinate states into finitely many nonempty classes on which this vector is constant. Each polynomial indicator IcI_c is one in its class and zero elsewhere, so the corresponding event has activity arIca_r I_c. The set EE records its rule, jump and activity. The conversion in Appendix A.2 then gives the joint moment-generating-function equation.

The growing A/B path model in Section 3.3 uses this uniform-match loop. Rémy trees instead use a context-counting argument; neighbour-NAC chlorination partitions source matches by their complete jumps using symbolic condition reduction and locality. These separately justified constructions satisfy Equation (4).

Backend-relative guarantees. Successful completion of Algorithm 1 establishes the invariant-span condition (3). For Algorithm 2, successful completion establishes the event identity (4) separately for each rate channel under the uniform-match and finite-partition requirements stated above. Both guarantees assume sound composition and exact backend reduction on a rule-closed graph family Ω\Omega.

Both algorithms run independently from the supplied rules and queries. Their worklists and uniform-match event extraction are shared; counting identities and partitions are supplied by the backends. The analysis records support closure, event construction and linear expectation closure separately. Budget exits retain pending work and do not establish non-closure; algorithm lines link to their implementations.

Worked Example: A Motif in a Growing A/B Path

We now specify the growing path used informally in the introduction. A state contains one rooted, directed path whose vertices carry labels AA or BB, together with finite pools of free AA and BB tokens. A distinguished end identifies where the path grows, including when it is empty. Two feed rules add free tokens at rates βA,βB\beta_A,\beta_B. Two append rules consume a free token and extend the path by its label, with per-match rates kA,kBk_A,k_B. The path and pools may grow without a fixed bound. ABA webpage ↗ ABA notebook ↗

Algorithm 2 Pattern-support discovery and uniform-match event extraction.

Require: Rules RR, queries QQ, exact backend A\mathcal{A} for Ω\Omega, budgets

  1. ϕ←\phi\leftarrow count observables of QQ; W←W \leftarrow their identities; initialize TT

  2. for each rule rr do

  3. ar←A.Reduce⁡(νrJDPO(r))a_r \leftarrow\mathcal{A}.\operatorname{Reduce}(\nu_r J_{\mathrm{DPO}}(r))

  4. Add newly occurring represented pattern factors to ϕ,W\phi, W

  5. end for

  6. while W≠∅W \ne\varnothing and budget remains do

  7. Remove OiO_i representing ϕi\phi_i from WW

  8. for each rule rr do

  9. Fi,r←A.Reduce⁡(νrJDPO(Oi⋆r−r⋆Oi))F_{i,r} \leftarrow\mathcal{A}.\operatorname{Reduce}(\nu_r J_{\mathrm{DPO}}(O_i \star r-r \star O_i))

  10. Store operands, coefficients and reductions in TT

  11. Add newly occurring represented pattern factors to ϕ,W\phi, W

  12. end for

  13. end while

  14. if a reduction is unsupported or work remains then

  15. return partial support, TT and pending work

  16. end if

  17. Require the backend’s uniform-match justification

  18. E←∅E \leftarrow\varnothing

  19. for each rule rr with nonzero activity do

  20. Reduce dr=F⋅,r/ard_r=F_{\cdot,r}/a_r exactly on ar>0a_r>0

  21. Require a finite exhaustive partition {Ic}\{I_c\} with constant dr=δr,cd_r=\delta_{r,c}

  22. Add all (r,δr,c,A.Reduce⁡(arIc))(r,\delta_{r,c},\mathcal{A}.\operatorname{Reduce}(a_r I_c)) to EE

  23. end for

  24. return ϕ,E\phi, E, assumptions and TT; export the EMGF equation

For a word ww, let CwC_w count its contiguous occurrences, including overlaps, and SwS_w indicate whether the path ends in ww. The user selects only q=CABAq=C_{ABA}. We run both algorithms independently for this query. On this unbounded family, no finite channel-wise linear expectation closure exists for qq, so Algorithm 1 cannot close. Algorithm 2 yields a finite event model; we illustrate the latter construction below. Algorithm 2 discovers the other counts using the path and free-token identities in Appendix § 7.§ 1.

Discovering the coordinates. Reducing the append-rule activities (line 3) introduces the free-pool counts MA,MBM_A,M_B. The projected commutator (line 9) for qq and appending AA reduces to MASABM_A S_{AB}, where SABS_{AB} is the count of an ABAB pattern anchored at the path end. The generator image of SABS_{AB} under appending BB introduces the AA-ending count SAS_A. Together, the generated expressions are

Lq=kAMASAB,LSAB=kBMBSA−(kAMA+kBMB)SAB,LSA=kAMA(1−SA)−kBMBSA,(5)\begin{aligned} \mathcal{L}q &= k_A M_A S_{AB},\\ \mathcal{L}S_{AB} &= k_B M_B S_A-(k_A M_A+k_B M_B)S_{AB},\\ \mathcal{L}S_A &= k_A M_A(1-S_A)-k_B M_B S_A, \tag*{(5)} \end{aligned}

with LMσ=βσ−kσMσ\mathcal{L}M_\sigma=\beta_\sigma-k_\sigma M_\sigma for σ=A,B\sigma=A,B. The rate-free A-append image of MAnSABM_A^nS_{AB} is −MAn+1SAB-M_A^{n+1}S_{AB} (n≥1n\ge1). Repeated images of qq thus require arbitrarily high powers, linearly independent on the unbounded free pool; this rules out finite channel-wise linear closure. No further pattern counts are needed to express these activities and images, so polynomial support closes at ϕ=(q,MA,MB,SAB,SA)T\phi= (q, M_A, M_B, S_{AB}, S_A)^\mathsf{T}.

From coordinates to events. Every append match selects the unique path end and one free token. Different free copies remain distinct rate contributions but give the same coordinate jump. The unique ending also justifies SA2=SAS_A^2 = S_A, SAB2=SABS_{AB}^2 = S_{AB} and SASAB=0S_A S_{AB} = 0. The path ends in AA, in ABAB, or in neither. The corresponding class indicators are SAS_A, SABS_{AB} and 1−SA−SAB1 - S_A - S_{AB}. Two append rules across these three classes, plus two feeds, give eight events. Appending AA to an ABAB ending, for example, yields

δe=(1,−1,0,−1,1)T,ae=MASAB.\delta_e = (1,-1,0,-1,1)^\mathsf{T}, \qquad a_e = M_A S_{AB}.

One motif is created, one free AA consumed, and the ending changes to AA. The full rate is kAMASABk_A M_A S_{AB}. The conversion in Appendix § 6.§ 2 gives the joint EMGF operator. Appendix § 7.§ 1 lists all eight events, one operator term and a numerical update. The expectation equation for qq contains E[MASAB]\mathbb{E}[M_A S_{AB}], so it is not closed in the five coordinate means.

§ 4.2 varies the query while keeping these rules and the counting backend fixed.

Adding one condition. Add the two-state U,VU,V gate from Figure 2 and require NoEdge(U,VU,V) in both append rules. Closing the gate blocks extension while feeding continues. This is an abstract control, not a chemical inhibition mechanism. Count reduction introduces the absence indicator XX as a sixth coordinate and multiplies each append activity by XX. Opening and closing add two events, giving ten in total. The gate does not restore finite channel-wise linear closure; Appendix § 7.§ 1 gives the events and rates.

Implementation and Use

MolFoundry provides graph construction, rule application, reaction-network generation, pathway analysis and stochastic simulation.1 Its TypeScript/JavaScript kernel provides matching and conditional composition through the molfoundry Python interface. Its Python analysis package mfobs implements the observable analysis presented here: shared algorithms, graph-family backends and event/EMGF construction. Its public entry point is mfobs.analyze; the notebooks expose the model inputs, analysis call and numerical settings.

The interactive examples for ABAABA, chlorination and Rémy trees show rules, applications, state expansions and curves. Their website generators consume exported analysis records; notebooks use the same analysis and numerical routines. Compositions, complete equations and counting arguments are available as details. Inputs can be changed in Python; algorithm lines link directly to the implementation.

Evaluation

The examples span conditional composition, discovery and molecular modelling. Aldol addition tests NoEdge-conditioned composition and cancellation (§ 4.1). The running A/B model tests query reuse and illustrates generated dynamics through stochastic simulation and numerical integration of probability equations (§ 4.2). Rémy trees recover a published calculation through discovery of subtree pattern counts (§ 4.3); eight sites test NoEdge-guarded binding and closure across topologies (§ 4.4). The FRAGGER comparison covers DNA-walker equations and a shared composition benchmark (§ 4.5). Atom-resolved copolymerization realises the A/B model with molecular rules (§ 4.6). Finally, synthetic chlorination tests a neighbour NAC on five-membered rings with arbitrarily long alkyl tails (§ 4.7).

Counting arguments apply throughout the declared graph families; independent rule application, published calculations and bounded host checks test the implementations. The material guide links inputs, outputs and protocols.

Conditional Composition for the Aldol Addition

We revisit the aldol addition studied by Behr et al. [7, Section 8.3]. The observable counts matches of a molecular pattern in which two designated carbon atoms must not be bonded. We represent it as an identity rule with a NoEdge constraint between these atoms. The original study analyses the effect of this condition manually; our implementation computes the conditional compositions automatically. Figure 3 shows the reaction rule, the identity rule for the observable and two selected composites. Aldol notebook ↗

Conditional composition diagrams for the aldol addition

Figure 3. Conditional composition for the aldol addition. (a) Reaction rule L←K→RL \leftarrow K \rightarrow R; (b) identity query with NoEdge; (c,d) selected r180r_{180} composites from rule-after-query and query-after-rule composition, respectively, with coefficients −1,+1-1,+1. Corresponding atoms occupy the same positions. The spans are isomorphic, but transported NoEdge constraints differ: the terms cancel only without the query’s constraint. Red crosses mark absence constraints; edge-creation admissibility is implicit.

We compose the reaction and identity rule in both orders, with and without the identity rule’s NoEdge constraint. The reaction rule’s own NoEdge constraint and the valence filter (atom degree weighted by bond order) remain unchanged. Without the identity rule’s constraint, we obtain 13 contributions when the reaction precedes the identity rule and 18 in the reverse order. Adding the constraint excludes three contributions in the first order, giving 10 and 18.

The constraint also changes which contributions cancel. Two composites can have isomorphic underlying spans but different transported NoEdge constraints. They must then remain distinct when collecting the positive and negative contributions. Consequently, although fewer compositions are admissible, the number of nonzero signed terms in the commutator (Equation (2)) increases from 13 to 18.

Panels (c,d) show this effect for the published r180r_{180} overlap. Without the identity rule’s NoEdge constraint, the two selected terms cancel. With it, the transported constraints refer to different atom pairs, leaving two terms with coefficients −1-1, +1+1. Direct injective matching on a 16-atom host graph gives input-pattern match counts (0, 1) with these constraints, compared with (1, 1) when the identity rule’s constraint is removed. Cancelling solely by the underlying spans would therefore discard a nonzero contribution.

For a separate condition-free control, we remove both NoEdge constraints. MØD and MolFoundry give the same compositions, including one contribution absent from the published table. The comparison above instead retains the reaction rule’s constraint. Using an explicit absence-edge encoding, MØD also gives the same conditional compositions after translation to NoEdge constraints. The accompanying material provides the rules, overlap maps, host graph and per-rule comparisons.

Changing the Query with the Backend Held Fixed

We change only the query in the ungated A/B path model of § 3.3. The four feed/append rules and backend stay fixed while we select ABAB, ABAABA, ABBAABBA, AAAAAAAA and ABABAABABA. Each run allows at most 64 discovered patterns, 64 worklist expansions and 24 functions in the expectation basis. Table 1 lists the discovered end patterns and events. Repeated-letter motifs require identities between overlapping suffix conditions: a path ending in AAAAAA also ends in AAAA and AA, so SAAA=1S_{AAA}=1 implies SAA=SA=1S_{AA}=S_{A}=1. The same counting procedures resolve these dependencies when constructing the event classes. Query-variation notebook ↗

Direct enumeration of bounded words and token pools agrees with the generated coordinate images and joint jump rates for every query.

For numerical illustration, we use the gated ABAABA event model. Figure 4 compares finite-state projection (FSP) [15] with the stochastic simulation algorithm (SSA) [13]. These standard numerical methods are downstream of symbolic closure analysis. FSP restricts count ranges and solves finite ODEs for probabilities and moments; SSA estimates the moments from 100 independent trajectories. The notebook defaults to the ungated running example; setting GATE=True and T=20 reproduces this configuration. [ABA webpage ↗] [ABA notebook ↗]

Figure 4. Mean and variance from the generated gated ABAABA event model: red curves are computed from the finite ODE approximation using FSP; blue curves show estimates from 100 SSA runs. Shading shows ±1.96\pm1.96 Monte Carlo standard errors of the mean. Initially the path is ABABABAB, (MA,MB)=(2,1)(M_A, M_B) = (2, 1) and the gate is open. Rates are βA=2\beta_A = 2, βB=1.5\beta_B = 1.5, kA=0.9k_A = 0.9, kB=0.01k_B = 0.01, a=0.6a = 0.6 (close) and b=0.4b = 0.4 (open).

QueryDiscovered end wordsCoordinates / eventsTermsTime (s)
ABABAA4 / 61180.074
ABAABAA,ABA, AB5 / 83340.128
ABBAABBAA,AB,ABBA, AB, ABB6 / 107750.236
AAAAAAAAA,AA,AAAA, AA, AAA6 / 107750.230
ABABAABABAA,AB,ABA,ABABA, AB, ABA, ABAB7 / 121,5570.445

Table 1. Five sole queries, unchanged path rules and backend. An end word ww denotes the discovered pattern SwS_w. Coordinates also include the selected motif and two free-pool counts. Time is the median of three fresh serial processes for support discovery and event extraction, excluding validation and linear closure. Terms are raw composites before removing impossible patterns and cancelling signed contributions. All event constructions complete; every linear search reaches its 24-function budget.

Recovering a Calculation on Unbounded Trees

We next analyse the planar rooted binary-tree model [2 Section 5]. Its six rules subdivide a selected edge, attach a leaf and choose the old subtree’s left/right placement. Edge labels II, LL, RR distinguish the root attachment and left and right children. The original uses sesqui-pushout (SqPO) rewriting; we represent the same insertions by DPO rules on this tree family, with a common per-match

rate κ\kappa. The correspondence is explained in Appendix § 7.§ 2. Rémy webpage ↗ Rémy notebook ↗

Let PjP_j count rooted subtrees with at least jj internal vertices on their left spine—the path obtained by repeatedly taking the left child [2 Equations (45) and (54)]. Figure 5 shows one insertion rule. The only selected count is P3P_3.

Rémy insertion rule showing a subtree insertion with edge types $T \in \{I,L,R\}$, old subtree placement on $L$ or $R$, and the count $P_3$

Figure 5. Tree insertion [2 Equation (45)]: a new vertex ww subdivides v→pv \to p and gains a leaf tt. Green marks additions; triangles denote the preserved subtree. Three edge types T∈{I,L,R}T \in\{I,L,R\} and two subtree placements give six rules.

Composition and exact linear-dependence tests discover P2P_2, P1P_1 and the edge count EE. Algorithm 1 sums the six contributions in their shared rate channel before testing the span. Writing μE=E[E]\mu_E = \mathbb{E}[E] and μj=E[Pj]\mu_j = \mathbb{E}[P_j], it yields

μ˙E=4κμE,μ˙1=2κμE,\dot{\mu}_E = 4\kappa\mu_E,\qquad\dot{\mu}_1 = 2\kappa\mu_E,
μ˙2=κ(3μ1−2μ2),μ˙3=4κ(μ2−μ3).\dot{\mu}_2 = \kappa(3\mu_1 - 2\mu_2),\qquad\dot{\mu}_3 = 4\kappa(\mu_2 - \mu_3).

The tree backend also computes four events by counting insertion contexts, using an identity valid for all finite trees in this family. The generated events also recover the published Equation (57g) [2], using the conversion given in Appendix § 7.§ 2.2 Independent checks on concrete trees confirm the generated jumps and their multiplicities. Appendix § 7.§ 2 gives the context-counting argument and the validation details.

Eight Sites: Closure from Structural Invariants

This case tests whether NoEdge-guarded binding yields closed equations without enumerating occupancy states. The input specifies eight owned sites, each with exactly two distinct next neighbours, three binding/unbinding rules and the occupied-site query (Figure 6). The simple undirected site graph permits three topologies: an eight-cycle, two four-cycles, or a three-cycle and a five-cycle. The backend completes connected path patterns to their possible cycle components and expands missing-edge tests into polynomial count identities (Appendix § 7.§ 3). Incidence bounds implied by Ω\Omega prune impossible overlaps before composition.

Eight-site model showing permitted topologies and ordinary and cooperative binding

Figure 6. Eight-site model. (a) An eight-cycle is one permitted topology; two four-cycles and a three-cycle plus a five-cycle are also allowed. Filled sites are occupied; next edges join neighbouring sites. Each site has a C,P,LC,P,L triple, expanded in (b)–(c), with fixed cp and cl edges. The optional bound edge joins PP and LL; these labels are abstract types. (b) Ordinary binding creates that edge (green) only when NoEdge(P,LP,L) holds (red dashed line). (c) Cooperative binding additionally matches an occupied neighbour, whose triangle is unchanged. Each occupied neighbour gives a separate match. Unbinding deletes the bound edge. The query P0P_0 counts complete C,P,LC,P,L triangles, hence occupied sites.

From the single query, composition discovers a closed 48-coordinate expectation system; a subsequent rank check finds one redundant coordinate, giving function-space dimension 47. Although exhaustive enumeration is infeasible for unbounded state spaces, here we use it after synthesis to independently verify the generated dynamics on all 28=2562^8 = 256 free/occupied assignments per topology (768 total). All three topologies use the same ODE, with initial values obtained by counting patterns in the starting graph. Eight-site webpage ↗ Eight-site notebook ↗

Comparison with FRAGGER

The published DNA walker. For comparison with FRAGGER, we use the two-legged DNA walker [10 Section 1.1]. We consider their single-walker case on a circular DNA scaffold, with the two legs at most one DNA segment apart, so that the walker is either compressed or extended. Four graph rules describe forward and backward leg movements. Starting from only the extended-configuration count, MolFoundry composition introduces the compressed count and closes a two-dimensional linear expectation system. The retained FRAGGER output contains the same two equations from its original directed multigraph representation, whereas MolFoundry represents directed edges by auxiliary vertices and uses rule composition. All eight contributions of the four rules to the two observables agree, with zero discrepancies. The notebook recomputes this discovery through Algorithm 1 with a path-extension counting identity. The compressed pattern has two injective matches that exchange its two leg edges; after accounting for this factor of two (Appendix § 7.§ 4), both approaches also give the same stationary mean velocity as derived in [10]. DNA-walker notebook ↗

Shared composition workload. For an nn-vertex alternating A/B query, median times in seconds for twelve ordered rule compositions are:

nn41220242628
MolFoundry 0.1.90.01020.03640.09870.150.180.213
FRAGGER0.008040.05614.3274.33141300

Table 4.

All twelve per-order raw counts agree through n=28n = 28. Protocol: Appendix C.

[Benchmark notebook↗](Benchmark notebook↗)

From A/B Paths to Atom-Resolved Polymer Graphs

We now repeat the A/B path analysis directly on molecular graphs. Here AA is δ\delta-valerolactone and BB is ε\varepsilon-caprolactone; ring-opening polymerization (ROP) incorporates the atoms of a free lactone into a benzyl-initiated, unbranched chain [16, 19]. Figure 7 contrasts the abstract ABAABA representation with the atom-resolved chain and one molecular end pattern. [Molecular ROP notebook↗](Molecular ROP notebook↗)

From repeat sequences to molecular patterns: cyclic monomers, an abstract A→B→A polymer chain, and a discovered molecular end pattern

Figure 7. From repeat sequences to molecular patterns. (a) Cyclic monomers: A=δA = \delta-valerolactone and B=εB = \varepsilon-caprolactone. (b) Abstract A→B→AA \rightarrow B \rightarrow A and condensed molecular ABAABA, with BB's extra methylene group shown explicitly. (c) Discovered end pattern SABS_{AB}, anchored by its terminal O–H group. Hosts use explicit C, O and H vertices; methylene groups are condensed only for readability.

Here composition starts from C, O and H atoms and covalent bonds; the path model starts from repeat labels and sequence order. Names such as SABS_{AB} are assigned after the resulting molecular patterns have been recognised. Under the graph-count correspondence, activities, generator images and joint jump/rate distributions agree exactly with the A/B model.

Repeated atom labels and larger patterns admit more overlaps. Local bond restrictions exclude overlap candidates incompatible with the supplied valence and bond constraints [7 Definition 19 and Example 7]. The molecular backend

uses these restrictions during enumeration and reduces surviving compositions to counts of free lactones, incorporated repeats and hydroxyl-ended chain patterns. As a separate check for ungated ABAABA, MolFoundry enumerates rule matches on 153 molecular hosts, applies each match, and counts the selected and discovered observables. All 612 rate-channel joint jump distributions agree with the composition-derived activities and jumps. A separate symbolic comparison with the abstract path model gives the same coarse event dynamics. The all-chain counting arguments are given in Appendix B.5.

A Neighbour NAC on an Unbounded Molecular Graph Family

The molecule is an alkylcyclopentadienyl anion with four C–H sites eligible for chlorination and an alkyl tail of arbitrary finite length. Each chlorination replaces one C–H bond by C–Cl, consumes one HCl molecule and produces one H2_2 molecule. A separate rule grows the alkyl tail. These net rules define the benchmark and are not intended as an experimentally validated elementary mechanism. Chlorination webpage ↗ Chlorination notebook ↗

For this example, we assume that a ring carbon can be chlorinated only if no neighbouring ring carbon already carries chlorine. This is expressed by a negative application condition (NAC): there must not exist a neighbouring carbon bonded to chlorine. A NoEdge test between atoms already matched by the rule cannot express this condition. We compare the model with and without this NAC, leaving everything else unchanged.

The only selected query ZZ counts ring C–Cl bonds. With total chlorine inventory H0=4H_0 = 4, conditional composition and support discovery introduce three positive pattern counts P1P_1, P2P_2, P3P_3. These count embeddings of specific ring-scaffold patterns requiring two, three and four C–H sites, respectively—not arbitrary subsets of free sites. For P1P_1, the two free sites must be adjacent, with one neighbouring the charged anchor; the initially unchlorinated ring admits two such embeddings, one on either side of the anchor. Symbolic source matches are partitioned by their complete coordinate jumps, giving four event classes on (Z,P1,P2,P3)(Z, P_1, P_2, P_3). Without the NAC, ZZ alone gives one event class of activity (4−Z)2(4 - Z)^2. Both finite event models close; a separate linear expectation-closure search is not performed in this analysis. The locality certificate establishes that tail growth has zero jump on these coordinates for arbitrary finite tails. Postsynthesis checks cover all 16 substitution patterns in three molecular contexts: direct MolFoundry applications and independent site updates with NetworkX counts agree on the joint jumps and rates.

Figure 8 starts from an unchlorinated ring and four HCl molecules, with (Z,P1,P2,P3)=(0,2,2,2)(Z, P_1, P_2, P_3) = (0, 2, 2, 2). Initially all four sites can react, each at rate 4κ4\kappa. For κ>0\kappa> 0, the NAC arrests chlorination at two ring chlorines with probability one; without it, all four sites eventually react. The curves come from the finite forward equations of the generated event models, explored only after symbolic synthesis. They describe the selected counts, not a finite enumeration of the full molecular state space. Tail growth may continue after chlorination is blocked. The events and forward equations are given in Appendix B.6.

Chlorination blocked with and without the neighbour NAC

Figure 8. Chlorination with and without the neighbour NAC. Left: two chlorinated sites block both free sites; dashed bonds are aromatic and RR is the preserved tail. Right: mean ring chlorine count and probability of blocked chlorination with free sites remaining, from the event models’ finite forward equations. Tail growth may continue.

Resources and limits. Larger queries can make composition expensive or exhaust closure budgets. Query-variation timings do not isolate pruning costs or compare discovery strategies; the FRAGGER benchmark times composition, not complete analysis. Infinite-family counting identities rely on appendix arguments, not bounded checks alone. The material guide includes an unfinished growing-ring search and a Brusselator–ROP model, distinguishing numerical approximations from exact generated equations.

Conclusion

We introduced an automated framework for observable analysis with MolFoundry. It combines conditional composition with nested application conditions and NoEdge, auxiliary-observable discovery, and searches for linear expectation closure and polynomial-jump-closed event models. Exactness relies on supplied graph-family counting identities and jump arguments. The examples reproduce and extend published analyses and demonstrate chemical applications without enumerating unbounded reaction spaces. Future work includes automating the derivation of counting identities and extending the analysis to further graph families. We are also developing native support for directed multigraphs, avoiding the current incidence encoding of directed and parallel edges.

Acknowledgements. This work was supported in part by the Novo Nordisk Foundation through the MATOMIC project (grant NNF21OC0066551).

Data availability. The artifact will be archived on Zenodo (DOI pending); sources and Docker-based reproduction instructions are available on GitHub. Interactive examples and executable Jupyter notebooks are available on https://stochmech.algochem.techfak.de/.

Conditional Counts and Moment Equations

Conditions and a Worked Count Change

Nested conditions [14] on PP are built from trueP_P, negation, conjunction and ∃(a:P↪Q,cQ)\exists(a : P \hookrightarrow Q, c_Q). A match m:P↪Gm : P \hookrightarrow G satisfies the existential clause if an injective extension n:Q↪Gn : Q \hookrightarrow G exists with n∘a=mn \circ a = m and n⊨cQn \models c_Q [7 Definition 2]. Figure 9 illustrates absence and exact degree: d(v)=kd(v) = k is d(v)≥k∧¬(d(v)≥k+1)d(v) \ge k \land\neg(d(v) \ge k + 1), with eligible labels and bond types specified.

Conditional graph patterns showing a missing edge and exactly three B-neighbours

Figure 9. (a) NoEdge forbids an edge between U,VU,V. (b) The anchored AA has three distinct BB-neighbours and no fourth; a3,a4a_3, a_4 add three neighbours and then a fourth. Dashed red lines mark absence tests. All matches are injective.

Let uu delete the bound edge between U,VU,V, and let OXO_X count these pairs with no edge. Write DD for the empty-overlap composite and PU,PVP_U, P_V for the composites identifying only one endpoint. The two orders give

OX⋆u=D+u+PU+PV,u⋆OX=D+u⊥+PU+PV.O_X \star u = D + u + P_U + P_V,\qquad u \star O_X = D + u_\perp+ P_U + P_V.

In the full overlap, deletion establishes the missing-edge condition; the reverse order gives u⊥u_\perp, requiring an edge both present and absent. Cancellation and projection leave only the activity of uu. On the two-state family with one U,VU,V pair and only the optional bound edge between them, this activity is 1−X1-X, and ∂tE[X]∣u=κu(1−E[X])\partial_t \mathbb{E}[X]\rvert_u = \kappa_u(1-\mathbb{E}[X]).

From Events to Moment Equations

For a count vector ϕ\phi, the joint exponential moment-generating function (EMGF) uses one variable in λ\lambda per coordinate:

M(t,λ)=E[eλ⋅ϕ(Gt)],∂tM=DM,D=∑eκγ(e)(eλ⋅δe−1)ae(∂λ).(6)M(t,\lambda) = \mathbb{E}[e^{\lambda\cdot\phi(G_t)}], \qquad\partial_t M = \mathcal{D}M, \\ \mathcal{D} = \sum_e \kappa_{\gamma(e)}(e^{\lambda\cdot\delta_e} - 1)a_e(\partial_\lambda). \tag*{(6)}

In ae(∂λ)a_e(\partial_\lambda), each coordinate variable is replaced by the partial derivative with respect to its corresponding λ\lambda variable; δe\delta_e determines the exponential factor [3 Theorem 4.2]. The same moment calculus applies to conditional pattern counts [7 Theorem 7]. Derivatives at λ=0\lambda= 0 give joint moments of the counts, even when no finite set of their equations closes.

The process interpretation requires nonexplosion, existence of the relevant moments and interchange of generator with expectation. The EMGF also requires convergence and the indicated differentiations. Otherwise, Equation (A.1) is a formal power series when its moment identities hold.

Derivations for the Examples

A/B Path and Missing-Edge Gate

On the rooted directed A/B-path family of § 3.3, q=CABAq = C_{ABA} counts contiguous ABAABA occurrences, including overlaps; MAM_A, MBM_B count free tokens and SwS_w indicates an ending ww. Free tokens, persistent feed markers and the optional gate are disjoint from the path. Thus a free-token factor and a pattern at its unique end have product count MASwM_A S_w or MBSwM_B S_w. The reducer accepts one connected path factor, free-token factors and disjoint feed or gate factors. Repeated tokens of the same type use falling-factorial counts; other overlap corrections remain unsupported.

A directed edge is encoded by an auxiliary vertex with distinct src/tgt links to its endpoints. Each deleted terminal-edge auxiliary vertex has exactly the two incidence edges included in the insertion match. The DPO dangling condition is therefore automatic, and the projected admissible-match count reduces to the full-input identity on this family. The uniform-jump argument below applies to the checked feed, insertion and gate templates, including their neighbour and NoEdge conditions.

Use the discovered coordinate order ϕ=(q,MA,MB,SAB,SA)T\phi= (q, M_A, M_B, S_{AB}, S_A)^{\mathrm{T}} and write z=ϕ(G)z = \phi(G). The unique path end gives SA2=SAS_A^2 = S_A, SAB2=SABS_{AB}^2 = S_{AB} and SASAB=0S_A S_{AB} = 0. The main text gives the discovery and generator images in Equation (5).

Table 2 uses this same coordinate order. Neither means that SA=SAB=0S_A = S_{AB} = 0. Each row records the numerical jump δe\delta_e and the full rate κγ(e)ae\kappa_{\gamma(e)}a_e of Equation (4). The three ending classes cover every finite path, including the empty one. All free-token choices for a fixed insertion give the same jump. Dividing the coordinate images by the rule activity therefore recovers the individual increments wherever the rule is enabled.

Rule / endingΔq\Delta qΔMA\Delta M_AΔMB\Delta M_BΔSAB\Delta S_{AB}ΔSA\Delta S_AFull rate
Feed AA01000βA\beta_A
Feed BB00100βB\beta_B
rAr_A / neither0−1-1001kAMA(1−SA−SAB)k_A M_A(1-S_A-S_{AB})
rAr_A / AA0−1-1000kAMASAk_A M_A S_A
rAr_A / ABAB1−1-10−1-11kAMASABk_A M_A S_{AB}
rBr_B / neither00−1-100kBMB(1−SA−SAB)k_B M_B(1-S_A-S_{AB})
rBr_B / AA00−1-11−1-1kBMBSAk_B M_B S_A
rBr_B / ABAB00−1-1−1-10kBMBSABk_B M_B S_{AB}

Table 2. Eight events of the ungated ABAABA model. The gated model adds the coordinate XX, gates the six append rates and adds opening and closing.

For example, ABABABAB with pools (MA,MB)=(2,1)(M_A,M_B)=(2,1) has coordinate values z=(1,2,1,1,0)Tz=(1,2,1,1,0)^{\mathsf{T}}. Inserting AA gives ABABAABABA and z′=(2,1,1,0,1)Tz'=(2,1,1,0,1)^{\mathsf{T}}. Thus

δe=z′−z=(1,−1,0,−1,1)T,ae(z)=2.\delta_e=z'-z=(1,-1,0,-1,1)^{\mathsf{T}},\qquad a_e(z)=2.

The existing ABAABA is preserved and another, overlapping occurrence is created. The full rate is 2kA2k_A.

For the joint EMGF, write θe=λq−λMA−λSAB+λSA\theta_e=\lambda_q-\lambda_{M_A}-\lambda_{S_{AB}}+\lambda_{S_A}. The event contributes

kA(eθe−1)∂λMA∂λSABM(7)k_A(e^{\theta_e}-1)\partial_{\lambda_{M_A}}\partial_{\lambda_{S_{AB}}}M \tag*{(7)}

by combinatorial conversion [3 Theorem 4.2]. The analogous terms for the other seven events complete the operator. Its first moment involves E[MASAB]\mathbb{E}[M_A S_{AB}], explaining why expectation closure requires a separate search.

With the missing-edge gate, X=1X=1 denotes absence of the U,VU,V bond. Both insertion rules require NoEdge⁡(U,V)\operatorname{NoEdge}(U,V). The discovered vector becomes ϕ+=(q,MA,MB,SAB,SA,X)T\phi^+=(q,M_A,M_B,S_{AB},S_A,X)^{\mathsf{T}}, with six coordinates. All six insertion rates in Table 2 acquire a factor XX, and their jump vectors acquire a zero final coordinate. Feeds keep their rates and also acquire a zero final jump coordinate. Closing and opening contribute

δclose=(0,0,0,0,0,−1)T,aX,δopen=(0,0,0,0,0,1)T,b(1−X),\delta_{\mathrm{close}}=(0,0,0,0,0,-1)^{\mathsf{T}},\qquad aX,\qquad\delta_{\mathrm{open}}=(0,0,0,0,0,1)^{\mathsf{T}},\qquad b(1-X),

where a,ba,b are the closing and opening rate parameters, so the second entry of each pair is the full rate. There are ten events in total, and LX=b(1−X)−aX\mathcal{L}X=b(1-X)-aX. This gated model is used for the numerical mean and variance curves in the main text. In Equation (B.1), the insertion term gains ∂λX\partial_{\lambda_X} while its exponential factor is unchanged. The generated event tables and their derivations are available through the ABA example guide.

Rémy Trees

The rules, edge types and pattern observables come from Behr [2 Section 5, Equations (45) and (54)]. Here EE counts edges and PjP_j counts rooted subtrees with at least jj internal vertices on the path obtained by repeatedly taking the left child. The analysis starts with only P3P_3. Composition and exact linear dependence tests discover P2P_2, P1P_1, EE. All six insertions share one rate κ\kappa. Their generator contributions are summed before the span test in Algorithm 1. This four-function closure is for that channel; independent rates for the six rules require a different closure search. The event construction below uses its tree-context argument, without assuming uniform jumps for the unrefined tree rules.

In the incidence encoding, a selected tree edge is an auxiliary vertex with exactly two matched src/tgt links. Its deletion satisfies the DPO dangling condition. Each insertion therefore has the same matches and successor as Behr’s SqPO rule, and its projected DPO count reduces to the full-input identity on this tree family.

For a selected edge ee, let d(e)d(e) count internal vertices on the left spine starting at the old subtree root. Let a(e)a(e) count consecutive left-child edges from that root towards the tree root, including ee when it is a left-child edge. Define the threshold counts

N(r,s)=#{e:d(e)≥r, a(e)≥s}.N(r,s)=\#\{e:d(e)\ge r,\ a(e)\ge s\}.

For r,s≥0r,s\ge0 and r+s>0r+s>0, moving an edge ss left edges towards the root gives a bijection with occurrences counted by Pr+sP_{r+s}; descending those edges gives its inverse. Hence N(r,s)=Pr+sN(r,s)=P_{r+s}, with N(0,0)=EN(0,0)=E.

For example, placing the old subtree on the right creates a branching vertex of left-spine depth one. If d(e)≥2d(e)\ge2 and a(e)≥1a(e)\ge1, its parent’s depth falls from d(e)+1≥3d(e)+1\ge3 to two; more distant left ancestors remain at depth at least three. Exactly one P3P_3 occurrence is lost, P2P_2 is unchanged, and two edges and one internal vertex are added. This gives the last jump in Table 3, (2,1,0,−1)(2,1,0,-1), with activity N(2,1)=P3N(2,1)=P_3: each eligible edge admits one right placement. The other classes follow from differences of adjacent threshold counts (two-dimensional Möbius inversion); grouping classes with identical jumps gives Table 3.

Jump δe\delta_eActivity aea_e
(2,1,0,0)(2,1,0,0)2E−3P1+2P2−P32E-3P_1+2P_2-P_3
(2,1,1,0)(2,1,1,0)3P1−6P2+3P33P_1-6P_2+3P_3
(2,1,1,1)(2,1,1,1)4P2−3P34P_2-3P_3
(2,1,0,−1)(2,1,0,-1)P3P_3

Table 3. Generated Rémy events. Full rates are κae\kappa a_e for the common per-match rate κ\kappa, in coordinate order (E,P1,P2,P3)(E,P_1,P_2,P_3).

Summing the jumps times their activities in Table 3 gives the four expectation equations in § 4.3 of the main text. The total activity is 2E2E. The EMGF operator uses one term κ(eλ⋅δe−1)ae(∂λ)\kappa(e^{\lambda\cdot\delta_e}-1)a_e(\partial_\lambda) for each event. Replacing its factor eλ⋅δe−1e^{\lambda\cdot\delta_e}-1 by eλ⋅δee^{\lambda\cdot\delta_e} and setting κ=1\kappa=1 gives Behr’s weighted-growth operator, agreeing exactly with Equation (57g) [2]. The identity holds for trees of arbitrary finite size. The Rémy source guide records the separate concrete-tree checks.

Eight Sites

Each site has a uniquely owned P,LP,L pair and an optional bound edge. The supplied axioms require eight sites in a simple undirected next graph, with degree exactly two. Such a graph is a union of cycles; the possible component lengths are 3, 4, 5, 8, since a remainder of one or two sites cannot form a simple cycle. A path match containing an edge has a unique continuation around its component. A single-site match has two orientations, requiring a factor 1/21/2 when expressed by oriented cycle counts. Newly added sites have unspecified occupancy.

Let Hm,SH_{m,S} count oriented matches of a complete mm-cycle whose sites in SS must be occupied, with all other occupancies unrestricted. For required occupied positions SS and disjoint required free positions FF, the missing-edge tests give the inclusion–exclusion identity

∑T⊆F(−1)∣T∣Hm,S∪T\sum_{T\subseteq F} (-1)^{|T|} H_{m,S\cup T}

The backend adds the admissible cycle completions and eliminates their formal coefficients exactly. Unsupported disconnected or partially owned patterns remain unresolved. This calculation uses no occupancy states. The subsequent rank check finds dimension 47 among the 48 generated functions; it does not participate in synthesis. Additional ownerless P,LP,L vertices affect neither the anchored counts nor their transitions. The eight-site derivation gives the count arguments and recorded checks.

DNA Walker

The four rules are taken from the two-legged DNA walker of Danos et al. [10 Section 1.1]. We use one walker on a simple directed cycle of arbitrary finite length at least five. Its two leg edges attach either to the same site or to adjacent sites. Replacing each directed edge by an incidence vertex retains its identity, including the two parallel legs of a compressed walker. Source and target ports retain direction. Every deleted incidence vertex has exactly its two matched ports; hence no unmatched incident edge obstructs the DPO deletion.

The counting procedure reduces a complete two-leg walker with connected DNA-path context of fewer than five sites. At a fixed walker position, that context extends uniquely along every permitted cycle. The reduced pattern keeps the walker and its attachment sites. An additional walker, excess legs, invalid incidence degrees or a shorter DNA cycle give zero; other pattern forms remain unsupported. Starting with only the extended pattern, composition introduces the compressed pattern and closes without enumerating scaffold states.

Let EE count the extended configuration and let CrawC_{\mathrm{raw}} count injective matches of the compressed pattern. The parallel legs give two maps per compressed configuration, so its indicator is C=Craw/2C=C_{\mathrm{raw}}/2. The raw incidence comparison uses unit per-match multipliers. For the published configuration-rate convention, the extension rules use multiplier 1/2 and the compression rules use multiplier 1. Writing e=E[E]e = \mathbb{E}[E] and c=E[C]c = \mathbb{E}[C], the generated normalized equations are

e˙=(kF,E+kB,E)c−(kF,C+kB,C)e,c˙=−e˙,c+e=1.\dot{e} = (k_{F,E} + k_{B,E})c - (k_{F,C} + k_{B,C})e,\qquad\dot{c} = -\dot{e},\qquad c + e = 1.

Here F,BF, B denote forward and backward leg movement, and the second subscript denotes the resulting extended or compressed configuration. Raw incidence counts and normalized configuration counts are compared separately in the recorded results.

Each leg move changes the walker’s centre by half a site, with its sign read from the directed scaffold. Solving the generated equations at stationarity gives

V=kF,EkF,C−kB,EkB,CkF,E+kB,E+kF,C+kB,C,V = \frac{k_{F,E}k_{F,C} - k_{B,E}k_{B,C}}{k_{F,E} + k_{B,E} + k_{F,C} + k_{B,C}},

for a positive denominator. This is symbolically equal to the published mean-velocity formula. The material guide links the separate concrete-host checks and comparisons with the published equations.

Molecular ROP

The constructor family contains one benzyl-initiated unbranched chain, finite free-lactone pools, persistent feed markers and an optional two-state Pd–N gate. Hydrogens are explicit vertices. Composition and reduction produce the molecular patterns; sequence names such as SABS_{AB} are assigned afterwards.

Each recognised whole-repeat or end pattern has one oriented injective map per occurrence. Free-lactone and chain-end patterns match different components, so their product counts all pairs of maps without assuming probabilistic independence. Every insertion selects the unique hydroxyl end and one free lactone. Different copies give the same coordinate jump; the Pd–N absence predicate is the gate indicator. These identities yield the A/B-path events of Appendix B.1 under the molecular count correspondence. The backend checks these rule forms and refuses molecular vertex deletion or unsupported positive pattern forms.

Discarding impossible overlaps. The constructor family bounds incident bonds by bond type and neighbouring atom label, as in the forbidden bond patterns used for aldol addition [7 Definition 19 and Example 7]. Later identifications may merge neighbours that are still distinct in a partial overlap. For example, identifying the oxygens of two O–H bonds appears to give two hydrogen neighbours, but identifying their hydrogens and bonds as well leaves one. Rejecting the partial overlap solely for exceeding a one-hydrogen bound would lose that completion. An entire search branch is therefore rejected only if no remaining identifications can satisfy the bounds. An upper bound on the bonds that could still become shared makes this pruning conservative; final composition checks conditions and retains multiplicities.

Finite witnesses for zero counts. A positive embedding is an injective map preserving labels and edges, without testing the pattern’s condition. Matching is non-induced: additional edges between mapped host vertices are allowed. If no positive embedding exists, no additional condition can make the count nonzero.

For this ROP family, let PP be a nonempty connected labelled pattern with nn vertices, and set h=⌊(n−1)/6⌋+2h = \lfloor(n-1)/6 \rfloor+ 2. Let Hh\mathcal{H}_h contain the explicit-H benzyl-initiated chains for every word over the selected alphabet of length at most hh, including the empty chain, together with one representative of each free-lactone and feed-marker type and both gate states when present. If PP has no positive injective embedding into any member of Hh\mathcal{H}_h, then [P,c](G)=0[P,c](G) = 0 for every constructor state G∈ΩG \in\Omega and every additional application condition cc.

To see why, a connected image lies in one host component. All component types other than the polymer already occur in Hh\mathcal{H}_h. In a polymer, the repeat backbone is a path; carbonyl oxygens and carbon-bound hydrogens do not provide shortcuts. If an image meets tt consecutive repeat blocks, a simple path in the image between the first and last traverses every intermediate block. Each such block contributes at least six backbone edges (seven for BB), so 6(t−2)≤n−16(t - 2) \le n - 1 and t≤ht \le h. Keep the interval of blocks met by the image and remove untouched outer blocks. The benzyl initiator and terminal hydrogen can be attached outside the image; when the image meets either original end, keep that end. This preserves every mapped vertex label and positive edge, including explicit hydrogens. Additional edges outside the pattern are allowed by non-induced matching. The resulting positive embedding is into a chain listed in Hh\mathcal{H}_h. Images contained entirely in the initiator are covered by the empty chain. Thus a positive embedding in any constructor state would yield one in the finite cover. Any match satisfying cc also requires such a positive embedding.

Failure of every embedding check certifies zero. A successful embedding does not determine the count: recognised repeat, pool and end patterns use the identities above; other positive patterns remain unsupported. The implementation tests connected components and refuses covers beyond its budget, rather than truncating a cover and declaring zero. The molecular backend guide records these limits and the independent concrete-host checks.

Chlorination with a Neighbour NAC

The ring order is 0, 1, 2, 3, 4, 0. Site 0 is the charged, tail-bearing anchor; neutral sites 1, …, 4 bear H or Cl. The comparison removes only the NAC, leaving both rules and the graph family otherwise unchanged. Each reaction replaces one C–H bond by C–Cl, consumes one HCl and releases one H₂. The NAC forbids a neighbouring neutral ring carbon bearing chlorine. With fixed total chlorine H0=4H_0 = 4, the HCl inventory is h=4−Zh = 4 - Z. Each enabled site has hh injective reaction matches, hence rate khkh. Growth preserves the ring and HCl inventory and has zero jump on all discovered coordinates.

Write hi∈{0,1}h_i \in\{0,1\} for the presence of H at site ii. The positive pattern counts discovered from the single query ZZ have the identities

Z=4−∑i=14hi,P1=h1h2+h3h4,P2=h1h2h3+h2h3h4,P3=2h1h2h3h4.(8)\begin{aligned} Z &= 4-\sum_{i=1}^{4}h_i,\qquad P_1=h_1h_2+h_3h_4,\\ P_2 &= h_1h_2h_3+h_2h_3h_4,\qquad P_3=2h_1h_2h_3h_4. \tag*{(8)} \end{aligned}

The factor two in P3P_3 retains the two embeddings related by reflection. Unspecified substituents in these positive patterns are unconstrained: these are not indicators of fully specified substitution states.

The backend reduces the actual transported condition expressions to Boolean polynomials, using hi2=hih_i^2=h_i, and expresses them as positive pattern counts. The support worklist constructs these patterns from the conditional-count monomials; no target basis or ring-state transition table is supplied. The normalized chlorination generator images are

LchlorZ=(4−Z)(P1+P2),LchlorP1=−(4−Z)(P1+P2),LchlorP2=−(4−Z)(2P2+P3),LchlorP3=−4(4−Z)P3.(9)\begin{aligned} \mathcal{L}_{\mathrm{chlor}}Z &= (4-Z)(P_1+P_2),\qquad\mathcal{L}_{\mathrm{chlor}}P_1=-(4-Z)(P_1+P_2),\\ \mathcal{L}_{\mathrm{chlor}}P_2 &= -(4-Z)(2P_2+P_3),\qquad\mathcal{L}_{\mathrm{chlor}}P_3=-4(4-Z)P_3. \tag*{(9)} \end{aligned}

These are function identities, not closed ODEs obtained by substituting mean counts into products.

Partitioning symbolic enabled source matches by their full jump vectors gives the following events, with coordinates ordered as (Z,P1,P2,P3)(Z,P_1,P_2,P_3). The rate of each event is κ\kappa times its activity.

JumpActivity
(1,−1,−2,−2)(1,-1,-2,-2)(4−Z)P3(4-Z)P_3
(1,−1,−1,−2)(1,-1,-1,-2)(4−Z)P3(4-Z)P_3
(1,−1,−1,0)(1,-1,-1,0)2(4−Z)(P2−P3)2(4-Z)(P_2-P_3)
(1,−1,0,0)(1,-1,0,0)(4−Z)(P1−P2)(4-Z)(P_1-P_2)

Table 1 (PDF p. 28).

For the last event, site 1 reacts when h1=h2=1h_1=h_2=1 and h3=0h_3=0, or site 4 reacts in the reflected configuration. Each destroys one P1P_1 embedding and leaves P2P_2, P3P_3 unchanged. The number of eligible sites is

h1h2(1−h3)+h3h4(1−h2)=P1−P2.h_1h_2(1-h_3)+h_3h_4(1-h_2)=P_1-P_2.

Multiplication by the 4−Z4-Z choices of HCl gives the stated activity. Partitioning all enabled matches this way gives disjoint, exhaustive jump classes. Different matches in one host may have different jumps; this construction does not invoke Algorithm 2’s uniform-match step. Without the NAC, the single event on ZZ has jump +1+1 and activity (4−Z)2(4-Z)^2.

On this family, aromatic bonds and C–Cl bonds occur only in the ring. Growth acts on a terminal carbon with three H neighbours and methane with four; each neutral ring carbon has at most one. Its bond changes therefore preserve the ring, its H/Cl substituents and the HCl inventory, and create no new aromatic or C–Cl contexts. The count identities thus hold for arbitrary finite tails and finite methane/hydrogen pools. The reproduction profile generates the condition reductions and separate joint-rate checks against public MolFoundry applications and independent site updates.

Forward equations and chlorination arrest. Initially the ring is unchlorinated and four HCl molecules are present. The guarded initial coordinates are (0,2,2,2)(0, 2, 2, 2). Only after event synthesis do we explore their reachable coordinate states:

(0,2,2,2),(1,1,0,0),(1,1,1,0),(2,0,0,0).(0, 2, 2, 2), \quad(1, 1, 0, 0), \quad(1, 1, 1, 0), \quad(2, 0, 0, 0).

In this order the rate matrix, with source states as rows, is

QNAC=κ(−168800−30300−660000)(10)Q_{\mathrm{NAC}} = \kappa \begin{pmatrix} -16 & 8 & 8 & 0 \\ 0 & -3 & 0 & 3 \\ 0 & 0 & -6 & 6 \\ 0 & 0 & 0 & 0 \end{pmatrix} \tag*{(10)}

Without the NAC the reachable coordinates are Z=0,1,2,3,4Z = 0, 1, 2, 3, 4, with successive rates κ(16,9,4,1)\kappa(16, 9, 4, 1). For either matrix, p′(t)=QTp(t)p'(t) = Q^{\mathsf{T}}p(t) and p(0)=(1,0,…,0)Tp(0) = (1, 0, \ldots, 0)^{\mathsf{T}}. These are finite forward equations of the generated event models, not a claimed output of linear expectation closure.

Writing p=(p0,p1,p2,p3)Tp = (p_0,p_1,p_2,p_3)^{\mathsf{T}} in the guarded state order,

E[Z]=p1+p2+2p3,Pr⁡(blocked with free sites remaining)=p3.\mathbb{E}[Z] = p_1 + p_2 + 2p_3, \qquad\Pr(\text{blocked with free sites remaining}) = p_3.

The only reachable absorbing state has Z=2Z = 2, and every other state has positive exit rate when κ>0\kappa> 0. Chlorination therefore stops at two chlorines with probability one. Without the NAC, the successive positive rates lead to Z=4Z = 4; no blocked state with free sites remains reachable. These forward equations give the curves in the main text. Tail growth can still occur in the full graph process.

Composition Benchmark

The query is the directed path ABAB⋯ABAB\cdots on nn vertices. Six condition-free rules replace p→Tp \to T by p→s→Tp \to s \to T, for p∈{R,A,B}p \in\{R,A,B\} and s∈{A,B}s \in\{A,B\}, preserving pp and TT. Each rule is composed with the query identity in both orders. No model vertex is deleted, so DPO and SPO admissibility coincide here. FRAGGER uses directed multigraphs; MolFoundry uses their incidence encoding, with 2n−12n-1 vertices for the query and no path-family pruning.

Runs are serial on one native Linux x86_64 host (Xeon w7-2595X). MolFoundry 0.1.9 (14 October 2026) uses Python 3.12.3; FRAGGER revision 0d9595c (9 October 2026) uses Scala 2.13.2 and Java 11 with -Xmx4g. Each tool/size uses a fresh process: four small global warm-ups, two size-specific warm-ups, then five timed repetitions (reported as medians). Startup, compilation and input construction are excluded. MolFoundry timings include canonical grouping and representative GML serialization; FRAGGER timings cover native left/right-union enumeration. These timings measure composition, not complete closure analysis.

A separate MolFoundry-only probe with the same protocol gives 0.927, 2.14, 7.79 and 21.2 seconds at n=48,64,96,128n=48,64,96,128, respectively. The benchmark guide gives the commands, medians and recorded environment.

AI assistance. OpenAI’s ChatGPT assisted with exploratory prototyping and testing of the accompanying software. The authors reviewed the resulting contributions and retain responsibility for the implementation and reported results.

References

  1. [1]Andersen, J.L., Flamm, C., Merkle, D., Stadler, P.F.: A software package for chemically inspired graph transformation. In: Graph Transformation. Lecture Notes in Computer Science, vol. 9761, pp. 73–88. Springer (2016). https://doi.org/10.1007/978-3-319-40530-8_5
  2. [2]Behr, N.: On stochastic rewriting and combinatorics via rule-algebraic methods. Electronic Proceedings in Theoretical Computer Science 334, 11–28 (2021). https://doi.org/10.4204/EPTCS.334.2
  3. [3]Behr, N., Danos, V., Garnier, I.: Combinatorial conversion and moment bisimulation for stochastic rewriting systems. Logical Methods in Computer Science 16(3) (2020). https://doi.org/10.23638/LMCS-16(3:3)2020, article 3, 45 pages
  4. [4]Behr, N., Harmer, R., Krivine, J.: Fundamentals of compositional rewriting theory. Journal of Logical and Algebraic Methods in Programming 135, 100893 (2023). https://doi.org/10.1016/j.jlamp.2023.100893
  5. [5]Behr, N., Heckel, R., Ghaffari Saadat, M.: Efficient computation of graph overlaps for rule composition: Theory and Z3 prototyping. Electronic Proceedings in Theoretical Computer Science 330, 126–144 (2020). https://doi.org/10.4204/EPTCS.330.8
  6. [6]Behr, N., Krivine, J.: Compositionality of rewriting rules with conditions. Compositionality 3 (2021). https://doi.org/10.32408/compositionality-3-2, article 2
  7. [7]Behr, N., Krivine, J., Andersen, J.L., Merkle, D.: Rewriting theory for the life sciences: A unifying theory of CTMC semantics. Theoretical Computer Science 884, 68–115 (2021). https://doi.org/10.1016/j.tcs.2021.07.026
  8. [8]Boutillier, P., Maasha, M., Li, X., Medina-Abarca, H.F., Krivine, J., Feret, J., Cristescu, I., Forbes, A.G., Fontana, W.: The Kappa platform for rule-based modeling. Bioinformatics 34(13), 1583–1592 (2018). https://doi.org/10.1093/bioinformatics/bty272
  9. [9]Camporesi, F., Feret, J., Lÿ, K.Q.: KaDE: A tool to compile Kappa rules into (reduced) ODE models. In: Computational Methods in Systems Biology. Lecture Notes in Computer Science, vol. 10545, pp. 291–299. Springer (2017). https://doi.org/10.1007/978-3-319-67471-1_18
  10. [10]Danos, V., Heindel, T., Honorato-Zimmer, R., Stucki, S.: Rate equations for graphs. In: Computational Methods in Systems Biology. pp. 3–26. Springer (2020). https://doi.org/10.1007/978-3-030-60327-4_1
  11. [11]Feret, J., Henzinger, T., Koeppl, H., Petrov, T.: Lumpability abstractions of rule-based systems. Theoretical Computer Science 431, 137–164 (2012). https://doi.org/10.1016/j.tcs.2011.12.059
  12. [12]Ghamarian, A.H., de Mol, M., Rensink, A., Zambon, E., Zimakova, M.: Modelling and analysis using GROOVE. International Journal on Software Tools for Technology Transfer 14(1), 15–40 (2012). https://doi.org/10.1007/s10009-011-0186-x
  13. [13]Gillespie, D.T.: Exact stochastic simulation of coupled chemical reactions. The Journal of Physical Chemistry 81(25), 2340–2361 (1977). https://doi.org/10.1021/j100540a008
  14. [14]Habel, A., Pennemann, K.H.: Correctness of high-level transformation systems relative to nested conditions. Mathematical Structures in Computer Science 19(2), 245–296 (2009). https://doi.org/10.1017/S0960129508007202
  15. [15]Munsky, B., Khammash, M.: The finite state projection algorithm for the solution of the chemical master equation. The Journal of Chemical Physics 124(4), 044104 (2006). https://doi.org/10.1063/1.2145882
  16. [16]Neilson, B.M., Bielawski, C.W.: Photoswitchable NHC-promoted ring-opening polymerizations. Chemical Communications 49(48), 5453–5455 (2013). https://doi.org/10.1039/C3CC42424C
  17. [17]Ovchinnikov, A., Pérez Verona, I., Pogudin, G., Tribastone, M.: CLUE: Exact maximal reduction of kinetic models by constrained lumping of differential equations. Bioinformatics 37(12), 1732–1738 (2021). https://doi.org/10.1093/bioinformatics/btab010
  18. [18]Taentzer, G.: AGG: A graph transformation environment for modeling and validation of software. In: Applications of Graph Transformations with Industrial Relevance. Lecture Notes in Computer Science, vol. 3062, pp. 446–453. Springer (2004). https://doi.org/10.1007/978-3-540-25959-6_35
  19. [19]Wang, Y., Han, Y., Zhang, L.: Binary catalytic system for homo- and block copolymerization of ε-caprolactone with δ-valerolactone. RSC Advances 10(43), 25979–25987 (2020). https://doi.org/10.1039/D0RA04974C

Paper details

vlnc:W_9bcunsn7
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 9

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents