How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Attention, transformer universality, and sequence limits — Examples
1 · Prerequisites
- Areas of Elementary Plane Figures
- Attention, transformer universality, and sequence limits
- Binary Operations, Monoids, Groups and Subgroups
- Compactness
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Countability and Uncountability
- Feedforward networks and single-hidden-layer universality
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Finite Probability and the Probabilistic Method
- Finite Probability Spaces and Random Variables
- Foundations of the Real Numbers for Analysis
- Graphs, Walks and Connectivity
- Lebesgue Measure on Euclidean Space
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Measures and Their Basic Properties
- Metric Spaces
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Order, Zorn's Lemma, and the Axiom of Choice
- Outer Measure and the Caratheodory Extension Theorem
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Series: Convergence and the Nonnegative Tests
- Sigma Algebras and Borel Sets
- Subspaces, Products, and Quotients
- Suprema and Infima
- The Riemann Integral in Rᵐ and Jordan Content
- The Riemann Integral: Definition and Integrability
- The Topology of Euclidean Space
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Logical flowchart
3 · Definitions, theorems and proofs
None yet.
4 · Examples, counterexamples and false statements
Position-free versus position-encoded token order
Example
Assume the Axiom of Countable Choice. Let and define the constant ordered-output map . A position-free unmasked self-attention stack followed by shared tokenwise maps must permute its two output entries when the two input tokens are exchanged, whereas a trainable positional matrix can distinguish the first and second token positions. On the compact square , the position-encoded fixed-length theorem therefore approximates in integrated error for every .
Example references
Yun et al., Appendix A: permutation equivariance without positional encoding
Yun et al., Theorem 3: trainable positional encodings on a compact domain
The Axiom of Countable Choice (): the inherited premise for the local integrated-Lebesgue approximation theorem.
Facts & Assumptions
Given: Countable Choice, the two-token input , the coordinate-swap permutation , the constant map , and position-free or position-encoded Transformer stacks as in the Example.
The row-token theorem gives . In the column-token convention used here, define ; transposition gives for every unmasked position-free stack with shared tokenwise maps (Position-free unmasked self-attention is permutation equivariant).
Assuming Countable Choice, for fixed , , and , a two-head, head-size-one Transformer with width-four ReLU feedforward layers, no layer normalization, and a trainable positional matrix approximates every continuous map on a compact domain in integrated error, for (Fixed-width Transformer approximation on compact domains).
Proof
Let swap the two columns. Since is constant, , while . Hence , so is not permutation equivariant. By [F1], no position-free stack can equal on both and .
The map is continuous on , which is compact, and meet the size hypotheses. Under the assumed Countable Choice, the position-encoded compact-domain branch of [F2] with any prescribed gives a position-encoded stack whose integrated error from is less than . Thus positional tags remove the equivariance restriction for this fixed-length approximation problem.
A two-token causal next-token mask
Example
For two scalar token states and , take query and key projections equal to zero, value projection equal to the identity, and the causal additive mask
Row-softmax attention assigns the first query all weight to token and the second query equal weight to tokens and , so the output states are .
Example references
Facts & Assumptions
Given: Two scalar token states, zero query and key projections, identity value projection, row softmax, and the causal mask in the Example.
Masked attention replaces disallowed logits by , requires at least one allowed key in each row, and normalizes each allowed row by softmax (Scaled dot-product attention).
The decoder's causal mask permits key positions for query position (Positional encodings and causal masks).
Verification
Both unmasked logits are zero. In the first row the mask leaves logits , whose row-softmax is ; multiplying by values gives output .
In the second row the mask leaves logits , whose row-softmax is ; multiplying by gives output . Both rows have at least one allowed key, so the masked attention is defined.
Fixed-length universality and unbounded sequence limits
Example
Assume the Axiom of Countable Choice and fix an integer maximum length . For each individual integer length , the fixed-length theorem concerns a compact-domain approximation problem and permits a Transformer chosen for that particular and error tolerance. The hard-attention language limit instead fixes one finite-depth model, with one set of parameter maps independent of length, and rules out exact recognition of PARITY and 2DYCK for all sufficiently long strings. For each fixed source parameter , the soft-attention parity result fixes one model satisfying the one-symbol influence hypotheses across lengths and bounds the limit inferior of its expected cross-entropy on the stated parity source from below by the sharp unigram chance entropy, attained by a constant predictor. These statements concern different quantifiers and different notions of approximation.
Example references
Yun et al., Theorems 2–3: fixed-length integrated approximation
Hahn, §5, Corollary 2: fixed-depth hard-attention language limits
The Axiom of Countable Choice (): the inherited premise for the local integrated-Lebesgue approximation theorem.
Facts & Assumptions
Given: Countable Choice, an integer cutoff , the fixed-length Transformer approximation theorem, and the fixed-model hard-attention PARITY theorem.
Under Countable Choice, at each fixed , , and , continuous compactly supported permutation-equivariant maps admit integrated approximants with two heads of size one, width-four ReLU feedforward layers, and no layer normalization; trainable positions give the compact-domain non-equivariant version (Fixed-width Transformer approximation on compact domains).
No single fixed finite-depth hard-attention model with parameters fixed independently of input length recognizes PARITY or 2DYCK on all sufficiently long strings (Fixed-depth hard attention cannot recognize PARITY or 2DYCK).
For the stated parity next-symbol distribution with fixed source parameter , every fixed soft-attention predictor satisfying the one-symbol influence hypotheses has , where in the symbol order . The constant predictor attains at every length; convergence of the expected loss for an arbitrary fixed predictor is not asserted (Fixed soft attention has no parity advantage over the unigram predictor).
Verification
Under Countable Choice, apply [F1] separately for each integer , each fixed , each , and each chosen positive tolerance, to a target satisfying its corresponding continuity, compactness, and symmetry hypotheses. The theorem's existential network may depend on both and the tolerance; it gives no shared parameter set or depth bound uniform in .
[F2] fixes one model across all lengths and asserts failure of exact recognition for sufficiently large PARITY and 2DYCK inputs. [F3] likewise fixes one soft model and gives a liminf lower bound for expected cross-entropy on a specified source. Neither statement contradicts the separate fixed-length approximation claims, whose metric is integrated error and whose parameters may vary with length.