292 Three Foundational Structures from \(\Pi ^2=\Pi \)

Three historically distinct foundational contributions — Leibniz’s binary notation, Descartes’s coordinates, and Tarski’s truth definition — are each a consequence of \(\Pi ^2=\Pi \).

I. Leibniz (1703): Binary Notation

The totality admits exactly two values per position:

\begin{equation} \Pi ^2=\Pi \;\Rightarrow \; \lambda ^2=\lambda \;\Rightarrow \; \lambda \in \{0,1\}, \tag{18989}\end{equation}
which is the binary alphabet \(b_i\in \{0,1\}\) with \(1\leftrightarrow O\) and \(0\leftrightarrow U\).

A binary string is

\begin{equation} b=(b_n b_{n-1}\cdots b_1 b_0)_2, \qquad b_i\in \{0,1\}, \tag{18990}\end{equation}
with value
\begin{equation} \operatorname {Val}_2(b)=\sum _{i=0}^{n} b_i\,2^i. \tag{18991}\end{equation}

Worked example.

\begin{align} (1011)_2 &= 1\cdot 2^3 + 0\cdot 2^2 + 1\cdot 2^1 + 1\cdot 2^0 \notag \\ &= 8+0+2+1 \notag \\ &= 11, \tag{18992}\end{align}
\begin{equation} \boxed {(1011)_2=(11)_{10}.} \tag{18993}\end{equation}

General form.

\begin{equation} (a_k a_{k-1}\cdots a_0)_2 = \sum _{i=0}^{k} a_i 2^i, \qquad a_i\in \{0,1\}, \tag{18994}\end{equation}
and for arbitrary base \(b\):
\begin{equation} \operatorname {Val}_b(a_k a_{k-1}\cdots a_0) = \sum _{i=0}^{k} a_i b^i, \qquad \boxed {(b_n\cdots b_0)_b = \sum _{i=0}^{n} b_i\,b^i.} \tag{18995}\end{equation}
Each digit position is an independent instance of the binary partition \(O\sqcup U\); the place-value expansion is the direct sum over positions.
II. Descartes: Coordinates as Product Projections

The partition \(T=O\sqcup U\) generalises to a product decomposition, and coordinates are the associated projections:

\begin{equation} \pi _1(x,y)=x,\qquad \pi _2(x,y)=y, \qquad (x,y)\in X\times Y, \tag{18996}\end{equation}
\begin{equation} X\times Y = \{(x,y): x\in X,\ y\in Y\}, \qquad \mathbb {R}^2=\mathbb {R}\times \mathbb {R}, \tag{18997}\end{equation}
\begin{equation} (x,y)\;\longleftrightarrow \; \begin {pmatrix}x\\ y\end {pmatrix}. \tag{18998}\end{equation}

Finite product.

\begin{equation} A=(a_1,a_2,\ldots ,a_n)\in X_1\times X_2\times \cdots \times X_n, \qquad \pi _i(A)=a_i, \qquad A\longleftrightarrow (a_1,a_2,\ldots ,a_n). \tag{18999}\end{equation}
\begin{equation} \prod _{i=1}^{n}X_i = X_1\times X_2\times \cdots \times X_n, \qquad (a_1,\ldots ,a_n)\in \prod _{i=1}^{n}X_i, \qquad \pi _i(a_1,\ldots ,a_n)=a_i. \tag{19000}\end{equation}

Infinite product.

\begin{equation} (a_1,a_2,\ldots )\in \prod _{i=1}^{\infty }X_i, \qquad \pi _i(a_1,a_2,\ldots )=a_i. \tag{19001}\end{equation}
\begin{equation} \boxed {\text {Coordinate}=\text {projection from a Cartesian product}.} \tag{19002}\end{equation}
The projections \(\pi _i\) satisfy \(\pi _i^2=\pi _i\) on the corresponding factor — they are the set-theoretic form of \(\Pi ^2=\Pi \), one partition per axis.
III. Tarski: The Truth Definition

The T-schema is \(A=A\) applied to the naming relation: a sentence and its name are identified.

\begin{equation} \operatorname {True}(\ulcorner P\urcorner )\iff P, \qquad \forall P\;\bigl (\operatorname {True}(\ulcorner P\urcorner )\leftrightarrow P\bigr ). \tag{19003}\end{equation}

Instances.

\begin{align} \operatorname {True}(\ulcorner 0=0\urcorner )&\iff (0=0), \tag{19004}\\ \operatorname {True}(\ulcorner 1<2\urcorner )&\iff (1<2), \tag{19005}\\ \operatorname {True}(\ulcorner x=y\urcorner )&\iff (x=y). \tag{19006}\end{align}

Recursive clauses. Atomic formulas:

