English

Computable Structuralism: A Categorical Rewrite Calculus of Mythic Variants

Social and Information Networks 2026-01-22 v1 Logic in Computer Science Category Theory

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 (X,Y)(X,Y), abstracting an everyday/social channel and a symbolic/legitimation channel. The canonical formula becomes coherence data: a natural transformation η:UV\eta:U\Rightarrow V between update endofunctors, where UU updates each register in place and VV 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 (a,b,x,y)(a,b,x,y) with a Key. 59/80 (74\%) explicitly name a normative constraint in yy (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}
}