REVIEW 4 major objections 5 minor 21 references
Formal Languages and TQFTs with Defects
T0 review · 4 major / 5 minor · reviewed 2026-08-11 · deepseek-v4-flash
Pith's one-line read A functorial construction turns context-free grammars into 1D TQFTs with defects, reducing them to tree-contour grammars.
desk verdict A promising extension of the automata-to-TQFT program with a real, fixable bug in the modified pullback definition; the central functoriality claim does not currently hold as stated. read the letter →
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
The reading
What carries the argument
The central objects are the colored operad of spliced arrows $\mathcal{W}_{\mathcal{C}}$, whose operations are words $w_0\square w_1\square\cdots\square w_n$ with square gaps as inputs, and the contour category $\mathrm{Cont}(\mathcal{O}_{\mathcal{S}})$, whose arrows trace the contours of trees in a free operad and whose associated tree-contour grammars are the categorical Dyck languages. A context-free grammar is encoded as a morphism of operads $P:\mathcal{O}_{\mathcal{S}}\to\mathcal{W}_{\mathcal{C}}$, and the categorical Chomsky–Schützenberger theorem factors any such $P$ through the universal tree-contour morphism $\mathcal{O}_{\mathcal{S}}\to\mathcal{W}_{\mathrm{Cont}(\mathcal{O}_{\mathcal{S}})}$ via a functor $\tau_G$. The TQFT side is carried by the colored operad $\mathcal{O}_{\mathrm{Cob},\mathcal{C}}$ of 1D cobordisms with defects and rectangular boxes cut out, composed by plugging matching boundary data; Proposition 4.9 converts a grammar into a morphism $\Xi_G:\mathcal{O}_{\mathrm{Cob},\mathcal{C}}\to\mathcal{O}_{\mathcal{B}\text{-Mod}}$, and Proposition 4.10 uses the contour factorization together with transducer naturality to reduce this morphism to tree contours.
What would settle it
Compute, for the grammar $S\to aSbS\mid \epsilon$, the operator $T_{a\square b}$ from equation (4.9) and compare it with the operator obtained by first mapping this grammar through its contour functor $\tau_G$ to a tree-contour grammar and then applying the transducer of Proposition 4.10; any difference on a basis state $\delta_C$ would falsify the main reduction. Alternatively, check that the natural transformation $\gamma_T$ of Theorem 4.6 commutes for a simple two-state transducer; a failure on a cup or half-line cobordism would falsify the claimed functoriality.
Extended reading notes
Core claim
On the paper's own terms, the central discovery is that the passage from machines and grammars to 1D TQFTs with defects is a structural functor rather than a collection of examples. For finite automata, a transducer between automata induces a natural transformation between the associated Boolean 1D TQFTs with defects, after replacing the target category by spans of Boolean semimodules and using modified pullbacks. For categorical context-free grammars, seen as operad homomorphisms $P:\mathcal{O}_{\mathcal{S}}\to\mathcal{W}_{\mathcal{C}}$, the same functoriality holds; the associated TQFT becomes a morphism of colored operads, from an operad of 1D cobordisms with defects to an operad of Boolean semimodule operations. The categorical Chomsky–Schützenberger theorem then yields Proposition 4.10: every such TQFT is completely determined by its values on tree-contour grammars and by functoriality under transducers. Additionally, strictly local languages produce cohomological structures from forbidden factors, while locally testable languages require a global cobordism-level condition.
Load-bearing premise
The load-bearing premise is the categorical Chomsky–Schützenberger theorem itself: every categorical context-free grammar must factor through a tree-contour grammar by a functor and be realizable as a transducer image of a color-injective tree-contour grammar; if that companion theorem fails, the paper's reduction to tree-contour TQFTs collapses.
Editorial extensions
If this is right
- For every categorical context-free grammar, the associated Boolean 1D TQFT with defects is determined by the tree-contour grammar of its species and the transducer realizing the grammar.
- Strictly local languages of order 2 give cohomological structures $H_{ab}=\ker(T_a)/\operatorname{im}(T_b)$ for non-admissible factors, and higher-order strictly local languages give analogous structures for forbidden $k$-factors.
- Locally testable languages cannot be captured by local composition of defects; they require the global set of cobordisms containing required factors, with commuting actions of the two endomorphism monoids.
- Transducer morphisms between automata become natural transformations between TQFTs, so the TQFT construction is a functor from automata and cobordisms to spans of Boolean semimodules.
- The operadic reformulation allows composition of defect TQFTs by plugging cobordisms into boxes, yielding a compositional calculus for context-free language TQFTs.
Reading between the lines
- If the reduction is made constructive, it suggests an algorithm for computing a context-free TQFT by first computing the tree-contour TQFT and then applying the transducer, potentially simplifying semiring parsing of context-free languages.
- The cohomological structures attached to strictly local languages may be invariants of the language rather than the automaton; checking whether two minimal automata for the same language yield isomorphic cohomology would be a direct test.
- The same operadic machinery may extend to higher-dimensional automata and 2D TQFTs with defects, where Frobenius algebra descriptions could give algebraic invariants; the paper itself lists this as future work.
- Locally testable languages' global cobordism condition resembles a cohomology of the endomorphism monoid action, and making that precise could give a model-theoretic-to-TQFT dictionary for subregular classes beyond SL and LT.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. This paper extends the Boolean 1D TQFT-with-defects construction of Gustafson, Im, Kaldawy, Khovanov, and Lihn from finite state automata to a category whose morphisms are transducers, then to categorical finite state automata and to categorical context-free grammars viewed as morphisms of colored operads P: O_S → W_C. The advertised results are functoriality under transducers (Theorems 3.3, 4.3, 4.6), a cohomological interpretation of certain subregular language classes (Section 3.3), and a reduction of all categorical context-free grammar TQFTs to tree-contour grammars via the Melliès–Zeilberger version of the Chomsky–Schützenberger theorem (Proposition 4.10). The paper is exploratory and contains a number of local gaps and typos, but its intended categorical/operadic bridge between automata theory and defect TQFTs is clear.
Significance. If the main theorems were correct, the paper would give a useful functorial and operadic framework for the language–TQFT correspondence: transducer morphisms would lift to natural transformations, context-free grammars would be encoded as operad maps, and the Chomsky–Schützenberger theorem would reduce the whole construction to tree-contour grammars. The paper is explicit, has no fitted parameters, and transparently relies on the external theorem [17]. However, as written, the central functoriality statements are not established because of an incorrect modified pullback definition, and the subregular cohomology claim is not valid for arbitrary automata computing a language. These are local, repairable defects, so the framework remains promising, but the current version cannot serve as a rigorous foundation for the context-free results.
major comments (4)
- [§3.2, Definition 3.2 and Lemma 3.2] Definition 3.2 defines the modified pullback α^*Φ(+) as the largest subspace invariant under all operators Φ(c_{α(a)}), but Lemma 3.2 and the proof of Theorem 3.3 require this subspace to be B^{Q_{M,α}}, the span of states occurring in α-transitions. These are not equal: if a state is not the source of any α(a)-transition, its basis vector is annihilated by all T_{α(a)} and hence lies in every invariant subspace. Concretely, let M have states {s,t,u}, transitions s--A-->t, t--B-->s, u--B-->u, and let α(a)=A. Then Q_{M,α}={s,t}, so Lemma 3.2 identifies α^*Φ_M(+) with B^{{s,t}}, but the largest T_A-invariant subspace of B^{{s,t,u}} is the whole space because T_A(δ_u)=0. The proof of Theorem 3.3 explicitly uses the equality α^*Φ_M = Φ_{α^{-1}(M)}, so Theorem 3.3 is not established as stated. The repair is local: replace 'largest invariant subspace' by the Boolean submodule spanned by all states that occur as sources or targets of transitions labelled by α(a), and then re-check the naturality argument.
- [§3.3] The inference from inadmissible k-factors to vanishing of products of defect operators is not valid for arbitrary FSAs computing the given language. Earlier in §3.2 the paper correctly stresses that the TQFT depends on the automaton, not only the language, yet §3.3 asserts for (AB)^n that 'TB is a coboundary operator (T_B^2=0) on any of the spaces Φ_M(ϵ), and so is TA.' This is false in general. Add to the standard two-state automaton for (AB)^n an extra state r with a transition r--A-->r (and, if desired, make r reachable by adding q0--A-->r and keeping q0 final); the recognized language is unchanged, but T_A^2(δ_r)=δ_r, so T_A is not square-zero. The cohomological structure of SL2 languages therefore needs an explicit hypothesis on the automaton, such as a canonical minimal automaton, together with a proof, rather than being presented as a language-level consequence.
- [§4.5–4.6, Theorem 4.6 and Proposition 4.10] The same defect propagates to the context-free setting. Theorem 4.6 is stated using 'the modified pullbacks as in Definition 3.2', and its proof identifies Π_{Wα}Ψ_G(+) with B(X_{C,S}∩Obj(Q_T)). This is exactly the equality that fails for the largest-invariant-subspace definition. Consequently the natural transformations γ_T : Wα^*Ψ_G → Wβ^*Ψ_{G'} are not established, and Proposition 4.10, which concludes that all context-free TQFTs are determined by tree-contour grammars and functoriality under transducers, has no valid proof at present. The authors should repair Definition 3.2, or avoid modified pullbacks in this theorem, and then verify that the naturality diagram in Theorem 4.6 commutes with the corrected pullback.
- [§4.6, Proposition 4.10] Proposition 4.10 makes essential use of the Melliès–Zeilberger theorem [17], which is legitimate, but the proof as written does not verify that the hypotheses of Proposition 4.9 and Theorem 4.6 are met after the reduction. In particular, Theorem 4.6 assumes that α is injective on objects and that the operad map is C-chromatic, while the factorization step introduces the color-surjective morphism φCol: O_S→O_{φColS}; the argument that the original, possibly non-C-chromatic, grammar G is a transducer image of a C-chromatic tree-contour grammar is compressed into a diagram and is not self-contained. Please state the precise theorem from [17] that is being used and check the two hypotheses explicitly; otherwise Proposition 4.10 is conditional on an unstated strengthening of [17].
minor comments (5)
- [Introduction] In the first paragraph, 'and and additional operadic structure' contains a duplicated word that should be removed.
- [§3.1] The text repeats 'FM(+) = BQ∨' after defining FM(+)=BQ; the second occurrence should be FM(−)=BQ∨.
- [Throughout] There are numerous typos, including 'wth', 'inital', and inconsistent spelling of Melliès; a thorough proofreading pass is needed before publication.
- [§3.3] The definition of H_{ab}(Φ_M(ϵ),T) := Ker(T_a)/Image(T_b) uses quotients and kernels of Boolean semimodules without specifying the relevant universal properties; this should be clarified, especially since the paper otherwise works with spans of B-modules.
- [§2.2] The proof of Proposition 2.4 is very terse; in particular, the transition from the automaton for α^{-1}(L)∩L_reg to the automaton for β(α^{-1}(L)∩L_reg) is described only informally via 'subdivisions' and should be formalized with a precise definition of the intermediate state set Q'.
Circularity Check
No significant circularity: the context-free reduction rests on the external Melliès–Zeilberger theorem, not on the paper's own construction.
full rationale
The paper's central derivation, Proposition 4.10, claims that the assignment of 1D Boolean TQFTs with defects to categorical context-free grammars is determined by tree-contour grammars and by functoriality under transducers. The proof begins by citing [17] for the factorization of any categorical context-free grammar through a tree-contour grammar; this is an external theorem by Melliès and Zeilberger, not a result derived from the TQFT construction in this paper. The TQFT-to-transducer natural transformations in Theorems 3.3 and 4.6 are established by explicit span and pullback constructions, not by assuming the conclusion. No equation is shown to be equal to its own input by construction, and no fitted parameter is later renamed as a prediction. The only self-citation is [7], coauthored by Marcolli, used to recall the category of formal languages with rational transductions and to justify associativity of transducer composition; this is background structure rather than the source of the Chomsky–Schützenberger reduction. Even if the skeptical objection about the modified pullback in Definition 3.2 were correct, it would be a mathematical correctness issue in Theorem 3.3, not a circularity: the theorem would be false or unproved, not true by definition. The central claim therefore has independent grounding in [17].
Assumptions & free parameters
assumptions (4)
- domain assumption The category F L of formal languages with rational transductions and the category A of automata with transducers have associative composition as defined in [7].
- domain assumption The construction of Boolean 1D TQFTs with defects from finite automata in [10] is valid as recalled in Section 3.1.
- domain assumption The Mellies-Zeilberger categorical Chomsky-Schützenberger theorem [17] holds, including the tree-contour grammar factorization and the preservation of categorical context-free languages under transducer action.
- domain assumption The category B-Mod has pullbacks, and the splice operads WC and tree-contour categories Cont(OS) have the properties stated in [16,17,21].
Cite this review
Pith. "Pith review of Formal Languages and TQFTs with Defects." pith.science (2026). https://pith.science/paper/BQVXQFGG
@misc{pith2026241209688,
author = {Pith},
title = {Pith review of: Formal Languages and TQFTs with Defects},
year = {2026},
howpublished = {\url{https://pith.science/paper/BQVXQFGG}},
note = {Machine review of arXiv:2412.09688}
}
read the original abstract
A construction that assigns a Boolean 1D TQFT with defects to a finite state automaton was recently developed by Gustafson, Im, Kaldawy, Khovanov, and Lihn. We show that the construction is functorial with respect to the category of finite state automata with transducers as morphisms. Certain classes of subregular languages correspond to additional cohomological structures on the associated TQFTs. We also show that the construction generalizes to context-free grammars through a categorical version of the Chomsky-Sch\"utzenberger representation theorem, due to Melli\`es and Zeilberger. The corresponding TQFTs are then described as morphisms of colored operads on an operad of cobordisms with defects.
Figures
Figures from the paper (6 more)
Reference graph
Works this paper leans on
-
[17]
P.A. Melli` es, N. Zeilberger,The categorical contours of the Chomsky–Sch¨ utzenberger representation theorem, arXiv:2405.14703
-
[1]
Jean Berstel, Transductions and Context-Free Languages, Teubner Verlag, 1979
work page 1979
-
[2]
Carqueville, Lecture notes on 2-dimensional defect TQFT , arXiv:1607.05747
N. Carqueville, Lecture notes on 2-dimensional defect TQFT , arXiv:1607.05747
-
[3]
N. Chomsky. Three models for the description of language . IRE Transactions on Information Theory. 2 (1956) N.3, 113–124
work page 1956
-
[4]
Chomsky, On certain formal properties of grammars , Information and Control, 2 (1959) 137–167
N. Chomsky, On certain formal properties of grammars , Information and Control, 2 (1959) 137–167
work page 1959
-
[5]
Computer program- ming and formal systems
N. Chomsky and M. P. Sch¨ utzenberger,The algebraic theory of context-free languages, in “Computer program- ming and formal systems”, pp. 118–161. North Holland, 1963
work page 1963
- [6]
-
[7]
Formal languages, spin systems, and quasicrystals
F. Fernandes, M. Marcolli, Formal languages, spin systems, and quasicrystals , arXiv:2405.12485
Show all 21 references
-
[8]
Algebra and Coalgebra in Computer Science
N. Ghani, A. Kurz, higher dimensional trees, algebraically , in “Algebra and Coalgebra in Computer Science”, Lecture Notes in Computer Science (LNTCS), Vol. 4624, pp. 226–241
-
[9]
Goodman, Semiring parsing, Computational Linguistics, Vol.25 (1999) N.4, 573–605
J. Goodman, Semiring parsing, Computational Linguistics, Vol.25 (1999) N.4, 573–605
1999
-
[10]
Gustafson, M.S
P. Gustafson, M.S. Im, R. Kaldawy, M. Khovanov, Z. Lihn, Automata and one-dimensional TQFTs with defects, arXiv:2301.00700
-
[11]
Gustafson, M.S
P. Gustafson, M.S. Im, M. Khovanov, Boolean TQFTs with accumulating defects, sofic systems, and automata for infinite words , arXiv:2312.17033
-
[12]
M.S. Im, M. Khovanov, Topological theories and automata, arXiv:2202.13398
-
[13]
M.S. Im, M. Khovanov, From finite state automata to tangle cobordisms: a TQFT journey from on to four dimensions, arXiv:2309.00708
-
[14]
J¨ ager, J
G. J¨ ager, J. Rogers, Formal language theory: refining the Chomsky hierarchy , Phil. Trans. R. Soc. B (2012) 367, 1956–1970
2012
-
[15]
Kambites, Formal languages and groups as memory , arXiv:math/060161
M. Kambites, Formal languages and groups as memory , arXiv:math/060161. 28 LUISA BOATENG AND MATILDE MARCOLLI
-
[16]
Proceedings of the 38th Conference on Mathematical Foundations of Programming Semantics (MFPS 2022)
P.A. Melli` es, N. Zeilberger,Parsing as a lifting problem and the Chomsky–Sch¨ utzenberger representation theo- rem, in “Proceedings of the 38th Conference on Mathematical Foundations of Programming Semantics (MFPS 2022)”, arXiv:2212.09060
2022 arXiv
-
[18]
Rawski, Tensor Product Representations of Subregular Formal Languages , arXiv:1908.08132
J. Rawski, Tensor Product Representations of Subregular Formal Languages , arXiv:1908.08132
1908 arXiv
-
[19]
Rogers, Syntactic structures as multi-dimensional trees , Research on Language and Computation 1(3–4), 265–305 (2003)
J. Rogers, Syntactic structures as multi-dimensional trees , Research on Language and Computation 1(3–4), 265–305 (2003)
2003
-
[20]
Spivak, P
D.I. Spivak, P. Schultz, D. Rupel, String diagrams for traced and compact categories are oriented 1-cobordisms, J. Pure Appl. Algebra 221 (2017), no. 8, 2064–2110
2017
-
[21]
Takahashi, Extensions of Semimodules I , Math
M. Takahashi, Extensions of Semimodules I , Math. Sem. Notes Kobe Univ. 10 (1982), 563–592. Department of Mathematics, Stanford University, Stanford, CA 94305, USA Email address : luisa.mboateng@gmail.com Department of Mathematics and Department of Computing and Mathematical S...
1982
Reviewed August 11, 2026 · model on record in the stance chip above.
Discussion (0). Continue with ORCID to comment.