\begin{equation} \operatorname {True}(\ulcorner R(t_1,\ldots ,t_n)\urcorner ) \iff R(t_1,\ldots ,t_n). \tag{19007}\end{equation}
Negation (the \(O\leftrightarrow U\) exchange):
\begin{equation} \operatorname {True}(\ulcorner \neg \varphi \urcorner ) \iff \neg \operatorname {True}(\ulcorner \varphi \urcorner ). \tag{19008}\end{equation}
Conjunction and disjunction:
\begin{align} \operatorname {True}(\ulcorner \varphi \land \psi \urcorner ) &\iff \operatorname {True}(\ulcorner \varphi \urcorner ) \land \operatorname {True}(\ulcorner \psi \urcorner ), \tag{19009}\\ \operatorname {True}(\ulcorner \varphi \lor \psi \urcorner ) &\iff \operatorname {True}(\ulcorner \varphi \urcorner ) \lor \operatorname {True}(\ulcorner \psi \urcorner ). \tag{19010}\end{align}

Implication:

\begin{equation} \operatorname {True}(\ulcorner \varphi \rightarrow \psi \urcorner ) \iff \bigl (\operatorname {True}(\ulcorner \varphi \urcorner ) \rightarrow \operatorname {True}(\ulcorner \psi \urcorner )\bigr ). \tag{19011}\end{equation}
Quantifiers:
\begin{align} \operatorname {True}(\ulcorner \forall x\,\varphi (x)\urcorner ) &\iff \forall a\;\operatorname {True}(\ulcorner \varphi (\bar a)\urcorner ), \tag{19012}\\ \operatorname {True}(\ulcorner \exists x\,\varphi (x)\urcorner ) &\iff \exists a\;\operatorname {True}(\ulcorner \varphi (\bar a)\urcorner ). \tag{19013}\end{align}
\begin{equation} \boxed {\operatorname {True}(\ulcorner P\urcorner )\iff P.} \tag{19014}\end{equation}
The T-schema is the identity \(A=A\) at the level of the naming relation: the name \(\ulcorner P\urcorner \) and the sentence \(P\) have the same truth value. Negation is the partition exchange \(O\leftrightarrow U\); \(\land \)/\(\lor \) are the intersection and union of the partition; \(\forall \)/\(\exists \) are the product and coproduct over sectors.
Unification




Contribution Structure Origin



Leibniz (binary) \(b_i\in \{0,1\}\) \(\Pi ^2=\Pi \Rightarrow \lambda \in \{0,1\}\)
Descartes (coordinates) \(\pi _i:\prod X_j\to X_i\) \(\pi _i^2=\pi _i\), one partition per axis
Tarski (truth) \(\operatorname {True}(\ulcorner P\urcorner )\iff P\) \(A=A\) on the naming relation



Binary notation, coordinate geometry, and the semantic definition of truth are not three independent inventions. They are the arithmetic, geometric, and semantic faces of the same idempotent \(\Pi ^2=\Pi \).

292.1 The Binary Alphabet, Its Kleene Closure and PRA

The natural numbers and the defining equations of primitive recursive arithmetic can also be reached through syntax. The binary alphabet is the projector spectrum, its Kleene closure is a least fixed point, the unary words are \(\mathbb {N}\), and the recursion equations for addition and multiplication are the identity law, associativity and the universal property of the free monoid.

Alphabet. An idempotent has spectrum in \(\{0,1\}\), since \(\Pi v=\lambda v\) and \(\Pi ^2=\Pi \) give \(\lambda ^2=\lambda \):

\begin{equation} \Sigma =\{0,1\}, \qquad 1\leftrightarrow O,\quad 0\leftrightarrow U . \tag{19015}\end{equation}

Kleene closure. With concatenation \((a_1\cdots a_m)(b_1\cdots b_n)=a_1\cdots a_mb_1\cdots b_n\) and empty word \(\varepsilon \), the closure is the least fixed point

\begin{equation} \Sigma ^{*}=\mu X.\bigl (\{\varepsilon \}\cup X\Sigma \bigr ), \tag{19016}\end{equation}
obtained as in Subsection 329.2 without presupposing \(\mathbb {N}\). Once \(\mathbb {N}\) is available, \(\Sigma ^{*}=\bigcup _{n}\Sigma ^n\) with \(|\Sigma ^n|=2^n\), each position an independent binary choice, and \(\Sigma ^{*}\) is countable as a countable union of finite sets.

Monoid. Concatenation is associative and \(\varepsilon \) is a two-sided identity,

\begin{equation} (xy)z=x(yz), \qquad x\varepsilon =x=\varepsilon x, \tag{19017}\end{equation}
so \((\Sigma ^{*},\cdot ,\varepsilon )\) is the free monoid on two generators, and length is a monoid homomorphism,
\begin{equation} \operatorname {len}(xy)=\operatorname {len}(x)+\operatorname {len}(y), \tag{19018}\end{equation}
the additive form of \(dO=-dU\): concatenation conserves total length.

