Generative Grammar Representations for Autonomous Evolutionary Algorithms in Large-Scale Projects
Full text from the PDF
Generative Grammar Representations for Autonomous
Evolutionary Algorithms in Large-Scale Projects
Wanhong HUANG huangwanhong@serendip.ngo
Abstract
Living things continue by copying a compact heritable material and growing from it, through a costly development, a body far larger than the material itself. This proposal paper carries that mechanism into the evolution of large projects, such as a codebase, a research programme or a body of writing made by people and language-model agents. Each individual of the population holds a compact generative material, a weighted grammar, from which a development derives a project; variation and selection act on the grammar. When a project is made by agents, the grammar may be induced from the record of its acts: which agent asked which agent for what, what a person asked, what was generated, committed and accepted, and how the workspace grew. The paper reads, from the biology of development and evolvability, the mechanisms by which life prolongs generativity through heritable material, each with what an algorithm can take from it and where the analogy ends. Its major part is formal. A record is an event–coupling–primitive complex whose vertices are events of many kinds, typed by an ontology; the schema of records is a category, verified by the infrastructure’s foundation of category theory. A grammar of records has terminals, nonterminals and productions that replace a nonterminal cell at its boundary events; derivation generates records, reduction parses them, a group fixes when two patterns are one rule, and induction compresses records and merges what it found. Two versions of the grammar follow from two representations of a record: a geometric version, a variant of the geometric graph grammars of Fiser and colleagues, reads a record drawn in the plane of time and lanes and tells the rhythm of work from its tempo; a spin-foam version weighs each derivation by a state sum over the record’s 2-complex, which weighs its closed shells, factorises over the derivation when faces stay within productions, and turns a weighted grammar into a probabilistic one with the same distribution. A model of worth and cost follows: development by a machinery under an environment, with draws keyed by address; generativity, the expected product of being new, holding and being the project’s own; reserved acts that only persons perform, kept as holes in every derivation; the cost of re-derivation; and the debt of generativity as a divergence, bounded below by its manifest part. Twelve propositions are proved. Prototypes at small scale check seven of them and a corollary, evolve a project through three epochs of its environment with the cost of re-derivation counted, induce grammars from the commit records of 20 repositories, recover a grammar close to a planted one from its records, induce the geometric version from records drawn in lanes, and compute the spin-foam version exactly. A companion paper takes up the channels by which generativity is carried outside the individual.
Keywords: generative grammar; evolutionary computation; generative encoding; genotype– phenotype map; development; grammar induction; process mining; language-model agents; generativity; evolvability.
Proposal Paper Note
This proposal paper states a formal model of an evolutionary algorithm for large projects, after the mechanism by which living things continue: each individual holds a compact generative material, a weighted grammar, from which a costly development derives a project. It belongs with a proposal of a generative ecology of projects (Huang, 2026e), a discussion of the debt of generativity (Huang, 2026c), and a companion on generativity carried outside the individual (Huang, 2026j). It is circulated for discussion, criticism and competing designs.
Conditions Of Use
Research use. The manuscript is intended for scholarly discussion, criticism and revision; work that builds on it should state which definitions it adopts and which it alters.
Rights. Copyright © 2026 Wanhong HUANG. The author’s original text and diagrams are offered under the Creative Commons Attribution 4.0 International licence (CC BY 4.0), with the author credit, the source and licence links, the supplied notices and an indication of modifications retained. The programs and results behind the paper are kept in the project repository under its MIT licence; third-party materials retain their own terms.
Notice
Interpretive and evidential scope. Definitions fix the use of terms, and the propositions are proved in Appendix A under the conditions they state. The prototypes are small: small grammars, a synthetic project, records of a planted grammar, also drawn in lanes, exact state sums of small records, and the commit histories of the author’s repositories; kategoria verifies the schema of records. They illustrate mechanisms and measure the quantities the model defines; the generativity of compact grammars of large projects in general is left open, for reasons Sections 1.4 and 8 give.
The analogy with life. Section 3 pairs each mechanism of continuation with an algorithmic counterpart and states where the analogy ends. The vocabulary of generativity is the author’s, from the working papers cited.
Related scholarship and priority. The paper draws on generative encodings, grammar induction, process mining, lattice gauge theory and spin foams, developmental biology and the theory of evolvability, whose authors keep their priority. Every reference with a registered identifier was checked against its registry, and the works without one are marked in the survey; statements about cited works rest on their abstracts and on standard accounts of them.
Disclosure Of AI Assistance
Claude (Anthropic) contributed to the development of this manuscript through iterative research dialogue. The idea is the author’s (Appendix C): to evolve a large project through a compact, highly generative material after the mechanism of life, a generative grammar first; to induce it from the record of acts of people and agents, read as a complex of heterogeneous events whose ontology category theory investigates, verifies and draws; to show how a record may be represented and modelled by geometric and spin-foam versions of a grammar; to treat the cost of development as biologically real; and to present the mechanisms by which life prolongs generativity, leaving the channels outside the individual to the companion paper. The elaboration is the assistant’s proposal: the formal model with its definitions and proofs, the reading of the biology, the prototypes, and the draft of the text and figures. Further sessions of the same model surveyed the literature, checked the identifiers and examined the drafts for error. These checks have limited evidential authority, and a proof or a reading produced with a model can contain mistakes. The author directs the inquiry and retains responsibility for the arguments, the claims, the references and the decision to circulate. Independent expert review remains appropriate.
Readable text
4 Grammars of Records 4.1 4.2 Records as Typed Complexes 4.3 4.4 4.5 Reduction 4.6 4.7 Invariance and Placement 4.8
6 Generativity, Development and Evolution 6.1 6.2 Compactness and Generativity 6.3
Readable text
7 Prototypes 7.1 7.2 A Project Through Three Epochs 7.3 Grammars Induced from a Real Record 7.4 7.5 7.6 7.7
8 Discussion 8.1 The Cost of Development 8.2 Engineering Challenges 8.3 8.4 8.5 Open-Endedness 8.6 8.7
A living thing is generative: it goes on producing what is new, what holds and what is its own, and it continues to do so beyond its own life. The author’s working papers characterise this continuation in two routes. The generativity of living processes continues through recursive renewal, and through relations that enable activity across participants (Huang, 2026h); life is a historically constituted object whose organisation tends to the continuation of its generativity, and reproduction and historically consequential coupling extend generative activity beyond the original organism (Huang, 2026l). This paper concerns the first route in one of its forms. A genome is small beside the organism it specifies. Reproduction copies the small thing faithfully and grows the large one again, through a development, a dynamical process that depends on its context (Alberch, 1991; Pigliucci, 2010), draws on a finite budget (Stearns, 1992) and runs on inherited machinery (Cavalier-Smith, 2000). What is carried from one generation to the next is a compact material of high generativity, and the body is made again from it.
Projects made by people and by language-model agents are now large: a repository of many lib- raries, a research programme with its records, a body of papers. Evolutionary methods applied to such projects meet their size. A direct encoding makes the whole project the chromosome, so that every evaluation, and every copy, handles the whole. Genetic improvement evolves edits to an existing program in place of the program itself (Petke et al., 2018). Systems in which a language model proposes the variations evolve functions, whole files and agent repositories, each candid- ate being the artefact or a patch to it (Lehman et al., 2022; Novikov et al., 2025; Romera-Paredes
et al., 2024; Zhang et al., 2025). Generative and developmental encodings evolve a compact generator, a grammar, an L-system or a pattern-producing network, from which a large phenotype is grown (Hornby and Pollack, 2002; O’Neill and Ryan, 2001; Stanley, 2007); their formalisms are designed in advance for a class of phenotypes, and their advantage holds on regular problems and fades on irregular ones (Clune et al., 2011).
The thesis of this paper is that a large project can be evolved through the material from which it can be generated again. A weighted grammar is the first candidate. It is compact and compositional; its derivation serves as a development; and grammar induction recovers a grammar from what it generated, with a theory of the trade between replaying a sample and generalising beyond it (de la Higuera, 2010; Grünwald, 2007; Stolcke and Omohundro, 1994). When a project is made by agents, the record of its acts is itself a structure that a grammar can describe, a complex whose vertices are events of many kinds, whose edges are couplings and whose faces are primitives, after the author’s event–coupling–primitive model, in which a complex records generated structure and a separate generative grammar states the transformations it admits (Huang, 2026b,l): which agent asked which agent for what, what a person asked, what was generated, committed and accepted, and how the workspace grew from a list of publications into a body of work. A grammar of that record encodes the process that made the project, as a genome encodes a development, and the variations of evolution then act on the process.
1.3 Contributions
An account of the mechanisms by which life prolongs generativity through heritable material and development, each paired with an algorithmic counterpart and with the limit of the analogy (Section 3).
A formal language of records (Section 4): an ontology of events; records as typed event– coupling–primitive complexes, their schema a category verified by the infrastructure’s foundation of category theory; grammars of records with their terminals, nonterminals and productions; derivation and reduction; invariance under a group; and induction by compression and merging.
Representations of a record and two versions of its grammar (Section 5): a geometric version, a variant of the geometric graph grammars of Fiser et al. (2016) that reads a record drawn in the plane of time and lanes and tells the rhythm of work from its tempo; and a spinfoam version, which weighs each derivation by a state sum over the record’s 2-complex, measures the record’s closed shells, factorises over a derivation when faces stay within productions, becomes a probabilistic grammar when tilted by relative weights, and is computed by elimination along the derivation when faces cross productions.
A model of what a grammar is worth and costs (Section 6): development by a machinery under an environment, with draws keyed by address; generativity at a time and accumulated; evolution over materials with reserved acts kept as holes; the cost of re-derivation; and the debt of generativity as a divergence.
Prototypes (Section 7) that check three propositions of the model on enumerated and sampled cases, evolve a project through three epochs of its environment with the cost of re-derivation counted, induce grammars from a real record, induce a grammar of records from records of a planted grammar by compression and merging, induce the geometric version from records drawn in lanes, and compute the spin-foam version exactly, checking the propositions of both versions.
6. A discussion of the engineering challenges, of the limits of the thesis, and of the channels by which generativity is carried outside the individual, the subject of the companion paper
(Huang, 2026j) (Section 8).
Twelve propositions and two corollaries are proved in Appendix A.
1.4 The Scope of the Claims
The claims are those of a design with measurable criteria. A record of a project supplies positive examples only, so that generalisation must come from a prior or from negative evidence (Gold, 1967); the smallest grammar of a sample is hard to find (Charikar et al., 2005); and the divergence between two stochastic grammars is undecidable in general (de la Higuera et al., 2014). The model therefore defines its quantities exactly and computes them, where it computes them, on surrogates whose nature it states.
1.5 Organisation
Section 2 places the paper among the work it draws on. Section 3 reads the mechanisms of continuation. Section 4 states the formal language of records, Section 5 its representations and the geometric and spin-foam versions of its grammar, and Section 6 the model of generativity, development and evolution; Section 7 reports the prototypes, and Section 8 discusses challenges, limits and the companion paper. Appendix A holds the proofs, Appendix B the settings of the prototypes, and Appendix C the preparation of the paper.
2 Background and Related Work
The paper draws on six bodies of work, surveyed in five verified parts kept in the design folder of the repository (Appendix B). This section states what each establishes and where the paper stands against it.
2.1 Generative and Developmental Encodings
Evolving a compact generator in place of the phenotype is the definition of an indirect encoding, and it is decades old. Grammatical evolution maps an integer genome through a grammar to a program (O’Neill and Ryan, 2001; Ryan et al., 1998), and grammar-guided genetic programming constrains programs by a context-free grammar (McKay et al., 2010; Whigham, 1995). Developmental encodings grow a network or a body from rules: cellular encoding (Gruau, 1992), evolved creatures (Sims, 1994), generative representations built on L-systems (Hornby and Pollack, 2002; Lindenmayer, 1968), and compositional pattern-producing networks with their extension to the weights of large networks (Stanley, 2007; Stanley et al., 2009), classified as artificial embryogeny (Stanley and Miikkulainen, 2003); compressed encodings evolve the coefficients of a transform
in place of the weights (Koutník et al., 2013), and neural cellular automata grow a pattern from a seed by local rules (Mordvintsev et al., 2020). The grammar itself has been evolved: by a metagrammar (O’Neill and Ryan, 2004), with weights carried by each individual (Mégane et al., 2022), as a hypergraph grammar that generates a population of graphs (Luerssen and Powers, 2007), and as a stochastic grammar learnt from the selected individuals of each generation (Shan et al., 2004). Two cautions come with these results. Indirect encodings excel on regular problems and lose their advantage over direct encodings as regularity falls, which hybrids with direct edits remedy (Clune et al., 2011); and a single change of a grammatical genome is often either neutral or disruptive (Rothlauf and Oetzel, 2006). In most of this work development is either free or a fixed simulation, outside the account of cost.
2.2 The Evolution of Large Existing Artefacts
Genetic improvement evolves edits relative to a large existing program in place of the program (Petke et al., 2018): patches repaired real bugs (Le Goues et al., 2012; Weimer et al., 2009), and a
large program read as a grammar of its lines was made many times faster by evolving lists of edits that respect the grammar (Langdon and Harman, 2015). This is the nearest prior art: a compact object of variation relative to a large artefact. There the grammar is a copy of the program, line by line, used to keep edits valid, and it stays as taken from the program: unweighted, uncompressed and fixed through the search. Repairs found this way can overfit the tests that select them (Smith et al., 2015), and random search over the same edits is a baseline that a method must beat (Qi et al., 2014). Incremental evaluation reuses the evaluation of a parent where a child is unchanged (Langdon, 2021), and fitness inheritance and surrogates reduce the number of full evaluations (Jin, 2005; Smith et al., 1995).
2.3 Language-Model Agents in Evolutionary Search
Language models now propose the variations of evolutionary search. Evolution through large models showed a model mutating programs (Lehman et al., 2022); FunSearch evolved programs that found new constructions in combinatorics (Romera-Paredes et al., 2024); AlphaEvolve evolves whole files of code under a cascade of evaluations of rising cost (Novikov et al., 2025); the Darwin Gödel Machine evolves an archive of coding agents that edit their own code (Zhang et al., 2025), and the Huxley–Gödel Machine scores an agent by the performance of its descendants (Wang et al., 2025); in the evolution of heuristics a model turns a short description into code (Liu et al., 2024), a form of development. In all of these but the evolution of heuristics each candidate is the artefact itself or a patch to it, so that what passes between generations is the artefact; in the evolution of heuristics a description of one function is inherited with its code, a material whose form is designed in advance and whose development is at the scale of one function.
2.4 Geometric Graph Grammars and Categorical Rewriting
Geometric graph grammars learn rules from one plane graph by compression, identifying patterns up to similarity, and generate graphs with them (Fiser et al., 2016); the infrastructure’s foundation of geometric grammars implements them and adds exact replay through connections recorded per instance, categories of rules by a coarse key, probabilistic and context-sensitive forms, a syntax analyser that records its parse forests, and grammars whose words are 2simplices. Graph transformation by double pushouts has a theory of its own (Ehrig et al., 2006), extended to every adhesive category, toposes among them (Lack and Sobociński, 2005); schemas stated as categories and their instances as functors give databases a categorical semantics, with migration of instances along functors (Spivak, 2012), and the attributed instances of such schemas, with their rewriting, are implemented as data structures (Brown et al., 2022; Patterson et al., 2022).
2.5 State Sums, Spin Foams and Drawings of Records
An abelian gauge model on an oriented cell complex has a state sum that expands into a sum over closed chains of faces with coefficients in the dual group (Drouffe and Zuber, 1983), the abelian case of the duality between lattice gauge theory (Kogut, 1979; Wilson, 1974) and spin foams, which holds for non-abelian groups on lattices with representations as labels (Oeckl and Pfeiffer, 2001) and which spin-foam models of topological field theory share (Baez, 2000); the Ponzano–Regge and Turaev–Viro state sums are its classical cases (Ponzano and Regge, 1968; Turaev and Viro, 1992). Group field theories generate 2-complexes as Feynman graphs weighed by spin-foam amplitudes (Boulatov, 1992; Reisenberger and Rovelli, 2001), and the melonic graphs
of tensor models are counted by the inside equation of a one-nonterminal grammar (Bonzom et al., 2011). A state sum on a complex is computed exactly by eliminating variables along a tree decomposition, at a cost exponential in its width (Aji and McEliece, 2000; Dechter, 1999), and languages of hyperedge replacement have bounded tree-width (Courcelle and Engelfriet, 2012). A weighted grammar with a finite partition function has a probabilistic form with the same distribution (Smith and Johnson, 2007), whose partition function is computed by Newton’s method (Etessami and Yannakakis, 2009; Nederhof and Satta, 2008). Process mining draws event logs
in the plane of time and cases or resources (Song and van der Aalst, 2007), and BPMN draws processes in lanes chosen by the modeller (Object Management Group, 2011).
2.6 Grammar Induction and the Discovery of Processes
Grammar-based compression finds a small grammar of a sample: Sequitur and Re-Pair replace repeated patterns by rules (Larsson and Moffat, 2000; Nevill-Manning and Witten, 1997), grammars are universal codes (Kieffer and Yang, 2000), and the smallest grammar is hard to find and to approximate (Charikar et al., 2005). Induction by description length and Bayesian model merging trade the replay of a sample against generalisation beyond it (de la Higuera, 2010; Grünwald, 2007; Rissanen, 1978; Stolcke and Omohundro, 1994), and fragment grammars infer what to store and what to compute from the distribution of use (O’Donnell, 2015). Graph grammars are induced by compression (Cook and Holder, 1994; Jonyer et al., 2004), extracted from decompositions (Aguinaga et al., 2019), typed so that every member generated is valid (Kajino, 2018), and learnt from few examples under the quality of what they generate (Guo et al., 2022). Process mining discovers models of processes from event logs (Leemans et al., 2013; van der Aalst, 2016), now for logs whose events touch objects of several types (Ghahfarokhi et al., 2021), and provenance records name the agents, activities and derivations of what was made (Moreau and Groth, 2013). Inducing a generative grammar whose productions are the acts of people and agents in such a record remained, as far as the survey found, an open task.
2.7 The Genotype–Phenotype Map and Evolvability
Evolvability depends on the map from genotype to phenotype (Wagner and Altenberg, 1996), and such maps are strongly biased towards simple phenotypes (Dingle et al., 2018; Johnston et al., 2022), organised in neutral networks that keep innovations near (Schuster et al., 1994; Wagner, 2008). Kolmogorov complexity and description length state compactness relative to a machine (Li and Vitányi, 2019), and compression implies generalisation in the sense of learning theory (Blumer et al., 1987). Averaged over all problems, all search algorithms perform alike (Wolpert
and Macready, 1997); variation and selection on aggregate scores reach only the targets learnable from statistical queries (Valiant, 2009); and strong open-endedness requires undecidability (Hernández-Orozco et al., 2018). These results fix the limits within which the model states its
claims.
2.8 The Companion Papers
The companion proposal of a generative ecology of projects describes a population of languagemodel agents that improves a body of work by evolution, with people in defined roles and acts reserved to them; it carries a project by compact texts from which its parts can be developed again (Huang, 2026e). The companion discussion paper names the cost of prolonging a person’s generativity by such a process, the debt of generativity (Huang, 2026c). The present paper gives those compact texts a formal model as grammars, and the debt a measure.
2.9 The Contribution against Prior Work
Against this work the paper claims three things, as a proposal with the evidence of its prototypes and as far as the survey found: a weighted grammar of typed event complexes as the inherited material of a whole project made by people and agents, with its ontology verified as a category; such a grammar induced from the record of their acts, in place of being designed or evolved from scratch; and an account of the cost of re-derivation, with staged screening named as its next part, together with the acts that only persons may perform, kept by the operators. It leaves open whether a compact grammar of a project is generative in general.
3 The Mechanisms by Which Life Prolongs Generativity
This section reads, from developmental biology and the theory of evolvability, the mechanisms by which living things carry their generativity from one generation to the next through heritable material and development. Each mechanism is paired with what an algorithm can take from it, and with the point where the analogy ends. Table 1 collects them.
3.1 Description and Constructor
Von Neumann separated a self-reproducing automaton into a description and a constructor that reads it: the description is copied without being interpreted and is interpreted without being copied (von Neumann, 1966). The genome is such a description, and the cell its constructor. Life maintains itself as an organisation that produces its own components (Varela et al., 1974), and Rosen’s metabolism–repair systems state the closure by which an organism makes what makes it (Hofmeyr, 2021; Letelier et al., 2006; Rosen, 1958). For an algorithm, the grammar is copied verbatim and expressed by a development that reads it; variation acts on the copy, selection on what the development makes. The limit: an organism’s constructor is itself made by the organism, whereas the machinery that expresses a grammar, the agents and their models, is made and changed outside the project.
3.2 Development as Expression
The map from genotype to phenotype is a development, a dynamical process with its own constraints, and the metaphor of a blueprint misdescribes it (Alberch, 1991; Maynard Smith et al., 1985; Pigliucci, 2010). Lindenmayer’s systems modelled the growth of filamentous organisms by rules (Lindenmayer, 1968), and the maps of such processes are biased towards simple outputs (Dingle et al., 2018; Johnston et al., 2022). The code in the narrow sense covers only the step from
the heritable material to its first products; what follows is development, stochastic and dependent on context (Godfrey-Smith, 2000). For an algorithm, the derivation of a grammar is the code, and the realisation of its acts by agents is the development. Canalisation buffers development against perturbation and stores variation hidden from selection until the buffer is relaxed (Rutherford and Lindquist, 1998; Siegal and Bergman, 2002; Waddington, 1942); plasticity lets a development answer its environment, and variants first produced by plasticity can later be fixed in the heritable material (West-Eberhard, 2003). A development that repairs what the grammar gets wrong, agents correcting a derived act, is the counterpart of plasticity, and a repair that recurs can be consolidated into a production.
3.3 Conserved Cores and Facilitated Variation
Animal bodies are built by a toolkit of regulatory genes redeployed in new places and times (Carroll, 2008; Jacob, 1977). Developmental gene regulatory networks are hierarchies whose deep kernels have been conserved since the Cambrian, while their peripheral switches change readily
(Davidson and Erwin, 2006). Conserved core processes, weak regulatory linkage, exploratory
behaviour and compartmentation make random variation yield functional novelty (Gerhart and Kirschner, 2007; Kirschner and Gerhart, 1998). For an algorithm: productions near the start symbol change rarely and under stronger evidence, productions near the terminals freely; the weights and the contexts of a production are the regulatory part, mutated more often than its right-hand side. Modularity, the condition under which a change in one part leaves the others working, raises evolvability (Wagner and Altenberg, 1996); it arises under goals that vary around shared subgoals (Kashtan and Alon, 2005) and under costs on connection (Clune et al., 2013), which act as regularisation by which development learns to generalise (Kouvaris et al., 2017). Robust phenotypes with large neutral networks reach many neighbours (Payne and Wagner, 2019; Wagner, 2008), so that variations that leave the project unchanged keep a population diverse at zero cost in fitness.
3.4 Duplication and Divergence
Duplication of genes and of whole genomes supplies redundant copies released from selection, which diverge and acquire new functions (Ohno, 1970); complementary losses of subfunctions preserve both copies (Force et al., 1999); most duplicates are lost within a few million years (Lynch and Conery, 2000); and duplication resolves a conflict between two uses of one gene (Conant and Wolfe, 2008; Innan and Kondrashov, 2010). For an algorithm, duplicating a nonter-
minal and letting the copy diverge adds capacity while keeping what the grammar already does. Duplicates in a grammar are free to keep, so that the loss which keeps genomes compact must be supplied by an explicit operator of deletion.
3.5 A Second Heritable Layer
Regulatory and epigenetic states pass between generations beside the sequence, with their own rates and their own inducibility (Jablonka and Raz, 2009; Jablonka et al., 2014), though in mammals most such marks are erased at each generation, robust transmission being documented in plants and nematodes (Heard and Martienssen, 2014), and prions carry a heritable state in a protein’s fold (True and Lindquist, 2000). For an algorithm, weights and activation flags carried beside the productions adapt over a few generations without rewriting the grammar, and may be reset at reproduction with exemptions.
3.6 The Economy of Development
Development and reproduction draw on a finite budget shared with maintenance (Stearns, 1992; Williams, 1966); the number and the provision of offspring trade against each other (Smith and Fretwell, 1974); the soma receives only enough maintenance to function through its expected life (Kirkwood, 1977); and the rate of development scales with size and temperature (Gillooly et al.,
2002). Many variants are stopped early and cheaply: on one hypothesis, organisms produce more zygotes than they rear and abort the weaker, which pays when quality can be judged early (Kozlowski and Stearns, 1989), and checkpoints make the later events of the cell cycle wait on the
completion of the earlier (Hartwell and Weinert, 1989). For an algorithm, the cost of development enters the theory as one of its quantities (Section 6.4): a candidate is derived from the top down and discarded at a coarse stage, a child reuses its parent’s development wherever its material is unchanged, and the generativity of a grammar is weighed against the cost of expressing it.
3.7 Germ and Soma
Weismann separated the germ line, which carries the heritable material, from the soma, which it
builds and which dies (Weismann, 1893). Animals specify their germ cells either by inherited determinants or by induction later in development (Extavour and Akam, 2003), and where a germ
line is set apart it suppresses conflict between cell lineages within the organism, while plants, fungi and many colonial animals keep germ and soma together (Buss, 1987; Michod, 2007). For an algorithm, the grammar is the germ line and the developed project the soma: the project can be discarded, and what the agents learn while developing it reaches the grammar only through selection or through an explicit, recorded consolidation. The limit: an agent that persists across generations and edits the grammar is a unit with its own propagation, in Buss’s sense, inside the project, and the conflicts that the germ line resolved in organisms are present again.
3.8 Inherited Machinery and Provision
Every cell comes from a cell (Virchow, 1855): the egg carries the machinery that reads the genome, the cortical structure of a ciliate is inherited by templating (Beisson and Sonneborn, 1965), membranes are inherited as membranes (Cavalier-Smith, 2000), and the first divisions of an embryo run on maternal provision until the zygote’s own genome takes over (Tadros and Lipshitz, 2009). A synthetic genome was booted in the living cell of a related species (Gibson et al., 2010). For an algorithm, a grammar compresses a project only relative to the machinery that expresses it, and an offspring grammar runs at first on its parent’s developed workspace. Compactness is therefore relative: it is the length of the project’s description given the machinery (Li and Vitányi, 2019), and a change of the machinery shifts the expression of every grammar at once.
3.9 Fidelity and the Limit of Heritable Length
A replicator copied with a given error rate can carry only a bounded quantity of information, Eigen’s error threshold (Eigen, 1971), a bound relaxed by neutrality (Kun et al., 2005). Unlimited heredity came with templates that copy modular sequences, and the major transitions grouped heritable units while suppressing conflict among them (Maynard Smith and Szathmáry, 1995; Szathmáry, 2006). Genomes are compact in their functional part under strong selection and, on a comparative argument that has been challenged, bloat under drift in small populations (Giovannoni et al., 2005; Lynch, 2007; Lynch and Conery, 2003). For an algorithm, digital copying
is exact, so the error threshold becomes a chosen mutation rate; and a costly development keeps populations small, the regime in which drift dominates, so that compactness must be enforced by an explicit cost on length.
3.10 The Limits of the Analogy
Three limits govern the rest of the paper. First, the developmental system carries heredity as much as the genome does (Griffiths, 2001): a grammar is a compact description of a project only relative to its agents, tools and conventions, and the share of generativity that resides in the grammar, against the share that resides in the machinery, must be measured. Second, the mechanisms of evolvability were selected over deep time in large populations; an algorithm’s budget is too short to wait for them, and they are better built into its operators and tested. Third, agents can plan as well as tinker (Jacob, 1977), so that the algorithm mixes evolution with design, and the contribution of each must be kept apart.
4 Grammars of Records
This section states the formal language of the model. A record is read as the event–coupling– primitive complex of the Generative Relational framework (Huang, 2026b,l), in which the complex records generated structure and a separate generative grammar states which transformations of it are admissible (Huang, 2026b), and in which historical records are read as cell complexes whose edges are worldlines and whose two-cells are ties (Huang, 2026f): its vertices are events of many kinds (a person’s request, an agent’s prompt to another agent, the generation of
Readable text
Table 1: Mechanisms by which life prolongs generativity through heritable material, and their counter-
Realisation is stochastic and depends on the model’s version
Repairs made by agents, consolidated into productions when they recur
Mutability graded by depth; weights and contexts as the regulatory part
Costs on length and dependencies; goals that vary around shared subgoals
The variation must itself be modular; the cost is the designer’s
Staged development, reuse of the parent’s development, generativity per
Prediction from a partial development is an empirical property
Grammar as germ line, project as soma Compactness relative to the machinery;
Germ and soma Inherited machinery offspring start on the parent’s workspace
Persistent agents are units with their own propagation
code, a check, an acceptance, a commit), its edges are typed couplings between events, and its faces are primitives bounded by couplings. The kinds form an ontology, stated as a category and verified. A grammar of records replaces nonterminal cells by complexes glued at their bound- ary events; derivation reads a grammar forwards and generates a record, reduction reads it backwards and parses one. The replacement is hyperedge replacement over typed complexes (Drewes et al., 1997; Habel, 1992), and in categorical terms double-pushout rewriting in an ad-
hesive category (Ehrig et al., 2006; Lack and Sobociński, 2005). The geometric graph grammars of Fiser et al. (2016) are another instance of the scheme (Section 4.7), and Section 5 develops a geometric and a spin-foam version of it. Proofs are in Appendix A.
of event to another; its faces are kinds of primitive, each bounded by a closed path of kinds of coupling. Each most specific kind of event has a performer, a person or an agent, and the kinds
Figure 1 draws the order of the running example. Its most specific kinds are ask (a person’s request), prompt (an agent’s request to another agent), report (an agent’s answer to a person), draft (the generation of code or text), survey, merge, check, review, accept (a person’s acceptance), commit
and note; each specialises one of five general kinds, request, generation, verification, decision and recording, and every kind specialises act. Ask and accept are reserved. The order is a category in at most one way, and act is its terminal object (Section 4.6).
Readable text
Figure 1: The kinds of event of the running example, ordered by specialisation: an arrow runs from a kind to the more general kind it specialises. Double boxes are reserved kinds, performed by persons. kategoria verifies that the order is a thin category with act terminal.
kind of primitive whose boundary is the path of the couplings’ kinds;
(iv) the couplings of causal kinds form an acyclic graph, along which times increase.
Records are taken up to isomorphisms of typed complexes.
The events are heterogeneous: a vertex is a prompt, a generation, a check or a commit, and its kind fixes which couplings it may take part in and who may perform it. Figure 2 draws a record asks; an agent drafts and checks; another agent reviews; the person accepts; the agent commits. The draft is used by the acceptance and by the commit, and the three events of acceptance, draft and commit bound a primitive of the kind gate. A record has the shape of an object-centric event log (Ghahfarokhi et al., 2021) or an event knowledge graph (Esser and Fahland, 2021), with the vocabulary of provenance for its agents, delegations and derivations (Moreau and Groth, 2013).
A production is locked when its right-hand side contains an internal event of a reserved kind. A
Readable text
Figure 2: One cycle of a record as a typed complex. Vertices are events, typed by their kind (squares, double-lined: events of reserved kinds, performed by a person; circles: events performed by agents); arrows are couplings, typed by their kind; the shaded face is a primitive of the kind gate, bounded by the acceptance of the draft, the draft’s use by the commit, and the acceptance’s coupling to the commit. The
guards in its productions is guard-sound (Proposition 10).
The terminals are the kinds of the ontology: events, couplings and primitives that remain in a record. The nonterminals stand for parts still to be derived (a project, a cycle, a piece of work, a gate), attached to the events that bound them. Boundary events are where a right-hand side is glued into its context: through them a part receives what it answers and passes on what it produces. Faces lie only along terminal couplings, so that replacing a nonterminal cell leaves every face attached. Figure 3 gives the productions of the running example.
keeps each guard within one locked production: the commit and the acceptance it waits on are created together. A grammar in which a guarded event is created by one production and com- pleted by another, for instance a cycle that follows the previous cycle’s commit, needs guards carried by boundary events as obligations passed down the derivation, an extension left open
Replacement is context-free: the result of replacing two cells is independent of the order, and every derivation corresponds to a derivation tree whose nodes are labelled by productions and whose children are the nonterminal cells of each right-hand side (Drewes et al., 1997; Habel, form a probability distribution when the grammar is consistent, as it is when the spectral radius 1973); weights estimated by maximum likelihood are consistent (Chi and Geman, 1998). To derive a record is to generate it: Figure 4 shows a derivation tree of two cycles and its yield.
Readable text
Figure 3: The productions of the running example. Dashed orchid boxes and arrows are nonterminal cells, attached to one event (Project, Cycle, Gate) or to two (Work); thick white circles are boundary events, glued to the events the nonterminal cell is attached to; tinted vertices are internal events, new at each application (squares reserved, circles performed by agents); thin arrows are terminal couplings. Every
Figure 4: A derivation tree of a record of two cycles. Inner nodes are nonterminal cells with the production the tree downwards, generating the record; reduction reads it upwards, folding the record back into the
Readable text
reverse, the sequence is a derivation, and the reductions taken in the order children before
Reduction is thus parsing: a record is recognised by folding occurrences of right-hand sides back into their nonterminal cells until the start remains, and all the ways of doing so form a parse NP-complete (Lautemann, 1990), so that a grammar meant to be parsed is kept in a class with a polynomial parser, or its parser is a heuristic whose coverage is reported, as the infrastructure’s analyser of geometric graph grammars reports its own.
The schema of records is a finitely presented category Rec (Figure 5): its objects are the tables of a record (events, couplings, sides of faces, primitives, and the tables of the ontology: kinds of event, of coupling, of side and of primitive, actors and roles), its arrows are references between tables, and its equations are the typing conditions of Definition 2:
for each reference, which keeps every equation; the closed boundary of a face, the acyclicity of causal couplings, the times and the order of kinds are conditions beside the schema, checked on the instance. Such functors are the instances of a database schema in Spivak’s sense (Spivak, 2012), and their attributed form is implemented as a data structure (Patterson et al., 2022). The
that adds a table of nonterminal cells with their attachments to events. Functors from a small category into Set form a topos, and toposes are adhesive (Lack and Sobociński, 2005), so that events, the rows of the ontology held fixed in all three so that rewriting acts on records typed by one ontology, and the replacement of Definition 4 is a double pushout along it (Ehrig et al., 2006), as computational rewriting of such instances implements (Brown et al., 2022). A change of the which records move in two ways: pushed forward by the left Kan extension, and pulled back by change of the rows of the ontology’s tables, carried by a map of those rows.
The schema is written as a script of kategoria, the infrastructure’s foundation of category theory, which answers each statement with its verdict and its evidence (Table 2; the script and the an- swers are in the design folder, Appendix B). The ontology is a thin category with act terminal; the map of kinds to the phases of a cycle is a functor; the schema is a category with its five equations, two of which are checked by derivations that a separate checker replays, and every instance is tested against all five. The cycle of Figure 2 is a functor to finite sets. Two records are refused, ontology that places each event in a workspace with the version of its machinery contains the earlier one by a full and faithful functor, and the cycle is pushed forward by the left Kan ex- tension and pulled back again. Verification answers whether a record is well formed under the declared schema. Whether the kinds fit the acts they name, and whether the typing serves the people whose acts it records, are questions of the factual, interpretive and normative adequacy of the schema, which the validation of a declared categorical schema leaves to an assessment of
Readable text
Figure 5: The schema Rec of a record of acts: objects are tables, arrows references. The left part is the complex (events, couplings, faces and their sides); the right part is the ontology (kinds of event, of coup- ling, of side and of primitive) and the actors with their roles. Five equations make a record typed by the ontology; a record is a functor from this category to finite sets.
Table 2: The statements of the schema of records, as kategoria answers them (17 statements, all answered
The kinds form a category holds The kinds are thin; act is terminal
holds, holds The phases of a cycle; the map of kinds to phases
The schema Rec holds Two typing equations checked holds, holds The cycle of Figure 2 holds An acceptance performed by an agent
at most one arrow between two kinds; one arrow from every kind
10 objects, 48 arrows from 15 generators and 5 equations each by a derivation of one step a functor to finite sets, every composite kept
a left Kan extension, universal against the functors tried; a functor
A rule found at one place in a record should apply wherever the same structure recurs. What
Definition 6 (Invariance and placement). Let a group H act on the attributes of complexes (pos- currences of one rule when their keys agree. Each application of a production carries a placement
Proposition 2 (Invariant analysis). If a procedure of reduction compares patterns only by their
Three instances differ in their words, their replacement and their group (Table 3, Figure 6). The geometric graph grammar of Fiser et al. (2016) takes plane graphs as words, replaces nodes by patterns, and identifies patterns up to the orientation-preserving similarities of the plane; the infrastructure’s foundation of geometric grammars implements it, records the connection of each instance, and keys patterns by a canonical word of coordinates rounded at a tolerance. Its node replacement takes node-disjoint occurrences, so that two copies of a pattern keep separate vertices; replacement at boundary events shares them, which a record needs, since one event is answered, used and kept by many. The grammar of records proposed here takes typed event complexes as words and replacement at boundary events as its operation, and identifies patterns up to isomorphism, which renames persons, agents and events, and up to monotone reparametrisations of time, which keep the causal order and forget the clock: the structure of a record is topological in time, an order, where the structure of a drawing is metric in the plane. A grammar of triangulated 2-complexes, glued along edges or rewritten by Pachner’s moves, takes the combinatorial isomorphisms of complexes as its group, as the infrastructure’s grammars of 2-simplices do; such a grammar could serve histories read as cell complexes, whose two-cells are sustained ties (Huang, 2026f), and Section 5 weighs the derivations of a grammar of records by the state sums of their 2-complexes, a spin-foam version of the grammar.
4.8 Induction by Compression and Merging
A grammar is induced from records in two moves that reduction makes possible. Compression folds repeated structure into new productions and replays the records exactly; merging identifies nonterminals and generalises beyond them.
Compression is grammar-based compression, the complex form of Sequitur and Re-Pair on strings (Larsson and Moffat, 2000; Nevill-Manning and Witten, 1997), and of the induction of geometric graph grammars (Fiser et al., 2016), whose implementation in the infrastructure records each instance’s connection so that the learned grammar replays its input exactly. Because occurrences glue at boundary events, an event used by acts in two occurrences stays one event, shared. Compression by itself generates only the records: its language is the record (Proposition 3), and its generativity is zero (Proposition 9(b)).
Readable text
Nonterminal cells replaced at their boundary events
Replacement Node replacement, connection recorded per instance
Source Fiser et al. (2016), implemented in the infrastructure
Figure 6: Three groups under which a pattern is the same pattern. (a) A plane pattern and its image under a similarity. (b) The acceptance and the commit it allows, at two places in two records, carried one onto the other by a monotone map of time and a renaming of the participants: the order is kept and the clock forgotten. (c) Two triangles glued along an edge, the second rewritten by Pachner’s 1–3 move; patterns
Merging is where generalisation enters, and where it can overreach. The infrastructure’s geo- metric graph grammars group rules whose patterns share a coarse key into one category, after Bayesian model merging (Stolcke and Omohundro, 1994). For the sequential part of a record, a merge by histories, is the dual rule. The choice among merges is made by the two-part code of Definition 15: a merge is kept when it shortens the description of the grammar more than it lengthens the description of the records. Figure 7 shows the two moves on the sequence of kinds along a record’s causal order, the rank-two case, and the fourth prototype (Section 7.4) measures them, together with the dial between them: compression that runs too long makes chunks that cross the units of a process and leaves little to merge.
Representations of a Record and Versions of Its Grammar
A record can be represented in several ways, and each representation fixes what a grammar of it sees and what the grammar forgets. This section sets five representations side by side and develops two versions of the grammar beyond the grammar of records of Section 4. The geometric version, a variant of the geometric graph grammars of Fiser et al. (2016), reads a record drawn
Readable text
Figure 7: Induction in four stages, on the sequences of kinds of three short records (A ask, D draft, K check, P a parallel draft and survey, M merge, C accept, T commit). Compression folds repeated pairs into productions and replays the records exactly; the prefix-tree automaton of the compressed records is the replaying grammar (double circles accept); merging the states reached by the same last symbol, a merge by histories, gives a recursive grammar that generates projects of any number of cycles, the pair G
in the plane of time and lanes. The spin-foam version keeps the grammar of records and weighs each derivation by a state sum over the record’s 2-complex, whose expansion labels the faces of the record as a spin foam labels its faces. For each version the section states the words, the group, the form of a rule and the form of a derivation. The fifth and sixth prototypes check both
Table 4 lists the representations with what each keeps, what it forgets, and the grammar that reads it. The sequence of kinds along the causal order of one chain is the coarsest but one: it is the word read by the induction of Figure 7 and by the fourth and fifth prototypes, and a right-linear grammar reads it; the third prototype reads the set of kinds of each commit, coarser still. The typed complex of Definition 2 keeps every event, coupling and face with its kind, and the grammar of records reads it. The instance of the schema Rec holds the same content as tables, on which double-pushout rewriting acts (Section 4.6). The lane drawing places each event at its time on the lane of its actor; the geometric version reads it. The complex with a state sum adds variables on the couplings and a weight on the faces, and the spin-foam version reads it. The representations differ in their groups: a group fixes when two patterns are one rule (Definition 6), and a larger group identifies more patterns, so that a grammar under it tends to have fewer and more general
Definition 9 (Lane drawing). Let the actors of a record be partitioned by role into persons and coupling as a segment between its ends, and each face as the region its couplings bound. The a permutation of the lanes that keeps each lane’s role.
The drawing adds nothing to the record, since times and actors are attributes of its events (Defini- tion 2); what changes is the group. Hlane keeps the order of events and the ratios of their durations, and forgets the origin and the unit of time and the names of the lanes. Dotted charts in process mining draw event logs in the same plane, one row for each case or resource (Song and van der Aalst, 2007), and a chart that stretches each case to end at the same time applies one positive
Readable text
Table 4: Five representations of a record, and the coarser set of kinds of a commit, with what each keeps,
Typed complex Kinds, couplings, faces, actors up to renaming, causal order
Schema instance The typed complex, as tables and references
Lane drawing Kinds, couplings, faces, lanes up to permutation within a role, ratios of durations
affine map to each case. In BPMN the lanes are the modeller’s to choose and lie outside the ex- ecution semantics (Object Management Group, 2011); in a lane drawing they are the actors that
A rule of the geometric version is a small drawing in a canonical frame: time runs from 0 to 1 as in Definition 4 and carries each right-hand side from its canonical frame onto its place by the placement of its application (Figure 8). The rule of the figure, for instance, is the end of a gate, its
kind in a pattern fall at distinct instants, let times increase strictly along causal couplings, and let
Readable text
the key of the grammar of records. Two patterns related by a uniform change of tempo, beyond its key under monotone maps: a pair is shapeless.
The geometric version is thus a refinement of the grammar of records, which is its topological counterpart: the maps of time in Hlane form a subgroup of the monotone reparametrisations under which the grammar of records identifies patterns, and the translations of time, which keep durations, and the identity, which keeps dates, give finer versions still. The geometric key of a whole cycle tells the rhythm of the cycle from its tempo: a cycle whose review takes three times as long has another key, and a cycle performed at twice the speed has the same key, placed with half the span. Rules induced from records carry rhythm only through patterns of three positions or more, since a pair is shapeless, and only where the rhythm moves a normalised time by more than grammars of Fiser et al. (2016), which match patterns under rotations, scalings and translations of the plane, replace nodes with a relaxed embedding and quantise on a polar grid: its group acts on time and on lanes separately, since time is ordered and lanes are names; its replacement is at boundary events, so that one event serves several patterns; and its grid is uniform in normalised time. Rounding to a grid keeps matching transitive at the price of splitting patterns whose times lie near the edge of a cell, where matching within a tolerance would keep them together and lose transitivity; quantisation error is the limitation Fiser et al. (2016) name in their own grammars,
The spin-foam version keeps the words, the group and the rules of the grammar of records, and adds a weight to every derivation computed from the record’s 2-complex. Each coupling carries a variable in a finite abelian group, each face is weighed by the holonomy of its variables around its boundary, and the average over the variables is a state sum, a lattice gauge theory on the record (Kogut, 1979; Wilson, 1974). Its expansion in characters is a sum over labellings of the faces that
are conserved at every coupling, an abelian spin foam (Baez, 2000; Drouffe and Zuber, 1983).
Readable text
(a) a record of two cycles in lanes, two applications marked
Figure 8: The geometric version. (a) A record of two cycles drawn in lanes: the person’s lane (squares) and three agents’ lanes (circles), with A ask, D draft, K check, S survey, M merge, R review, C accept, T
The expansion is Drouffe and Zuber’s form of an abelian gauge model on an oriented cell complex (Drouffe and Zuber, 1983): the state sum is a sum over closed chains of faces with coefficients
in the dual group. On a record, whose cells have dimension at most two, the closed chains are its second homology, and the weight measures the record’s closed shells, each weighed by its size. A panel of three reviewers who each review a draft and consult one another forms such a shell: the draft and the three reviews span the boundary of a tetrahedron, four faces which, oriented coherently as that boundary, admit one non-zero label on all four (Figure 9). A record whose second homology vanishes has relative weight one. For a non-abelian group the labels are irreducible representations, the Gauss law becomes an intertwiner at each coupling, and the expansion is the spin-foam dual of lattice gauge theory, proved on lattices by a derivation local to links and plaquettes that carries over to records (Oeckl and Pfeiffer, 2001); the Ponzano–Regge and Turaev–Viro state sums are of this kind (Ponzano and Regge, 1968; Turaev and Viro, 1992). The abelian case keeps every sum exact and small, and it is the case developed here.
Proposition 7 (Locality and factorisation). Let every face of every right-hand side run along
Readable text
which sum to one over the productions of each left-hand side.
The corollary is Smith and Johnson’s renormalisation of a weighted grammar to a probabilistic one with the same distribution (Smith and Johnson, 2007), carried to grammars of records by the factorisation; the inside values are the least solution of their equations, to which the decom- posed Newton’s method converges from zero (Etessami and Yannakakis, 2009; Nederhof and exceeds one for the example’s weight, so that records with more faces gain weight whatever their shells, and the inside values can become infinite; in the running example they do (Section 7.6). foam version is therefore a derivation of the grammar of records whose weight is the product of
Proposition 8 (Closure across applications). Let a derived record be extended by couplings and faces that join different applications, as when the gates of successive cycles are joined by faces that continue the draft, the acceptance and the commit, each added coupling assigned to a node of the derivation tree, such as the lowest common ancestor of the applications it joins or the root. Then (a) and (b) of Proposition 7 can fail. Assign each face to the deepest node whose subtree created or was assigned all its couplings, and eliminate the variables of the couplings node by node, children before parents, each node summing the variables of its scope that only
The derivation tree is a tree decomposition of the record along which the state sum is computed by variable elimination, whose cost is exponential in the width of the decomposition (Dechter, 1999); elimination of this kind is exact over any commutative semiring (Aji and McEliece, 2000). Languages of hyperedge replacement have bounded tree-width (Courcelle and Engelfriet, 2012), so that a grammar whose faces stay within applications keeps the cost of its weights linear in the size of the record, and closure faces raise the exponent of the cost by the width of the interfaces they span. Faces across applications lie outside the grammars of Definition 3, whose right-hand sides couple only their own events; closure faces generated by productions are left to further work. The same structure appears in a group field theory, whose Feynman graphs are 2-complexes glued from vertices along propagators and weighed by spin-foam amplitudes (Boulatov, 1992; Freidel, 2005; Reisenberger and Rovelli, 2001): a production with faces plays the part of a vertex, its boundary events the part of the propagators’ ends, and closure faces glue applications into larger shells. For the melonic graphs of tensor models the correspondence with a grammar is exact, since they are in bijection with rooted trees of a fixed arity and their generating function
(Bonzom et al., 2011); melonic graphs are branched polymers, so that a grammar modelled on
them generates tree-like complexes, and for other families the correspondence needs a proof of
Readable text
expands a gate into a panel: three reviews of the draft (white, the boundary event), each pair of reviewers consulting, and then the acceptance and the commit of the gate. The draft and the three reviews bound a tetrahedral shell, drawn flat with its fourth face outside the triangle of the reviews; labelling its four last review to the acceptance lies outside every face. (b) Closure faces (rose) join the gate of one cycle, the outer triangle, to the gate of the next, the inner triangle, by continuations of the draft, the acceptance and the commit: the five faces form a prism, a closed shell across two applications, which a product over
The versions act on different attributes of one record: the geometric version on times and lanes, the spin-foam version on faces, both over the typed complex that the grammar of records derives. One grammar can carry them together, each production with a canonical frame for its placements complex alone; a weight that read times or lanes would keep that invariance only by reading them through invariant data, such as ratios of durations and quantities symmetric in the lanes. Which version serves a project depends on what its selection should see. The topological version suffices where only the order of acts matters, as in the guards of reserved acts; the geometric version where the pace of work carries information, such as a review that takes long or a commit that waits on an acceptance; the spin-foam version where closed deliberation, reviewers consulting one another or work returning to its premises, is what the project should keep or reward.
With records and their grammars fixed, this section states what a grammar is worth and what it
costs: development with its machinery, generativity at a time, evolution over materials with the acts reserved to persons, the cost of re-derivation, and the debt of generativity. Figure 10 shows
leaves to a reader: the artefacts of the workspace at its end, or any summary of them. A reading
events are typed acts, some of them templates. Realisation fills each event with its content by a
Readable text
Figure 10: The cycle of the model. A record is read by induction into generative materials; materials vary under restricted operators and are developed by a machinery under an environment into projects, whose records extend the record and whose generativity per unit of cost selects among the materials.
space, the corpus, the state of the world). Its cost is the cost of the derivation and of the realisation;
Derivation is the code in the narrow sense; realisation is development proper, stochastic and dependent on context (Godfrey-Smith, 2000). A record of a development states the version of its machinery, since one material expressed by another machinery yields another project, as one
Definition 14 (Keyed draws). The address of a node of a derivation tree is the sequence of nonter- minal labels and child positions on its path from the root. Each production has an identity that a mutation of its right-hand side keeps. Development has keyed draws when the production chosen
proportion, a draw changes with probability exactly TV, the least that any coupling attains (Ap- pendix A). Counter-based generators make draws functions of their keys (Claessen and Pałka, 2013; Salmon et al., 2011); memoisation keyed by arguments (Pugh and Teitelbaum, 1989) and change propagation (Acar et al., 2006) confine recomputation to what changed, as build systems
The code length is computed for the grammar found, in the stated encoding; the length of the shortest description, Kolmogorov’s complexity, is uncomputable (Li and Vitányi, 2019), and the smallest grammar of a sample is hard to find and to approximate (Charikar et al., 2005).
Readable text
a background material on records (for instance, the grammar that chooses each kind uniformly).
The three factors are the three parts of the definition of generativity: new, holding and the pro- ject’s own. The first is relative to the record at a time, since an output stops being new once it is prior odds, so that a grammar that spreads its mass as the background does gives every output an ownness of one half. Other readings of each factor fit the same form: distance to the nearest recorded output for novelty (Lehman and Stanley, 2011), typicality and value for holding, and the exclusion of an inspiring set for ownness (Ritchie, 2007), with the distinction between what is new to a person and new to history (Boden, 2004).
Compactness is therefore insufficient for generativity. A background law that is uniform over records of a bounded size has a short description, yet by (c) its generativity is at most half the share of records that hold under it, a share that is small wherever holding records are rare. A grammar that replays its record has generativity zero by (b), whatever its length. Generativity lives between the two, in grammars that place their mass outside the record and on what holds, and whether compactness alone carries a grammar there is left open.
all its mass on one unrecorded record that holds, a generator that produces one thing; (d) shows tests which of the two ranks materials as a project would (Section 8.7). And a compact generator places most of its mass on simple outputs (Dingle et al., 2018; Johnston et al., 2022), frequent outputs arriving first (Schaper and Louis, 2014), so that an expectation under the grammar’s own law is nearly blind to rare and complex innovations, and the generativity of a fixed grammar decays as its outputs enter the record; a variant sensitive to the tail of the distribution is left open.
A population of materials is varied, developed in stages, evaluated and selected. The operators act on the material: reweighting (the regulatory part), mutation of a right-hand side, duplication of a nonterminal with divergence of the copy, deletion of a production, crossover of productions with the same left-hand side, and transfer of productions from an archive of other lineages. Se- cost as a second objective. Where the measures of two materials disagree, among them gener- ativity, cost, debt and the keeping of guards, their comparison is partial, and a selection that ranks one material above another only where the evidence warrants the dominance, for instance where the intervals of the estimates separate, keeps the comparisons the evidence warrants and
Readable text
leaves the rest open, as the author’s inquiry into evidence-based partial orders in the governance of human–AI evolutionary production asks (Huang, 2026k).
restricted when it leaves every locked production unchanged; may add an exact copy of a locked production, taken from the material itself or from a material that is guard-sound for the same guards (Proposition 10), under a left-hand side of the same boundary type, as crossover and
restricted operators is guard-sound, and in every record that such a material derives, each event
The proposition says that the acts of persons survive every variation by operators of this kind: a derived process may request an acceptance more often, and every commit it derives still waits on a person’s acceptance. A consolidation that edits a locked production, such as a repair an agent proposes and a person accepts, lies outside the restricted operators, and the guarantee then rests on that edit’s own soundness. With unrestricted operators the property fails within a few variations, as the first prototype shows (Section 7.1). A guard is a norm carried in the material, which says whose evaluation a commit waits on, and an edit of a locked production is a change of that norm: who may propose it, who may accept it and on which grounds are questions of the formation of evaluative norms and of the competence to amend them, which the author’s working papers take up (Huang, 2026g,i). The restricted operators exclude every such change, which the arrangement of Section 8.4 leaves to an act that a person performs and
Proposition 11 (Expected cost of re-derivation). Let development have keyed draws (Defini-
re-derivation falls as the productions grow in number and as fewer of them lie on each path. For
Compactness and locality pull apart: the grammar that shares most is the shortest and the most costly to evolve, since every production it has is used everywhere. Grammatical evolution shows
6.5 The Debt of Generativity as a Divergence
The companion discussion paper defines the debt of generativity as the gap, in history and in relational structure, between a project as an evolutionary process carries it forward and its person’s original project, and proposes that the original project be taken together with what its person has since taken up (Huang, 2026c). Grammars give the gap a measure.
6.6 Grammars and Actions
7 Prototypes
Six prototypes test parts of the model at small scale, beside the verification of the schema of records reported in Section 4.6. They are written in Python with the standard library alone, every draw from a stated seed, and their programs and results are kept in the design folder of the repository (Appendix B). The first checks three of the propositions on enumerated and sampled cases; the second evolves a project through three epochs of its environment with the cost of rederivation counted; the third induces grammars from a real record; the fourth induces a grammar of records from records generated by a planted grammar, by compression and by merging; the fifth induces the geometric version from the same records drawn in lanes; the sixth computes the spin-foam version exactly on records derived by the running example. The first four use strings, sets and sequences of kinds in place of complexes, the fifth the chains of drawn records, and the sixth whole 2-complexes; the induction of grammars of typed complexes from records of acts remains the first task of the programme (Section 8.7).
7.1 Checks of Three Propositions
Reserved acts. A small grammar of a process (work, review, then a person’s acceptance and a commit, the pair locked) was varied at random, without selection, in 500 lineages of 40 variations
each, and every derivation of every grammar along the way, 20,000 in all, was checked for a commit without the acceptance hole immediately before it. Under restricted operators the count was zero (Proposition 10). Under unrestricted operators, which may edit the locked production and transfer a commit from another lineage, 11,114 derivations (55.6%) carried an unguarded commit, and 464 of the 500 lineages had one within 40 variations, the first at a median of 5 (quartiles 2 and 11).
7.2 A Project Through Three Epochs
Table 5 and Figure 11 give the results. Four things are seen.
Incremental re-derivation buys generations. Within the same budget, the grammar re-derived incrementally ran 1.9 times as many generations in epoch 1 as the grammar re-derived in full, the cost falling to the modules each variation touched.
A change that is one production in the grammar is one variation. When the shared convention changed in one symbol, every grammar run regained a fitness of 0.8 under either rule for ties, and 47 of the 48 grammar runs ended with every need met; the direct encoding, which must repair every module, reached a median of 0.64 and regained 0.8 in 1 of its runs.
A change of two symbols is a plateau, crossed by neutral variation. When the convention changed in two symbols at once, changing one bracket of the grammar leaves every module invalid, so the intermediate grammar has the same fitness as its parent: a plateau. Where a child wins ties, the neutral intermediate enters the population and every grammar run regained full fitness; where a parent wins ties, selection kept the parents, the projects shrank to a single module of 3 symbols (hence the many cheap generations), and only 1 run of 12 regained. The direct encoding regained in 0 and 0 of its runs under the two rules, its projects keeping their length. The admission of neutral variants, a mechanism of evolvability in organisms (Wagner, 2008), decides the outcome here, as much as the encoding does.
Readable text
Table 5: Median best fitness at the end of each epoch over 12 seeds, under the two rules for ties. Epochs 1 and 2 are one experiment in every environment. In epoch 3, the number of runs that regained a fitness of
parent wins direct 1.00 grammar, full 1.00 grammar, incremental 1.00
Figure 11: The third epoch of the second prototype: the median best fitness over 12 seeds against the cost spent, sampled every five generations, for the grammar re-derived incrementally under the two rules for ties and for the direct encoding. When the convention changes in two symbols (right), the grammar crosses the plateau only when variants of equal fitness may enter the population.
- Under the control both adapt. The grammar re-derived incrementally met every added need in every run; the direct encoding reached a median of 0.98, meeting all needs in 6 of 12 runs
The grammar’s form also excludes text outside modules, so that part of its advantage is the regu- larity that the induced form carries; that is the purpose of a generative material, and also a reason the comparison favours it on a project whose regularity it encodes (Clune et al., 2011).
The record is the commit history of this paper’s own repository and of the repositories it holds as submodules, 20 repositories in all and 407 commits, each read as the set of kinds of act it performed: a decision recorded, a decision indexed, a day of release notes begun, release notes added to, code changed, tests changed, a foundation’s pointer moved, a theory note changed, and 24 kinds in all. Only paths, their status and dates are read. From each repository’s first release note on, its first 80% of commits train and the rest are held out: 238 and 72 commits. The repository’s declared discipline gives what holds: a decision added is indexed; a day of release notes added is indexed; a commit that changes code, tests, tools, data, the build or a foundation’s pointer carries release notes. The record itself satisfies these in 98.7% of the training commits and
Three grammars were induced. Replay: one production per commit seen, with its frequency.
Table 6 and Figure 12 give the results. The training commits hold 154 distinct sets of acts, and 48.6% of the held-out commits are sets absent from training. The replaying grammar has generativity zero, as Proposition 9(b) requires, and generates only 51.4% of what the project did next, an empirical finding about this record. The independent grammar is short and generates almost only new commits, but breaks the couplings of the discipline, so that only 0.614 of its samples hold. The grammar of kinds has the shortest two-part code, the shortest held-out code, 12.55 bits per commit against 17.03, and the highest generativity, 0.661: its samples are less often new than those of the independent grammar and more often hold. Both product grammars cover every held-out commit by construction, since smoothing keeps every probability positive, so that it is the held-out code that ranks them. Ownness against the uniform background barely varies (0.925 to 1.000), so that the ranking is carried by novelty and holding. The kinds can be read: the
largest, with weight 27.6%, is the commit that records and indexes a decision with its code, tests, build, instructions and a new day of release notes, the repository’s own practice for a change of structure; another, with weight 17.0%, adds to the release notes and their index, with a scatter of other acts.
The prototype is small and its grammars are shallow, a regular grammar of depth two over sets of acts. The record is that of a project made by its author with a language model, and the discipline that defines holding is the project’s own.
7.4 A Grammar of Records Induced by Compression and Merging
Readable text
Table 6: Three grammars induced from the training commits and judged on the held-out commits and by generativity. Held-out bits are given only where a grammar covers every held-out commit.
Two-part Held-out Held-out bits Grammar code (bits) coverage per commit
Figure 12: The five kinds of commit of the induced grammar: each row is a kind, with its weight at the left, and each cell the probability of an act in a commit of that kind (darker is likelier). Acts: A applications, B build, C the instructions file, D a decision changed, D+ a decision added, Da data, Do documents, Dx the index of decisions, F a foundation’s pointer, I ideas, K code, L licence or contributors, Mr a module’s description, O other, P interface library, R release notes added to, R+ a day of release notes begun, Re re- search, Rm the main description, Rx the index of release notes, T tests, Th theory, To tools, V visualisation.
pressed records generalises as little as replay; stopped at ten or thirty, it leaves more to merging, and generativity rises to 0.141 and 0.417. The pair of acceptance and commit is the first produc- tion compression finds, so that it is kept whole by every grammar built on the chunks. Greedy compression thus crosses the boundaries of the units of a process: compression recovers mean- ingful units only under conditions, and a learner without the right dependencies stores frequent sequences as units (de Marcken, 1996; Goldwater et al., 2009). The two-part code ranks the three thresholds in the opposite order to their generativity (999, 1,006 and 1,103 bits), so that here it leaves open where compression should stop; merging without compression has the shortest code
The fifth prototype draws 40 records of the planted grammar of the fourth prototype, 661 events in all, in four lanes (Definition 9): the person’s lane holds asks and acceptances, an agent’s lane drafts, checks, merges, commits and notes, a surveyor’s lane the survey of a parallel block, and a reviewer’s lane the reviews. Each kind of event has a base duration. Each cycle has a tempo, a the rhythm of a slow review, three times as long, which changes the ratios of its durations; every contracts occurrences without overlap while the gain of Definition 7 is positive, each application keeping its placement; the same compression keyed by the order alone is the topological version. Variants of the same drawing, with the same tempi and pauses, remove the jitter, the slow review or both, and two further runs take windows of up to 8 positions, the longest cycle, and windows
Table 8 gives the results. The geometric version rebuilds every record from its rules and place- ments alone, kinds from the rules and lanes from the placements’ maps, and every time within
Readable text
Table 7: Grammars of records induced from records of a planted grammar, judged on held-out records and against the planted language. Held-out bits are given only where a grammar covers every held-out
Replay (prefix tree) 1,085 Compression to threshold 3, merged 999 Compression to threshold 10, merged 1,006 Compression to threshold 30, merged 1,103 928 One state 1,900 Planted
Held-out Held-out bits coverage per record New Holds Gen
Figure 13: The dial between storing and computing in the fourth prototype. Compression that runs until pairs recur three times stores the records, its language the records themselves; stopping it earlier leaves more to merging; merging without compression comes near the planted grammar; one state generalises to every sequence, and its samples hold at the rate shown.
0.048 of its value, against the bound of Proposition 5(c), 0.72 for the widest application. Under 50 random positive affine maps of time, each with a random permutation of the agents’ lanes, the rule keys learned, in their order, and the number of uses of each were the same every time. The version learns more rules than the topological one, 20 against 15, with two more symbols left at the top level and fewer symbols in its rules, so that its total, 141 symbols against 145, is the smal- ler; it also keeps a placement for each of its applications. The extra rules come from variation in timing: drawn without jitter and without the slow review, the geometric version learns 15 rules like the topological one, and with either source of variation alone it learns 20, as timing splits the
The keys of whole cycles tell rhythm from tempo. The 12 order keys of whole cycles split into 25 geometric keys, and every pair of agreeing geometric keys has agreeing order keys, as the geometric key extends the order key by construction. Of the 14 groups of cycles that share an order key and a rhythm and differ in tempo alone, the key split 3; the same records drawn without jitter kept every group whole, so that each of the splits is a time pushed across the edge of a cell of the grid. Every one of the 6 pairs that differ in rhythm was split.
The induced rules tell rhythm less well, for the two reasons Proposition 5(b) gives. With windows from two positions, every review first meets its acceptance in a pair or in a window whose shape the slow review leaves in one cell, and all 26 slow cycles share that rule with normal cycles, at windows of up to 6 positions and of up to 8 alike: the review’s duration goes into the placement’s span, as a change of tempo does. With windows of at least three positions, the rules that join a review to its acceptance differ between slow and normal cycles in every case under jitter, but
Readable text
Table 8: The geometric and the topological versions on 40 records drawn in lanes, 661 events, and the
Rules; symbols left; symbols in the rules; total Records rebuilt from the rules and placements alone Largest error in time; bound of Proposition 5(c) permutations of the agents’ lanes
Rules without the slow review; without jitter; without both Same rule keys and uses under affine maps of time and
Keys of whole cycles, with jitter and without splits, with jitter and without
Groups of whole cycles differing in tempo alone that the key
Pairs of whole cycles differing in rhythm that the key splits Slow cycles whose review and acceptance first meet in a rule that normal cycles also use: windows from 2; from 3, with jitter
drawn without jitter 7 of the 19 slow cycles so joined share a rule with normal cycles: in a window from the ask to the commit of a cycle of draft and check, the slow review moves the acceptance from 0.938 to 0.958 of the window, both in cell 19 of the grid, and the separation under jitter is the noise’s. A geometric grammar carries rhythm in its rules only through patterns of three positions or more and with a tolerance finer than the rhythm’s effect on normalised times, which trades
Every statement held to the rounding of floating point. On the derived records the state sum equalled the product over applications, and the numbers of admissible labellings were the carries the factor 1.48, above one, and the inside values diverge. On the prisms the product over sum exactly, with scopes of at most 9 variables for two cycles and 15 for three, and interfaces of 3 and 6, since the prototype creates the closure couplings at the root.
The first prototype confirms three of the propositions on the cases enumerated or sampled, the cost formula in a variant restricted to the mutable productions, and the fifth and sixth confirm the propositions of the two versions; the reserved acts are kept exactly when the operators are restricted and lost within a few variations under unrestricted operators. The evolution of a syn- thetic project shows the economy of incremental re-derivation, the advantage of a material in
Readable text
Table 9: Checks of the spin-foam version. Differences are between independent computations: relative for state sums, absolute for the probabilities of derivation trees.
15 faces, 19 panels; 39 by the spin-foam sum, with the numbers of admissible labellings compared, and 1 by
which a shared convention is one production, and the plateau that a change of two symbols opens, crossed when neutral variants are admitted. The real record shows the two-part code, the held-out code and generativity computed on a project’s own history and agreeing in their ranking of three grammars. The planted records show merging alone recovering the planted language, and greedy compression spoiling it. The records drawn in lanes show the geometric version replaying them and invariant under its group, its keys of whole cycles telling rhythm from tempo and its induced rules doing so only from patterns of three positions and at a resolu- tion finer than the tolerance; the state sums show the spin-foam version exact, local where faces stay within applications, a weighted grammar with a probabilistic form when tilted by relative weights, and computable by elimination when faces cross applications. Inducing grammars of typed complexes from records of acts, developing a material with language-model agents on a real project, and measuring how much of a project’s generativity resides in its grammar and how much in the machinery that expresses it are the next experiments; Section 8 gives the reasons the
Development takes time and resources, as it does for a living thing grown from a cell. The model treats the cost as one of its quantities, and the economies of life as its methods: a candidate derived from the top down and stopped at a coarse stage, a child that reuses its parent’s de- velopment where its material is unchanged, and selection on generativity per unit of cost. Pro- position 11 and the second prototype show what incremental development saves. Two costs remain. Producing a deep phenotype from a short description takes long (Bennett, 1990), so that staged screening saves only where partial developments predict the whole; and a develop- ment by language-model agents spends tokens, energy and money that a budget must state in
- Stochastic expression. One material expressed twice by one machinery yields two projects, and one material expressed by two versions of a model yields two different distributions. A material is therefore judged on a distribution of expressions, keyed draws make re-
expression exact where the machinery permits, and every record states the version of its machinery.
Induction from records of acts. The induction of grammars of typed complexes from records of acts is heuristic at every step, since finding the smallest grammar is intractable (Charikar et al., 2005) and parsing can be (Lautemann, 1990), and records of real projects hold positive examples with little negative evidence (Gold, 1967). Checks that failed, proposals rejected and commits reverted must be recorded as such for the induction to use them.
Divergences that can be computed. The debt is defined exactly and computed on surrogates: divergences between finite-state abstractions of histories, or estimates by sampling with stated variance (Cortes et al., 2008; de la Higuera et al., 2014).
Records and privacy. The record of a project made with agents holds prompts, drafts and sometimes credentials. A record used for induction is redacted first, and the act types of the grammar can be read from paths, statuses and roles alone, as in the third prototype.
Regularity. A grammar pays where a project is regular (Clune et al., 2011); where it is irregular, most objects have descriptions about as long as a listing, by counting (Li and Vitányi, 2019); a project’s one-off facts, data and exceptions are better carried as direct edits beside the grammar, the hybrid that the study of indirect encodings recommends.
8.3 The Residence of Generativity
A grammar compresses a project only relative to the machinery that expresses it, and the developmental system carries heredity as much as the genome does (Cavalier-Smith, 2000; Griffiths, 2001). When the machinery is a language model, much of a project’s generativity may reside in the model, the grammar steering it thinly. The share is measurable: the same machinery expresses the evolved grammar, the person’s grammar, and the bare task alone, and the differences in generativity are attributed. Until it is measured, the claim that a grammar carries a project’s generativity is a hypothesis. The model privileges the grammar on grounds of design, since it is the resource that is varied, selected and read by persons, while granting that the other resources also carry the project forward. Control over the interpreters, environments and retained context on which a material depends shapes whose contributions become recognisable and which branches can develop (Huang, 2026d): the machinery that expresses a grammar and the evaluator that selects among its developments hold power over its continuation, which the companion paper models as a relation among populations that adapts (Huang, 2026j).
8.4 Persistent Agents and the Germ Line
An agent that persists across generations and edits the grammar is a unit with its own propagation inside the project (Buss, 1987). The model keeps the grammar as the germ line: what agents learn while developing a project reaches the grammar through selection, or through a consolidation that is recorded and, where it touches a locked production, accepted by a person. The restricted operators of Definition 17 are the formal part of that arrangement; the rest is governance, as in the companion framework (Huang, 2026e).
8.5 Open-Endedness
A context-free grammar sampled from fixed weights is a stationary source whose novelty is eventually exhausted. Unbounded innovation in models of evolution has appeared with rules that depend on the state (Adams et al., 2017), and strong open-endedness requires undecidability (Hernández-Orozco et al., 2018). The model therefore places open-endedness in two places: in
the evolution of the grammar itself, and in productions that read the history and the environment. Which of the two carries it in practice is an empirical question.
8.6 The Companion Paper and the Spin-Foam Version
Heritable material is one route by which life prolongs generativity. The author’s working papers name another, the circulation of generative conditions within and across relational structures, where one participant’s activity can maintain, transform, constrain or enable the activity of others (Huang, 2026h), and heredity runs through behavioural and symbolic dimensions as well as genetic and epigenetic ones (Jablonka et al., 2014). The companion paper (Huang, 2026j) takes up these channels in the evolutionary framework of this paper, after the author’s discussion of archival representation and generative inheritance, which distinguishes realised artefacts, compact generative carriers, developmental conditions and relational histories, and compares static records, generators, shared workspaces, guided participation and maintained partners (Huang, 2026a). It reads evolution as the prolongation of generativity in an ecosystem of populations: symbols and archives, which people make so that others can read them again and continue to generate from them; coexistence and maintained partners; shared experience, of which teaching is one case; and the construction of a niche that later generations inherit. Each channel has its own fidelity, direction and cost, and the relations among populations, power over evaluation and over the conditions of continuation among them, adapt and shape the evolution that follows. The archive such channels need, holding records with their fixity, provenance and readings, is part of that paper’s subject.
The spin-foam version of Section 5 leaves four questions for further work: non-abelian groups, whose labels are representations and whose amplitudes need intertwiners (Oeckl and Pfeiffer, 2001); weights that read times and lanes, which keep the invariance of the geometric version only through invariant data; closure faces generated by productions, so that the grammar stays one of hyperedge replacement and its weights keep a bounded cost; and the exact correspondence between an action and a grammar beyond the melonic sector, where a group field theory’s expansion and a grammar’s derivations are known to coincide (Bonzom et al., 2011).
8.7 A Programme of Work
- Induction of grammars of typed event complexes from records of acts in which persons and agents are told apart, recovered first from records generated by planted grammars, and guards carried by boundary events as obligations passed down a derivation.
2. Development of a material by language-model agents on a real project, with the cost counted and the share of generativity residing in the grammar measured against the machinery.
3. Estimators of generativity with stated variance; the accumulated measure tested against the measure at a time, and a variant sensitive to rare and complex innovations.
4. Staged development with a stated criterion of error, and the reuse of a parent’s development.
5. The debt measured as a divergence between a person’s grammar and an evolved one, and its servicing by review of productions.
- The companion paper on the channels outside the individual and the relations among populations, and the spin-foam version extended to non-abelian groups and to closure faces generated by productions.
9 Conclusion
Life carries its generativity forward by copying a compact material and growing a body from it again. This paper has proposed that a large project can be evolved in the same way, through a weighted grammar from which a costly development derives it, and that when a project is made by agents the grammar may be induced from the record of their acts. It has read, from biology, what each mechanism of continuation offers an algorithm and where the analogy ends; stated a formal language of records as typed event complexes, with an ontology verified as a category, grammars whose derivation generates records and whose reduction parses them, and their induction; set out the representations of a record with a geometric and a spin-foam version of its grammar; and stated a model of what a grammar is worth and costs, with twelve propositions, tested in parts at small scale. The propositions show that reduction inverts derivation and parses, that compression replays and merging generalises, that the geometric version refines the topological one and tells rhythm from tempo, that a record’s state sum weighs its closed shells and factorises over a derivation when faces stay within productions, that compactness is insufficient for generativity, that the acts of persons can be kept in every derivation by restricting the operators, that sharing in a grammar is paid for in the cost of re-derivation, and that the debt seen in outputs is at most the debt in records. The prototypes show these quantities computed and acting, a grammar close to the planted one recovered from its records, the geometric version invariant under its group, and the spin-foam version exact. What remains open is the induction of grammars of typed complexes from records of acts, the development of a material by agents on a real project, and the share of a project’s generativity that resides in its grammar.
A Proofs
Proposition 3. Each compression step adds one nonterminal with one production whose righthand side uses the labels present at that step, all created earlier, which gives the order. A step replaces occurrences by reductions, so that by Proposition 1(a) re-expanding the new cells re-
Readable text
stores the complex as it stood before the step. By induction on the steps in reverse, expanding
its nonterminal cells; applied node by node to a derivation tree, it gives a derivation tree of the of every depth along that cycle, and when each expansion adds a terminal cell the yields grow
so is the degenerate case. The relabelling of lanes by first appearance depends only on which applies. (b) Since times increase strictly along causal couplings, the listing by time is a linear extension of the causal order, which the couplings in the key determine; since distinct actors have distinct lanes, the lanes relabelled by first appearance determine the actors up to renaming; and the kinds, couplings and faces in the key give the typed complex. These determine the
the line act transitively on ordered pairs of distinct points. (c) Proposition 3 gives the exact replay of the kinds, and each placement keeps its map of lanes and so the lanes; the canonical listing
of faces each of whose couplings lies in an even number of them.
Readable text
Replacement adds a disjoint copy of a right-hand side and identifies only bound- onal, one block for each application, and its kernel is the direct sum of the blocks’ kernels, which product of their averages, and a coupling outside every face contributes the factor one, so that ations of one production are isomorphic copies of its right-hand side, with the same incidence
positive and finite by hypothesis, as are the inside values of every label, which sat-
With faces across applications the boundary map couples the blocks, so that a 2-cycle may meet several applications, as the prism of Figure 9(b) does, and (a) and (b) can fail. For the elimination, say that a node holds the couplings created by its application and those assigned to it; let the scope of a node be the variables it holds together with the interfaces of its children, and its interface the variables of its scope that some face assigned outside its subtree uses. Each face lies in the scope of the node it is assigned to: each of its variables is held there or below, and if below, the child whose subtree holds it passes it up, since the face is assigned outside that child’s subtree. A variable stays in the scopes of the nodes from the one that holds it up to the highest node to which a face using it is assigned, a path in the tree. The scopes therefore form a tree decomposition of the dependence between the variables and the faces, and summing each variable at the highest node of its path, after multiplying in the faces assigned there and the messages of the children, computes the sum of the product over all configurations by the
Readable text
Let a material be guard-sound. A restricted operator leaves its locked produc- between them. It may add an exact copy of a locked production of a guard-sound material with the same guards; the copy is locked and, being exact, has the same property. It writes events of locked production that has the property; and since locked productions, the copies included, are left unchanged by every later restricted operator, the property persists. By induction on the num- ber of applications every reachable material is guard-sound. In a derivation, every event other than the start’s boundary events is created as an internal event of the production that expands
of the parent outside the regions identical in the child, since their addresses, the identities of their productions and their seeds are unchanged, and a mutation of a right-hand side leaves the races of other labels unchanged; this licenses re-deriving the regions alone.
one. The chain rule for relative entropy gives the last statement.
The programs are in development/ideas/2026-11-23-grammars-as-genomes/prototy pes/ of the repository and write their results to results/. The schema of records is schema
/records.cat beside them, with kategoria’s answers and its drawings in schema/figures/,
made by the Category Studio’s tool draw-schema.mjs. The survey is in survey/, in five parts; every entry with a registered identifier was checked against its registry, and the books without one are marked. The paper’s numbers are written from the results by numbers.py in the paper’s folder, which also holds the main statements made in words about the results, so that a change of a result stops the build.
• p1_exact.py: the data processing inequality on 2,000 random acyclic grammars of four nonterminals with two or three productions each, every tree enumerated (seed 20261123); the cost of re-derivation on a modular grammar of 32 modules and on the maximally shared grammar, both of 512 symbols, 400 mutations each (seed 11); the reserved acts in 500 lineages of 40 random variations (seed 7).
• p3_record.py: needs git; reads git log –no-merges –no-renames –name-status of the repository and of each attached submodule, maps every path to a kind of act, splits each repository’s commits from its first release note at 80% (so that the single commit of each of 5 repositories with one commit falls in the held-out part), fits the grammars of kinds by expectation and maximisation with smoothed counts and eight restarts (seed 23), and samples 20,000 commits from each grammar (seed 5).
pressed records, the two-part code over the candidates, and 20,000 samples from each grammar (seed 5).
Each program needs Python 3.12 and its standard library, and runs in seconds to minutes on a laptop; the schema needs the Category Studio’s engine, built by its recipe.
C Preparation of the Paper
The idea and its direction are the author’s, given in conversation on 23 November 2026. The author proposed that the mechanism by which life prolongs generativity, the conditions of its continuation, be simulated in evolutionary algorithms: each individual holds a compact material of high generativity, as a genome, in place of a chromosome that is the whole solution, and a large project is evolved through the material that generated it. The author named generative grammars with weighted rules as a strong candidate, and stochastic dynamical models as another, and judged the topic worth a formal model and a paper. The author proposed that, for fully autonomous work, the relational structure of prompts in space and time (which agent gave which agent which prompt, what a person gave and received, generation and commitment, and the change of context from a list of publications to a workspace and new papers) be kept as a
heterogeneous graph and read by geometric or topological graph grammars into a formal language that takes part in evolution as a genome does. The author observed that regenerating a project from a grammar costs time and resources, as a living thing does in growing from a cell, and asked that this be discussed in the paper; asked that the mechanisms by which life prolongs generativity be presented; and decided that the channels outside the individual (symbols made by people so that others can continue from them, coexistence, and propagation through shared experience as between teacher and student, with the archive infrastructure they need) be the subject of a second paper. The author asked for serious surveys.
On reading the first draft, the author found it insufficiently formal, its rules, terminals, nonterminals, derivation and reduction left unstated, and its figures too few and badly laid out; named the geometric graph grammars of Fiser et al. (2016), which the infrastructure implements, as a candidate, with a variant or a topological grammar needed; and asked that the nodes of a record be heterogeneous events, with an ontology of events investigated, verified and drawn by category theory, and that a paper on generative grammars of 2-complexes and spin foams be added if the author’s earlier work left it to be set out formally.
For the final revision the author asked that the paper show how a record may be represented and how versions of a generative grammar model it, a geometric version and a spin-foam version among them, with the form of their rules and of their derivations and with prototypes, every figure and table publishable; that useful insights of five working papers the author had just published be integrated (Huang, 2026a,d,g,i,k); and that the second paper treat the channels outside the individual together, in an evolutionary framework read as the prolongation of generativity, by a simulation of a relational ecosystem whose relations among populations, their structure of power among them, adapt and shape the evolution that follows, teaching being one example among several. The grammar of 2-complexes and spin foams, first planned as a paper of its own, is presented here as a version of the grammar of records.
The assistant proposed the formal model: the restatement of records as typed event complexes after the author’s event–coupling–primitive model, the ontology and the schema as categories, the grammars of records, their derivation and reduction, their invariance, their induction, the representations of a record and the two versions of its grammar, the definitions, propositions and proofs; the reading of the biology; the prototypes and the schema’s script; and the text and figures. Sessions of the same model wrote the five parts of the survey and verified the identifiers, and three others examined the drafts for error. Their findings were corrected in this version: among them a false bound, gaps in two proofs, an ill-typed running example and an artefact of a prototype’s rule for ties in the first two, and in the third a cause given for the fifth prototype’s extra rules that a rerun refuted, a check reported over forty records that covered thirty-nine, prototypes assigned to representations other than those they read, and gaps in the definitions of the geometric version, each recorded with its correction in the design folder. The author’s reading of the paper, and the author’s decision on what to keep, are to follow.
References
Umut A. Acar, Guy E. Blelloch, and Robert Harper. Adaptive functional programming. ACM
Transactions on Programming Languages and Systems, 28(6):990–1034, November 2006. ISSN 1558- 4593. doi: 10.1145/1186632.1186634. URL http://dx.doi.org/10.1145/1186632.11866 34.
Alyssa Adams, Hector Zenil, Paul C. W. Davies, and Sara Imari Walker. Formal definitions of
unbounded evolution and innovation reveal universal mechanisms for open-ended evolution in dynamical systems. Scientific Reports, 7(1), April 2017. ISSN 2045-2322. doi: 10.1038/s415 98-017-00810-8. URL http://dx.doi.org/10.1038/s41598-017-00810-8.
Readable text
Salvador Aguinaga, David Chiang, and Tim Weninger. Learning hyperedge replacement gram-
mars for graph generation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 41 http://dx.doi.org/10.1109/TPAMI.2018.2810877.
S.M. Aji and R.J. McEliece. The generalized distributive law. IEEE Transactions on Information
P. Alberch. From genes to phenotype: dynamical systems and evolvability. Genetica, 84(1):5–11,
John C. Baez. An Introduction to Spin Foam Models of BF Theory and Quantum Gravity, volume 543
Janine Beisson and T. M. Sonneborn. Cytoplasmic inheritance of the organization of the cell
cortex in Paramecium aurelia. Proceedings of the National Academy of Sciences, 53(2):275–282, February 1965. ISSN 1091-6490. doi: 10.1073/pnas.53.2.275. URL http://dx.doi.org/10.
Charles H Bennett. R. Herken (ed.), Oxford University Press.
A. W. Biermann and J. A. Feldman. On the synthesis of finite-state machines from samples of
Anselm Blumer, Andrzej Ehrenfeucht, David Haussler, and Manfred K. Warmuth. Occam’s razor.
Margaret A. Boden. The Creative Mind: Myths and Mechanisms. Routledge, 2 edition, February
Valentin Bonzom, Razvan Gurau, Aldo Riello, and Vincent Rivasseau. colored tensor models in the large n limit. Nuclear Physics B, 853(1):174–195, December 2011. ISSN 0550-3213. doi: 10.1016/j.nuclphysb.2011.07.022. URL http://dx.doi.org/10.1016
T.L. Booth and R.A. Thompson. Applying probability measures to abstract languages. IEEE
D. V. Boulatov. A model of three-dimensional lattice gravity. Modern Physics Letters A, 07(18):
Kristopher Brown, Evan Patterson, Tyler Hanks, and James Fairbanks. Computational category-
Leo W. Buss. The Evolution of Individuality. Princeton University Press, December 1987. ISBN
9781400858712. doi: 10.1515/9781400858712. URL http://dx.doi.org/10.1515/9781400 858712. First published 1987; the DOI is that of the Princeton Legacy Library edition.
Sean B. Carroll. Evo-devo and an expanding evolutionary synthesis: A genetic theory of morpho-
logical evolution. Cell, 134(1):25–36, July 2008. ISSN 0092-8674. doi: 10.1016/j.cell.2008.06.030. URL http://dx.doi.org/10.1016/j.cell.2008.06.030.
Thomas Cavalier-Smith. Membrane heredity and early chloroplast evolution. Trends in Plant
Science, 5(4):174–182, April 2000. ISSN 1360-1385. doi: 10.1016/s1360-1385(00)01598-3. URL http://dx.doi.org/10.1016/S1360-1385(00)01598-3.
M. Charikar, E. Lehman, D. Liu, R. Panigrahy, M. Prabhakaran, A. Sahai, and a. shelat. The
smallest grammar problem. IEEE Transactions on Information Theory, 51(7):2554–2576, July 2005. ISSN 0018-9448. doi: 10.1109/tit.2005.850116. URL http://dx.doi.org/10.1109/TIT.200 5.850116.
Zhiyi Chi and Stuart Geman. Estimation of probabilistic context-free grammars. Computational
Linguistics, 24(2):299–305, 1998. URL https://aclanthology.org/J98-2005/. No DOI; record from the ACL Anthology, J98-2005.
Koen Claessen and Michał H. Pałka. Splittable pseudorandom number generators using cryp-
tographic hashing. In Proceedings of the 2013 ACM SIGPLAN symposium on Haskell, ICFP′13, pages 47–58. ACM, September 2013. doi: 10.1145/2503778.2503784. URL http://dx.doi.o rg/10.1145/2503778.2503784.
Jeff Clune, Kenneth O. Stanley, Robert T. Pennock, and Charles Ofria. On the performance of
indirect encoding across the continuum of regularity. IEEE Transactions on Evolutionary Computation, 15(3):346–367, June 2011. ISSN 1941-0026. doi: 10.1109/tevc.2010.2104157. URL http://dx.doi.org/10.1109/TEVC.2010.2104157.
Jeff Clune, Jean-Baptiste Mouret, and Hod Lipson. The evolutionary origins of modularity. Pro-
ceedings of the Royal Society B: Biological Sciences, 280(1755), March 2013. ISSN 1471-2954. doi: 10.1098/rspb.2012.2863. URL http://dx.doi.org/10.1098/rspb.2012.2863.
Gavin C. Conant and Kenneth H. Wolfe. Turning a hobby into a job: How duplicated genes find
new functions. Nature Reviews Genetics, 9(12):938–950, December 2008. ISSN 1471-0064. doi: 10.1038/nrg2482. URL http://dx.doi.org/10.1038/nrg2482.
D. J. Cook and L. B. Holder. Substructure discovery using minimum description length and
background knowledge. Journal of Artificial Intelligence Research, 1:231–255, February 1994. ISSN 1076-9757. doi: 10.1613/jair.43. URL http://dx.doi.org/10.1613/jair.43.
Corinna Cortes, Mehryar Mohri, Ashish Rastogi, and Michael Riley. On the computation of the relative entropy of probabilistic automata. International Journal of Foundations of Computer Science, 19(01):219–242, February 2008. ISSN 1793-6373. doi: 10.1142/s0129054108005644. URL http://dx.doi.org/10.1142/S0129054108005644.
Bruno Courcelle and Joost Engelfriet. Graph Structure and Monadic Second-Order Logic: A Language-
Theoretic Approach. Cambridge University Press, June 2012. ISBN 9780511977619. doi: 10.101
7/cbo9780511977619. URL http://dx.doi.org/10.1017/CBO9780511977619.
Thomas M. Cover and Joy A. Thomas. Elements of Information Theory. Wiley, 2 edition, 2006. ISBN
9780471748823. doi: 10.1002/047174882x. URL http://dx.doi.org/10.1002/047174882X. Second edition; online April 2005.
Eric H. Davidson and Douglas H. Erwin. Gene regulatory networks and the evolution of animal
Readable text
Colin de la Higuera. Grammatical Inference: Learning Automata and Grammars. Cambridge Uni-
Colin de la Higuera, James Scicluna, and Mark-Jan Nederhof. On the computation of distances
for probabilistic context-free grammars, 2014. URL https://arxiv.org/abs/1407.1513.
Carl de Marcken. Unsupervised language acquisition, 1996. URL https://arxiv.org/abs/
cmp-lg/9611002. PhD thesis, Massachusetts Institute of Technology.
Rina Dechter. Bucket elimination: A unifying framework for reasoning. Artificial Intelligence, 113
Kamaludin Dingle, Chico Q. Camargo, and Ard A. Louis. Input–output maps are strongly biased
F. Drewes, H.-J. Kreowski, and A. Habel. HYPEREDGE REPLACEMENT GRAPH GRAMMARS,
Jean-Michel Drouffe and Jean-Bernard Zuber. Strong coupling and mean field methods in lattice
Hartmut Ehrig, Karsten Ehrig, Ulrike Prange, and Gabriele Taentzer. raic Graph Transformation. Monographs in Theoretical Computer Science. An EATCS Series. Springer-Verlag, 2006. ISBN 3540311874. doi: 10.1007/3-540-31188-2. URL http://dx.doi
Manfred Eigen. Selforganization of matter and the evolution of biological macromolecules. Die
Stefan Esser and Dirk Fahland. Multi-dimensional event data in graph databases. Journal on Data
Kousha Etessami and Mihalis Yannakakis. Recursive markov chains, stochastic grammars, and
Cassandra G. Extavour and Michael Akam. Mechanisms of germ cell specification across the
Marek Fiser, Bedrich Benes, Jorge Garcia Galicia, Michel Abdul-Massih, Daniel G. Aliaga, and
Vojtech Krs. Learning geometric graph grammars. In Proceedings of the 32nd Spring Conference on Computer Graphics (SCCG ’16), pages 7–15. ACM, 2016. doi: 10.1145/2948628.2948635.
Allan Force, Michael Lynch, F Bryan Pickett, Angel Amores, Yi-lin Yan, and John Postlethwait.
Preservation of duplicate genes by complementary, degenerative mutations. Genetics, 151(4):
Readable text
L. Freidel. Group field theory: An overview. International Journal of Theoretical Physics, 44(10):
John Gerhart and Marc Kirschner. The theory of facilitated variation. Proceedings of the National
Anahita Farhang Ghahfarokhi, Gyunam Park, Alessandro Berti, and Wil M. P. van der Aalst.
Daniel G. Gibson, John I. Glass, Carole Lartigue, Vladimir N. Noskov, Ray-Yuan Chuang,
Mikkel A. Algire, Gwynedd A. Benders, Michael G. Montague, Li Ma, Monzia M. Moodie, Chuck Merryman, Sanjay Vashee, Radha Krishnakumar, Nacyra Assad-Garcia, Cynthia Andrews-Pfannkoch, Evgeniya A. Denisova, Lei Young, Zhi-Qing Qi, Thomas H. Segall- Shapiro, Christopher H. Calvey, Prashanth P. Parmar, Clyde A. Hutchison, Hamilton O. Smith, and J. Craig Venter. Creation of a bacterial cell controlled by a chemically synthesized genome. Science, 329(5987):52–56, July 2010. ISSN 1095-9203. doi: 10.1126/science.1190719. URL http://dx.doi.org/10.1126/science.1190719.
James F. Gillooly, Eric L. Charnov, Geoffrey B. West, Van M. Savage, and James H. Brown. Effects
Stephen J. Giovannoni, H. James Tripp, Scott Givan, Mircea Podar, Kevin L. Vergin, Damon
Baptista, Lisa Bibbs, Jonathan Eads, Toby H. Richardson, Michiel Noordewier, Michael S. Rap- pé, Jay M. Short, James C. Carrington, and Eric J. Mathur. Genome streamlining in a cosmo- politan oceanic bacterium. Science, 309(5738):1242–1245, August 2005. ISSN 1095-9203. doi: 10.1126/science.1114057. URL http://dx.doi.org/10.1126/science.1114057.
Peter Godfrey-Smith. On the theoretical role of “genetic coding”. Philosophy of Science, 67(1):
E Mark Gold. Language identification in the limit. Information and Control, 10(5):447–474, May
Sharon Goldwater, Thomas L. Griffiths, and Mark Johnson. A bayesian framework for word
Paul E. Griffiths. Genetic information: A metaphor in search of a theory. Philosophy of Science, 68
F. Gruau. Genetic synthesis of boolean neural networks with a cell rewriting developmental pro-
cess. In [Proceedings] COGANN-92: International Workshop on Combinations of Genetic Algorithms and Neural Networks, pages 55–74. IEEE Comput. Soc. Press, 1992. doi: 10.1109/cogann.1992. 273948. URL http://dx.doi.org/10.1109/cogann.1992.273948.
Peter D. Grünwald. The Minimum Description Length Principle. The MIT Press, March 2007. ISBN
9780262256292. doi: 10.7551/mitpress/4643.001.0001. URL http://dx.doi.org/10.7551/m itpress/4643.001.0001.
Minghao Guo, Veronika Thost, Beichen Li, Payel Das, Jie Chen, and Wojciech Matusik. Data-
efficient graph grammar learning for molecular generation, 2022. URL https://arxiv.org/ abs/2203.08031.
Annegret Habel. Hyperedge Replacement: Grammars and Languages, volume 643 of Lecture Notes in
Computer Science. Springer-Verlag, 1992. ISBN 354056005X. doi: 10.1007/bfb0013875. URL http://dx.doi.org/10.1007/BFb0013875.
Leland H. Hartwell and Ted A. Weinert. Checkpoints: Controls that ensure the order of cell cycle
events. Science, 246(4930):629–634, November 1989. ISSN 1095-9203. doi: 10.1126/science.26 83079. URL http://dx.doi.org/10.1126/science.2683079.
Edith Heard and Robert A. Martienssen. Transgenerational epigenetic inheritance: Myths and
mechanisms. Cell, 157(1):95–109, March 2014. ISSN 0092-8674. doi: 10.1016/j.cell.2014.02.045. URL http://dx.doi.org/10.1016/j.cell.2014.02.045.
Santiago Hernández-Orozco, Francisco Hernández-Quiroz, and Hector Zenil. Undecidability
and irreducibility conditions for open-ended evolution and emergence. Artificial Life, 24(1): 56–70, February 2018. ISSN 1530-9185. doi: 10.1162/artl_a_00254. URL http://dx.doi.org /10.1162/ARTL_a_00254.
Jan-Hendrik S. Hofmeyr. A biochemically-realisable relational model of the self-manufacturing
cell. Biosystems, 207:104463, September 2021. ISSN 0303-2647. doi: 10.1016/j.biosystems.2021. 104463. URL http://dx.doi.org/10.1016/j.biosystems.2021.104463.
Gregory S. Hornby and Jordan B. Pollack. Creating high-level components with a generative
representation for body-brain evolution. Artificial Life, 8(3):223–246, July 2002. ISSN 1530- 9185. doi: 10.1162/106454602320991837. URL http://dx.doi.org/10.1162/10645460232 0991837.
Wanhong Huang. A discussion of archival representation and generative inheritance in self-
evolving AI inquiry. Working paper, Knowledge Commons, 2026a. URL https://doi.org/ 10.17613/9g6zv-df566.
Wanhong Huang. Social spacetime topology and generative grammars in CW complexes. Dis-
cussion paper, PhilArchive, 2026b. URL https://philarchive.org/rec/HUASST.
Wanhong Huang. The strategic relocation of generativity in the AI era with an evolutionary
algorithm, and the debt of generativity. Discussion paper, 2026, 2026c.
Wanhong Huang. Evaluative power in self-evolving AI knowledge systems: Temporal and rela-
tional formation. Working paper, Knowledge Commons, 2026d. URL https://doi.org/10 .17613/6b8mh-5d956.
Wanhong Huang. Towards a generative ecology of projects: A universal evolutionary framework
for the continuing improvement of a body of work by language-model agents. Proposal paper, 2026, 2026e.
Wanhong Huang. Human history in complexes. Discussion paper, PhilArchive, 2026f. URL
https://philarchive.org/rec/HUAHHI.
Wanhong Huang. Jurisprudential insights for autonomous AI evolution. Knowledge Commons,
2026g. URL https://doi.org/10.17613/1cm8f-zpp95.
Readable text
Wanhong Huang. An inquiry into evaluative norm formation and justice in self-evolving AI
knowledge systems. Working paper, Knowledge Commons, 2026i. URL https://doi.org/
Wanhong Huang. Evolution as the prolongation of generativity: External carriers and relations
Wanhong Huang. An inquiry into the formation of evidence-based partial orders in the gov-
ernance of human–AI evolutionary production. Knowledge Commons, 2026k. URL https:
Wanhong Huang. Generativity prolonging generativity: An epistemic and topological corres-
pondence between capital accumulation and autopoietic life. Working paper, Knowledge Com- mons, 2026l. URL https://doi.org/10.17613/ja4j4-g6n73.
Hideki Innan and Fyodor Kondrashov. The evolution of gene duplications: classifying and distin-
Eva Jablonka and Gal Raz. Transgenerational epigenetic inheritance: Prevalence, mechanisms,
and implications for the study of heredity and evolution. The Quarterly Review of Biology, 84(2): 131–176, June 2009. ISSN 1539-7718. doi: 10.1086/598822. URL http://dx.doi.org/10.10
Eva Jablonka, Marion J. Lamb, and Anna Zeligowski. Evolution in Four Dimensions: Genetic, Epi-
genetic, Behavioral, and Symbolic Variation in the History of Life. The MIT Press, March 2014. ISBN 9780262322676. doi: 10.7551/mitpress/9689.001.0001. URL http://dx.doi.org/10.7551/m itpress/9689.001.0001. Revised edition; first edition 2005.
Y. Jin. A comprehensive survey of fitness approximation in evolutionary computation. Soft Com-
Surrogate-assisted evolutionary computation: Recent advances and future chal- Swarm and Evolutionary Computation, 1(2):61–70, June 2011. 10.1016/j.swevo.2011.05.001. URL http://dx.doi.org/10.1016/j.swevo.2011.05.001.
Iain G. Johnston, Kamaludin Dingle, Sam F. Greenbury, Chico Q. Camargo, Jonathan P. K. Doye,
Sebastian E. Ahnert, and Ard A. Louis. Symmetry and simplicity spontaneously emerge from the algorithmic nature of evolution. Proceedings of the National Academy of Sciences, 119(11), March 2022. ISSN 1091-6490. doi: 10.1073/pnas.2113883119. URL http://dx.doi.org/10.
Istvan Jonyer, Lawrence B. Holder, and Diane J. Cook. MDL-based context-free graph grammar
induction and applications. International Journal on Artificial Intelligence Tools, 13(01):65–79, March 2004. ISSN 1793-6349. doi: 10.1142/s0218213004001429. URL http://dx.doi.org/1
Hiroshi Kajino. Molecular hypergraph grammar with its application to molecular optimization,
- URL https://arxiv.org/abs/1809.02745. Also in Proceedings of the 36th Interna- tional Conference on Machine Learning (ICML 2019), PMLR 97.
Nadav Kashtan and Uri Alon. Spontaneous evolution of modularity and network motifs. Proceed-
ings of the National Academy of Sciences, 102(39):13773–13778, September 2005. ISSN 1091-6490. doi: 10.1073/pnas.0503610102. URL http://dx.doi.org/10.1073/pnas.0503610102.
J.C. Kieffer and En-Hui Yang. Grammar-based codes: a new class of universal lossless source
codes. IEEE Transactions on Information Theory, 46(3):737–754, May 2000. ISSN 0018-9448. doi: 10.1109/18.841160. URL http://dx.doi.org/10.1109/18.841160.
T. B. L. Kirkwood. Evolution of ageing. Nature, 270(5635):301–304, November 1977. ISSN 1476-
- doi: 10.1038/270301a0. URL http://dx.doi.org/10.1038/270301a0.
Marc Kirschner and John Gerhart. Evolvability. Proceedings of the National Academy of Sciences,
95(15):8420–8427, July 1998. ISSN 1091-6490. doi: 10.1073/pnas.95.15.8420. URL http: //dx.doi.org/10.1073/pnas.95.15.8420.
John B. Kogut. An introduction to lattice gauge theory and spin systems. Reviews of Modern
Physics, 51(4):659–713, October 1979. ISSN 0034-6861. doi: 10.1103/revmodphys.51.659. URL http://dx.doi.org/10.1103/RevModPhys.51.659.
Jan Koutník, Giuseppe Cuccu, Jürgen Schmidhuber, and Faustino Gomez. Evolving large-scale
neural networks for vision-based reinforcement learning. In Proceedings of the 15th annual conference on Genetic and evolutionary computation, GECCO ’13, pages 1061–1068. ACM, July 2013. doi: 10.1145/2463372.2463509. URL http://dx.doi.org/10.1145/2463372.2463509.
Kostas Kouvaris, Jeff Clune, Loizos Kounios, Markus Brede, and Richard A. Watson. How evol-
ution learns to generalise: Using the principles of learning theory to understand the evolution of developmental organisation. PLOS Computational Biology, 13(4):e1005358, April 2017. ISSN 1553-7358. doi: 10.1371/journal.pcbi.1005358. URL http://dx.doi.org/10.1371/journal .pcbi.1005358.
Jan Kozlowski and Stephen C. Stearns. Hypotheses for the production of excess zygotes: models
of bet-hedging and selective abortion. Evolution, 43(7):1369–1377, November 1989. ISSN 0014- 3820. doi: 10.1111/j.1558-5646.1989.tb02588.x. URL http://dx.doi.org/10.1111/j.155 8-5646.1989.tb02588.x.
Ádám Kun, Mauro Santos, and Eörs Szathmáry. Real ribozymes suggest a relaxed error threshold.
Nature Genetics, 37(9):1008–1011, August 2005. ISSN 1546-1718. doi: 10.1038/ng1621. URL http://dx.doi.org/10.1038/ng1621.
Stephen Lack and Paweł Sobociński. Adhesive and quasiadhesive categories. RAIRO – Theoretical
Informatics and Applications, 39(3):511–545, 2005. doi: 10.1051/ita:2005028.
William B. Langdon. Incremental Evaluation in Genetic Programming, pages 229–246. Springer
International Publishing, 2021. ISBN 9783030728120. doi: 10.1007/978-3-030-72812-0_15. URL http://dx.doi.org/10.1007/978-3-030-72812-0\_15.
William B. Langdon and Mark Harman. Optimizing existing software with genetic programming.
IEEE Transactions on Evolutionary Computation, 19(1):118–135, February 2015. ISSN 1941-0026. doi: 10.1109/tevc.2013.2281544. URL http://dx.doi.org/10.1109/TEVC.2013.2281544.
N.J. Larsson and A. Moffat. Off-line dictionary-based compression. Proceedings of the IEEE, 88
(11):1722–1732, November 2000. ISSN 1558-2256. doi: 10.1109/5.892708. URL http://dx.d
oi.org/10.1109/5.892708.
Clemens Lautemann. The complexity of graph languages generated by hyperedge replacement.
Acta Informatica, 27(5):399–421, April 1990. ISSN 1432-0525. doi: 10.1007/bf00289017. URL http://dx.doi.org/10.1007/BF00289017.
Readable text
Claire Le Goues, ThanhVu Nguyen, Stephanie Forrest, and Westley Weimer. Genprog: A generic
method for automatic software repair. IEEE Transactions on Software Engineering, 38(1):54–72, January 2012. ISSN 2326-3881. doi: 10.1109/tse.2011.104. URL http://dx.doi.org/10.11
Sander J. J. Leemans, Dirk Fahland, and Wil M. P. van der Aalst. Discovering Block-Structured
Joel Lehman and Kenneth O. Stanley. Abandoning objectives: Evolution through the search
Joel Lehman, Jonathan Gordon, Shawn Jain, Kamal Ndousse, Cathy Yeh, and Kenneth O. Stanley.
Evolution through large models, 2022. URL https://arxiv.org/abs/2206.08896.
Juan-Carlos Letelier, Jorge Soto-Andrade, Flavio Guíñez Abarzúa, Athel Cornish-Bowden, and
María Luz Cárdenas. Organizational invariance and metabolic closure: Analysis in terms of (m,r) systems. Journal of Theoretical Biology, 238(4):949–961, February 2006. ISSN 0022-5193. doi: 10.1016/j.jtbi.2005.07.007. URL http://dx.doi.org/10.1016/j.jtbi.2005.07.007.
Lisha Li, Kevin Jamieson, Giulia DeSalvo, Afshin Rostamizadeh, and Ameet Talwalkar. Hyper-
band: A novel bandit-based approach to hyperparameter optimization, 2016. URL https: Published in Journal of Machine Learning Research
Ming Li and Paul Vitányi. An Introduction to Kolmogorov Complexity and Its Applications. Springer
Aristid Lindenmayer. Mathematical models for cellular interactions in development i. filaments
Fei Liu, Xialiang Tong, Mingxuan Yuan, Xi Lin, Fu Luo, Zhenkun Wang, Zhichao Lu, and Qingfu
Zhang. Evolution of heuristics: Towards efficient automatic algorithm design using large lan- guage model, 2024. URL https://arxiv.org/abs/2401.02051.
Martin H. Luerssen and David M. W. Powers. Graph design by graph grammar evolution. In
Michael Lynch. The Origins of Genome Architecture. Sinauer Associates, Sunderland, MA, 2007.
Michael Lynch and John S. Conery. The evolutionary fate and consequences of duplicate genes.
Michael Lynch and John S. Conery. The origins of genome complexity. Science, 302(5649):1401–
Oden Maron and Andrew W. Moore. The racing algorithm: Model selection for lazy learners.
Readable text
J. Maynard Smith, R. Burian, S. Kauffman, P. Alberch, J. Campbell, B. Goodwin, R. Lande,
Developmental constraints and evolution: A perspective from the mountain lake conference on development and evolution. ISSN 1539-7718. doi: 10.1086/414425. URL http:
John Maynard Smith and Eörs Szathmáry. The Major Transitions in Evolution. Oxford University
Robert I. McKay, Nguyen Xuan Hoai, Peter Alexander Whigham, Yin Shan, and Michael O’Neill.
Richard E. Michod. Evolution of individuality during the transition from unicellular to multi-
Andrey Mokhov, Neil Mitchell, and Simon Peyton Jones. Build systems à la carte. Proceedings of
Alexander Mordvintsev, Ettore Randazzo, Eyvind Niklasson, and Michael Levin. neural cellular automata. Distill, 5(2), February 2020. ISSN 2476-0757. doi: 10.23915/disti ll.00023. URL http://dx.doi.org/10.23915/distill.00023.
Ryan Moulton and Yunjiang Jiang. Maximally consistent sampling and the Jaccard index of prob-
ability distributions. In 2018 IEEE International Conference on Data Mining (ICDM), pages 347– 356. IEEE, 2018. doi: 10.1109/ICDM.2018.00050.
Jessica Mégane, Nuno Lourenço, and Penousal Machado. Co-evolutionary probabilistic struc-
tured grammatical evolution. In Proceedings of the Genetic and Evolutionary Computation Con- ference, GECCO ’22, pages 991–999. ACM, July 2022. doi: 10.1145/3512290.3528833. URL http://dx.doi.org/10.1145/3512290.3528833.
Mark-Jan Nederhof and Giorgio Satta. Computing partition functions of pcfgs. Research on Lan-
C. G. Nevill-Manning and I. H. Witten. Identifying hierarchical structure in sequences: A linear-
time algorithm. Journal of Artificial Intelligence Research, 7:67–82, September 1997. ISSN 1076- 9757. doi: 10.1613/jair.374. URL http://dx.doi.org/10.1613/jair.374.
Alexander Novikov, Ngân Vũ, Marvin Eisenberger, Emilien Dupont, Po-Sen Huang, Adam Zsolt
Wagner, Sergey Shirobokov, Borislav Kozlovskii, Francisco J. R. Ruiz, Abbas Mehrabian,
M. Pawan Kumar, Abigail See, Swarat Chaudhuri, George Holland, Alex Davies, Sebastian Nowozin, Pushmeet Kohli, and Matej Balog. Alphaevolve: A coding agent for scientific and algorithmic discovery, 2025. URL https://arxiv.org/abs/2506.13131.
Object Management Group. Business Process Model and Notation (BPMN), Version 2.0. Object
Management Group, January 2011. URL http://www.omg.org/spec/BPMN/2.0. [U]
Readable text
A standard published without a DOI; cited passages read in the document, Section 10.7 and
Robert Oeckl and Hendryk Pfeiffer. The dual of pure non-abelian lattice gauge theory as a spin
M. O’Neill and C. Ryan. Grammatical evolution. IEEE Transactions on Evolutionary Computation,
Michael O’Neill and Conor Ryan. Grammatical Evolution by Grammatical Evolution: The Evolu-
Timothy J. O’Donnell. Productivity and Reuse in Language: A Theory of Linguistic Computation and
Evan Patterson, Owen Lynch, and James Fairbanks. Categorical data structures for technical
Joshua L. Payne and Andreas Wagner. The causes of evolvability and their evolution. Nature
Justyna Petke, Saemundur O. Haraldsson, Mark Harman, William B. Langdon, David R. White,
and John R. Woodward. Genetic improvement of software: A comprehensive survey. IEEE Transactions on Evolutionary Computation, 22(3):415–432, June 2018. ISSN 1941-0026. doi: 10.1 109/tevc.2017.2693219. URL http://dx.doi.org/10.1109/TEVC.2017.2693219.
Massimo Pigliucci. Genotype–phenotype mapping and the end of the ‘genes as blueprint’ meta-
Yury Polyanskiy and Yihong Wu. Strong Data-Processing Inequalities for Channels and Bayesian
G. Ponzano and T. Regge. Semiclassical limit of Racah coefficients. In F. Bloch, editor, Spectroscopic
and Group Theoretical Methods in Physics, pages 1–58. North-Holland, Amsterdam, 1968. [U] Published without a DOI; details as given in the reference lists of Baez (2000) and Barrett and
W. Pugh and T. Teitelbaum. Incremental computation via function caching. In Proceedings of
the 16th ACM SIGPLAN-SIGACT symposium on Principles of programming languages - POPL ’89, POPL ’89, pages 315–328. ACM Press, 1989. doi: 10.1145/75277.75305. URL http://dx.doi
Yuhua Qi, Xiaoguang Mao, Yan Lei, Ziying Dai, and Chengsong Wang. The strength of random
search on automated program repair. In Proceedings of the 36th International Conference on Soft-
ware Engineering, ICSE ’14, pages 254–265. ACM, May 2014. doi: 10.1145/2568225.2568254. URL http://dx.doi.org/10.1145/2568225.2568254.
Michael P Reisenberger and Carlo Rovelli. Spacetime as a feynman diagram: the connection
formulation. Classical and Quantum Gravity, 18(1):121–140, 2001. ISSN 1361-6382. doi: 10.1 088/0264-9381/18/1/308. URL http://dx.doi.org/10.1088/0264-9381/18/1/308. Published online December 2000, the registry BibTeX year; print year 2001.
J. Rissanen. Modeling by shortest data description. Automatica, 14(5):465–471, September 1978.
ISSN 0005-1098. doi: 10.1016/0005-1098(78)90005-5. URL http://dx.doi.org/10.1016/0 005-1098(78)90005-5.
Graeme Ritchie. Some empirical criteria for attributing creativity to a computer program. Minds
and Machines, 17(1):67–99, June 2007. ISSN 1572-8641. doi: 10.1007/s11023-007-9066-2. URL http://dx.doi.org/10.1007/s11023-007-9066-2.
Bernardino Romera-Paredes, Mohammadamin Barekatain, Alexander Novikov, Matej Balog,
M. Pawan Kumar, Emilien Dupont, Francisco J. R. Ruiz, Jordan S. Ellenberg, Pengming Wang, Omar Fawzi, Pushmeet Kohli, and Alhussein Fawzi. Mathematical discoveries from program search with large language models. Nature, 625(7995):468–475, December 2024. ISSN 1476- 4687. doi: 10.1038/s41586-023-06924-6. URL http://dx.doi.org/10.1038/s41586-023 -06924-6.
Robert Rosen. A relational theory of biological systems. The Bulletin of Mathematical Biophysics,
20(3):245–260, September 1958. ISSN 1522-9602. doi: 10.1007/bf02478302. URL http://dx .doi.org/10.1007/BF02478302.
Franz Rothlauf and Marie Oetzel. On the Locality of Grammatical Evolution, pages 320–330. Springer
Berlin Heidelberg, 2006. ISBN 9783540331445. doi: 10.1007/11729976_29. URL http://dx.d oi.org/10.1007/11729976_29.
Suzanne L. Rutherford and Susan Lindquist. Hsp90 as a capacitor for morphological evolution.
Nature, 396(6709):336–342, November 1998. ISSN 1476-4687. doi: 10.1038/24550. URL http: //dx.doi.org/10.1038/24550.
Conor Ryan, JJ Collins, and Michael O Neill. Grammatical evolution: Evolving programs for an ar-
bitrary language, pages 83–96. Springer Berlin Heidelberg, 1998. ISBN 9783540697589. doi: 10.1007/bfb0055930. URL http://dx.doi.org/10.1007/BFb0055930.
John K. Salmon, Mark A. Moraes, Ron O. Dror, and David E. Shaw. Parallel random numbers:
as easy as 1, 2, 3. In Proceedings of 2011 International Conference for High Performance Computing, Networking, Storage and Analysis, SC ’11, pages 1–12. ACM, November 2011. doi: 10.1145/2063 384.2063405. URL http://dx.doi.org/10.1145/2063384.2063405.
Steffen Schaper and Ard A. Louis. The arrival of the frequent: How bias in genotype-phenotype
maps can steer populations to local optima. PLoS ONE, 9(2):e86635, February 2014. ISSN 1932- 6203. doi: 10.1371/journal.pone.0086635. URL http://dx.doi.org/10.1371/journal.p one.0086635.
Peter Schuster, Walter Fontana, Peter F. Stadler, and Ivo L. Hofacker. From sequences to shapes
and back: a case study in rna secondary structures. Proceedings of the Royal Society of London. Series B: Biological Sciences, 255(1344):279–284, March 1994. ISSN 1471-2954. doi: 10.1098/rspb .1994.0040. URL http://dx.doi.org/10.1098/rspb.1994.0040. Authors and title added by hand; absent from the registry record.
Y. Shan, R.I. McKay, R. Baxter, H. Abbass, D. Essam, and H.X. Nguyen. Grammar model-based
program evolution. In Proceedings of the 2004 Congress on Evolutionary Computation (IEEE Cat.
Readable text
Mark L. Siegal and Aviv Bergman. Waddington’s canalization revisited: Developmental stability
Karl Sims. Evolving virtual creatures. In Proceedings of the 21st annual conference on Computer
Christopher C. Smith and Stephen D. Fretwell. The optimal balance between size and number of
Edward K. Smith, Earl T. Barr, Claire Le Goues, and Yuriy Brun. Is the cure worse than the
disease? overfitting in automated program repair. In Proceedings of the 2015 10th Joint Meeting on Foundations of Software Engineering, ESEC/FSE′15, pages 532–543. ACM, August 2015. doi: 10.1145/2786805.2786825. URL http://dx.doi.org/10.1145/2786805.2786825.
Noah A. Smith and Mark Johnson. Weighted and probabilistic context-free grammars are equally
Robert E. Smith, B. A. Dike, and S. A. Stegmann. Fitness inheritance in genetic algorithms. In
M. Song and W. M. P. van der Aalst. Supporting process mining by showing events at a glance.
In K. Chari and A. Kumar, editors, Proceedings of the Seventeenth Annual Workshop on Informa- tion Technologies and Systems (WITS 2007), pages 139–145, 2007. [U] Published without a DOI; details as given in the reference list of Claes et al., arXiv:1511.04055.
David I. Spivak. Functorial data migration. Information and Computation, 217:31–51, 2012. doi:
Kenneth O. Stanley. Compositional pattern producing networks: A novel abstraction of devel-
Kenneth O. Stanley and Risto Miikkulainen. A taxonomy for artificial embryogeny. Artificial
Kenneth O. Stanley, David B. D’Ambrosio, and Jason Gauci. A hypercube-based encoding for
Stephen C. Stearns. The Evolution of Life Histories. Oxford University Press, May 1992. ISBN
Andreas Stolcke and Stephen Omohundro. Inducing probabilistic grammars by Bayesian model mer-
Readable text
Eörs Szathmáry. The origin of replicators and reproducers. Philosophical Transactions of the Royal
Wael Tadros and Howard D. Lipshitz. The maternal-to-zygotic transition: a play in two acts.
Heather L. True and Susan L. Lindquist. A yeast prion provides a mechanism for genetic variation
V.G. Turaev and O.Y. Viro. State sum invariants of 3-manifolds and quantum 6j-symbols. Topology,
Leslie G. Valiant. Evolvability. Journal of the ACM, 56(1):1–21, January 2009. ISSN 1557-735X. doi:
Wil van der Aalst. Process Mining. Springer Berlin Heidelberg, 2016. ISBN 9783662498514. doi:
F.G. Varela, H.R. Maturana, and R. Uribe. Autopoiesis: The organization of living systems, its
Rudolf Virchow. Cellular-pathologie. Archiv für Pathologische Anatomie und Physiologie und für
John von Neumann. Theory of Self-Reproducing Automata. University of Illinois Press, Urbana and
Canalization of development and the inheritance of acquired characters. Nature, 150(3811):563–565, November 1942. ISSN 1476-4687. doi: 10.1038/150563a0. URL
Andreas Wagner. Robustness and evolvability: a paradox resolved. Proceedings of the Royal Society
Günter P. Wagner and Lee Altenberg. Perspective: Complex adaptations and the evolution of
Wenyi Wang, Piotr Piękos, Li Nanbo, Firas Laakom, Yimeng Chen, Mateusz Ostaszewski,
Mingchen Zhuge, and Jürgen Schmidhuber. https://arxiv.org/abs/2510.21614.
agent development by an approximation of the optimal self-improving machine, 2025. URL
Westley Weimer, ThanhVu Nguyen, Claire Le Goues, and Stephanie Forrest. Software Engineering, pages 364–374. IEEE, 2009. http://dx.doi.org/10.1109/ICSE.2009.5070536.
Automatically In 2009 IEEE 31st International Conference on doi: 10.1109/icse.2009.5070536. URL
August Weismann. The Germ-Plasm: A Theory of Heredity. Charles Scribner’s Sons, 1893. doi:
10.5962/bhl.title.25196. URL http://dx.doi.org/10.5962/bhl.title.25196. English translation by W. Newton Parker and Harriet Roennfeldt; digitised by the Biodiversity Heritage Library.
Mary Jane West-Eberhard. Developmental Plasticity and Evolution. Oxford University Press, March
2003. ISBN 9780197561300. doi: 10.1093/oso/9780195122343.001.0001. URL http://dx.doi .org/10.1093/oso/9780195122343.001.0001.
P.A. Whigham. Inductive bias and genetic programming. In 1st International Conference on Genetic
Algorithms in Engineering Systems: Innovations and Applications (GALESIA), volume 1995, pages 461–466. IEE, 1995. doi: 10.1049/cp:19951092. URL http://dx.doi.org/10.1049/cp: 19951092.
George C. Williams. Natural selection, the costs of reproduction, and a refinement of lack’s principle. The American Naturalist, 100(916):687–690, November 1966. ISSN 1537-5323. doi: 10.1086/282461. URL http://dx.doi.org/10.1086/282461.
Kenneth G. Wilson. Confinement of quarks. Physical Review D, 10(8):2445–2459, October 1974.
ISSN 0556-2821. doi: 10.1103/physrevd.10.2445. URL http://dx.doi.org/10.1103/PhysR evD.10.2445.
D.H. Wolpert and W.G. Macready. No free lunch theorems for optimization. IEEE Transactions on
Evolutionary Computation, 1(1):67–82, April 1997. ISSN 1089-778X. doi: 10.1109/4235.585893. URL http://dx.doi.org/10.1109/4235.585893.
Jenny Zhang, Shengran Hu, Cong Lu, Robert Lange, and Jeff Clune. Darwin godel machine:
Open-ended evolution of self-improving agents, 2025. URL https://arxiv.org/abs/2505 .22954.