Emad Mostaque, founder of Stability AI, the company known for the image-generation AI Stable Diffusion, has published a research paper titled "A Dot Product Is All You Need," dated November 26, 2026, together with formal proofs in the Lean proof assistant on GitHub. Starting from the inner product (the dot product), which defines length and angle, the paper combines rules such as probability and symmetry to reconstruct the quantum structure of a free scalar field. A free scalar field is a model that assigns a scalar value to each point and contains no interactions. The study's distinguishing feature is that it spells out which conditions are needed to get from geometry to quantum states and relativistic time evolution, and which parts of that derivation were covered by computer-checked formal proof. ## Conditions needed to derive quantum theory from an inner product Toss a fair coin twice, independently, and encode each outcome as +1 or −1. Treating the two outcomes as coordinates in a plane, the points appear at the four corners of a square with equal probability. But if the coordinate axes are rotated by 45 degrees, one coordinate takes the value 0 with probability one half. Because values that never appeared before the rotation now arise, the probability distribution changes under rotation. This is an example Mostaque gives in [Section 2.2 of the paper](https://github.com/emad-ii/dot-product/blob/f916a3de81301c74ebcbe898134f9625699a6011/paper/A_Dot_Product_Is_All_You_Need_Final.tex). That the variances of independent random variables add is a different condition from requiring that the distribution remain unchanged when the two variables are mixed by a rotation. Demanding the latter sharply restricts the allowable distributions. The paper's starting point, the inner product, is a mathematical operation that determines length and angle from two vectors. When the inner product of a nonzero vector with itself is positive, that value can be treated as the squared length, and orthogonality and reflection can also be defined. Mostaque introduces a single positive-definite inner product $g$ on a real space of dimension two or higher, and considers a real-valued field fluctuating randomly on that space. The values obtained by weighting the field with smooth functions are called "readings" and are treated as random variables in the mathematical model. To this he adds conditions such as probabilities being non-negative and summing to 1, and the product rule applying to the probabilities of independent events. He also requires a symmetry: equivalent descriptions must be assigned the same value. The quantity describing how much two random variables vary together is the covariance. If one imposes the condition that mixing two independently prepared sets of readings by a rotation that preserves covariance leaves the probability distribution unchanged, the Gaussian (normal) distribution follows. The coin-toss example above fails this rotation-invariance condition. Next comes how fluctuations at spatially separated locations are correlated. In Section 2.3 of the paper, space is divided into a finite number of lattice points, and expected values are specified for the sum of squared field values at the lattice points and for the sum of squared differences between neighboring lattice points. Among Gaussian distributions satisfying those conditions, choosing the one that maximizes uncertainty according to the maximum entropy principle gives the inverse of the covariance matrix $C$ the following form. $$C^{-1}=\alpha I+\beta L$$ Here $I$ is the identity matrix, $L$ is the graph Laplacian representing change between neighboring lattice points, and $\alpha$ and $\beta$ are determined by the specified conditions. Further, if the conditions are chosen so that the field is smoother than white noise, in which each point fluctuates independently, $\beta$ is positive. The paper then introduces two positive scales, $\hbar=1/\beta$ and $m^2=\alpha/\beta$. Holding these scales fixed while refining the lattice and enlarging the region connects the construction to the field covariance in the continuum. $$C=\hbar(-\Delta\_g+m^2)^{-1}$$ $\Delta\_g$ is the Laplacian, an operator describing spatial variation based on the inner product $g$. The inner product supplies the geometric structure of length and reflection, rotation invariance fixes the probability distribution, and the maximum entropy principle together with the specified constraints fixes the spatial correlations. Each condition plays a different role in reconstructing the quantum structure. ## Building the quantum state space from correlations with the reflected field Reflecting the field across a plane brings out a key condition linking the stochastic field to quantum states. Called "reflection positivity," it requires that the correlation between a quantity built from the field on one side of the plane and the reflection of that quantity onto the other side always be non-negative. A field that is valid as an ordinary probability distribution does not necessarily satisfy reflection positivity. In the symmetric lattice treated in Section 2.3 of the paper, once the field values on the boundary plane are fixed, the fields on its two sides are conditionally independent. Therefore, if $X$ denotes a quantity built from the field on one side, its correlation with the reflected quantity can be written as the mean of the square of the conditional expectation of $X$ given the information on the plane. Since a mean of squares is non-negative, this correlation can be treated as the squared norm of a quantum state. On the other hand, changing the operator that determines the covariance can destroy reflection positivity. Section 2.4 examines models that are invariant under translations and orthogonal transformations and are described by local differential operators of finite order. The target is the case where the "precision operator," the counterpart of the inverse covariance operator, is positive with a lower bound greater than zero, and it is expressed as a polynomial $P(x)$ in $x$, the squared magnitude of the wavenumber corresponding to momentum. For example, consider the model obtained by squaring the linear expression $x+m^2$ from earlier. $$P(x)=(x+m^2)^2$$ Fix the wavenumber $k$ along the plane and let the positive decay rate be $\omega\_k=\sqrt{\vert{}k\vert{}^2+m^2}$. The kernel $K\_k(u)$ is the inverse Fourier transform of the covariance $1/P(q^2+\vert{}k\vert{}^2)$ in the direction perpendicular to the plane, where $q$ is the wavenumber in that direction. The paper uses the normalized kernel obtained by dividing this kernel by $K\_k(0)$. $$\kappa(u)=\frac{K\_k(u)}{K\_k(0)} =(1+\omega\_k\vert{}u\vert{})\exp(-\omega\_k\vert{}u\vert{})$$ Place two preparations at different positive distances $r$ and $s$ from the plane. The 2×2 matrix of correlations with the reflected preparations is then built from $\kappa(2r)$, $\kappa(r+s)$, and $\kappa(2s)$. The determinant of this matrix is negative. $$\kappa(2r)\kappa(2s)-\kappa(r+s)^2 =-\omega\_k^2(r-s)^2\exp\[-2\omega\_k(r+s)]\<0 \qquad(r,s>0,\ r\neq s)$$ For the determinant using the unnormalized kernel $K\_k$, the right-hand side is multiplied by the positive factor $K\_k(0)^2$, so the sign does not change. A matrix representing the norms and inner products of quantum states must be positive semidefinite, so its determinant cannot be negative. Therefore, in this squared model, depending on the combination of preparations, a quantity corresponding to the squared norm of a quantum state becomes negative, and reflection positivity fails. Mostaque further presents a construction in which two narrow pulses of strength +1 and −1 are placed at distances $r$ and $2r$ from the plane. As $r$ approaches 0, the reflection form becomes negative even for polynomials of degree two or higher in the same class. When one considers a precision operator that is positive with a lower bound above zero, can be described as a local differential operator of finite order, and is invariant under translations and orthogonal transformations, the only non-constant polynomials $P(x)$ representing it that satisfy reflection positivity are those of degree 1. From correlations that satisfy reflection positivity, one can construct a "Hilbert space," a quantum state space equipped with an inner product and norm, by identifying components of zero norm and completing the space so that limits can be handled. In Section 3.1, the paper represents quantum states through conditioning on the field on the boundary plane, as "the information the boundary plane holds about field preparations." Expanding the Gaussian-type inner product then yields the "Fock space," which treats states with different particle numbers in a unified way. What is constructed here is the bosonic Fock space, in which exchanging identical particles leaves the state unchanged. ## How time evolution and measurement probabilities are derived Moving away from the plane by a distance $s$ attenuates the component corresponding to a one-particle state according to $\exp(-s\omega\_k)$. Here $\omega\_k$ for wavenumber $k$ is given by the following. $$\omega\_k=\sqrt{\vert{}k\vert{}^2+m^2}$$ In Section 3.2, the paper extends the distance to a complex number $z=s+it$ and obtains the following time evolution as the boundary value on the imaginary axis. $$\exp(-it\omega\_k)$$ This procedure of extending a function defined on the real numbers into the complex domain is called "analytic continuation." A change that decays exponentially with spatial distance is mapped to a phenomenon in which the phase changes with elapsed time. The resulting time evolution is a unitary transformation that preserves the norm of quantum states. Applying the same procedure to spatial rotations yields the Lorentz boost, the coordinate transformation between observers in relative motion. Defining energy as $E=\hbar\omega\_k$, momentum as $p=\hbar k$, and rest mass as $M=\hbar m$, the following relativistic relation holds. $$E^2=\vert{}p\vert{}\_g^2+M^2$$ The light cone is determined by $\vert{}x\vert{}\_g=\vert{}t\vert{}$, and in a notation that unifies the units of space and time based on the inner product $g$, the invariant speed is $c=1$. Deriving the probabilities of measurement outcomes from quantum states, however, requires a separate argument. In Section 3.5, the paper considers a projection operator $P$ that extracts the state component corresponding to an event in the resulting state space. For a state $\psi$ of norm 1, requiring additivity of probability and invariance under unitary transformations that leave $\psi$ unchanged fixes the probability of the event as the squared norm of the projected component. $$\Pr(P\vert{}\psi)=\Vert{}P\psi\Vert{}^2$$ This is the Born rule of quantum mechanics. Whereas the Gaussian distribution derived earlier determines the statistical properties of the field readings, the Born rule determines the probabilities of measurement outcomes from the quantum state. Section 3.6 further derives the Lüders rule, which updates the quantum state to the corresponding component, from the condition that after an event is observed, the probability ratios among the events contained in it are preserved. ## What Lean formally proved, and the mathematical issues left in the paper According to the [verification record](https://github.com/emad-ii/dot-product/blob/f916a3de81301c74ebcbe898134f9625699a6011/verification/README.md) Mostaque published, on November 26, 2026 he completed a local check of the accompanying formal proof files using Lean 4.34.1 and the specified version of the Mathlib mathematics library. Lean is a proof assistant in which mathematical proofs from assumptions to conclusions are written formally and checked by computer according to logical rules. This result is based on the record published by the author himself; this article did not independently rerun the check. According to the published [proof guide](https://github.com/emad-ii/dot-product/blob/f916a3de81301c74ebcbe898134f9625699a6011/docs/plane-proof-guide.md), the top-level theorem proves that all 12 items listed in Table 1 of the paper hold on one specified Fock space. The items concerning quantum mechanics include the Hilbert space, unitary time evolution, tensor products, the Born rule, self-adjoint observables, and state update by projection. The items concerning relativistic quantum fields include Poincaré covariance, an energy-momentum spectrum restricted to the forward light cone, uniqueness of the vacuum, field distributions, commutativity of spacelike-separated fields, and cyclicity of the vacuum. Spacelike separation refers to a spacetime interval between two events that not even light can bridge. Cross-checking the author's proof guide against the [Lean source code](https://github.com/emad-ii/dot-product/blob/f916a3de81301c74ebcbe898134f9625699a6011/lean/A_Dot_Product_Is_All_You_Need_Final.lean) for the version published November 26, 2026 (commit `f916a3de81301c74ebcbe898134f9625699a6011`), the scope of the formal proof can be summarized as follows.
| Item compared | Author's guide | What can be confirmed from Lean definitions and statements | Scope of formal proof | | ------------ | ---------------------------------------------------------- | --------------------------------------------------- | ----------------------------- | | Top-level theorem with 12 items | Proves all 12 items of Table 1 on one Fock space | Specifies the concrete `momentumFock` as the state space H and concludes that all 12 conditions hold | The 12 items on the specified Fock space | | Derivation of the Gaussian distribution | Derived from invariance under rotations that mix two independent sets of readings | Takes a probability measure μ and rotation invariance as input and concludes a mean-zero Gaussian measure | Formal proof with the probability measure and rotation invariance as assumptions | | Stages before constructing the state space | Also formalizes maximum entropy on finite graphs and exclusion of higher-order operators using two pulses | The corresponding theorems are listed at the beginning of the source code | The author states these stages are also formally proved | | Connecting the continuum to the state space | Limits in position space, reflection positivity for general nonlinear preparations, and the identification of L² on the boundary plane with the Fock space are left to the paper | `momentumFock` is already specified in the top-level theorem | The paper's analytic proofs are needed for the continuum construction leading to the Fock space | | Poincaré covariance | Treats translations, rotations, and boosts individually; the product law of the whole group is left to the paper | The corresponding predicate includes conditions on translations, rotations, and boosts by direction | Formal proofs of individual transformations; the product law of the whole group is not covered |
Note: On the Lean side, this refers to definitions and statements such as `gaussian_of_copyRotation`, `Table1PoincareCovariance`, and `theorem1_table1_axioms`, along with the explanation at the beginning of the source code. The check results are based on the author's published record. The final Lean theorem proves the 12 items on one Fock space specified in advance. The process of constructing that state space from the inner product and the proof that the resulting state space satisfies the properties of quantum mechanics and relativistic quantum fields differ in the extent of formal verification. To evaluate the whole argument for reconstructing quantum structure from geometry, the analytic connections not included in the formal proof also need to be checked. ## Relation to existing quantum field theory and where this work stands Reconstructing relativistic quantum fields from Euclidean fields using reflection positivity and analytic continuation has been studied since the 1970s. Konrad Osterwalder and Robert Schrader's [1975 paper "Axioms for Euclidean Green's Functions II"](https://projecteuclid.org/journals/communications-in-mathematical-physics/volume-42/issue-3/Axioms-for-Euclidean-Greens-functions-II-with-an-Appendix-by/cmp/1103899050.pdf) extended and corrected their 1973 predecessor and presented sufficient conditions for reconstruction by analytic continuation. Mostaque's construction also belongs to the lineage of this theory, known as Osterwalder–Schrader reconstruction. On the relationship between higher derivatives and reflection positivity, Francesca Arici and colleagues published the paper ["Reflection positivity in higher derivative scalar theories"](https://arxiv.org/abs/1712.04308) in December 2017. Its [Theorem 3.7](https://arxiv.org/pdf/1712.04308) gives a necessary and sufficient condition for reflection positivity for covariances expressed as real rational functions with no poles on the non-negative real axis. Poles are points where a function diverges; the condition is that all poles be simple poles on the negative real axis and that the residues, the coefficients of the divergent parts, be non-negative. The covariance $1/(x+m^2)^2$ of the squared model here has a double pole at $-m^2$. The failure of reflection positivity in this model can therefore also be explained by the existing pole-based criterion. Mostaque, on the other hand, targets local polynomial precision operators that are positive with a lower bound above zero, and presents an argument that excludes polynomials of degree two or higher using a single limit formula with two pulses of opposite sign. Whereas prior work judges reflection positivity from the pole structure of covariances expressed as rational functions, this paper assembles into a single argument the derivation of the Gaussian distribution from rotation invariance, the determination of the covariance by the maximum entropy principle on a lattice, the exclusion of higher-order precision operators, and the construction of the quantum state space and measurement probabilities, and also publishes Lean formal proofs. How much novelty this combination of existing mathematical methods has awaits assessment by independent researchers. From the public materials consulted, we could not confirm publication in a peer-reviewed journal, evaluation by independent researchers, or any record of a third party rerunning the Lean check. The subject is also limited to free scalar fields with positive $m$ and $\hbar$ in spacetimes of dimension two or higher; extending it to general quantum fields with interactions would require a separate argument.