Idempotents. Idempotence lives at the level of the spectrum, \(\lambda ^2=\lambda \), not of concatenation, where \(11\neq 1\). The free monoid has exactly one idempotent:

\begin{equation} ww=w\ \Longrightarrow \ 2\operatorname {len}(w)=\operatorname {len}(w) \ \Longrightarrow \ w=\varepsilon , \tag{19019}\end{equation}
the identity partition.

The natural numbers. The unary words form the free monoid on one generator,

\begin{equation} \mathbb {N}:=\{1\}^{*}=\{\varepsilon ,1,11,111,\dots \}, \qquad 0:=\varepsilon , \qquad S(y):=y1 , \tag{19020}\end{equation}
and \(\operatorname {len}\) restricted to \(\{1\}^{*}\) is a bijection onto the \(\mathbb {N}\) of Subsection 329.2.

Addition is concatenation. Setting \(x+y:=xy\),

\begin{equation} \begin {aligned} x+0&=x\varepsilon =x, \\ x+S(y)&=x(y1)=(xy)1=S(x+y), \end {aligned} \tag{19021}\end{equation}
so the base clause is the identity law and the recursion clause is associativity.

Multiplication is substitution. For \(x\in \{1\}^{*}\) the free-monoid property gives a unique monoid homomorphism \(\bar x:\{1\}^{*}\to \{1\}^{*}\) with \(\bar x(1)=x\), which replaces each letter of its argument by \(x\). Setting \(x\cdot y:=\bar x(y)\),

\begin{equation} \begin {aligned} x\cdot 0&=\bar x(\varepsilon )=\varepsilon =0,\\ x\cdot S(y)&=\bar x(y1)=\bar x(y)\,\bar x(1)=x\cdot y+x , \end {aligned} \tag{19022}\end{equation}
so the base clause is preservation of the unit and the recursion clause is preservation of the product.

PRA equation Free-monoid form Source
\(x+0=x\) \(x\varepsilon =x\) identity law
\(x+S(y)=S(x+y)\) \(x(y1)=(xy)1\) associativity
\(x\cdot 0=0\) \(\bar x(\varepsilon )=\varepsilon \) homomorphism preserves unit
\(x\cdot S(y)=x\cdot y+x\) \(\bar x(y1)=\bar x(y)\,x\) homomorphism preserves product

Interpretation.

Syntactic object Partition meaning Algebraic form
\(\Sigma =\{0,1\}\) \(\{U,O\}\) \(\lambda ^2=\lambda \)
\(\varepsilon \) identity partition unique idempotent
\(x\cdot y\) successive partitions monoid product
\(\operatorname {len}(xy)=\operatorname {len}x+\operatorname {len}y\) conservation \(dO=-dU\)
\((xy)z=x(yz)\) order of grouping irrelevant associativity
\(\Sigma ^{*}\) all finite records of choices \(\mu X.(\{\varepsilon \}\cup X\Sigma )\)
\(\{1\}^{*}\) repeated single choice \(\mathbb {N}\)

Every finite binary string is a finite record of successive \(O/U\) choices, and \(\Sigma ^{*}\) is the totality of such records. Restricted to one letter it is \(\mathbb {N}\), and on \(\mathbb {N}\) the recursion equations of PRA are the monoid axioms and the universal property, read as arithmetic.

\begin{equation} \Pi ^2=\Pi \ \Longrightarrow \ \Sigma =\{0,1\} \ \Longrightarrow \ \Sigma ^{*}=\mu X.(\{\varepsilon \}\cup X\Sigma ) \ \Longrightarrow \ \{1\}^{*}=\mathbb {N} \ \Longrightarrow \ +,\ \cdot \ \Longrightarrow \ \mathrm {PRA}. \tag{19023}\end{equation}

292.2 From concatenation to combinatorics: \(\binom {n}{k}\) as a partition count

The free monoid \(\Sigma ^*\) generates all of elementary combinatorics: the binomial coefficient \(\binom {n}{k}\) is the number of length-\(n\) partitions with exactly \(k\) occupied (\(O\)-valued) positions, and Pascal’s rule is the recursion of the partition itself.

Setup.

\begin{equation} \Sigma =\{0,1\}, \qquad \Sigma ^*=\bigcup _{n\geq 0}\Sigma ^n, \qquad |\Sigma ^n|=2^n, \qquad \varepsilon \in \Sigma ^*, \tag{19024}\end{equation}
with words \(w=a_1a_2\cdots a_n\), \(a_i\in \{0,1\}\), and concatenation
\begin{equation} u\cdot v := uv, \qquad |uv|=|u|+|v|, \qquad \Sigma ^m\times \Sigma ^n\to \Sigma ^{m+n}. \tag{19025}\end{equation}

Weight partition of \(\Sigma ^n\). Grade \(\Sigma ^n\) by the number of \(1\)’s (occupied \(O\)-positions):

