Computable Structuralism: A Categorical Rewrite Calculus of Mythic Variants
Abstract
Structural approaches to myth and narrative are compelling in close reading but hard to compare across traditions, media, and scale. We propose a formal framework that renders L\'evi-Straussian transformation as mathematics while remaining readable as narrative analysis. Variants, superhero continuities, and franchise arcs are modeled as typed rewrite programs on a coupled two-register state , abstracting an everyday/social channel and a symbolic/legitimation channel. The canonical formula becomes coherence data: a natural transformation between update endofunctors, where updates each register in place and performs a swap+inversion. Context is internalized by operator choice, turning naturality into a corpus-facing type check: failures diagnose mis-specified oppositions or illegal transport; successes witness coherent structural models. Order effects are summarized by a five-value invariant (Key). We apply the method to 80 narratives (20 folktales, 20 religious myths, 20 superheroes, 20 franchises), each encoded as with a Key. 59/80 (74\%) explicitly name a normative constraint in (law, taboo, contract, prophecy), supporting the two-register abstraction. The result is a testable bridge between structural anthropology and cultural analytics: stories remain interpretable yet become transportable objects for computation, comparison, and falsifiable constraints on transformation.
Keywords
Cite
@article{arxiv.2601.15078,
title = {Computable Structuralism: A Categorical Rewrite Calculus of Mythic Variants},
author = {Juan J. Segura},
journal= {arXiv preprint arXiv:2601.15078},
year = {2026}
}