Linear Logic and Rewriting Logic (Zsyntax, Maude, Pathway Logic)
Position in the vault
This note groups logic-first approaches. Here the model is a logical theory, and pathway questions are answered by deduction (Zsyntax) or by deduction in rewriting logic (Maude / Pathway Logic). With Petri_Nets_and_Linear_Logic, it is the family closest to the Gentzen baseline. ← Dashboard
1. Theoretical Foundations & Syntax
1.1 Zsyntax: a natural-deduction logic for molecular biology
Zsyntax (Boniolo, D’Agostino & Di Fiore, 2010) is a formal language whose theorems describe biochemical processes. Its design is explicitly inspired by the resource-sensitive reading of linear logic:
- Atoms: molecules (proteins, ligands, genes).
- Z-interaction : the product of the interaction of and , e.g. a bound complex.
- Z-conjunction : and are both present, not interacting.
- Z-conditional : if is available, is produced (consuming ).
- Empirically Valid Formulae (EVFs): conditionals validated by experimental biology. They act as the domain-specific axioms, playing the role of proper axioms in a sequent calculus.
- Inference rules in natural-deduction style (introduction and elimination of , , ), where conditional elimination is applied only with EVFs.
- Resource reading: premises are consumed, as in linear logic. Deriving from uses up .
Later work by the same group develops a proof-theoretic account of context-sensitive, non-monotonic interactions (Boniolo, D’Agostino, Piazza & Pulcini, 2013). Adding a molecule to the context may block a reaction (inhibition, competition), so the monotonicity of the multiplicative conjunction cannot hold in general. They connect the approach to the Curry–Howard isomorphism (Boniolo et al., 2015).
1.2 Rewriting logic (Meseguer, 1992)
A rewrite theory consists of:
- an equational signature defining the states. In biology this is a multiset (“soup”) with a union operator that is associative, commutative, with identity (ACU);
- a set of (conditional) rewrite rules , the reactions.
Its deductive system derives sequents with four rules: Reflexivity, Congruence, Replacement (apply a rule instance), and Transitivity. In simplified form:
and : from , infer for substitution instances.
- Transitivity is a cut rule on intermediate states.
- Congruence on the ACU union is concurrent firing, the analogue of context splitting.
- Petri nets are exactly rewrite theories over commutative monoids (Martí-Oliet & Meseguer). See Petri_Nets_and_Linear_Logic.
Maude is the high-performance implementation of rewriting logic (equational simplification modulo ACU, search for reachability, and an LTL model checker).
1.3 Pathway Logic (Talcott, 2008)
Pathway Logic models signalling and metabolic networks as Maude rewrite theories. Cells are nested multisets of compartments (“dishes”), and proteins carry modification states (e.g. [EGFR - Yphos]). Queries are reachability searches and LTL model checking, and results are displayed as Petri-net-like pathway graphs.
1.4 BIOCHAM’s rule language as rewriting
BIOCHAM (Fages, Soliman & Chabrier-Rivier, 2004) writes reactions as rewrite rules over molecule multisets and queries them with temporal logic (CTL). Its Boolean semantics abstracts multisets to sets of present species. For this to over-approximate the stochastic semantics, a reaction may nondeterministically keep or consume each reactant. Proof-theoretically, this re-introduces contraction and weakening. See BIOCHAM in the process-calculi note.
2. Applications in Biochemical Pathway Analysis
- Signalling pathways: Pathway Logic models of EGF receptor signalling and related cascades, with curated rule knowledge bases. Queries include “can activated ERK be reached?” and backward analysis of which rules are relevant to a goal.
- Reasoning about molecular mechanisms (Zsyntax): deriving the products of a pathway as theorems from EVFs; predicting outcomes of perturbations; the authors also propose text mining and hypothesis generation as applications.
- Model checking (Maude LTL, BIOCHAM CTL) of temporal properties: reachability, steady-state persistence, oscillation (qualitatively), ordering of activation events.
- Knowledge-base consistency: since a model is a logical theory, inconsistencies or missing reactions show up as unprovable expected goals.
Tools: Maude (rewriting logic engine), Pathway Logic Assistant, BIOCHAM. Zsyntax has prototype implementations described by its authors.
3. Comparison with Gentzen-Style Sequent Calculus
Structural & Conceptual Similarities
- Same judgement form. Rewriting logic’s basic judgement is a sequent, and its four deduction rules form a Gentzen-style calculus of change. Zsyntax is explicitly a natural-deduction system, translatable into sequent form as .
- Resource discipline. States are multisets (ACU), so exchange holds. Rules consume their left-hand side, so there is no free weakening or contraction, as in linear logic.
- Reactions as non-logical axioms. EVFs (Zsyntax) and rewrite rules (Maude) play exactly the role of proper axioms or inference rules (cf. Encodings A and C).
- Cut = composition of pathways. in rewriting logic and chaining of -eliminations in Zsyntax correspond to cut on intermediate species.
- Proofs as pathways. In rewriting logic, proofs modulo equivalence form the initial model: proof terms denote concurrent computations, i.e. pathways with their causal structure.
Advantages over Gentzen-style Calculus
- Executability. Maude implements rewriting modulo ACU very efficiently. Reachability search and LTL model checking come for free. A raw sequent calculus needs a custom prover.
- Rich state structure. Equational theories model compartments, modification states and nested complexes without encoding them as atoms.
- Biologically motivated connectives (Zsyntax): a dedicated interaction operator distinguishes “bound complex” from “co-present” without forcing biologists to learn , ⅋ and .
- Non-monotonic context sensitivity (Zsyntax, 2013): inhibition and competition are captured, which plain monotone linear logic cannot express.
- Cycles and feedback. Maude’s
searchuses visited-state checking, so loops through reversible reactions terminate on finite state spaces.
Disadvantages & Limitations vs. Gentzen-style Calculus
- No cut-elimination theorem in the Gentzen sense. Transitivity on states is essential and cannot be eliminated in general, so there is no subformula property to bound proof search.
- Analyticity is replaced by state-space search. Reachability is checked by exhaustive (or bounded) exploration, which is exposed to state-space explosion.
- Zsyntax’s meta-theory is smaller than that of linear logic: fewer standard results (cut-elimination, complexity) are available, and rule side conditions such as EVF-only elimination are domain-specific.
- Kinetics are external. Base rewriting logic and Zsyntax are qualitative. Rates need probabilistic or real-time extensions, or BIOCHAM’s ODE and stochastic semantics.
- Equational matching modulo ACU is NP-hard in general, an expense absent in a plain propositional sequent calculus.
4. Concrete Biochemical Example
4.1 Maude rewrite theory
mod MICHAELIS-MENTEN is
sort Soup .
op none : -> Soup [ctor] .
op __ : Soup Soup -> Soup [ctor assoc comm id: none] . *** ACU multiset union
ops E S ES P : -> Soup [ctor] .
rl [bind] : E S => ES . *** r1
rl [unbind] : ES => E S . *** r-1
rl [cat] : ES => E P . *** r2
endm
search [1] in MICHAELIS-MENTEN : E S =>* E P .The rewriting-logic derivation of the sequent :
4.2 Zsyntax-style derivation
The derivation follows the natural-deduction style of Boniolo et al. (2010); consult the paper for the precise rule side conditions. EVFs: (i) (binding), (ii) (catalysis).
| # | Formula | Justification |
|---|---|---|
| 1 | Hypothesis (initial resources) | |
| 2 | -elimination, 1 with EVF (i); is consumed | |
| 3 | -elimination, 2 with EVF (ii); is consumed |
The same deduction as a natural-deduction tree. EVFs are written in brackets with their label; they act as axioms that may be used only as the major premise of :
Conclusion, as a Zsyntax sequent:
4.3 Gentzen-style contrast
Translate Zsyntax into ILL:
- (co-presence) becomes .
- The interaction product becomes the atom .
- Each EVF becomes a proper axiom (Encoding A).
The Zsyntax tree above then becomes:
Each Zsyntax with an EVF corresponds to one Cut against a reaction axiom. The lower Cut, on , is exactly Maude’s step in §4.1. In all three systems, the intermediate complex is the cut formula.
| Element | Maude | Zsyntax | Sequent calculus (baseline) |
|---|---|---|---|
| Initial state | E S (ACU term) | Antecedent | |
| Complex | constant ES | (structured) | atom |
| Reaction | rl rule | EVF | proper axiom or |
| Composition | sequential E | , or chaining | |
| Reversibility | handled by visited-state check in search | not needed for this theorem | may cause non-terminating backward search |
Note that Zsyntax’s keeps the constituents visible in the formula, whereas the sequent encoding uses an opaque atom . Zsyntax thus records a little more structure, a step towards the site graphs of Rule_Based_Models_BioNetGen_and_Kappa.
5. Key Literature & References
Citation verification
Two Zsyntax references in the original specification could not be verified: a 2010 J. Applied Logic paper titled “Reasoning about biochemical reactions…” and a 2023 Springer book Molecular Logic. In their place, three verified works by the same research group are cited. See the verification log in
CLAUDE.md.
Zsyntax
- Boniolo, G., D’Agostino, M., & Di Fiore, P. P. (2010). “Zsyntax: A formal language for molecular biology with projected applications in text mining and biological prediction.” PLoS ONE, 5(3), e9511.
- The founding Zsyntax paper, introducing the language, its operators, EVFs and natural-deduction rules for deriving biochemical processes as theorems.
- Boniolo, G., D’Agostino, M., Piazza, M., & Pulcini, G. (2013). “A logic of non-monotonic interactions.” Journal of Applied Logic, 11, 52–62.
- Extends the molecular-logic programme with a proof-net-based account of context-dependent (non-monotonic) interactions such as inhibition.
- Boniolo, G., D’Agostino, M., Piazza, M., & Pulcini, G. (2015). “Adding logic to the toolbox of molecular biology.” European Journal for Philosophy of Science, 5(3), 399–417.
- Argues for a natural-deduction logic of molecular processes grounded in the Curry–Howard isomorphism, relating it directly to proof theory.
Rewriting logic, Pathway Logic, BIOCHAM (mandatory)
- Meseguer, J. (1992). “Conditional rewriting logic as a unified model of concurrency.” Theoretical Computer Science, 96(1), 73–155.
- Defines rewriting logic and its sequent-style deduction rules, and shows that Petri nets and other concurrency models are special rewrite theories.
- Talcott, C. (2008). “Pathway logic.” Formal Methods for Computational Systems Biology (SFM 2008), LNCS 5016, 21–53.
- A tutorial account of Pathway Logic, the Maude-based approach to curated signalling-pathway models and their reachability analysis.
- Fages, F., Soliman, S., & Chabrier-Rivier, N. (2004). “Modelling and querying interaction networks in the biochemical abstract machine BIOCHAM.” Journal of Biological Physics and Chemistry, 4(2), 64–73.
- Presents BIOCHAM’s reaction-rule language with Boolean semantics and CTL queries; the rewriting-style precursor to its quantitative semantics (Process_Calculi_Pi_Calculus_BioPEPA_BIOCHAM).
Related: Gentzen_Style_Calculus · Petri_Nets_and_Linear_Logic (Petri nets = ACU rewrite theories) · Rule_Based_Models_BioNetGen_and_Kappa (graph rewriting) · Process_Calculi_Pi_Calculus_BioPEPA_BIOCHAM (BIOCHAM) · Boolean_Networks · 00_Dashboard_and_Comparison