\begin{equation} \Sigma ^n \;\overset {\text {partition}}{\longrightarrow }\; \bigsqcup _{k=0}^{n}\{w:|w|_1=k\}, \tag{19026}\end{equation}
and define the binomial coefficient as the size of each block:
\begin{equation} \binom {n}{k} := \bigl |\{w\in \Sigma ^n:\textstyle \sum _{i=1}^{n}w_i=k\}\bigr | = \bigl |\{w:|w|_1=k\}\bigr |. \tag{19027}\end{equation}
Since the blocks are disjoint and exhaust \(\Sigma ^n\):
\begin{equation} \sum _{k=0}^{n}\binom {n}{k}=2^n, \tag{19028}\end{equation}
which is \(|A\sqcup B|=|A|+|B|\) applied to the weight grading.

Closed form.

\begin{equation} n! = \prod _{i=1}^{n} i, \qquad \operatorname {Perm}(n)=n!, \qquad \operatorname {Comb}(n,k)=\frac {n!}{k!\,(n-k)!}, \tag{19029}\end{equation}
\begin{equation} \boxed {\binom {n}{k}=\frac {n!}{k!\,(n-k)!}.} \tag{19030}\end{equation}

Generating function.

\begin{equation} (1+x)^n=\sum _{k=0}^{n}\binom {n}{k}x^k, \tag{19031}\end{equation}
which is concatenation made algebraic: each factor \((1+x)\) is one position offering the binary choice \(0\) (weight \(1\)) or \(1\) (weight \(x\)), and the product over \(n\) positions is the \(n\)-fold concatenation. Setting \(x=1\) recovers \(\sum _k\binom {n}{k}=2^n\).

Symmetry (\(O\leftrightarrow U\)).

\begin{equation} \binom {n}{k}=\binom {n}{n-k}, \tag{19032}\end{equation}
which is the partition exchange \(O\leftrightarrow U\): counting occupied positions or unoccupied ones gives the same count.

Pascal’s rule.

\begin{equation} \binom {n}{k}=\binom {n-1}{k-1}+\binom {n-1}{k}, \qquad \binom {n}{k}+\binom {n}{k+1}=\binom {n+1}{k+1}, \tag{19033}\end{equation}
with boundary values
\begin{equation} \binom {n}{0}=1, \qquad \binom {n}{n}=1. \tag{19034}\end{equation}
Pascal’s rule is concatenation by one letter: a word of length \(n\) with \(k\) ones is either a length-\((n-1)\) word with \(k-1\) ones followed by \(1\), or a length-\((n-1)\) word with \(k\) ones followed by \(0\). The two cases are disjoint and exhaustive — the binary partition at the last position.

Forward difference.

\begin{equation} \Delta \binom {n}{k}=\binom {n}{k+1}, \tag{19035}\end{equation}
the shift operator on the weight grading.

Cardinality laws from the monoid.

\begin{equation} \operatorname {Card}(A\times B)=\operatorname {Card}(A)\operatorname {Card}(B), \qquad |A\sqcup B|=|A|+|B|, \qquad |A^n|=|A|^n. \tag{19036}\end{equation}
The product law is concatenation (\(\Sigma ^m\times \Sigma ^n\to \Sigma ^{m+n}\)), the sum law is the weight partition, and \(|A^n|=|A|^n\) gives \(|\Sigma ^n|=2^n\).

Multisets. Allowing repetition (unordered selections with repeats):

\begin{equation} \operatorname {Multiset}(n,k)=\binom {n+k-1}{k}, \tag{19037}\end{equation}
the stars-and-bars count — \(k\) stars and \(n-1\) bars arranged in a binary string of length \(n+k-1\), which is again a word in \(\Sigma ^*\).

Chain.

\begin{equation} \boxed { \text {Concatenation} \;\Rightarrow \; \text {Binary strings} \;\Rightarrow \; \text {Counting} \;\Rightarrow \; \binom {n}{k} \;\Rightarrow \; \text {Combinatorics}. } \tag{19038}\end{equation}

Interpretation.




Combinatorial fact Partition meaning Monoid form



\(|\Sigma ^n|=2^n\) \(n\) independent \(O/U\) choices \(|A^n|=|A|^n\)
\(\sum _k\binom nk=2^n\) weight grading exhausts \(|A\sqcup B|=|A|+|B|\)
\(\binom nk=\binom n{n-k}\) \(O\leftrightarrow U\) exchange letter swap \(0\leftrightarrow 1\)
Pascal’s rule last-position partition concatenation by one letter
\((1+x)^n\) one binary choice per factor \(n\)-fold concatenation



Combinatorics is not an independent discipline layered on top of logic. It is the counting theory of the free monoid on \(\Sigma =\{0,1\}=\{U,O\}\): every binomial identity is a statement about how binary partitions compose under concatenation. The symmetry \(\binom nk=\binom n{n-k}\) is the partition exchange, Pascal’s rule is the binary split at the final letter, and \((1+x)^n\) is the algebraic form of concatenating \(n\) independent partitions.

