⚜ PRINCIPIA ORTHOGONA · Book XIV · Ch 1 Book XIV contents · Ch 3 →
Book XIV · Chapter 1 · 2026-09-27 · Formal language theory
LINGUISTICS · MATHEMATICALMATHEMATICS · FOUNDATIONS

The Grammar of Notation

A footnote in Syntactic Structures, proved; and how deep this series really nests
Warrantbook14/ch01-verify.py, 0 FAIL · book14/Brackets.lean, kernel-checked
SourcesChomsky 1957 (2002 ed.) · Pullum 2011 · J&M 2026
Corpus11,808 formulas at eab9581
In 1957 Noam Chomsky asserted that English is beyond any finite-state machine. He did not prove it, and fifty years later Geoffrey Pullum showed that no proof was ever given. In a footnote Chomsky made the same claim about mathematical notation, and there the proof is short. This chapter supplies it in Lean, then asks how much of that power the notation of this series actually uses.
1 · What Syntactic Structures says

A footnote about mathematics

Chomsky counts mathematics as a language from the start: "the set of ‘sentences’ of some formalized system of mathematics can be considered a language" (SS p.13). On p.21 he states "(9) English is not a finite state language", meaning that "it is impossible, not just difficult, to construct a device" of that kind. For the simplest case, (10i), the strings ab, aabb, aaabbb…, he writes: "We can easily show that each of these three languages is not a finite state language." Then footnote 3 on p.22: CITED

SS p.22, footnote 3"…the set of well-formed formulas of any formalized system of mathematics or logic will fail to constitute a finite state language, because of paired parentheses or equivalent restrictions."

Pullum (2011) read the book as a mathematical logician would. His verdict is that "SS contains no proof that English is beyond the power of finite state description", and that "Chomsky did not even attempt such a proof in SS". SS itself calls its argument "a rough indication of the lines along which a rigorous proof of (9) can be given" (p.23). CITED

2 · The proof, for brackets

Why no finite machine can check parentheses

Write "(" for Chomsky's a and ")" for his b. Language (10i) is then the set of strings with n opening brackets followed by n closing ones. Brackets.lean proves no_finite_reader: no reader with finitely many states accepts exactly those strings. KERNEL-CHECKED

The argument in one breathSuppose the reader has k states. Feed it 0, 1, 2, …, k opening brackets. That gives k + 1 runs but only k states, so two runs end in the same state, say after i and after j brackets, with i ≠ j. From that state on, the reader cannot tell them apart. Add i closing brackets: it must accept "(i )i" and reject "(j )i", but it is in the same state for both. Contradiction. This is the pigeonhole principle, and the kernel checks it using only the three standard axioms.

This settles the footnote for brackets, which Chomsky said could "easily" be shown. It says nothing about English, which remains Pullum's point. MODEL

3 · What the conventions are for

One string, several trees

Parentheses are needed because notation without them is ambiguous. The script parses each expression with a grammar that has no precedence rules at all, and counts the trees: COMPUTED

expressionone treethe other tree
6÷2(1+2)(6÷2)(1+2) = 96÷(2(1+2)) = 1
1/2x, x = 3(1/2)·x = 1.51/(2x) = 1/6
sin x/2, x = 1(sin x)/2 = 0.421sin(x/2) = 0.479
2^3^2(2³)² = 642^(3²) = 512
8/4/2(8/4)/2 = 18/(4/2) = 4

The viral "6÷2(1+2)" has exactly two readings, 9 and 1. Nothing in the string decides between them; only a convention about implicit multiplication does. The number of trees grows fast. With k plus signs in a row, "1+1+…+1" has 1, 2, 5, 14, 42, 132, 429, 1430 trees for k = 1…8, the Catalan numbers. "1+2*3-4/2" has 14 trees and 9 different values, and the school convention picks one of them, 5. COMPUTED

A context-free grammar is exactly the device that can hold both the brackets and the trees. Jurafsky and Martin call such grammars "the backbone of many formal models of the syntax of natural language (and, for that matter, of computer languages)" (SLP 3rd ed. draft, p.425). CITED

4 · How deep does this series nest?

11,808 formulas, depth at most 3

Chomsky's §3.3 concedes the other half: if nesting has a fixed limit, a finite machine suffices, because "a list is essentially a trivial finite state grammar" (SS p.23). The script collects every formula in the series' published pages ($…$, $$…$$, \(…\), \[…\]) and measures how deep the round and square brackets go: COMPUTED

bracket depthformulas
08,824
12,822
2157
35

No formula in the series goes deeper than three, and the deepest are on the Enceladus page. In practice, then, this series' notation could be checked by a reader with five states: depths 0 to 3 and a reject state. The grammar of mathematics is beyond finite machines, but the mathematics written here never uses that power. That is Chomsky's §3.3 observed in a real corpus. COMPUTED

Not establishedThe quotations from Syntactic Structures come from an OCR of a scan. The script checks the quoted words, but the OCR was not proof-read. The depth count ignores braces, which LaTeX uses as syntax, and may miss formulas written without delimiters. Whether English is finite-state is not addressed here; that remains Pullum's question. OPEN

See also Chapter 3 (a counting rule checked the same way), Chapter 5 (the corpus's own readers), the Chomsky gallery page and Book XIX ch 3 (Lean's own parser).

  1. N. Chomsky, Syntactic Structures, 2nd ed. with an introduction by D. W. Lightfoot, Mouton de Gruyter, 2002 (1st ed. 1957). Held as a scan.
  2. G. K. Pullum, "On the mathematical foundations of Syntactic Structures", Journal of Logic, Language and Information 20(3) (2011) 277–296, doi:10.1007/s10849-011-9139-8.
  3. D. Jurafsky & J. H. Martin, Speech and Language Processing, 3rd ed. draft, 19 Aug 2026, ch. 19.