File size: 81,987 Bytes
49fb18d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 | % ============================================================================
% THE GATES NORMALIZATION CONSTRAINT & THE META-INVERTED SUM
% Structural Geometry of the Probability Simplex, and the Source of
% All Language Models
% ============================================================================
\documentclass[11pt]{article}
\usepackage[margin=1.0in]{geometry}
\usepackage{amsmath, amssymb, amsthm}
\usepackage{mathtools}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{array}
\usepackage{xcolor}
\usepackage{listings}
\usepackage{fancyhdr}
\usepackage{hyperref}
\usepackage{setspace}
% --- Brand accent (Lean blue) ---
\definecolor{leanblue}{RGB}{22,101,191}
\definecolor{leandark}{RGB}{12,52,110}
\definecolor{leangray}{RGB}{90,100,115}
\hypersetup{
colorlinks=true,
linkcolor=leanblue,
citecolor=leanblue,
urlcolor=leanblue,
pdftitle={The Gates Normalization Constraint: A Prolegomenon to Lean 5},
pdfauthor={Ahmad Ali Parr},
pdfsubject={Structural geometry of the probability simplex}
}
% --- Unicode-aware fonts for embedded evidence / Lean listings ---
\usepackage{fontspec}
\setmonofont{Consolas}[Scale=0.85]
\setmainfont{Cambria}
\setsansfont{Calibri}
% --- Listing style ----------------------------------------------------------
\lstset{
basicstyle=\ttfamily\small,
breaklines=true,
breakatwhitespace=false,
columns=fullflexible,
frame=single,
rulecolor=\color{gray!40},
backgroundcolor=\color{gray!5},
showstringspaces=false,
tabsize=2
}
\lstdefinelanguage{lean}{
keywords={theorem,lemma,example,def,noncomputable,structure,namespace,end,by,
intro,intros,exact,have,show,assume,assumption,open,import,inductive,
class,instance,abbrev,section,variable,variables,let,fun,if,then,else,
match,calc,conv},
morekeywords={[2]Type,Prop,Real,NNReal,ENNReal,Nat,Int,Rat,Bool,Fin,Set,Finset,
List,Option,String},
sensitive=true,
morecomment=[l]{--},
morecomment=[s]{-/-}{-/},
morestring=[b]",
literate={`}{$\lambda$}1
}
% --- Theorem environments ----------------------------------------------------
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{remark}[theorem]{Remark}
\newcommand{\simplex}[1]{\Delta^{#1}}
\newcommand{\RR}{\mathbb{R}}
\newcommand{\NN}{\mathbb{N}}
\newcommand{\Zset}{\mathbb{Z}}
\newcommand{\softmax}{\mathrm{softmax}}
\newcommand{\logZ}{\log Z}
\title{\textbf{The Gates Normalization Constraint \& the Meta-Inverted Sum}\\
\large Structural Geometry of the Probability Simplex,\\
and the Source of All Language Models}
\author{
Ahmad Ali Parr\\
SnapKitty Collective \& SNAPKITTYWEST\\
\texttt{ahmedparr93@gmail.com}
}
\date{July 2026}
% --- Running heads (after the cover) -----------------------------------------
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\fancyhead[L]{\textcolor{leangray}{\small\textsc{Gates Normalization Constraint}}}
\fancyhead[R]{\textcolor{leangray}{\small\textsc{Prolegomenon to Lean 5}}}
\fancyfoot[L]{\textcolor{leangray}{\small SnapKitty Sovereign Compute}}
\fancyfoot[R]{\textcolor{leangray}{\small Page \thepage}}
% ============================================================================
\begin{document}
% ============================================================================
% COVER PAGE
% ============================================================================
\thispagestyle{empty}
\begin{titlepage}
\setlength{\parindent}{0pt}
\vspace*{-0.5cm}
{\color{leanblue}\rule{\textwidth}{2pt}}
\vspace{0.4cm}
\begin{center}
{\color{leangray}\small\bfseries\MakeUppercase{%
SnapKitty Sovereign Compute \quad\textbullet\quad Technical Report}}
\\[0.15cm]
{\color{leanblue}\Large\bfseries\MakeUppercase{Prolegomenon to Lean\,5}}
\\[0.1cm]
{\color{leangray}\small Lean\,4 foundations \textbullet\ Machine-checked \\
\textbullet\ With a view toward the next generation of verified mathematics}
\end{center}
\vspace{1.2cm}
\begin{center}
{\color{leandark}\bfseries\fontsize{26}{30}\selectfont
The Gates Normalization Constraint\\[0.1cm]
\&\ the Meta-Inverted Sum}
\\[0.5cm]
{\color{leangray}\large Structural Geometry of the Probability Simplex,\\[0.1cm]
and the Source of All Language Models}
\end{center}
\vspace{1.0cm}
{\color{leanblue}\rule{\textwidth}{1pt}}
\vspace{0.5cm}
\begin{center}
{\bfseries Ahmad Ali Parr}\\[0.15cm]
{\color{leangray}SnapKitty Collective \textbullet\ SNAPKITTYWEST\\
Sovereign Compute Architecture\\
\texttt{ahmedparr93@gmail.com}}
\end{center}
\vspace{0.6cm}
% --- Abstract box on the cover ---
\noindent\fbox{\parbox{0.97\textwidth}{%
\small
\paragraph{Abstract.}
We present a structural, rather than emergent, account of the single most
pervasive law in modern machine learning: the probability normalization
constraint $\sum_i P(w_i\mid \mathrm{context}) = 1$ at the heart of every
autoregressive language model. We show this constraint is not produced by the
vocabulary, the network, or softmax: it is \emph{the defining equation of the
probability simplex $\simplex{n}$} and therefore holds independently of any
token. The ``$1$'' was always there --- the structural invariant, the affine
mass-one level set, the fiber of the sum map at $1$.
Working in Lean\,4 (mathlib) we prove, with no \texttt{sorry}, that softmax
always lands on $\simplex{n}$ ($n\ge 1$); that $n=0$ is degenerate (empty sum
$0$, structural invariant $1$); that $n=1$ is forced; and that the quantity
orthogonal to the constraint --- the \emph{meta-inverted sum} --- is exactly the
log-partition $\log Z = \log\sum_i e^{\ell_i}$. We establish the Legendre
duality between primal (the simplex) and dual (the log-partition), recover the
maximum-entropy Lagrange multiplier $\lambda = 1 - \ln n$, and exhibit the three
limits $n\to 0,\, n=1,\, n\to\infty$. Every quantitative claim is reproduced by
a self-contained standard-library Python script whose output is embedded
verbatim. The result reframes language modeling as \emph{navigation on a
manifold}, and offers a formal basis for what a verified, simplex-native
``Lean\,5'' mathematics of machine learning could look like.
}}
\vspace{0.8cm}
{\color{leangray}\small\noindent
\textsc{Report}: SNAPKITTYWEST-TR-2026-GNC-01 \quad\textbullet\quad
\textsc{Version}: 1.0 \quad\textbullet\quad \textsc{July 2026}\\[0.1cm]
\textsc{Seal}: \texttt{ce9aa8ff\ldots ed2371} \quad\textbullet\quad
\textsc{License}: Sovereign Source License v1.0
}
\vspace{0.3cm}
{\color{leanblue}\rule{\textwidth}{2pt}}
\vfill
\begin{center}
{\color{leangray}\itshape ``Tokens are coordinate charts. The simplex is the law. The `$1$' was always there.''}
\end{center}
\end{titlepage}
\cleardoublepage
\tableofcontents
\newpage
\section*{One-Paragraph Summary}
\addcontentsline{toc}{section}{One-Paragraph Summary}
The normalization constraint $\sum_i P_i=1$ that every language model obeys is
not produced by the softmax nonlinearity or by the vocabulary; it is the defining
equation of the probability simplex $\simplex{n}$, and therefore holds
structurally, independently of any token. We prove this in Lean~4 (no
\texttt{sorry}), identify the quantity orthogonal to the constraint --- the
\emph{meta-inverted sum} --- as the log-partition function $\log Z$, establish
its Legendre duality with the simplex, recover the maximum-entropy Lagrange
multiplier $\lambda=1-\ln n$, and reproduce every quantitative claim with a
zero-dependency script whose output is embedded verbatim. Tokens are coordinate
charts; the simplex is the law; the ``$1$'' was always there.
\newpage
% ============================================================================
\section{Introduction}
\label{sec:intro}
\subsection{Motivation: the law behind every next-token prediction}
\label{sec:motivation}
A modern large language model (LLM) is, at the moment of prediction, a function
that consumes a context $c$ and emits a probability distribution over the
vocabulary $V = \{w_1,\dots,w_{|V|}\}$:
\begin{equation}
P(\cdot\mid c)\;:\; w_i \longmapsto \frac{\exp(\ell_i)}{\sum_j \exp(\ell_j)},
\qquad \ell_i = \mathrm{logit}(w_i\mid c).
\end{equation}
The denominator $\sum_j \exp(\ell_j)$, often called the \emph{partition
function} or \emph{logit normalizer}, exists for one reason only: to guarantee
\begin{equation}
\sum_{i=1}^{|V|} P(w_i\mid c) = 1.
\end{equation}
This is the \textbf{Gates Normalization Constraint} (GNC). It is so ubiquitous
that it is almost never questioned. But it should be. Where does the $1$ come
from? The standard answer --- ``softmax divides by the sum so that probabilities
add to one'' --- is circular: it explains the constraint by appealing to an
operation whose \emph{purpose} is to satisfy the constraint.
\subsection{The thesis: structural, not emergent}
\label{sec:thesis}
We argue for a sharper claim:
\begin{quote}
\textbf{The normalization constraint is structural, not emergent.} The
probability simplex $\simplex{n}$ \emph{is} the law; tokens are merely
coordinate charts on its surface. If the vocabulary were to shrink to zero
words --- if no symbols existed at all --- the sum would \emph{still} equal
$1$. The $1$ does not arise from the words. It was always there.
\end{quote}
This is not mysticism. It is the statement that $\simplex{n}$ is defined as the
fiber of the sum functional at $1$:
\[
\simplex{n} \;:=\; \Bigl\{ p\in \RR^n_{\ge 0} \;:\; \sum_{i=1}^n p_i = 1 \Bigr\}.
\]
To be a point of $\simplex{n}$ \emph{is} to satisfy the constraint. The
constraint is therefore not a property that softmax \emph{imposes}; it is the
shape of the space the model lives in.
\subsection{Contributions}
\label{sec:contributions}
\begin{enumerate}
\item A geometric reformulation of next-token prediction as \emph{location on a
simplex}, with vocabulary demoted to a coordinate chart $V : \mathrm{Fin}(n)\to
\mathrm{String}$.
\item A machine-checked Lean~4 proof (Section~\ref{sec:lean}) that
$\softmax$ maps $\RR^n$ into the relative interior of $\simplex{n}$ for every
$n\ge 1$ (no \texttt{sorry}).
\item A precise treatment of the degenerate cases: the empty vocabulary
($n=0$, Section~\ref{sec:empty}) and the single-token vocabulary ($n=1$,
Section~\ref{sec:n1}).
\item Identification of the \emph{meta-inverted sum} as the log-partition
function $\log Z$, the Legendre dual of the simplex (Section~\ref{sec:meta}).
\item Recovery of the maximum-entropy critical point and its Lagrange
multiplier $\lambda = 1 - \ln n$ (Section~\ref{sec:maxent}).
\item A complete, independently executable reproduction (Section~\ref{sec:repro}
and the Evidence Appendix) verifying every quantitative claim to within
$10^{-12}$.
\end{enumerate}
\subsection{Why this matters for language models}
\label{sec:why}
If prediction is navigation on $\simplex{n}$, then:
\begin{itemize}
\item \textbf{Training} is regression of a point on a manifold, not
classification into a vocabulary.
\item \textbf{Temperature, top-$k$, top-$p$} are operations in the tangent /
coordinate system of the simplex, not edits to ``which word wins''.
\item \textbf{Cross-entropy loss} is the KL divergence from the data point to
the predicted point on the same manifold.
\item \textbf{Emergent abilities} may be phase transitions in the geometry of
the navigated simplex as $n$ grows, not properties of individual tokens.
\end{itemize}
We develop the formal backbone for these interpretations in the sections that
follow.
% ============================================================================
\section{The Probability Simplex as the Fundamental Object}
\label{sec:simplex}
\subsection{Definition and basic properties}
\label{sec:simplex-def}
\begin{definition}[Probability simplex]
For $n\in\NN$, the \emph{probability simplex of dimension $n-1$} (we use the
convention $\simplex{n}\subset\RR^n$) is
\[
\simplex{n} := \Bigl\{ p : \mathrm{Fin}(n)\to\RR \;\big|\;
\forall i,\; p_i\ge 0,\; \sum_{i:\mathrm{Fin}(n)} p_i = 1 \Bigr\}.
\]
\end{definition}
\begin{remark}
We index outcomes by $\mathrm{Fin}(n)$ so that the parameter $n$ counts the
\emph{number of outcomes}; the geometric simplex then has dimension $n-1$. This
is the standard convention: the standard $(n-1)$-simplex is the convex hull of
$n$ vertices, and its points are probability vectors in $\RR^n$. The single
linear constraint $\sum_i p_i = 1$ removes one degree of freedom from $\RR^n$.
The non-negativity constraints $p_i\ge 0$ cut out the \emph{interior and
boundary} of this convex polytope.
\end{remark}
\subsection{The softmax retraction}
\label{sec:softmax-retract}
The map that takes an arbitrary logit vector $\ell\in\RR^n$ to a probability
vector is the softmax:
\[
\softmax(\ell)_i \;=\; \frac{e^{\ell_i}}{\sum_j e^{\ell_j}}.
\]
We view $\softmax : \RR^n \to \simplex{n}$ as a map into the relative interior
of the simplex, collapsing $\RR^n$ along the all-ones direction. It is invariant
under uniform shifts $\ell_i \mapsto \ell_i + c$ (Lemma~\ref{lem:shift}), because
the shift is absorbed entirely into the denominator.
\subsection{The structural invariant}
\label{sec:structural}
The key definitional fact is that \emph{being on the simplex already means the
constraint holds}. There is nothing for softmax to ``enforce'' beyond projecting
the point onto the constraint hyperplane. Formally:
\begin{theorem}[Gates Normalization]
\label{thm:gates}
For every $n\ge 1$ and every $\ell\in\RR^n$,
\[
\sum_{i=1}^{n} \softmax(\ell)_i \;=\; 1.
\]
\end{theorem}
\begin{proof}[Proof sketch]
Let $Z = \sum_j e^{\ell_j}$. Then
\[
\sum_i \softmax(\ell)_i
= \sum_i \frac{e^{\ell_i}}{Z}
= \frac{1}{Z}\sum_i e^{\ell_i}
= \frac{Z}{Z} = 1,
\]
provided $Z\neq 0$. For $n\ge 1$, $Z>0$ because each term $e^{\ell_i}>0$ and
there is at least one term. (The $n=0$ case is degenerate; see
Section~\ref{sec:empty}.) A fully formalized version appears as
\texttt{softmax\_normalization} in Section~\ref{sec:lean}.
\end{proof}
% ============================================================================
\section{The Empty Vocabulary: the Case $n=0$}
\label{sec:empty}
\subsection{What happens when there are no tokens?}
\label{sec:empty-what}
The most revealing test of the structural thesis is the limit in which the
vocabulary vanishes. If the constraint were emergent from tokens, removing all
tokens should remove the constraint. It does not.
\begin{itemize}
\item The \emph{empty sum} $\sum_{i:\mathrm{Fin}(0)} p_i$ is, by the
definitions of summation over an empty index set, exactly $0$.
\item The \emph{structural invariant} --- the defining equation of the simplex
$\sum_i p_i = 1$ --- therefore \emph{cannot be satisfied} by any point over an
empty vocabulary. The type $\simplex{0}$ (points with $\sum_{i:\mathrm{Fin}(0)}
p_i = 1$) is \emph{empty}: the only possible sum is $0 \neq 1$. The ``$1$''
survives not as an attainable mass but as the \emph{axiom} that must hold --- the
requirement with no coordinate to carry it.
\end{itemize}
The \emph{gap} between the empty sum ($0$) and the structural invariant ($1$)
is precisely the quantity we call the meta-inverted sum at $n=0$. It is the
residue of the constraint when no coordinate exists to carry it. In the
language of the dual (Section~\ref{sec:meta}), this limit corresponds to
$\log Z \to -\infty$: the constraint becomes \emph{infinitely rigid}.
\subsection{Formal statement}
\label{sec:empty-formal}
In Lean (Section~\ref{sec:lean}) we state this as:
\begin{lstlisting}[language=lean]
theorem empty_vocabulary_normalization :
(Finset.sum (Finset.univ : Finset (Fin 0)) fun i => (0 : RR)) = 0 := by simp
\end{lstlisting}
The empty sum is $0$; consequently there is \emph{no} point of $\simplex{0}$
(the constraint $\sum_i p_i = 1$ would read $0 = 1$, which is unsatisfiable).
The ``$1$ that was always there'' is the axiom, not a sum that can be attained.
% ============================================================================
\section{The Single-Token Vocabulary: the Case $n=1$}
\label{sec:n1}
\subsection{The prediction is forced}
\label{sec:n1-forced}
When the vocabulary has exactly one token, the simplex $\simplex{1}$ is a single
point: the vector $(1)$. No matter what the logit $\ell_0$ is,
\[
\softmax([\ell_0])_0 = \frac{e^{\ell_0}}{e^{\ell_0}} = 1.
\]
The model has \emph{zero degrees of freedom}. All information that could have
been carried by the logit is \emph{consumed by the normalization}. This is the
content of:
\begin{theorem}[Forced prediction at $n=1$]
\label{thm:n1}
For every $\ell_0\in\RR$, $\softmax([\ell_0]) = [1]$.
\end{theorem}
\noindent The formal Lean counterpart is \texttt{softmax\_n1\_constant}.
\subsection{Interpretation}
\label{sec:n1-interp}
At $n=1$ the log-partition is $\log Z = \ell_0$. The entire logit value becomes
the meta-inverted sum (the free energy of being forced). This is the opposite
extreme from $n=0$: there the constraint is infinitely rigid; here the
constraint is trivially satisfied and the logit has no expressive power
whatsoever.
% ============================================================================
\section{The Meta-Inverted Sum}
\label{sec:meta}
\subsection{The ambient split}
\label{sec:meta-split}
The ambient space $\RR^n$ does not collapse onto the simplex; it splits as
\[
\RR^n \;=\; \underbrace{\mathrm{span}\{\mathbf{1}\}}_{\text{normal to constraint}}
\;\oplus\;
\underbrace{\Bigl\{v : \sum_i v_i = 0\Bigr\}}_{\text{tangent to }\simplex{n}}.
\]
The normalization constraint $\sum_i p_i = 1$ defines a hyperplane whose
\emph{normal vector} is the all-ones vector $\mathbf{1} = (1,\dots,1)$.
\subsection{Definition of the meta-inverted sum}
\label{sec:meta-def}
\begin{definition}[Meta-inverted sum]
Given a logit vector $\ell\in\RR^n$, the \emph{meta-inverted sum} is
\[
\Lambda(\ell) \;:=\; \log Z(\ell)
\;=\; \log\!\Bigl(\sum_{i=1}^n e^{\ell_i}\Bigr).
\]
It is the projection of $\ell$ onto the all-ones direction, measured in the
exponential coordinate system. Equivalently, it is the Lagrange multiplier that
enforces $\sum_i P_i = 1$ in the maximum-entropy derivation of
Section~\ref{sec:maxent}.
\end{definition}
\subsection{Why ``inverted''?}
\label{sec:meta-why}
The word \emph{inverted} signals that this quantity lives \emph{orthogonal} to
the vocabulary coordinates. It is not a property of any token; it is the price
(in free-energy terms) of the constraint itself. As $n\to 0$ it diverges to
$-\infty$ (infinite stiffness); at $n=1$ it equals the lone logit; as
$n\to\infty$ it grows like $\ln n + H$ (entropy dominates).
% ============================================================================
\section{The Log-Partition and the Dual}
\label{sec:logpart}
\subsection{The fundamental identity}
\label{sec:logpart-id}
The softmax can be rewritten entirely in terms of the meta-inverted sum:
\[
\softmax(\ell)_i
= \frac{e^{\ell_i}}{Z}
= \exp\!\bigl(\ell_i - \log Z\bigr)
= \exp\!\bigl(\ell_i - \Lambda(\ell)\bigr).
\]
This identity makes the duality explicit: the primal point $P$ is obtained from
the logits by \emph{subtracting} the dual variable $\Lambda(\ell)$.
\begin{theorem}[Log-partition enforces normalization]
\label{thm:logpart}
For every $n\ge 1$ and $\ell\in\RR^n$,
\[
\sum_{i=1}^n \exp\!\bigl(\ell_i - \Lambda(\ell)\bigr) = 1.
\]
\end{theorem}
\begin{proof}
$\sum_i e^{\ell_i}/Z = Z/Z = 1$ since $Z>0$ for $n\ge 1$.
\end{proof}
\subsection{Shift invariance = absorption by the dual}
\label{sec:meta-shift}
Because $\Lambda(\ell+c\mathbf{1}) = \Lambda(\ell) + c$, a uniform shift of the
logits is invisible to the predicted distribution:
\[
\softmax(\ell + c\mathbf{1}) = \softmax(\ell).
\]
All global information in the logits is carried by $\Lambda$, the meta-inverted
sum.
% ============================================================================
\section{Legendre Duality: Simplex and Log-Partition}
\label{sec:legendre}
\subsection{The free energy}
\label{sec:legendre-free}
Define the (negative) free energy
\[
F(\ell) \;:=\; -\log Z(\ell) \;=\; -\Lambda(\ell).
\]
$F$ is a convex function of the logits (equivalently, the entropy
$H(P)=-\sum_i P_i\ln P_i$ is concave in $P$). The pair
\[
(\text{primal } P = \softmax(\ell)\in\simplex{n})
\quad\Longleftrightarrow\quad
(\text{dual } F = -\log Z)
\]
is a Legendre transform pair.
\subsection{Gradient relation}
\label{sec:legendre-grad}
A defining property of the Legendre transform is
\[
\frac{\partial F}{\partial \ell_i}
= -P_i
= -\softmax(\ell)_i.
\]
This is verified numerically in Section~\ref{sec:repro} (test~9): the finite
difference of $F$ along a direction equals $-P$ to within $10^{-4}$.
% ============================================================================
\section{Maximum Entropy and the Lagrange Multiplier}
\label{sec:maxent}
\subsection{The variational problem}
\label{sec:maxent-var}
Maximize the Shannon entropy
\[
H(p) = -\sum_{i=1}^n p_i \ln p_i
\]
subject to $\sum_i p_i = 1$, $p_i\ge 0$. Form the Lagrangian
\[
\mathcal{L}(p,\lambda) = -\sum_i p_i\ln p_i + \lambda\Bigl(\sum_i p_i - 1\Bigr).
\]
Stationarity $\partial\mathcal{L}/\partial p_i = 0$ gives
\[
-(\ln p_i + 1) + \lambda = 0
\quad\Longrightarrow\quad
p_i = e^{\lambda - 1}.
\]
All $p_i$ are equal, so the optimum is the \emph{uniform} distribution
$p_i = 1/n$. Summing: $n e^{\lambda-1} = 1 \Rightarrow \lambda = 1 - \ln n$.
\begin{theorem}[Max-entropy critical point]
\label{thm:maxent}
The unique maximum of $H$ on $\simplex{n}$ is $p_i = 1/n$, with Lagrange
multiplier $\lambda = 1 - \ln n$.
\end{theorem}
\noindent The sign convention in some texts writes the Lagrangian with
$-\lambda$; then $\lambda = \ln n - 1$. The magnitude is the same.
\subsection{Connection to the meta-inverted sum}
\label{sec:maxent-meta}
For constant logits $\ell_i = c$, the softmax yields the uniform distribution
(Theorem~\ref{thm:maxent} realized by the model), and the log-partition is
\[
\Lambda([c,\dots,c]) = \log(ne^c) = c + \ln n.
\]
Thus the meta-inverted sum decomposes into a logit contribution $c$ and a
vocabulary-size contribution $\ln n$ --- exactly the Lagrange multiplier
structure.
More generally, for \emph{any} predicted distribution $p=\softmax(\ell)$ the
identity is \emph{exact}, not approximate:
\[
\Lambda(\ell) \;=\; \log Z(\ell)
\;=\; \sum_i p_i\,\ell_i \;+\; H(p)
\;=\; \mathbb{E}_{p}[\ell] + H(p),
\]
where $H(p)=-\sum_i p_i\ln p_i$. (Proof: $p_i=e^{\ell_i-\Lambda}$, so
$\ell_i=\Lambda+\ln p_i$ and $\mathbb{E}_p[\ell]=\sum_i p_i(\Lambda+\ln p_i)
=\Lambda - H(p)$.) For the uniform case $p_i=1/n$ this reduces to
$\Lambda = c + \ln n$, since $\mathbb{E}_p[\ell]=c$ and $H(p)=\ln n$.
% ============================================================================
\section{The Three Limits}
\label{sec:limits}
We collect the behavior of the meta-inverted sum $\Lambda$ across the three
regimes.
\begin{longtable}{@{}lll@{}}
\toprule
Regime & $\Lambda = \log Z$ & Interpretation \\
\midrule
$n\to 0$ & $\to -\infty$ & constraint infinitely rigid (degenerate axiom-1) \\
$n = 1$ & $= \ell_0$ & all logit info $\to$ normalization; prediction forced \\
$n\to\infty$ & $\sim \ln n + H$ & entropy dominates; free energy grows \\
\bottomrule
\caption{The three limits of the meta-inverted sum.}
\label{tab:limits}
\end{longtable}
\subsection{Limit $n\to 0$}
\label{sec:limit-0}
With constant logit $c=0$, $Z=n$ so $\Lambda = \ln n \to -\infty$ as
$n\to 0^+$. The constraint becomes absolutely stiff: no degrees of freedom
survive. This is the formal expression of the gap observed in
Section~\ref{sec:empty}.
\subsection{Limit $n=1$}
\label{sec:limit-1}
$\Lambda = \ell_0$; see Section~\ref{sec:n1}.
\subsection{Limit $n\to\infty$}
\label{sec:limit-inf}
For a fixed family of logits, $\Lambda = \ln\sum_i e^{\ell_i}$ grows like
$\ln n + H$ where $H$ is the entropy of the (normalized) exponentiated
logits. Numerical evidence in Section~\ref{sec:repro} (test~8c) shows $\Lambda$
tracking $\ln n + H$ closely for $n=10,\dots,10^4$.
% ============================================================================
\section{Connection to Language Models}
\label{sec:llm}
\subsection{Prediction as navigation on a manifold}
\label{sec:llm-nav}
We replace the vernacular ``the model picks the next token'' with the precise
statement: the model computes a \emph{location} $P\in\simplex{n}$; the token is
merely the label of the coordinate that happens to carry the largest mass. The
geometry is primary; the vocabulary is a chart.
\subsection{Training as manifold regression}
\label{sec:llm-train}
Cross-entropy training minimizes
\[
\mathcal{L} = -\sum_i y_i \ln P_i
\]
where $y$ is the one-hot data point on $\simplex{n}$ and $P$ is the predicted
point. This is the KL divergence $D_{\mathrm{KL}}(y\,\|\,P)$ (since $y$ is a
point, the entropy term is constant). Training is therefore regression of a
point on a manifold toward a target point on the same manifold.
\subsection{Temperature and sampling as coordinate operations}
\label{sec:llm-temp}
Temperature $T$ rescales the logits $\ell\mapsto \ell/T$, moving the predicted
point along a ray in logit space; top-$k$ / top-$p$ truncate the coordinate
chart before re-normalizing on a sub-simplex $\simplex{k}\subset\simplex{n}$.
All of these are intrinsic operations on the simplex, confirming that the
vocabulary is a coordinate artifact.
% ============================================================================
\section{Formalization in Lean 4}
\label{sec:lean}
\subsection{Status}
\label{sec:lean-status}
The standalone mathlib5 segment
\texttt{mathlib5/layers/hol/lean/Mathlib5/GatesNormalization.lean} proves the
following (no \texttt{sorry}):
\begin{longtable}{@{}llp{7.5cm}@{}}
\toprule
Theorem & Statement & Notes \\
\midrule
\texttt{softmax\_normalization} & $\sum_i \softmax(\ell)_i = 1$ & requires $n\ge 1$ \\
\texttt{softmax\_shift\_invariant} & $\softmax(\ell+c\mathbf{1})=\softmax(\ell)$ & dual absorbs shift \\
\texttt{softmax\_simplex\_of\_pos} & softmax builds a valid $\simplex{n}$ & $n\ge 1$ \\
\texttt{structural\_invariant} & $\sum_i p_i = 1$ by definition & on the simplex \\
\texttt{empty\_vocabulary\_normalization} & empty sum $=0$, axiom $=1$ & degenerate $n=0$ \\
\texttt{meta\_inverted\_decomposition} & $\RR^n = \parallel\oplus\perp$ split & centered $\perp$ \\
\texttt{centered\_sum\_zero} & $\sum_i \mathrm{centered}_i = 0$ & $n\neq 0$ \\
\texttt{log\_partition\_enforces\_normalization} & $\sum_i e^{\ell_i-\Lambda}=1$ & dual enforces constraint \\
\texttt{softmax\_n1\_constant} & $n=1$ prediction forced to $\{1\}$ & zero d.o.f. \\
\texttt{uniform\_is\_stationary} & uniform critical point, $\lambda=1-\ln n$ & max-entropy \\
\texttt{softmax\_uniform\_of\_const} & constant logits $\to$ uniform & \\
\texttt{log\_partition\_of\_const} & $\Lambda=c+\ln n$ for constant logits & free energy \\
\bottomrule
\caption{Formal theorems in the Lean 4 segment.}
\label{tab:lean}
\end{longtable}
\subsection{Excerpt: the core definitions and the key theorem}
\label{sec:lean-excerpt}
\begin{lstlisting}[language=lean, caption={Core definitions (excerpt).}]
structure Simplex (n : Nat) : Type where
coords : Fin n -> RR
nonneg : ∀ i, 0 ≤ coords i
sum_one : ∑ i : Fin n, coords i = 1
def softmax (n : Nat) (x : Fin n -> RR) : Fin n -> RR :=
fun i => exp (x i) / ∑ j : Fin n, exp (x j)
\end{lstlisting}
\begin{lstlisting}[language=lean, caption={softmax\_normalization (excerpt).}]
theorem softmax_normalization (n : Nat) (x : Fin n -> RR) (hn : 0 < n) :
∑ i : Fin n, softmax n x i = 1 := by
have hZ : ∑ j : Fin n, exp (x j) ≠ 0 := (sum_exp_pos n hn x).ne'
simp only [softmax]
rw [←Finset.sum_div]
exact div_self hZ
\end{lstlisting}
The full file is reproduced in Appendix~\ref{app:lean}.
% ============================================================================
\section{Reproduction Methodology}
\label{sec:repro}
\subsection{Self-contained script}
\label{sec:repro-script}
Every quantitative claim in this paper is verified by
\texttt{gates\_normalization\_repro.py}, a script that depends only on the
Python standard library (\texttt{math}, \texttt{sys}, \texttt{fractions}). It
runs nine independent tests:
\begin{enumerate}
\item \textbf{Softmax normalization} --- sums equal $1$ to $10^{-12}$ for
$n=2,3,5,10,100$.
\item \textbf{Empty vocabulary} --- empty sum $=0$, invariant $=1$, gap $=1$.
\item \textbf{Single token} --- softmax $=1$ for all logit values.
\item \textbf{Log-partition identity} --- $e^{\ell_i-\Lambda}=\softmax_i$.
\item \textbf{Shift invariance} --- $\softmax(\ell+c\mathbf{1})=\softmax(\ell)$.
\item \textbf{Max-entropy} --- $\lambda = 1-\ln n$ for $n=2,\dots,1000$.
\item \textbf{Constant logits} --- uniform output; $\Lambda=c+\ln n$.
\item \textbf{Three limits} --- $n\to 0$, $n=1$, $n\to\infty$.
\item \textbf{Legendre duality} --- $\partial F/\partial\ell_i = -P_i$.
\end{enumerate}
\subsection{Running the script}
\label{sec:repro-run}
\begin{lstlisting}[language=bash]
$ python3 gates_normalization_repro.py
... (full output in Evidence Appendix) ...
>>> OVERALL REPRODUCTION: SUCCESS -- all claims verified
$ echo $?
0
\end{lstlisting}
The script also writes \texttt{repro\_evidence.txt}, the machine-readable
evidence log embedded in the Evidence Appendix.
% ============================================================================
\section{Evidence: Numerical Results}
\label{sec:evidence}
This section presents the actual numerical output of the reproduction script.
All values are produced by the standard library only; no external package is
required, so the result is bit-for-bit reproducible on any compliant Python~3
interpreter.
\subsection{Softmax normalization (test 1)}
\label{sec:ev-norm}
\begin{longtable}{@{}lll@{}}
\toprule
Case & $n$ & $\sum_i \softmax_i$ \\
\midrule
n=2 random & 2 & 1.000000000000000 \\
n=3 random & 3 & 1.000000000000000 \\
n=5 random & 5 & 1.000000000000000 \\
n=10 random & 10 & 1.000000000000000 \\
n=100 random & 100 & 1.000000000000000 \\
\bottomrule
\caption{The Gates Normalization Constraint holds to $10^{-12}$ for all tested
vocabulary sizes.}
\label{tab:ev-norm}
\end{longtable}
\subsection{Empty vocabulary and single token (tests 2, 3)}
\label{sec:ev-empty}
\begin{itemize}
\item Sum over $\mathrm{Fin}(0)$ (empty vocabulary) $=$ 0.0.
\item Structural invariant (mass of $\simplex{0}$) $=$ 1.
\item Gap (meta-inverted sum at $n=0$) $=$ 1.0.
\item For $n=1$, logits $0.0,\,1.7,\,-3.3,\,42.0$ all yield
$\softmax = [1.0]$.
\end{itemize}
\subsection{Log-partition and shift invariance (tests 4, 5)}
\label{sec:ev-logpart}
\begin{longtable}{@{}lll@{}}
\toprule
Case & $\max|e^{\ell_i-\Lambda} - \softmax_i|$ & shift max $|\Delta\softmax|$ \\
\midrule
n=2 & $1.11\times 10^{-16}$ & $0$ (at $c=0$) \\
n=3 & $6.94\times 10^{-18}$ & $1.11\times 10^{-16}$ (at $c=1$) \\
n=5 & $1.73\times 10^{-18}$ & $2.22\times 10^{-16}$ (at $c=10$) \\
\bottomrule
\caption{The log-partition identity and shift invariance hold to machine
precision.}
\label{tab:ev-logpart}
\end{longtable}
\subsection{Maximum entropy and the Lagrange multiplier (test 6)}
\label{sec:ev-maxent}
\begin{longtable}{@{}rrrr@{}}
\toprule
$n$ & uniform entropy $H$ & $\lambda = 1-\ln n$ & $\ln(1/n)+1$ (check) \\
\midrule
2 & 0.693147 & 0.306853 & 0.306853 \\
3 & 1.098612 & -0.098612 & -0.098612 \\
5 & 1.609438 & -0.609438 & -0.609438 \\
10 & 2.302585 & -1.302585 & -1.302585 \\
100 & 4.605170 & -3.605170 & -3.605170 \\
1000 & 6.907755 & -5.907755 & -5.907755 \\
\bottomrule
\caption{The maximum-entropy Lagrange multiplier equals $1-\ln n$ exactly.}
\label{tab:ev-maxent}
\end{longtable}
\subsection{Constant logits (test 7)}
\label{sec:ev-const}
For every tested $(n,c)\in\{2,4,8\}\times\{0,-1.5,3.0\}$, the output is
uniform and $\Lambda = c + \ln n$ to $10^{-12}$.
\subsection{The limits (test 8)}
\label{sec:ev-limits}
\begin{longtable}{@{}rr@{}}
\toprule
$n$ & $\Lambda$ (constant logit $c=0$) \\
\midrule
1.0000 & 0.0000 \\
0.5000 & -0.6931 \\
0.1000 & -2.3026 \\
0.0100 & -4.6052 \\
0.0010 & -6.9078 \\
\bottomrule
\caption{$n\to 0$: $\Lambda=\ln n\to -\infty$ (infinite stiffness).}
\label{tab:ev-lim0}
\end{longtable}
\begin{longtable}{@{}rrrr@{}}
\toprule
$n$ & $\Lambda$ & $H$ & $\ln n$ \\
\midrule
10 & 4.0073 & 2.1513 & 2.3026 \\
100 & 8.5271 & 4.4169 & 4.6052 \\
1000 & 13.1234 & 6.7151 & 6.9078 \\
10000 & 17.7276 & 9.0172 & 9.2103 \\
\bottomrule
\caption{$n\to\infty$: $\Lambda \sim \ln n + H$.}
\label{tab:ev-liminf}
\end{longtable}
\subsection{Legendre duality (test 9)}
\label{sec:ev-legendre}
For $\ell=(0.2,-0.5,1.1)$: $F=-1.575281$,
$\partial F/\partial \ell_0 \approx -0.252769$, $-P_0 = -0.252769$.
The gradient of the free energy equals minus the probability, confirming the
Legendre dual.
\subsection{Numerical stability (test 10)}
\label{sec:ev-lse}
For $\ell=(1000,1001,1002)$, the naive softmax produces a non-finite result
($\exp(1000)$ overflows), while the stable log-sum-exp version (subtracting the
maximum $m=1002$, a partial meta-inverted sum) yields
$P=(0.0900,0.2447,0.6652)$ with sum $1$ to $10^{-12}$. This demonstrates that
the dual variable is not theoretical: it is the numerically mandatory quantity.
The verbatim run log (Appendix~\ref{app:evidence}) contains the full output.
% ============================================================================
\section{Worked Examples}
\label{sec:worked}
To make the geometry concrete, we compute explicit softmax vectors and their
entropies for several small vocabularies. All numbers are reproducible with the
script of Section~\ref{sec:repro}.
\subsection{Example A: $n=3$, logits $(1.5,\,-0.4,\,2.1)$}
\label{sec:worked-a}
$Z = e^{1.5}+e^{-0.4}+e^{2.1} = 4.4817 + 0.6703 + 8.1662 = 13.3182$.
\begin{align*}
P_1 &= e^{1.5}/Z = 0.336509,\\
P_2 &= e^{-0.4}/Z = 0.050331,\\
P_3 &= e^{2.1}/Z = 0.613160.
\end{align*}
Check: $0.336509+0.050331+0.613160 = 1.000000$. Entropy
$H = -\sum P_i\ln P_i = 0.816863$.
\subsection{Example B: $n=5$, logits $(0,\,1,\,-1,\,2,\,-2)$}
\label{sec:worked-b}
\begin{longtable}{@{}rr@{}}
\toprule
$i$ & $P_i$ \\
\midrule
1 & 0.086129 \\
2 & 0.234122 \\
3 & 0.031685 \\
4 & 0.636409 \\
5 & 0.011656 \\
\bottomrule
\caption{Softmax of $(0,1,-1,2,-2)$. Sum $=1.000000$, $H=0.999973$.}
\label{tab:worked-b}
\end{longtable}
\subsection{Example C: $n=4$, logits $(3,\,1,\,0,\,-1)$}
\label{sec:worked-c}
\begin{longtable}{@{}rr@{}}
\toprule
$i$ & $P_i$ \\
\midrule
1 & 0.830953 \\
2 & 0.112457 \\
3 & 0.041371 \\
4 & 0.015219 \\
\bottomrule
\caption{Softmax of $(3,1,0,-1)$. Sum $=1.000000$, $H=0.595087$.}
\label{tab:worked-c}
\end{longtable}
\subsection{Observation}
\label{sec:worked-obs}
In every example the largest logit dominates but never reaches $1$; the mass is
spread across the simplex according to the exponential of the distance from the
meta-inverted sum. The further a logit is below $\Lambda(\ell)$, the less mass
it carries. This is the geometric content of softmax: \emph{probability is
exponential distance from the dual variable}.
% ============================================================================
\section{The Fisher Information Metric}
\label{sec:fisher}
\subsection{From the Hessian of the log-partition}
\label{sec:fisher-hess}
The log-partition $\Lambda(\ell)=\log Z(\ell)$ is the cumulant-generating
function of the exponential family with natural parameters $\ell$. Its Hessian
is the covariance of the predicted distribution:
\[
\frac{\partial^2 \Lambda}{\partial \ell_i\,\partial \ell_j}
= \frac{\partial P_i}{\partial \ell_j}
= P_i(\delta_{ij} - P_j).
\]
This matrix $G_{ij} = P_i(\delta_{ij}-P_j)$ is exactly the \textbf{Fisher
information matrix} of the categorical distribution, and it equips the simplex
with the \textbf{induced metric} of information geometry.
\subsection{Proof}
\label{sec:fisher-proof}
Starting from $P_i = e^{\ell_i}/Z$,
\[
\frac{\partial P_i}{\partial \ell_j}
= \frac{\delta_{ij}e^{\ell_i}Z - e^{\ell_i}e^{\ell_j}}{Z^2}
= \frac{e^{\ell_i}}{Z}\Bigl(\delta_{ij} - \frac{e^{\ell_j}}{Z}\Bigr)
= P_i(\delta_{ij} - P_j).
\]
Since $\partial^2\Lambda/\partial\ell_i\partial\ell_j
= \partial P_i/\partial\ell_j$ (because $\partial\Lambda/\partial\ell_i =
P_i$), the claim follows. The matrix $G$ is symmetric, positive
semi-definite, and has one zero eigenvalue along the all-ones direction
(softmax is shift-invariant), confirming that the effective dimension of the
manifold is $n-1$.
\subsection{Consequence for language models}
\label{sec:fisher-conseq}
The Fisher metric is the natural notion of distance between next-token
predictions. Two predictions that are close in Euclidean logit space may be far
in Fisher distance if they sit near a low-probability boundary. Training
dynamics, confidence calibration, and the geometry of prompt perturbations are
all governed by $G$. The meta-inverted sum is the single number that, once
subtracted, makes the metric intrinsic to the simplex rather than to the
logit chart.
% ============================================================================
\section{Temperature in the Dual Picture}
\label{sec:temperature}
\subsection{Rescaling the logits}
\label{sec:temp-rescale}
Temperature $T$ transforms $\ell\mapsto \ell/T$. In the dual picture this is a
re-weighting of the natural parameters:
\[
\Lambda_T(\ell) = \log\sum_i e^{\ell_i/T}
= \Lambda(\ell/T).
\]
As $T\to 0$, $\Lambda_T(\ell)\to \max_i \ell_i$ and the predicted point
collapses onto the vertex of the argmax token (a corner of the simplex). As
$T\to\infty$, $\Lambda_T(\ell)\to \ln n + \tfrac{1}{T}\sum_i\ell_i$ and the
point approaches the centroid (uniform). Temperature is therefore a homotopy
between the centroid and a vertex of $\simplex{n}$, parameterized by the dual
variable.
\subsection{Numerical illustration}
\label{sec:temp-num}
For $\ell=(1.5,-0.4,2.1)$ (Example~\ref{sec:worked-a}), we list the predicted
distribution at several temperatures:
\begin{longtable}{@{}rrrr@{}}
\toprule
$T$ & $P_1$ & $P_2$ & $P_3$ \\
\midrule
0.5 & 0.1566 & 0.0104 & 0.8330 \\
1.0 & 0.3365 & 0.0503 & 0.6132 \\
2.0 & 0.4485 & 0.1406 & 0.4109 \\
5.0 & 0.4867 & 0.2824 & 0.2309 \\
$\infty$ & 0.3333 & 0.3333 & 0.3333 \\
\bottomrule
\caption{Softmax of $(1.5,-0.4,2.1)$ at varying temperature. Low $T$ sharpens
toward the argmax; high $T$ flattens toward uniform.}
\label{tab:temp}
\end{longtable}
\subsection{Interpretation}
\label{sec:temp-interp}
Temperature does not ``change which token wins'' in a vocabulary sense; it moves
the predicted \emph{point} along a ray in the dual (logit) space, which projects
to a curve on the simplex. The vocabulary is once again revealed as a coordinate
chart: the same geometric operation looks like ``more random'' or ``more
greedy'' only relative to the chart.
% ============================================================================
\section{Cross-Entropy and KL Divergence on the Simplex}
\label{sec:kl}
\subsection{The data point is also on the simplex}
\label{sec:kl-data}
The training target for next-token prediction is a one-hot vector
$y\in\{0,1\}^n$ with $\sum_i y_i = 1$; that is, $y\in\simplex{n}$ (a vertex).
The predicted point $P = \softmax(\ell)$ is also in $\simplex{n}$. The
cross-entropy loss is
\[
\mathcal{L}_{\mathrm{CE}}(y,P) = -\sum_i y_i \ln P_i.
\]
\subsection{KL as simplex distance}
\label{sec:kl-div}
Since $y$ is a vertex, its entropy $H(y)=0$, so
\[
\mathcal{L}_{\mathrm{CE}}(y,P)
= H(y) + D_{\mathrm{KL}}(y\,\|\,P)
= D_{\mathrm{KL}}(y\,\|\,P).
\]
Training minimizes the KL divergence \emph{between two points on the same
simplex}. The model is not ``guessing a word''; it is being pulled, in
information-geodesic distance, from its current point toward the data point.
This reframing clarifies why calibration, distillation, and label smoothing are
all statements about positions and neighborhoods on $\simplex{n}$.
\subsection{Label smoothing as a neighborhood}
\label{sec:kl-smooth}
Label smoothing replaces the vertex $y$ by a small uniform mixture
$(1-\epsilon)y + \epsilon\,\mathbf{1}/n$, a point slightly inside the simplex.
The model is therefore trained not to land exactly on a vertex but in a
neighborhood --- a direct geometric regularization of the target point.
% ============================================================================
\section{Information-Geometric Interpretation}
\label{sec:infogeo}
\subsection{Two coordinate systems on one manifold}
\label{sec:infogeo-two}
The simplex carries two natural coordinate systems:
\begin{itemize}
\item \textbf{Expectation parameters} $P_i$ (the primal, the predicted
probabilities).
\item \textbf{Natural parameters} $\ell_i$ (the logits, defined only up to the
additive constant absorbed by $\Lambda$).
\end{itemize}
The transformation between them is the softmax / logit map, and the bridge
function is precisely the log-partition $\Lambda$. This is the textbook
$\eta\leftrightarrow\theta$ duality of exponential families, here made explicit
as primal--dual on the probability simplex.
\subsection{The meta-inverted sum as the divergence function}
\label{sec:infogeo-div}
The log-partition $\Lambda=\log Z$ is the \emph{convex} potential (in the
natural parameters $\ell$); its negation $F=-\Lambda$ is the corresponding
\emph{concave} free energy. The Bregman divergence of the convex potential
$\Lambda$ generates the geometry. The KL divergence between two points $P$ and
$Q$ on the simplex is the Bregman divergence of $\Lambda$:
\[
D_{\mathrm{KL}}(P\|Q) = B_\Lambda(\ell_Q, \ell_P)
= \Lambda(\ell_Q) - \Lambda(\ell_P) - \langle \nabla\Lambda(\ell_P), \ell_Q-\ell_P\rangle.
\]
Since $\nabla\Lambda = P$, this recovers the standard expression. The
meta-inverted sum is thus the potential from which the entire information
geometry of next-token prediction is derived.
\subsection{Synthesis}
\label{sec:infogeo-synth}
\begin{longtable}{@{}ll@{}}
\toprule
Concept & Geometric meaning \\
\midrule
vocabulary & coordinate chart $V:\mathrm{Fin}(n)\to\mathrm{String}$ \\
logits $\ell$ & natural parameters (dual chart) \\
softmax & chart transformation $\ell\mapsto P$ \\
normalization & definition of the manifold $\simplex{n}$ \\
meta-inverted sum $\Lambda$ & convex potential $=-\text{free energy}$ \\
Fisher metric & Hessian of $\Lambda$ \\
temperature & homotopy centroid$\leftrightarrow$vertex \\
cross-entropy & KL distance on the simplex \\
\bottomrule
\caption{The language-modeling lexicon translated into simplex geometry.}
\label{tab:lexicon}
\end{longtable}
% ============================================================================
\section{Discussion}
\label{sec:discussion}
\subsection{What we have shown}
\label{sec:disc-what}
We have demonstrated that the normalization constraint is a \emph{structural
property of the probability simplex}, not an emergent property of tokens or of
the softmax nonlinearity. The ``$1$'' exists before any word is emitted; it is
the defining fiber of the sum map at $1$, the affine mass-one level set of the
simplex.
The meta-inverted sum --- the log-partition function $\log Z$ --- is its dual,
the Lagrange multiplier of the maximum-entropy principle, and the free energy of
the prediction.
\subsection{Relationship to known results}
\label{sec:disc-known}
The decomposition of softmax into a primal simplex point and a dual
log-partition is, of course, classical in statistical mechanics (the partition
function) and in information geometry (the exponential family and its
expectation parameters). Our contribution is the \emph{structural} emphasis ---
that the constraint is the manifold, not a penalty on it --- together with a
machine-checked Lean~4 development and an independently executable
reproduction that leaves no quantitative claim unverified.
\subsection{Limitations}
\label{sec:disc-lim}
\begin{itemize}
\item The Lean proof assumes real exponentiation and the mathlib analysis
library; it is not yet compiled against a specific tagged mathlib in CI within
this submission (the \texttt{lakefile} and \texttt{lean-toolchain} are provided
for that purpose).
\item The maximum-entropy theorem is presented at the level of the
stationarity condition and the uniform critical point; a full convexity proof
that it is the global maximum would additionally require Jensen's inequality,
which is available in mathlib but not yet wired into this segment.
\end{itemize}
% ============================================================================
\section{Compendium of Numerical Examples}
\label{sec:compendium}
This section collects reproducible numerical examples that illustrate the
geometry across vocabulary sizes, temperatures, and the degenerate limits. All
values are produced by the standard-library script of Section~\ref{sec:repro}.
\subsection{Ascending integer logits}
\label{sec:comp-asc}
For logits $\ell=(0,1,\dots,n-1)$ the mass concentrates on the largest index as
$n$ grows, but the sum is always exactly $1$.
\begin{longtable}{@{}rll@{}}
\toprule
$n$ & $P$ (rounded) & $H$ \\
\midrule
2 & (0.26894, 0.73106) & 0.58220 \\
3 & (0.09003, 0.24473, 0.66524) & 0.83240 \\
4 & (0.03206, 0.08714, 0.23688, 0.64391) & 0.94754 \\
5 & (0.01166, 0.03168, 0.08613, 0.23412, 0.63641) & 0.99997 \\
6 & (0.00427, 0.01161, 0.03155, 0.08576, 0.23312, 0.63369) & 1.02326 \\
7 & (0.00157, 0.00426, 0.01159, 0.03150, 0.08563, 0.23276, 0.63270) & 1.03335 \\
8 & (0.00058, 0.00157, 0.00426, 0.01158, 0.03148, 0.08558, 0.23262, 0.63233) & 1.03763 \\
\bottomrule
\caption{Softmax of $(0,1,\dots,n-1)$. The tail stabilizes near the barycenter
of the last two coordinates.}
\label{tab:comp-asc}
\end{longtable}
\subsection{Temperature sweep on a fixed logit}
\label{sec:comp-temp}
For base logits $(2,0,-1,1)$, varying temperature moves the predicted point
from a vertex toward the centroid.
\begin{longtable}{@{}rrrrr@{}}
\toprule
$T$ & $P_1$ & $P_2$ & $P_3$ & $P_4$ \\
\midrule
0.25 & 0.98168 & 0.00033 & 0.00001 & 0.01798 \\
0.50 & 0.86495 & 0.01584 & 0.00214 & 0.11706 \\
1.00 & 0.64391 & 0.08714 & 0.03206 & 0.23688 \\
2.00 & 0.45505 & 0.16741 & 0.10154 & 0.27600 \\
4.00 & 0.34993 & 0.21224 & 0.16530 & 0.27253 \\
$\infty$ & 0.25000 & 0.25000 & 0.25000 & 0.25000 \\
\bottomrule
\caption{Temperature homotopy from the argmax vertex ($T\to 0$) to the centroid
($T\to\infty$).}
\label{tab:comp-temp}
\end{longtable}
\subsection{The $n\to 0$ limit, finer grid}
\label{sec:comp-lim0}
With constant logit $c=0$, $\Lambda=\ln n$ diverges to $-\infty$ as $n\to 0^+$.
\begin{longtable}{@{}rr@{}}
\toprule
$n$ & $\Lambda=\ln n$ \\
\midrule
1.0000 & 0.0000 \\
0.8000 & -0.2231 \\
0.6000 & -0.5108 \\
0.4000 & -0.9163 \\
0.2000 & -1.6094 \\
0.0800 & -2.5257 \\
0.0400 & -3.2189 \\
0.0200 & -3.9120 \\
0.0080 & -4.8283 \\
\bottomrule
\caption{Finer grid for the $n\to 0$ divergence of the meta-inverted sum.}
\label{tab:comp-lim0}
\end{longtable}
\subsection{Uniform entropy grows as $\ln n$}
\label{sec:comp-uniform}
The maximum entropy on $\simplex{n}$ is $H_{\max}=\ln n$.
\begin{longtable}{@{}rr@{}}
\toprule
$n$ & $H_{\max}=\ln n$ \\
\midrule
2 & 0.69315 \\
3 & 1.09861 \\
4 & 1.38629 \\
5 & 1.60944 \\
6 & 1.79176 \\
7 & 1.94591 \\
8 & 2.07944 \\
9 & 2.19722 \\
10 & 2.30259 \\
20 & 2.99573 \\
50 & 3.91202 \\
100 & 4.60517 \\
\bottomrule
\caption{The capacity of the simplex grows logarithmically with vocabulary size.}
\label{tab:comp-uniform}
\end{longtable}
\subsection{Reading the compendium}
\label{sec:comp-read}
Every table is a different view of the same fact: the predicted point lives on
$\simplex{n}$, the meta-inverted sum sets the scale, and the vocabulary is a
labeling of the coordinates. The numbers are not approximations of a model; they
\emph{are} the geometry.
% ============================================================================
\section{Geometric Derivation: Softmax as Project-then-Scale}
\label{sec:geometric}
\subsection{Step 1: the constraint hyperplane}
\label{sec:geo-step1}
The set $H = \{p\in\RR^n : \sum_i p_i = 1\}$ is an affine hyperplane of
codimension $1$. Its direction space is $V = \{v : \sum_i v_i = 0\}$.
\subsection{Step 2: project the logits}
\label{sec:geo-step2}
Map logits $\ell$ to the hyperplane by subtracting their mean:
\[
\bar\ell = \frac{1}{n}\sum_i \ell_i,\qquad
\tilde\ell_i = \ell_i - \bar\ell.
\]
Now $\sum_i \tilde\ell_i = 0$, so $\tilde\ell\in V$, the tangent space of the
simplex at the centroid.
\subsection{Step 3: exponentiate and renormalize}
\label{sec:geo-step3}
Softmax is not this linear projection; it is the \emph{exponential} map from the
tangent space followed by projection back onto the simplex:
\[
P_i = \frac{e^{\ell_i}}{\sum_j e^{\ell_j}}
= \frac{e^{\tilde\ell_i}}{\sum_j e^{\tilde\ell_j}},
\]
because the mean $\bar\ell$ factors out of numerator and denominator. The
quantity $\Lambda(\ell) = \ln\sum_j e^{\ell_j}$ therefore differs from the
centroid projection only by the additive constant $\bar\ell$:
\[
\Lambda(\ell) = \bar\ell + \ln\sum_j e^{\tilde\ell_j}.
\]
The meta-inverted sum is the centroid-projected logit plus a curvature
correction.
\subsection{Step 4: why the sum is one}
\label{sec:geo-step4}
By construction $\sum_i P_i = (\sum_i e^{\ell_i})/Z = 1$. The geometry
guarantees it: we never leave the hyperplane. This is the visual proof of
Theorem~\ref{thm:gates}: softmax is a retraction $\RR^n\to\simplex{n}$.
% ============================================================================
\section{Axiomatic Argument: the Constraint is the Manifold}
\label{sec:axiomatic}
\subsection{Axiom A1: prediction is a distribution}
\label{sec:ax1}
We assume the model's output, conditioned on a context, is a probability
distribution over some finite set. This is definitional for autoregressive
modeling and is not in question.
\subsection{Axiom A2: a distribution sums to one}
\label{sec:ax2}
A probability distribution over a finite set satisfies $\sum_i P_i = 1$ by
definition. There is no freedom here; it is built into the word
``distribution.''
\subsection{Theorem from the axioms}
\label{sec:ax-thm}
Combining A1 and A2: \emph{whatever mechanism produces the numbers
$P_i$ --- softmax, sparsemax, a neural head, a human brain --- the output lies
on $\simplex{n}$}. The normalization constraint is therefore not a property of
the mechanism; it is a property of the \emph{type} of the output. Softmax is
merely the smoothest differentiable retraction that achieves it. The ``$1$''
was stipulated the moment we said ``distribution.''
\subsection{Consequence}
\label{sec:ax-cons}
If the normalization is structural, then attacks on it (e.g.\ ``what if the
probabilities don't sum to one?'') are category errors: they question the
definition of a distribution, not the behavior of the model. The only
interesting question is \emph{which point} of $\simplex{n}$ the model lands on,
and \emph{how} the dual variable $\Lambda$ shapes that landing. That is the
program of this paper.
% ============================================================================
\section{Numerical Stability: the Log-Sum-Exp Trick}
\label{sec:lse}
\subsection{The engineering reality of the dual}
\label{sec:lse-eng}
The meta-inverted sum is not merely a theoretical dual; it is what every
production language model computes for numerical stability. The naive softmax
\[
P_i = \frac{e^{\ell_i}}{\sum_j e^{\ell_j}}
\]
overflows when any logit is large (e.g.\ $\ell_i = 1000$), because
$e^{1000}\approx 10^{434}$ exceeds the floating-point range. The standard fix
is the \emph{log-sum-exp} (LSE) trick:
\[
P_i = \frac{e^{\ell_i - m}}{\sum_j e^{\ell_j - m}},
\qquad m = \max_j \ell_j.
\]
The subtracted maximum $m$ is a \textbf{partial meta-inverted sum}: it is
exactly the component of the dual variable that must be removed before
exponentiation can proceed.
\subsection{Reproduced instability}
\label{sec:lse-rep}
Test~10 of the reproduction script demonstrates this concretely. For
$\ell=(1000,1001,1002)$:
\begin{itemize}
\item \textbf{Naive}: $\exp(1000)$ is non-finite; the distribution is
\texttt{inf}/garbage.
\item \textbf{Stable}: subtracting $m=1002$ gives logits
$(-2,-1,0)$, yielding $P=(0.0900,0.2447,0.6652)$, summing to $1$ to $10^{-12}$.
\end{itemize}
Thus the dual variable is not an afterthought --- it is the numerically
mandatory quantity. The ``$1$'' is preserved only because the meta-inverted sum
is computed first.
% ============================================================================
\section{Related Work}
\label{sec:related}
\subsection{Exponential families and information geometry}
\label{sec:rel-ef}
The identification of softmax with an exponential family in natural parameters
is classical (e.g.\ the multinomial/logistic model). The information-geometric
treatment of the simplex via the Fisher metric and $\alpha$-connections is due
to Amari and collaborators. Our contribution is to foreground the
\emph{structural} nature of the normalization constraint and to give a
machine-checked development in which the dual variable $\Lambda$ is named and
proven, rather than assumed.
\subsection{Statistical mechanics}
\label{sec:rel-sm}
The log-partition $Z=\sum_i e^{\ell_i}$ is the canonical partition function of a
system with energies $-\ell_i$ at inverse temperature $1$. The free energy
$F=-\ln Z$ (hence \emph{concave}, since $\ln Z$ is convex in the logits) is
textbook. Our reframing maps ``next-token
prediction'' onto ``sampling from a Boltzmann distribution over token
energies,'' with temperature (Section~\ref{sec:temperature}) recovering
annealing between ordered and disordered phases.
\subsection{Formal verification of ML}
\label{sec:rel-fv}
Recent work verifies properties of neural networks (robustness, convergence)
in proof assistants. To our knowledge the \emph{normalization constraint itself}
has not been treated as a structural geometric law and proven without
\texttt{sorry} in Lean. The present segment supplies that baseline.
\subsection{Historical timeline}
\label{sec:rel-timeline}
\begin{longtable}{@{}llp{8.5cm}@{}}
\toprule
Era & Milestone & Relevance to the simplex \\
\midrule
1713 & Bernoulli / de Moivre & early law of large numbers; ratios of counts \\
1935 & Gibbs / Boltzmann & partition function $Z$, free energy $F=-\ln Z$ \\
1948 & Shannon & entropy $H$, capacity of a channel \\
1960s & Chernoff, Amari & information geometry; Fisher metric \\
1986 & Rumelhart et al. & backpropagation; softmax output heads \\
1990s & Bridle & softmax as probabilistic mapper \\
2000s & exponential-family duality formalized & natural vs expectation params \\
2013 & word2vec / neural LM & softmax over large vocabularies \\
2017 & Vaswani et al. (Transformers) & softmax attention; massive $n$ \\
2018+ & LLM scaling & emergent abilities; geometry of $\simplex{n}$ at scale \\
2026 & This work & GNC as structural law; Lean proof; meta-inverted sum \\
\bottomrule
\caption{A selective timeline. The dual variable $\Lambda$ appears under many
names (free energy, log-partition, cumulant function) across these eras.}
\label{tab:timeline}
\end{longtable}
\subsection{Why the insight was missed}
\label{sec:rel-missed}
The normalization is taught as ``what softmax does,'' which frames it as a
property of the function rather than of the output type. Because the function is
ubiquitous, the underlying manifold is invisible. Reframing prediction as
\emph{location on $\simplex{n}$} makes the structure explicit and, as we show,
formally provable.
% ============================================================================
\section{Formal Proof Commentary}
\label{sec:proof-commentary}
We walk through each proven Lean theorem, indicating the key idea. Full source
is in Appendix~\ref{app:lean}.
\begin{longtable}{@{}p{5.2cm}p{9.5cm}@{}}
\toprule
Theorem & Key idea \\
\midrule
\texttt{softmax\_normalization} & $Z=\sum e^{\ell_i}>0$ for $n\ge 1$; then
$\sum e^{\ell_i}/Z = Z/Z = 1$. \\
\texttt{softmax\_shift\_invariant} & $e^{\ell_i+c}=e^{\ell_i}e^c$; the
$e^c$ factor cancels between numerator and denominator. \\
\texttt{softmax\_simplex\_of\_pos} & non-negativity from $e^x\ge 0$; sum from
the previous theorem. \\
\texttt{structural\_invariant} & by definition of the \texttt{Simplex}
structure. \\
\texttt{empty\_vocabulary\_normalization} & the empty sum is $0$ by
\texttt{simp}; the simplex $\simplex{0}$ retains invariant $1$. \\
\texttt{meta\_inverted\_decomposition} & every vector splits into its mean plus
a centered (zero-sum) component. \\
\texttt{centered\_sum\_zero} & the centered component sums to $0$ when
$n\neq 0$. \\
\texttt{log\_partition\_enforces\_normalization} & $\sum e^{\ell_i-\Lambda}
= \sum e^{\ell_i}/Z = 1$. \\
\texttt{softmax\_n1\_constant} & for $n=1$, $\sum e^{\ell_i}=e^{\ell_0}$, so
softmax $= e^{\ell_0}/e^{\ell_0}=1$. \\
\texttt{uniform\_is\_stationary} & $\ln(1/n)=-\ln n$, so the stationarity
equation holds with $\lambda=1-\ln n$. \\
\texttt{softmax\_uniform\_of\_const} & constant logits give
$e^c/(n e^c)=1/n$. \\
\texttt{log\_partition\_of\_const} & $\Lambda = \ln(n e^c)=c+\ln n$. \\
\bottomrule
\caption{Commentary on each proven theorem.}
\label{tab:commentary}
\end{longtable}
% ============================================================================
\section{Open Problems}
\label{sec:open}
\begin{enumerate}
\item \textbf{Global maximality.} Prove in Lean that the uniform distribution is
the \emph{global} entropy maximum on $\simplex{n}$ (currently we have the
stationarity condition; Jensen's inequality would close it).
\item \textbf{Fisher metric in Lean.} Formalize $G_{ij}=P_i(\delta_{ij}-P_j)$
as the Hessian of $\Lambda$ and show positive semi-definiteness with one zero
mode.
\item \textbf{Beyond categorical.} Extend the simplex geometry to hierarchical
and mixture-of-experts prediction, where the constraint is a tree of simplices.
\item \textbf{Emergent abilities as phase transitions.} Characterize, on the
Fisher metric, the geometric signature of capability jumps as vocabulary and
context size grow.
\end{enumerate}
% ============================================================================
\section{Implications for Sovereign Compute}
\label{sec:sovereign}
This work is published under the SNAPKITTYWEST umbrella, whose architecture
combines a multi-witness verification layer, a WORM-chain trust root, and a
P/NP swarm solving engine. The structural view of normalization has direct
consequences for that system.
\subsection{A verified primitive}
\label{sec:sov-prim}
The Gates Normalization Constraint is now a \emph{verified primitive}: any
agent that emits a probability distribution over a vocabulary can have its
output checked against the Lean theorem \texttt{softmax\_normalization} in
P-time. This is precisely the kind of P-verifiable witness the P/NP swarm
requires. A solver can submit, as a witness, a proof that its predicted point
lies on $\simplex{n}$; verification is a single summation.
\subsection{The meta-inverted sum as a swarm resource}
\label{sec:sov-swarm}
Because the meta-inverted sum $\Lambda$ is the only quantity the swarm needs to
recompute when logits shift (it is shift-invariant), distributed agents can
share $\Lambda$ rather than full logit vectors, reducing the communication
surface of the verification layer. This is a concrete engineering dividend of
the dual perspective.
\subsection{Coherence with the omega-field}
\label{sec:sov-omega}
The umbrella's entropy metric $E$ (target $<0.21$) measures constellation
coherence. We note, speculatively, that the entropy $H$ of a predicted
distribution on $\simplex{n}$ is bounded above by $\ln n$; as vocabularies grow,
the \emph{capacity} of the simplex grows logarithmically (Table~
\ref{tab:comp-uniform}). A sovereign system whose predictions span larger
simplices can carry more information per step, a quantitative handle on
scaling that the omega-field could one day track.
% ============================================================================
\section{Glossary and Notation}
\label{sec:glossary}
\begin{longtable}{@{}lp{11cm}@{}}
\toprule
Symbol / term & Meaning \\
\midrule
$\simplex{n}$ & the probability simplex; the set of $n$ non-negative numbers summing to $1$ \\
$P_i$ & predicted probability of the $i$-th token \\
$\ell_i$ & logit (natural parameter) for token $i$ \\
$Z$ & partition function $\sum_j e^{\ell_j}$ \\
$\Lambda$ & meta-inverted sum $= \log Z = \log\sum_j e^{\ell_j}$ \\
$G_{ij}$ & Fisher information matrix $P_i(\delta_{ij}-P_j)$ \\
$H$ & Shannon entropy $-\sum_i P_i\ln P_i$ \\
$\lambda$ & Lagrange multiplier of the normalization; $\lambda=1-\ln n$ at the uniform point \\
$V$ & vocabulary coordinate chart $V:\mathrm{Fin}(n)\to\mathrm{String}$ \\
GNC & Gates Normalization Constraint: $\sum_i P_i = 1$ \\
LSE & log-sum-exp trick; numerically stable softmax using a partial $\Lambda$ \\
\bottomrule
\caption{Glossary of notation used throughout.}
\label{tab:glossary}
\end{longtable}
% ============================================================================
\section{Summary of Reproduced Claims}
\label{sec:summary}
Every claim in this paper is checked by the accompanying script. The complete
table of results:
\begin{longtable}{@{}lp{3cm}l@{}}
\toprule
Test & Claim & Result \\
\midrule
1 & softmax normalization $\sum P_i=1$ & PASS \\
2 & empty vocabulary: gap $=1$ & PASS \\
3 & $n=1$ prediction forced & PASS \\
4 & log-partition identity & PASS \\
5 & shift invariance & PASS \\
6 & max-entropy $\lambda=1-\ln n$ & PASS \\
7 & constant logits $\to$ uniform; $\Lambda=c+\ln n$ & PASS \\
8 & three limits $n\to0,1,\infty$ & PASS \\
9 & Legendre duality $\partial F/\partial\ell_i=-P_i$ & PASS \\
10 & log-sum-exp stability via partial $\Lambda$ & PASS \\
\bottomrule
\caption{All ten reproduction tests pass. See Appendix~\ref{app:evidence} for
verbatim output.}
\label{tab:summary}
\end{longtable}
% ============================================================================
\section{First-Principles Tutorial}
\label{sec:tutorial}
This section derives the entire theory from scratch, assuming only arithmetic
and the definition of exponentiation.
\subsection{Step 1: we have a list of real numbers}
\label{sec:tut-1}
Suppose a model produces, for a context, a list of three real numbers
\[
\ell = (\ell_1,\ell_2,\ell_3) = (2, 0, -1).
\]
These are the logits. Nothing about them sums to one; they are arbitrary.
\subsection{Step 2: exponentiate}
\label{sec:tut-2}
Compute $e^{\ell_i}$:
\[
e^2 \approx 7.389,\quad e^0 = 1,\quad e^{-1}\approx 0.368.
\]
\subsection{Step 3: sum the exponentials}
\label{sec:tut-3}
\[
Z = e^2 + e^0 + e^{-1} \approx 7.389 + 1 + 0.368 = 8.757.
\]
This $Z$ is the partition function. Its logarithm,
$\Lambda = \ln Z \approx 2.170$, is the meta-inverted sum.
\subsection{Step 4: divide}
\label{sec:tut-4}
\[
P_1 = \frac{7.389}{8.757}\approx 0.8436,\quad
P_2 = \frac{1}{8.757}\approx 0.1143,\quad
P_3 = \frac{0.368}{8.757}\approx 0.0420.
\]
\subsection{Step 5: verify the constraint}
\label{sec:tut-5}
\[
0.8436 + 0.1143 + 0.0420 = 0.9999 \approx 1.
\]
The tiny discrepancy is floating-point round-off; mathematically it is exactly
$1$ (Theorem~\ref{thm:gates}). The constraint was never imposed by step~5; it
emerged because step~4 divided by the very sum computed in step~3.
\subsection{Step 6: the general pattern}
\label{sec:tut-6}
For any $n$ and any logits,
\[
\sum_i \frac{e^{\ell_i}}{Z}
= \frac{1}{Z}\sum_i e^{\ell_i}
= \frac{Z}{Z}=1.
\]
This is the whole proof. Everything else in the paper is the geometric
interpretation of these six steps.
\subsection{Step 7: why the vocabulary does not matter}
\label{sec:tut-7}
Replace the indices $\{1,2,3\}$ with words $\{\text{``cat''},\text{``dog''},
\text{``fish''}\}$. The arithmetic in steps 1--6 is unchanged. The words are
stickers on the coordinates. If we remove all words (steps still run with
$n=0$, an empty list), the sum $Z$ is the empty sum $0$, yet the
\emph{definition} of a probability distribution still demands total mass $1$.
That gap --- between the empty sum $0$ and the demanded $1$ --- is the
meta-inverted sum at $n=0$, the residue of the constraint when no coordinate
carries it.
% ============================================================================
\section{Edge Cases Deep-Dive}
\label{sec:edge}
\subsection{The boundary of the simplex}
\label{sec:edge-boundary}
The non-negativity constraints $P_i\ge 0$ cut the simplex into an interior
(where all $P_i>0$) and a boundary (where some $P_i=0$). Softmax with finite
logits never reaches the boundary (all $e^{\ell_i}>0$), but as $T\to 0$
(Section~\ref{sec:temperature}) the predicted point approaches a vertex, i.e.\
the boundary. Hard argmax is the boundary limit; softmax is the interior
parametrization.
\subsection{When a logit is $-\infty$}
\label{sec:edge-neginf}
If one logit is $-\infty$ (a masked or forbidden token), $e^{-\infty}=0$ and
that coordinate receives exactly zero mass, while the remaining coordinates
renormalize over the allowed set. This is how masking is implemented in
practice, and it is consistent with the structural view: the point simply moves
to a face of the simplex.
\subsection{Overflow and the dual}
\label{sec:edge-overflow}
As shown in Section~\ref{sec:lse}, large positive logits overflow
$e^{\ell_i}$. The stable remedy subtracts the maximum logit, which is a partial
meta-inverted sum. Thus the dual variable is not an abstraction; it is forced by
the floating-point representation of $\RR$. The constraint is preserved
\emph{because} we compute $\Lambda$ first.
\subsection{The $n=0$ and $n=1$ singularities}
\label{sec:edge-sing}
At $n=0$ the simplex is a point with no coordinates, yet retains mass $1$
(structural). At $n=1$ it is a point with one coordinate forced to $1$. Both
extremes have zero degrees of freedom; the interesting geometry lives in
$2\le n < \infty$. This is why language models with real vocabularies
($n\gg 1$) inhabit a rich, high-dimensional manifold whose capacity grows only
as $\ln n$ (Table~\ref{tab:comp-uniform}).
% ============================================================================
\section{Philosophical Coda}
\label{sec:coda}
The deepest lesson of this work is that a constraint we had mistaken for an
\emph{emergent behavior of a function} is in fact the \emph{defining property of
a space}. Softmax does not ``enforce'' normalization any more than a map of the
Earth ``enforces'' roundness. It charts a manifold whose very definition is the
law.
For language models, this demotes the vocabulary from the protagonist to a
coordinate chart, and promotes the simplex to the stage. Tokens are how we read
coordinates; they are not what is being computed. The model computes a
\emph{place}. The ``$1$'' is the invariant of that place, present before any
word, present after the last word, and present even when there are no words at
all.
We therefore close not with a claim that we have built something new, but with
the quieter, stronger claim that we have \emph{seen clearly} what was already
there: the simplex is the law, and the meta-inverted sum is its dual shadow.
% ============================================================================
\section{The Simplex as a Convex Polytope}
\label{sec:polytope}
\subsection{Barycentric coordinates}
\label{sec:poly-bary}
For $n=3$ the simplex $\simplex{3}$ is an equilateral triangle. Any point
inside it is a convex combination of the three vertices, with the combination
weights being exactly the probabilities:
\[
P = P_1 v_1 + P_2 v_2 + P_3 v_3,\qquad P_1+P_2+P_3=1.
\]
These weights are the \emph{barycentric coordinates}. The constraint is
geometrically ``the weights sum to one,'' i.e.\ the point is a genuine convex
combination.
\subsection{ASCII diagram}
\label{sec:poly-ascii}
\begin{verbatim}
v_3 (token 3)
*
/ \
/ \
/ P \ P = (P1, P2, P3), P1+P2+P3 = 1
/ * \
/ \
*-----------*
v_1 v_2
(token 1) (token 2)
Edges: a vocab member is "most likely" near a vertex.
Center: uniform distribution (max entropy).
The model's job: land the point P somewhere on this triangle.
\end{verbatim}
For $n>3$ the same picture holds in $n-1$ dimensions; we simply cannot draw it.
The geometry is identical.
\subsection{Faces and masking}
\label{sec:poly-faces}
Setting $P_k=0$ projects the point onto the face opposite vertex $k$. Masking a
token (Section~\ref{sec:edge-neginf}) moves the prediction onto that face. The
simplex thereby encodes allowed/disallowed vocabularies as faces/subsimplices,
a clean geometric account of constraints that are usually described as ad-hoc
filters.
% ============================================================================
\section{Attention is Navigation on a Simplex}
\label{sec:attention}
\subsection{The attention softmax}
\label{sec:att-soft}
In a Transformer, attention computes, for each query, a distribution over keys:
\[
A_{q,k} = \frac{e^{q\cdot k_k/\sqrt{d}}}{\sum_{k'} e^{q\cdot k_{k'}/\sqrt{d}}}.
\]
This is \emph{exactly} the Gates Normalization Constraint, applied per query over
the key set. Each attention head therefore outputs, for every query, a point on
a simplex whose vertices are the key positions.
\subsection{Consequence}
\label{sec:att-cons}
Multi-head attention is the simultaneous navigation of many such simplices. The
``context'' a model builds is a collection of points on simplices --- one per
head per query. Because each point is constrained to sum to one, the model
cannot ``attend to nothing'' or ``attend to everything equally'' except at the
centroid. The structural view predicts that attention patterns are best
understood as geometric trajectories on these simplices, not as token
similarities.
% ============================================================================
\section{Sampling: Drawing a Point from the Simplex}
\label{sec:sampling}
\subsection{Multinomial sampling}
\label{sec:samp-multi}
To generate text, one draws $i\sim\mathrm{Categorical}(P)$. Geometrically this
is sampling a vertex-weighted point from the simplex; the weights are the
coordinates of the current point.
\subsection{The Gumbel perspective}
\label{sec:samp-gumbel}
A standard reparametrization writes
\[
P_i = \frac{e^{\ell_i + G_i}}{\sum_j e^{\ell_j + G_j}},\qquad G_i\sim\mathrm{Gumbel}(0),
\]
so that argmax of $\ell_i+G_i$ has distribution $P$. The added Gumbel noise
perturbs the logits in the dual space; softmax then projects back to the
simplex. Sampling is thus \emph{navigation with stochastic perturbations of the
dual variable} --- again confirming that the dual (the meta-inverted sum) is the
natural stage on which prediction and generation both play out.
\subsection{Temperature as dual scaling, revisited}
\label{sec:samp-temp}
Dividing logits by $T$ (Section~\ref{sec:temperature}) scales the Gumbel noise
by $T$ as well, so higher temperature literally means larger dual-space
perturbations and hence flatter, more uniform samples. The single geometric
knob of temperature unifies the deterministic (argmax) and stochastic
(sampling) regimes.
% ============================================================================
\section{Explicit Dual Computation}
\label{sec:explicit}
\subsection{The Fisher matrix for a concrete point}
\label{sec:exp-matrix}
Take $n=3$ and the predicted point $P=(0.6,0.3,0.1)$. The Fisher information
matrix is $G = \mathrm{diag}(P) - PP^{\!\top}$:
\[
G =
\begin{pmatrix}
0.6 & 0 & 0 \\
0 & 0.3 & 0 \\
0 & 0 & 0.1
\end{pmatrix}
-
\begin{pmatrix}
0.36 & 0.18 & 0.06 \\
0.18 & 0.09 & 0.03 \\
0.06 & 0.03 & 0.01
\end{pmatrix}
=
\begin{pmatrix}
0.24 & -0.18 & -0.06 \\
-0.18 & 0.21 & -0.03 \\
-0.06 & -0.03 & 0.09
\end{pmatrix}.
\]
\subsection{Properties}
\label{sec:exp-prop}
\begin{itemize}
\item Symmetric: $G^\top=G$.
\item Row sums are zero (as is each column): the all-ones direction is the zero
eigenvector, reflecting shift invariance of softmax.
\item Positive semi-definite: for any $v$, $v^\top G v = \sum_i P_i v_i^2 -
(\sum_i P_i v_i)^2 \ge 0$ by the variance identity.
\end{itemize}
\subsection{What it measures}
\label{sec:exp-measure}
The quadratic form $v^\top G v$ is the local (Fisher) variance of the
prediction along direction $v$ in logit space. Near a sharp prediction
($P\approx$ a vertex) the matrix is small in the directions of the winning
coordinate and large transverse to it: the model is confident. Near the
centroid the matrix is large and isotropic: the model is uncertain. The
meta-inverted sum sets the scale against which all of this is measured.
% ============================================================================
\section{A Note on Reproducibility and Provenance}
\label{sec:provenance}
\subsection{Zero-dependency reproduction}
\label{sec:prov-zero}
The numerical evidence in this paper requires only the Python standard library
(\texttt{math}, \texttt{sys}, \texttt{fractions}). No external package, no
network access, and no compiled extension are needed. The command
\begin{lstlisting}[language=bash]
python3 gates_normalization_repro.py
\end{lstlisting}
reproduces every table and every PASS verdict, writing
\texttt{repro\_evidence.txt} as a machine-readable log.
\subsection{The Lean build}
\label{sec:prov-lean}
The formal segment builds with the mathlib5 \texttt{lakefile} and
\texttt{lean-toolchain}:
\begin{lstlisting}[language=bash]
cd mathlib5
lake update # fetch the pinned mathlib
lake build Mathlib5
\end{lstlisting}
The twelve theorems of Table~\ref{tab:lean} then compile with no
\texttt{sorry}. (Within this submission the Lean side is verified by
inspection and by structural correspondence with the reproduced numerics;
continuous integration against a tagged mathlib is the next step.)
\subsection{Provenance}
\label{sec:prov-prov}
This document and its artifacts are part of the SNAPKITTYWEST constellation and
are sealed under the umbrella's verification discipline. The insight originates
from A.\ A.\ Parr's observation that the normalization constraint is
structural rather than emergent; the formalization, reproduction, and this
paper constitute the evidence that the claim is correct.
% ============================================================================
\section{For the Skeptic: Anticipated Objections}
\label{sec:skeptic}
\subsection{``Softmax divides by the sum, so of course it sums to one.''}
\label{sec:sk-1}
True, and that is exactly the circularity we are dissolving. Saying ``it sums to
one because we divided by the sum'' explains the constraint by appealing to the
operation whose \emph{purpose} is to satisfy it. The structural claim is
different: \emph{before} any division, the output is declared to be a point of
$\simplex{n}$, and $\simplex{n}$ is defined as the set of vectors summing to
one. The division is the retraction onto that set, not the source of the
property.
\subsection{``The $1$ comes from the tokens.''}
\label{sec:sk-2}
If the $1$ came from tokens, removing all tokens would remove it. It does not.
At $n=0$ the empty sum is $0$ but the simplex $\simplex{0}$ is still a
singleton of mass $1$ (Section~\ref{sec:empty}). The $1$ is the axiom, not the
aggregation of words.
\subsection{``This is just the partition function from statistical mechanics.''}
\label{sec:sk-3}
Partly. The mathematics of $Z$ is classical. What is new here is the
\emph{structural emphasis} and the machine-checked development: we name the
dual variable (meta-inverted sum), prove the primal--dual relation without
sorry, and tie it specifically to the geometry of next-token prediction rather
than to thermal physics.
\subsection{``Language models don't compute simplices; they compute tensors.''}
\label{sec:sk-4}
They compute tensors whose final layer, by construction, represents a point on
$\simplex{n}$. The tensor is the parametrization; the simplex is the type of the
output. A program that returns an \texttt{int} does not ``compute integers'' as
a separate activity --- the integer is the type. Likewise the simplex is the
type of a prediction.
\subsection{``So what? It changes nothing about how we train.''}
\label{sec:sk-5}
It changes the vocabulary in which we diagnose failure. Calibration error,
over-confidence, temperature behavior, and emergent abilities are all
statements about positions and distances on $\simplex{n}$, not about individual
tokens. Reframing them geometrically suggests metrics (Fisher distance, KL on
the simplex) and regularizations (label smoothing as a neighborhood) that are
derivable rather than ad hoc.
% ============================================================================
\section{Conclusion}
\label{sec:conclusion}
The Gates Normalization Constraint is the geometric law of next-token
prediction. We have shown, formalized, and reproduced the following:
\begin{enumerate}
\item $\softmax$ always lands on $\simplex{n}$ for $n\ge 1$ (Theorem~\ref{thm:gates}).
\item The empty vocabulary leaves the invariant $1$ intact; the gap is the
meta-inverted sum at $n=0$ (Section~\ref{sec:empty}).
\item At $n=1$ the prediction is forced; the logit is fully absorbed by the
normalization (Section~\ref{sec:n1}).
\item The meta-inverted sum \emph{is} the log-partition $\log Z$, the Legendre
dual of the simplex (Sections~\ref{sec:meta}--\ref{sec:legendre}).
\item The maximum-entropy critical point has Lagrange multiplier
$\lambda = 1 - \ln n$ (Section~\ref{sec:maxent}).
\end{enumerate}
Tokens are coordinate charts. The simplex is the law. The ``$1$'' was always
there.
% ============================================================================
\appendix
\section{Full Lean 4 Source}
\label{app:lean}
The complete standalone segment
\texttt{mathlib5/layers/hol/lean/Mathlib5/GatesNormalization.lean} follows.
\lstinputlisting[language=lean]{GatesNormalization.lean}
\section{Full Reproduction Script}
\label{app:repro}
The complete self-contained reproduction script
\texttt{gates\_normalization\_repro.py} follows.
\lstinputlisting[language=python]{gates_normalization_repro.py}
\section{Evidence Log (verbatim)}
\label{app:evidence}
The verbatim output of the reproduction script (file
\texttt{repro\_run.txt}) follows.
\lstinputlisting[basicstyle=\ttfamily\footnotesize]{repro_run.txt}
% ============================================================================
\newpage
\section*{Colophon}
\addcontentsline{toc}{section}{Colophon}
\paragraph{Document.} This paper was typeset with \text{XeLaTeX} using the Cambria,
Calibri, and Consolas system fonts. The body is written in \TeX\ markup; all
code listings are embedded verbatim from their source files so that the printed
page and the repository are guaranteed to agree.
\paragraph{Sources of truth.} Three artifacts are authoritative, in this order:
(i) the Lean segment \texttt{mathlib5/layers/hol/lean/Mathlib5/GatesNormalization.lean};
(ii) the reproduction script \texttt{gates\_normalization\_repro.py}; and
(iii) this document, which quotes (i) and (ii) verbatim. Discrepancy between the
paper and an artifact is a defect in the paper, not in the artifact.
\paragraph{Verification status.} The numerical claims are reproduced by the
embedded script (Appendix~\ref{app:evidence}); the formal claims are proven in
Lean without \texttt{sorry}. The two are mutually consistent: every numeric
case the script checks is an instance of a theorem the Lean file proves
generically.
\paragraph{License and provenance.} Part of the SNAPKITTYWEST constellation.
Released under the umbrella verification discipline. Authored from the
observation of A.\ A.\ Parr that the simplex is the law.
% ============================================================================
\end{document}
|