292.3 From \(\Sigma ^*\) to Peano arithmetic: numbers as evaluated partitions

The free monoid carries a canonical evaluation onto \(\mathbb {N}\), and the successor function induced through this evaluation satisfies the Peano axioms. Arithmetic is therefore not an additional postulate: it is the value structure of the binary partition under concatenation.

Evaluation map.

\begin{equation} \Sigma =\{0,1\}, \qquad \Sigma ^*\;\xrightarrow {\ \operatorname {val}_2\ }\;\mathbb {N}, \tag{19039}\end{equation}
defined recursively on concatenation:
\begin{equation} \operatorname {val}_2(\varepsilon )=0, \qquad \operatorname {val}_2(wb)=2\operatorname {val}_2(w)+b, \qquad b\in \{0,1\}. \tag{19040}\end{equation}
The empty word (the trivial partition) evaluates to zero; appending one letter is one binary refinement, doubling the previous value and adding the new \(O/U\) choice.

Worked values.

\begin{align} 0 &= \operatorname {val}_2(\varepsilon ), & 1 &= \operatorname {val}_2(1), & 2 &= \operatorname {val}_2(10), \tag{19041}\\ 3 &= \operatorname {val}_2(11), & 4 &= \operatorname {val}_2(100). && \tag{19042}\end{align}

General radix. For \(k\geq 2\) with alphabet \(\Sigma _k=\{0,\ldots ,k-1\}\):

\begin{equation} \operatorname {val}_k(\varepsilon )=0, \qquad \operatorname {val}_k(wd)=k\operatorname {val}_k(w)+d, \qquad d\in \Sigma _k. \tag{19043}\end{equation}

Successor induced through the representation. The Peano successor is

\begin{equation} S(n)=n+1, \tag{19044}\end{equation}
and it is realised on strings by the increment map:
\begin{equation} S(\operatorname {val}_k(w))=\operatorname {val}_k(\operatorname {inc}_k(w)), \qquad \operatorname {inc}_k:\Sigma _k^*\to \Sigma _k^*, \tag{19045}\end{equation}
defined recursively by
\begin{align} \operatorname {inc}_k(\varepsilon ) &= 1, \tag{19046}\\ \operatorname {inc}_k(wd) &= w(d+1), \qquad d<k-1, \tag{19047}\\ \operatorname {inc}_k\bigl (w(k-1)\bigr ) &= \operatorname {inc}_k(w)\cdot 0. \tag{19048}\end{align}

The third clause is the carry: a saturated position (\(d=k-1\)) resets to \(0\) and passes the increment upward — the partition at that position is full, so the refinement propagates to the next.

Primitive recursion.

\begin{equation} f(0,\vec x)=g(\vec x), \qquad f(S(n),\vec x)=h\bigl (n,f(n,\vec x),\vec x\bigr ). \tag{19049}\end{equation}
This is concatenation-by-one-letter lifted to functions: the base case is \(\varepsilon \), and the step case is one refinement.

The arithmetic operations. Addition:

\begin{equation} x+0=x, \qquad x+S(y)=S(x+y). \tag{19050}\end{equation}
Multiplication:
\begin{equation} x\cdot 0=0, \qquad x\cdot S(y)=x\cdot y+x. \tag{19051}\end{equation}
Exponentiation:
\begin{equation} x^0=1, \qquad x^{S(y)}=x^y\cdot x. \tag{19052}\end{equation}
Each is defined by primitive recursion on the successor, hence by recursion on concatenation.

Result.

\begin{equation} \boxed { \Sigma _2^*\;\xrightarrow {\ \operatorname {val}_2\ }\;\mathbb {N} \;\models \;\mathrm {PA},} \tag{19053}\end{equation}
and more generally
\begin{equation} \boxed { \Sigma _k^*\;\xrightarrow {\ \operatorname {val}_k\ }\;\mathbb {N} \;\models \;\mathrm {PA} \qquad (k\geq 2).} \tag{19054}\end{equation}

Interpretation.




Peano structure String form Partition meaning



\(0\) \(\varepsilon \) trivial partition
\(S(n)\) \(\operatorname {inc}_k(w)\) one refinement
carry \(\operatorname {inc}_k(w(k-1))=\operatorname {inc}_k(w)0\) saturated position propagates
\(+\) iterated \(\operatorname {inc}\) repeated refinement
\(\cdot \) iterated \(+\) refinement of refinements
\(x^y\) iterated \(\cdot \) third-level iteration



The radix is a free parameter (\(k\geq 2\)): every base gives the same \(\mathbb {N}\), because the arithmetic depends on the recursion structure of concatenation, not on the size of the alphabet. What is not free is \(k\geq 2\): a one-letter alphabet has no partition, no place value, and no successor with carry. Arithmetic requires at minimum the binary split \(\Sigma =\{0,1\}=\{U,O\}\) — the same \(\Pi ^2=\Pi \) that generated the monoid. The natural numbers are the values of finite partitions, and Peano arithmetic is the recursion theory of appending one \(O/U\) choice at a time.

Remark 292.1 (Cancellation without inverses: the partial adjoint of concatenation).

The free monoid \((\Sigma ^*,\cdot ,\varepsilon )\) has no inverses, yet it is cancellative on both sides. The reason is that concatenation admits a partial inverse — defined only on its image — and this partial inverse is precisely the partition asymmetry \(dO=-dU\) in syntactic form: composition is total, decomposition is partial.

Monoid structure.

\begin{equation} (\Sigma ^*,\ \cdot ,\ \varepsilon ), \qquad u\cdot \varepsilon =\varepsilon \cdot u=u, \qquad (u\cdot v)\cdot w=u\cdot (v\cdot w). \tag{19055}\end{equation}

No inverses.

\begin{equation} \not \exists \, u^{-1}\in \Sigma ^* \quad \text {such that}\quad u\cdot u^{-1}=\varepsilon \qquad (u\neq \varepsilon ), \tag{19056}\end{equation}
since \(|uv|=|u|+|v|\geq |u|>0\) for any \(v\), so no product can shorten a nonempty word. Length additivity forbids inverses.

Left cancellation.

\begin{equation} uw=uv \;\Longrightarrow \; w=v. \tag{19057}\end{equation}
Equivalently, with the left translation \(L_u(x)=ux\) and the partial left quotient
\begin{equation} u^{-1}_{L}(x)= \begin {cases} y, & x=uy,\\ \text {undefined}, & u\npreceq x, \end {cases} \tag{19058}\end{equation}
we have
\begin{equation} u^{-1}_{L}(uA)=A, \qquad u^{-1}_{L}\circ L_u=\operatorname {id}_{\Sigma ^*}. \tag{19059}\end{equation}

Right cancellation.

\begin{equation} wu=vu \;\Longrightarrow \; w=v. \tag{19060}\end{equation}
Equivalently, with the right translation \(R_u(x)=xu\) and the partial right quotient
\begin{equation} u^{-1}_{R}(x)= \begin {cases} y, & x=yu,\\ \text {undefined}, & u\npreceq _{\mathrm {suffix}}x, \end {cases} \tag{19061}\end{equation}
we have
\begin{equation} u^{-1}_{R}(Au)=A, \qquad u^{-1}_{R}\circ R_u=\operatorname {id}_{\Sigma ^*}. \tag{19062}\end{equation}

Factorisation conditions.

\begin{equation} x=uy \iff u\preceq x \qquad \text {(prefix)}, \qquad x=yu \iff u\preceq _{\mathrm {suffix}}x \qquad \text {(suffix)}. \tag{19063}\end{equation}
The quotients are defined exactly when the factorisation exists — that is, on the image of the corresponding translation.

Categorical form. The left translation

\begin{equation} L_u:\Sigma ^*\to u\Sigma ^* \tag{19064}\end{equation}
is an isomorphism onto its image, with inverse
\begin{equation} u^{-1}_{L}:u\Sigma ^*\to \Sigma ^*, \tag{19065}\end{equation}
and symmetrically
\begin{equation} R_u:\Sigma ^*\to \Sigma ^*u, \qquad u^{-1}_{R}:\Sigma ^*u\to \Sigma ^*. \tag{19066}\end{equation}
\begin{equation} \boxed { \text {Concatenation} \;\xrightarrow {\text {restriction to image}}\; \text {partial inverse} \;\longrightarrow \; \text {left/right cancellation}. } \tag{19067}\end{equation}

Partition interpretation. The pattern is the same asymmetry as the calculus adjunction \(\blacktriangleleft \dashv \blacktriangleright \) (Subsection 293.2):




Direction Status Partition meaning



\(L_u,R_u\) (compose) total \(O\) and \(U\) combine freely
\(u^{-1}_L,u^{-1}_R\) (decompose) partial only if the factorisation exists
\(u^{-1}\circ L_u=\operatorname {id}\) exact compose-then-decompose recovers
\(L_u\circ u^{-1}\) only on \(u\Sigma ^*\) decompose-then-compose needs the prefix



Composition is unconditional; decomposition requires the factor to be present. This is \(dO=-dU\) read syntactically: joining two partitions is always possible, but splitting a given partition into a prescribed part and a remainder is possible only when that part is actually there. The monoid is cancellative not because inverses exist, but because the partial inverse — where defined — is exact. Length additivity \(|uv|=|u|+|v|\) simultaneously forbids global inverses and guarantees that the partial ones are unique.

292.4 The Chomsky hierarchy as successive partition constraints on \(\Sigma ^*\)

The four grammar types [255] are not an arbitrary taxonomy. They are the successive relaxations of a single constraint on how a rewrite rule may partition a string: each level admits strictly more of \(\Sigma ^*\) because it permits a weaker restriction on the left-hand side.

The hierarchy.

\begin{equation} \mathrm {Type}_3\subsetneq \mathrm {Type}_2\subsetneq \mathrm {Type}_1 \subsetneq \mathrm {Type}_0, \tag{19068}\end{equation}
\begin{equation} \mathrm {REG}\subsetneq \mathrm {CFL}\subsetneq \mathrm {CSL}\subsetneq \mathrm {RE}. \tag{19069}\end{equation}

Grammar definitions. With \(N\) the nonterminals, \(\Sigma \) the alphabet:

\begin{align} \mathrm {Type}_3 &= \bigl \{L(G): A\to aB,\ A\to a,\ A\to \varepsilon \bigr \}, \tag{19070}\\ \mathrm {Type}_2 &= \bigl \{L(G): A\to \alpha ,\ A\in N,\ \alpha \in (N\cup \Sigma )^*\bigr \}, \tag{19071}\\ \mathrm {Type}_1 &= \bigl \{L(G): \alpha \to \beta ,\ |\alpha |\leq |\beta |,\ \alpha \neq \varepsilon \bigr \}, \tag{19072}\\ \mathrm {Type}_0 &= \bigl \{L(G): \alpha \to \beta ,\ \alpha ,\beta \in (N\cup \Sigma )^*,\ \alpha \cap N\neq \varnothing \bigr \}. \tag{19073}\end{align}

Machine characterisations.

\begin{align} \mathrm {REG} &= \{L(M): M\text { DFA/NFA}\}, \tag{19074}\\ \mathrm {CFL} &= \{L(M): M\text { PDA}\}, \tag{19075}\\ \mathrm {CSL} &= \{L(M): M\text { LBA}\}, \tag{19076}\\ \mathrm {RE} &= \{L(M): M\text { TM}\}. \tag{19077}\end{align}

Containment.

\begin{equation} \Sigma ^*\supseteq \mathrm {RE}\supsetneq \mathrm {CSL} \supsetneq \mathrm {CFL}\supsetneq \mathrm {REG}, \tag{19078}\end{equation}
\begin{equation} \mathrm {Type}_n\subsetneq \mathrm {Type}_{n-1}, \qquad n=1,2,3. \tag{19079}\end{equation}

What each level constrains. Every rule \(\alpha \to \beta \) rewrites a factorisation \(x=u\,\alpha \,v \mapsto u\,\beta \,v\). The levels differ only in how much of the surrounding partition the rule may see:





Level Constraint on \(\alpha \) Memory Partition access




\(\mathrm {Type}_3\) single \(A\), \(\beta \) right-linear finite state no stored context
\(\mathrm {Type}_2\) single \(A\), \(\beta \) free stack (LIFO) one nested boundary
\(\mathrm {Type}_1\) \(|\alpha |\leq |\beta |\) linear tape bounded context
\(\mathrm {Type}_0\) \(\alpha \cap N\neq \varnothing \) unbounded tape full context




Partition reading.

The decisive break is between \(\mathrm {Type}_1\) and \(\mathrm {Type}_0\): \(\mathrm {Type}_1\) preserves the length ordering (\(|\alpha |\leq |\beta |\), conservation), while \(\mathrm {Type}_0\) abandons it. Every decidability property that survives up to \(\mathrm {CSL}\) and fails at \(\mathrm {RE}\) traces to this single condition. The hierarchy is thus a hierarchy of how much the rewrite is allowed to violate the conservation law \(dO=-dU\): strict conservation gives finite-state recognition, one-level nesting gives context-free, bounded non-contraction gives context-sensitive, and unrestricted contraction gives full Turing power at the cost of decidability.

292.5 Automata as partition-reading machines: from \(\delta \) to the Chomsky hierarchy

An automaton [254] is a machine that reads a word of \(\Sigma ^*\) one partition at a time and maintains a state. The Chomsky hierarchy is exactly the hierarchy of how much partition history the machine may store: none (finite state), one nested level (stack), a bounded amount (linear tape), or unbounded (Turing tape).

Basic objects.

\begin{equation} \Sigma , \qquad \Sigma ^*, \qquad \varepsilon , \qquad L\subseteq \Sigma ^*. \tag{19080}\end{equation}
A language is a subset of the free monoid — a predicate on finite partitions.

Finite automaton (DFA).

\begin{equation} M=(Q,\Sigma ,\delta ,q_0,F), \qquad \delta :Q\times \Sigma \to Q. \tag{19081}\end{equation}
The transition extends to words by recursion on concatenation:
\begin{equation} \delta ^*:Q\times \Sigma ^*\to Q, \qquad \delta ^*(q,\varepsilon )=q, \qquad \delta ^*(q,wa)=\delta \bigl (\delta ^*(q,w),a\bigr ), \tag{19082}\end{equation}
\begin{equation} L(M)=\{\,w\in \Sigma ^*:\delta ^*(q_0,w)\in F\,\}. \tag{19083}\end{equation}
Note that \(\delta ^*\) is defined by the same recursion as \(\operatorname {val}_2\): base case \(\varepsilon \), step case one appended letter. The machine has no memory beyond \(q\) — each partition step overwrites the previous.

Pushdown automaton (PDA).

\begin{equation} M=(Q,\Sigma ,\Gamma ,\delta ,q_0,Z_0,F), \qquad \delta :Q\times (\Sigma \cup \{\varepsilon \})\times \Gamma \to \mathcal {P}(Q\times \Gamma ^*), \tag{19084}\end{equation}
\begin{equation} L(M)=\{\,w\in \Sigma ^*:M\vdash ^*_{w}\text {accept}\,\}. \tag{19085}\end{equation}
The stack \(\Gamma ^*\) is itself a free monoid: the machine records nested partition boundaries in LIFO order, which is exactly one level of \(O\sqcup U\) nesting.

Turing machine (TM).

\begin{equation} M=(Q,\Sigma ,\Gamma ,\delta ,q_0,q_a,q_r), \qquad \delta :Q\times \Gamma \to Q\times \Gamma \times \{L,R\}, \tag{19086}\end{equation}
\begin{equation} L(M)=\{\,w\in \Sigma ^*:M(w)\!\downarrow \,=\mathrm {accept}\,\}. \tag{19087}\end{equation}
The tape is an unbounded \(\Gamma ^*\) with a movable head: full read/write access to the entire partition record. The linear bounded automaton (LBA) is the same machine with the tape restricted to \(O(|w|)\) cells.

Equivalences and strict inclusions.

\begin{equation} \mathrm {DFA}\subsetneq \mathrm {NFA}\equiv \mathrm {REG}, \tag{19088}\end{equation}
where \(\subsetneq \) is strict as machines (an NFA may need exponentially fewer states) but the recognised classes coincide by the subset construction. The language classes are strictly nested:
\begin{equation} \mathrm {REG}\subsetneq \mathrm {CFL}\subsetneq \mathrm {CSL} \subsetneq \mathrm {RE}, \tag{19089}\end{equation}
\begin{equation} \Sigma ^*\supseteq \mathrm {RE}\supsetneq \mathrm {CSL} \supsetneq \mathrm {CFL}\supsetneq \mathrm {REG}. \tag{19090}\end{equation}

Kleene’s theorem [253].

\begin{equation} \mathrm {DFA}\;\Longleftrightarrow \;\mathrm {NFA} \;\Longleftrightarrow \;\text {Regular Expression}. \tag{19091}\end{equation}
Three descriptions — state machine, nondeterministic machine, algebraic expression — of the same class.

Closure operations.

\begin{equation} L_1\cup L_2, \qquad L_1\cap L_2, \qquad L_1^{\,c}, \qquad L_1L_2, \qquad L^*, \tag{19092}\end{equation}
with the Kleene star defined by iterated concatenation:
\begin{equation} L^*=\bigcup _{n\geq 0}L^n, \qquad L^0=\{\varepsilon \}, \qquad L^{n+1}=L\,L^n. \tag{19093}\end{equation}
The Boolean operations \(\cup ,\cap ,(\cdot )^c\) are the partition operations of the free monoid lifted to sets of words: \(\cup \) and \(\cap \) are the union and intersection of the partition, \((\cdot )^c\) is the exchange \(O\leftrightarrow U\). Concatenation \(L_1L_2\) and star \(L^*\) are the monoid operations lifted setwise.

Machine hierarchy as memory of the partition.





Machine Memory structure Class Partition history




DFA/NFA finite \(Q\) REG none (overwritten)
PDA stack \(\Gamma ^*\) (LIFO) CFL one nested level
LBA tape, \(O(|w|)\) cells CSL bounded record
TM unbounded tape RE full record




The memory structure of each machine is itself a free monoid: the stack is \(\Gamma ^*\) read LIFO, the tape is \(\Gamma ^*\) with a head. What distinguishes the levels is not the alphabet but how much of the partition record survives each step. A DFA overwrites its state at every letter, so no history is kept; a PDA keeps a LIFO record, matching exactly the nesting of one \(O\sqcup U\) boundary; an LBA keeps a record bounded by the input length — the syntactic form of the non-contracting condition \(|\alpha |\leq |\beta |\); a TM keeps everything and pays for it with undecidability.

Automata theory is therefore the operational side of the same structure: languages are predicates on \(\Sigma ^*\), machines are partition readers, and the Chomsky hierarchy measures how much of the partition history a reader is permitted to retain.