diff d0ef47e..b34550f finite_euclidean_ramsey_v2.txt
diff --git a/finite_euclidean_ramsey_v2.txt b/finite_euclidean_ramsey_v2.txt
index 2442973..b8cd412 100644
--- a/finite_euclidean_ramsey_v2.txt
+++ b/finite_euclidean_ramsey_v2.txt
@@ -1,4 +1,4 @@
-A finite nonempty set $A$ of points in some Euclidean space is Ramsey if, for every integer $r\ge 2$, there is an integer $D\ge 1$ such that every map $c:\R^D\to\{1,\ldots,r\}$ is constant on a congruent copy of $A$. Congruence preserves every pairwise distance at the original scale, and no measurability or other regularity of $c$ is assumed.
+A finite nonempty set $A$ of points in some Euclidean space is Ramsey if, for every integer $r\ge 2$, there is an integer $D\ge 1$ such that every map $c:\R^D\to\{1,...,r\}$ is constant on a congruent copy of $A$. Congruence preserves every pairwise distance at the original scale, and no measurability or other regularity of $c$ is assumed.
 
 ./pdf/egmrss.pdf
 
@@ -25,25 +25,25 @@ Palvolgyi built a seven-point circle configuration that is not Ramsey, disprovin
 
 ./pdf/palvolgyi-heptagon.pdf
 
-Let $A=\{a_1,\ldots,a_s\}\subset\R^d$ be a finite set with $s\ge 2$ and affine span $\R^d$. Write
+Let $A=\{a_1,...,a_s\}\subset\R^d$ be a finite set with $s\ge 2$ and affine span $\R^d$. Write
 
-$$ p_i = (1, a_{i,1}, \ldots, a_{i,d})^{\mathsf T} $$
+$$ p_i = (1, a_{i,1}, ..., a_{i,d})^{\mathsf T} $$
 
 for $1\le i\le s$, and set
 
-$$ F = \Q\bigl((a_i)_\alpha : 1\le i\le s,\ 1\le\alpha\le d\bigr), \qquad B = F\otimes_\Q F. $$
+$$ F = \Q((a_i)_\alpha : 1\le i\le s,\ 1\le\alpha\le d), \qquad B = F ⊗ _\Q F. $$
 
-The ring $B$ is commutative, and the multiplication map $m_F:B\to F$ sends $x\otimes y$ to $xy$. This map need not be injective, so an equality in $B$ is stronger than its image under $m_F$. The entries of $p_i$ and the rows and columns of any $(d+1)\times(d+1)$ matrix are indexed by $0,1,\ldots,d$, with $0$ the constant coordinate.
+The ring $B$ is commutative, and the multiplication map $m_F:B\to F$ sends $x ⊗  y$ to $xy$. This map need not be injective, so an equality in $B$ is stronger than its image under $m_F$. The entries of $p_i$ and the rows and columns of any $(d+1)\times(d+1)$ matrix are indexed by $0,1,...,d$, with $0$ the constant coordinate.
 
-Theorem. The set $A$ is Ramsey if and only if there is a matrix $P\in\operatorname{Mat}_{d+1}(B)$ satisfying
+Theorem. The set $A$ is Ramsey if and only if there is a matrix $P\inMat_{d+1}(B)$ satisfying
 
-$$ (p_i\otimes 1)^{\mathsf T} P (1\otimes p_i) = 0 \qquad (1\le i\le s) $$
+$$ (p_i ⊗  1)^{\mathsf T} P (1 ⊗  p_i) = 0 \qquad (1\le i\le s) $$
 
 and
 
 $$ m_F(P_{\alpha\beta}) = \delta_{\alpha\beta} \qquad (1\le\alpha,\beta\le d). $$
 
-The entries of $p_i\otimes 1$ and $1\otimes p_i$ are formed componentwise, and no separate condition is imposed on the multiplied constant row or column of $P$. Only its spatial block is prescribed.
+The entries of $p_i ⊗  1$ and $1 ⊗  p_i$ are formed componentwise, and no separate condition is imposed on the multiplied constant row or column of $P$. Only its spatial block is prescribed.
 
 The criterion is congruence-invariant in affine dimension and uses exact relations in the coordinate field; it is not a method for recovering those relations from numerical data. Applying $m_F$ entrywise to the evaluation equations produces an ordinary sphere equation
 
@@ -69,63 +69,63 @@ $$ \|f_i-f_j\|^2 = \|a_i-a_j\|^2, \qquad \|g_i-g_j\|^2 = q\|a_i-a_j\|^2, $$
 
 where $q>0$ is arbitrarily small and each $g_i$ is a coordinate permutation of $f_i$. Distances and coordinate multisets match exactly.
 
-A free group on letters $\xi_z$, one per real sequence of finite support, then supplies paths: ordered products of $s$-tuples, each of whose factors records either an ordered scaled copy of $A$ or a common element in every position. Equal path endpoints with arbitrarily small weight ratios force the Ramsey property. Because the number $t$ of variable positions in a Hales-Jewett line is unknown in advance, one endpoint is prepared at weights $1,1/2,\ldots,1/n$ after fixing the word length $n$, before the words are colored; an ultrafilter construction realizes the products by finite strings that agree in every common factor, and the $t$ variable positions contribute squared-distance factor $t(1/t)=1$. Compactness then supplies a finite ambient dimension for each number of colors.
+A free group on letters $\xi_z$, one per real sequence of finite support, then supplies paths: ordered products of $s$-tuples, each of whose factors records either an ordered scaled copy of $A$ or a common element in every position. Equal path endpoints with arbitrarily small weight ratios force the Ramsey property. Because the number $t$ of variable positions in a Hales-Jewett line is unknown in advance, one endpoint is prepared at weights $1,1/2,...,1/n$ after fixing the word length $n$, before the words are colored; an ultrafilter construction realizes the products by finite strings that agree in every common factor, and the $t$ variable positions contribute squared-distance factor $t(1/t)=1$. Compactness then supplies a finite ambient dimension for each number of colors.
 
 The paths supplied by the tensor step must finally be made to share an endpoint; permutation averaging places their discrepancies in a subgroup corrected by appending paths of unit-scale copies, and further averaging makes the correction weight small against the larger original weight.
 
-Set $W=\R\times\R^d$ as a vector space over $\Q$. An element $w=(v,u)$ represents the affine function $a\mapsto v+a\cdot u$, and $e_i(w)=v+a_i\cdot u$ is a $\Q$-linear functional on $W$. Let $\mathcal T(W)\subset W\otimes_\Q W$ be the subspace fixed by the flip $w\otimes w'\mapsto w'\otimes w$, and let $G:\mathcal T(W)\to\operatorname{Sym}_d(\R)$ be the $\Q$-linear map induced by $(v,u)\otimes(v',u')\mapsto u(u')^{\mathsf T}$. Thus $G(w\otimes w)=uu^{\mathsf T}$ for $w=(v,u)$. The tensor condition is the existence of $T\in\mathcal T(W)$ with
+Set $W=\R\times\R^d$ as a vector space over $\Q$. An element $w=(v,u)$ represents the affine function $a\mapsto v+a\cdot u$, and $e_i(w)=v+a_i\cdot u$ is a $\Q$-linear functional on $W$. Let $\mathcal T(W)\subset W ⊗ _\Q W$ be the subspace fixed by the flip $w ⊗  w'\mapsto w' ⊗  w$, and let $G:\mathcal T(W)\toSym_d(\R)$ be the $\Q$-linear map induced by $(v,u) ⊗ (v',u')\mapsto u(u')^{\mathsf T}$. Thus $G(w ⊗  w)=uu^{\mathsf T}$ for $w=(v,u)$. The tensor condition is the existence of $T\in\mathcal T(W)$ with
 
-$$ (e_i\otimes e_i)(T) = 0 \quad (1\le i\le s), \qquad G(T) = I_d. $$
+$$ (e_i ⊗  e_i)(T) = 0 \quad (1\le i\le s), \qquad G(T) = I_d. $$
 
-The first identities live in $\R\otimes_\Q\R$ and are stronger than their images under multiplication.
+The first identities live in $\R ⊗ _\Q\R$ and are stronger than their images under multiplication.
 
 Proposition. The matrix condition in the theorem is equivalent to the tensor condition.
 
-Proof. Let $\mathscr B=\R\otimes_\Q\R$, let $\tau(x\otimes y)=y\otimes x$, and let $m_\R:\mathscr B\to\R$ be multiplication. Write the standard basis of $W$ as $\mathbf e_0=(1,0)$ and $\mathbf e_\alpha=(0,e_\alpha)$, and identify $W\otimes_\Q W$ with arrays $Q=(Q_{\alpha\beta})_{0\le\alpha,\beta\le d}$ over $\mathscr B$. Under this identification
+Proof. Let $\mathscr B=\R ⊗ _\Q\R$, let $\tau(x ⊗  y)=y ⊗  x$, and let $m_\R:\mathscr B\to\R$ be multiplication. Write the standard basis of $W$ as $\mathbf e_0=(1,0)$ and $\mathbf e_\alpha=(0,e_\alpha)$, and identify $W ⊗ _\Q W$ with arrays $Q=(Q_{\alpha\beta})_{0\le\alpha,\beta\le d}$ over $\mathscr B$. Under this identification
 
-$$ E_i(Q) = \sum_{\alpha,\beta=0}^d (p_{i,\alpha}\otimes 1) Q_{\alpha\beta} (1\otimes p_{i,\beta}), $$
+$$ E_i(Q) = \sum_{\alpha,\beta=0}^d (p_{i,\alpha} ⊗  1) Q_{\alpha\beta} (1 ⊗  p_{i,\beta}), $$
 
 and the gradient matrix is the spatial block $(m_\R(Q_{\alpha\beta}))_{1\le\alpha,\beta\le d}$. Flip sends $Q$ to $Q^*_{\alpha\beta}=\tau(Q_{\beta\alpha})$, and $E_i(Q^*)=\tau(E_i(Q))$ directly from the formula, while multiplication of $Q^*$ transposes the multiplied array. Hence $\tfrac12(Q+Q^*)$ keeps every zero evaluation and any multiplied spatial block equal to $I_d$. A matrix over $B$ therefore gives a symmetric tensor by the natural inclusion $B\subset\mathscr B$.
 
-Conversely, extending coefficients from $B$ to $\mathscr B$ adds no solutions. Fix an $F$-basis $(r_\lambda)_{\lambda\in\Lambda}$ of $\R$ and use the free $B$-module decomposition
+Conversely, extending coefficients from $B$ to $\mathscr B$ adds no solutions. Fix an $F$-basis $(r_\lambda)_{\lambda\inΛ}$ of $\R$ and use the free $B$-module decomposition
 
-$$ \mathscr B = \bigoplus_{\lambda,\mu\in\Lambda} B(r_\lambda\otimes r_\mu), $$
+$$ \mathscr B = ⊕_{\lambda,\mu\inΛ} B(r_\lambda ⊗  r_\mu), $$
 
-in which $x\otimes y\in B$ represents $(x r_\lambda)\otimes(y r_\mu)$ on the indicated summand. If an array $Q$ over $\mathscr B$ solves the evaluation equations and has multiplied spatial block $I_d$, its entries have a common finite expansion
+in which $x ⊗  y\in B$ represents $(x r_\lambda) ⊗ (y r_\mu)$ on the indicated summand. If an array $Q$ over $\mathscr B$ solves the evaluation equations and has multiplied spatial block $I_d$, its entries have a common finite expansion
 
-$$ Q = \sum_{(\lambda,\mu)\in J} (r_\lambda\otimes r_\mu)P^{\lambda\mu}, \qquad P^{\lambda\mu}\in\operatorname{Mat}_{d+1}(B). $$
+$$ Q = \sum_{(\lambda,\mu)\in J} (r_\lambda ⊗  r_\mu)P^{\lambda\mu}, \qquad P^{\lambda\mu}\inMat_{d+1}(B). $$
 
-Every coefficient appearing in the maps $E_i$ lies in $B$, so $E_i(P^{\lambda\mu})=0$ for all $(\lambda,\mu)$ and $i$. If $C^{\lambda\mu}\in\operatorname{Mat}_d(F)$ is the multiplied spatial block of $P^{\lambda\mu}$, then
+Every coefficient appearing in the maps $E_i$ lies in $B$, so $E_i(P^{\lambda\mu})=0$ for all $(\lambda,\mu)$ and $i$. If $C^{\lambda\mu}\inMat_d(F)$ is the multiplied spatial block of $P^{\lambda\mu}$, then
 
 $$ I_d = \sum_{(\lambda,\mu)\in J} r_\lambda r_\mu C^{\lambda\mu}. $$
 
 This is a finite linear system with coefficients and right side in $F$, and it is consistent over $\R$; row reduction over $F$ therefore produces $c_{\lambda\mu}\in F$ with $I_d=\sum c_{\lambda\mu}C^{\lambda\mu}$. The matrix
 
-$$ P = \sum_{(\lambda,\mu)\in J} (c_{\lambda\mu}\otimes 1)P^{\lambda\mu} $$
+$$ P = \sum_{(\lambda,\mu)\in J} (c_{\lambda\mu} ⊗  1)P^{\lambda\mu} $$
 
-is a solution over $B$. The individual blocks $C^{\lambda\mu}$ need not be symmetric; the descent takes place in the full $\operatorname{Mat}_d(F)$, and the previously proved symmetrization returns a symmetric tensor if one is wanted. This completes the equivalence.
+is a solution over $B$. The individual blocks $C^{\lambda\mu}$ need not be symmetric; the descent takes place in the full $Mat_d(F)$, and the previously proved symmetrization returns a symmetric tensor if one is wanted. This completes the equivalence.
 
-The ring $B$ is Noetherian, so the criterion is genuinely finite. Let $F_0=\Q[(a_i)_\alpha]$, a finitely generated domain, with $F=\operatorname{Frac}(F_0)$. Then $B$ is the localization of $F\otimes_\Q F_0$ at the elements $1\otimes f$ for nonzero $f\in F_0$; the latter ring is a finitely generated $F$-algebra, hence Noetherian. The kernel of the finite evaluation system therefore has finitely many $B$-module generators, and its multiplied spatial image is the $F$-span of their multiplied blocks, since scalars $c\in F$ lift to $c\otimes 1$. The description uses exact coordinate-field relations and does not recover them from numerical inputs.
+The ring $B$ is Noetherian, so the criterion is genuinely finite. Let $F_0=\Q[(a_i)_\alpha]$, a finitely generated domain, with $F=Frac(F_0)$. Then $B$ is the localization of $F ⊗ _\Q F_0$ at the elements $1 ⊗  f$ for nonzero $f\in F_0$; the latter ring is a finitely generated $F$-algebra, hence Noetherian. The kernel of the finite evaluation system therefore has finitely many $B$-module generators, and its multiplied spatial image is the $F$-span of their multiplied blocks, since scalars $c\in F$ lift to $c ⊗  1$. The description uses exact coordinate-field relations and does not recover them from numerical inputs.
 
-The tensor condition is congruence-invariant. If $a_i'=Q a_i+t$ with $Q\in O(d)$, the invertible $\Q$-linear map $H(v,u)=(v-t\cdot Qu,Qu)$ satisfies $e_i'\circ H=e_i$ and $G((H\otimes H)T)=Q G(T)Q^{\mathsf T}$, so $H\otimes H$ carries certificates for $A$ to certificates for $A'$ and $H^{-1}\otimes H^{-1}$ does the reverse. Reordering labels only reorders the equations, and any two congruent representatives of the same affine dimension are related by such a map; this recovers representative independence directly from the tensor form.
+The tensor condition is congruence-invariant. If $a_i'=Q a_i+t$ with $Q\in O(d)$, the invertible $\Q$-linear map $H(v,u)=(v-t\cdot Qu,Qu)$ satisfies $e_i'\circ H=e_i$ and $G((H ⊗  H)T)=Q G(T)Q^{\mathsf T}$, so $H ⊗  H$ carries certificates for $A$ to certificates for $A'$ and $H^{-1} ⊗  H^{-1}$ does the reverse. Reordering labels only reorders the equations, and any two congruent representatives of the same affine dimension are related by such a map; this recovers representative independence directly from the tensor form.
 
 The necessary direction follows from separating a missing tensor with a $\Q$-linear functional. Regard
 
-$$ \mathcal Y = (\R\otimes_\Q\R)^s \oplus \operatorname{Sym}_d(\R) $$
+$$ \mathcal Y = (\R ⊗ _\Q\R)^s  ⊕  Sym_d(\R) $$
 
-as a $\Q$-vector space and let $\Phi:\mathcal T(W)\to\mathcal Y$ be $\Phi(T)=((e_i\otimes e_i)(T))_{i=1}^s\oplus G(T)$. If the tensor condition fails, $y_0=(0,\ldots,0,I_d)$ lies outside $\operatorname{im}\Phi$. Extend the nonzero class of $y_0$ in $\mathcal Y/\operatorname{im}\Phi$ to a $\Q$-basis, send that basis element to $1$ and the others to $0$, and obtain a $\Q$-linear $\ell:\mathcal Y\to\R$ with $\ell\circ\Phi=0$ and $\ell(y_0)=1$. Write the components as $\ell_i:\R\otimes_\Q\R\to\R$ and $L:\operatorname{Sym}_d(\R)\to\R$, and set $h_i(x)=\ell_i(x\otimes x)$. Evaluating $\ell\circ\Phi$ on $w\otimes w$ gives
+as a $\Q$-vector space and let $\Phi:\mathcal T(W)\to\mathcal Y$ be $\Phi(T)=((e_i ⊗  e_i)(T))_{i=1}^s ⊕  G(T)$. If the tensor condition fails, $y_0=(0,...,0,I_d)$ lies outside $im\Phi$. Extend the nonzero class of $y_0$ in $\mathcal Y/im\Phi$ to a $\Q$-basis, send that basis element to $1$ and the others to $0$, and obtain a $\Q$-linear $\ell:\mathcal Y\to\R$ with $\ell\circ\Phi=0$ and $\ell(y_0)=1$. Write the components as $\ell_i:\R ⊗ _\Q\R\to\R$ and $L:Sym_d(\R)\to\R$, and set $h_i(x)=\ell_i(x ⊗  x)$. Evaluating $\ell\circ\Phi$ on $w ⊗  w$ gives
 
 $$ \sum_{i=1}^s h_i(v+a_i\cdot u) + L(uu^{\mathsf T}) = 0, \qquad L(I_d)=1, $$
 
 and $u=0$ gives $\sum_{i=1}^s h_i(x)=0$ for every $x\in\R$. No continuity or measurability enters; these are purely algebraic functionals.
 
-Fix $D$ and put $H_i(z)=\sum_{j=1}^D h_i(z_j)$ for $z\in\R^D$. Every ordered congruent copy $(b_1,\ldots,b_s)$ in $\R^D$ satisfies
+Fix $D$ and put $H_i(z)=\sum_{j=1}^D h_i(z_j)$ for $z\in\R^D$. Every ordered congruent copy $(b_1,...,b_s)$ in $\R^D$ satisfies
 
 $$ \sum_{i=1}^s H_i(b_i) = -1. $$
 
 Indeed, equality of the pairwise distances gives equality of the Gram matrices of $(a_i-a_1)_{i}$ and $(b_i-b_1)_{i}$ by polarization, so sending $a_i-a_1$ to $b_i-b_1$ extends to an inner-product-preserving linear map on the span. Since $A$ affinely spans $\R^d$, there are a linear isometry $Q:\R^d\to\R^D$ and $t\in\R^D$ with $b_i=t+Qa_i$. If $u_j^{\mathsf T}$ denotes the $j$-th row of $Q$, then $(b_i)_j=e_i(t_j,u_j)$ and $\sum_{j=1}^D u_j u_j^{\mathsf T}=Q^{\mathsf T}Q=I_d$. Summing the separated identity over $j$ and using finite additivity of $L$ proves the claim. The same constant cancellation gives $\sum_i H_i(z)=0$ at each single point $z$.
 
-Choose $K=2s+1$ and split $[0,2)$ into $K$ half-open intervals of length $2/K<1/s$. Color a point $z$ by the $s$-tuple of interval labels assigned to the representatives of $H_i(z)$ modulo $2$. This uses at most $r_0=K^s$ colors, uniformly in $D$. If $b_1,\ldots,b_s$ were monochromatic, there would be integers $n_i$ and reals $\varepsilon_i$ with $|\varepsilon_i|<2/K$ and $H_i(b_i)-H_i(b_1)=2n_i+\varepsilon_i$; summing would give $-1=2\sum_i n_i+\sum_i\varepsilon_i$ with $|\sum_i\varepsilon_i|<1$, impossible. The coloring therefore avoids $A$ in every $\R^D$, so every Euclidean Ramsey set satisfies the matrix condition.
+Choose $K=2s+1$ and split $[0,2)$ into $K$ half-open intervals of length $2/K<1/s$. Color a point $z$ by the $s$-tuple of interval labels assigned to the representatives of $H_i(z)$ modulo $2$. This uses at most $r_0=K^s$ colors, uniformly in $D$. If $b_1,...,b_s$ were monochromatic, there would be integers $n_i$ and reals $ε_i$ with $|ε_i|<2/K$ and $H_i(b_i)-H_i(b_1)=2n_i+ε_i$; summing would give $-1=2\sum_i n_i+\sum_iε_i$ with $|\sum_iε_i|<1$, impossible. The coloring therefore avoids $A$ in every $\R^D$, so every Euclidean Ramsey set satisfies the matrix condition.
 
 The strategy of combining an invariant with a coloring goes back to Erdos, Graham, Montgomery, Rothschild, Spencer and Straus, whose real-variable coloring lemma extends the earlier partition-regularity work of Rado. The modular coloring of the obstruction is proved directly from the separated functional.
 
@@ -134,53 +134,53 @@ The strategy of combining an invariant with a coloring goes back to Erdos, Graha
 
 The sufficiency direction takes a tensor satisfying the tensor conditions and converts exact algebraic cancellations into a congruent copy at scale one.
 
-Assume the tensor condition holds. Fix a symmetric $T\in W\otimes_\Q W$ with $(e_i\otimes e_i)(T)=0$ and $G(T)=I_d$. The factors of $T$ span a finite-dimensional $\Q$-subspace of $W$; choose a basis $w_1,\ldots,w_k$ and write
+Assume the tensor condition holds. Fix a symmetric $T\in W ⊗ _\Q W$ with $(e_i ⊗  e_i)(T)=0$ and $G(T)=I_d$. The factors of $T$ span a finite-dimensional $\Q$-subspace of $W$; choose a basis $w_1,...,w_k$ and write
 
-$$ T = \sum_{a,b=1}^k C_{ab} w_a\otimes w_b, \qquad C\in\operatorname{Mat}_k(\Q),\quad C=C^{\mathsf T}. $$
+$$ T = \sum_{a,b=1}^k C_{ab} w_a ⊗  w_b, \qquad C\inMat_k(\Q),\quad C=C^{\mathsf T}. $$
 
-For $\lambda\in\Q^k$ put $w(\lambda)=\sum_j \lambda_j w_j$. With $w_j=(v_j,u_j)$ let $U=(u_1\ \cdots\ u_k)$ be the real $d\times k$ matrix whose columns are gradients. The gradient identity becomes
+For $\lambda\in\Q^k$ put $w(\lambda)=\sum_j \lambda_j w_j$. With $w_j=(v_j,u_j)$ let $U=(u_1\ ...\ u_k)$ be the real $d\times k$ matrix whose columns are gradients. The gradient identity becomes
 
 $$ U C U^{\mathsf T} = I_d. $$
 
 Set $\Gamma=\Z^k$ and define the evaluation lattices
 
-$$ \Lambda_i = \{\lambda\in\Gamma : e_i(w(\lambda))=0\}, \qquad V_i = \operatorname{span}_\Q \Lambda_i. $$
+$$ Λ_i = \{\lambda\in\Gamma : e_i(w(\lambda))=0\}, \qquad V_i = span_\Q Λ_i. $$
 
-Clearing denominators shows that $V_i$ is the kernel of the rational linear form $\lambda\mapsto e_i(w(\lambda))$ on $\Q^k$. Hence $\Q^k/V_i$ embeds into $\R$ over $\Q$, and tensoring the injection with itself remains injective. The element $\sum_{a,b} C_{ab}\varepsilon_a\otimes\varepsilon_b$ therefore maps to zero in $(\Q^k/V_i)\otimes_\Q(\Q^k/V_i)$ for each $i$.
+Clearing denominators shows that $V_i$ is the kernel of the rational linear form $\lambda\mapsto e_i(w(\lambda))$ on $\Q^k$. Hence $\Q^k/V_i$ embeds into $\R$ over $\Q$, and tensoring the injection with itself remains injective. The element $\sum_{a,b} C_{ab}ε_a ⊗ ε_b$ therefore maps to zero in $(\Q^k/V_i) ⊗ _\Q(\Q^k/V_i)$ for each $i$.
 
-Lemma (finite lattice identity). Let $k,s\ge 1$, let $\Lambda_1,\ldots,\Lambda_s$ be subgroups of $\Gamma=\Z^k$, and set $V_i=\operatorname{span}_\Q \Lambda_i$. Let $C\in\operatorname{Mat}_k(\Q)$ be symmetric, and suppose that the image of $\sum_{a,b} C_{ab}\varepsilon_a\otimes\varepsilon_b$ in $(\Q^k/V_i)\otimes_\Q(\Q^k/V_i)$ is zero for every $i$. Then there is a finitely supported $\nu:\Gamma\to\Q$ with
+Lemma (finite lattice identity). Let $k,s\ge 1$, let $Λ_1,...,Λ_s$ be subgroups of $\Gamma=\Z^k$, and set $V_i=span_\Q Λ_i$. Let $C\inMat_k(\Q)$ be symmetric, and suppose that the image of $\sum_{a,b} C_{ab}ε_a ⊗ ε_b$ in $(\Q^k/V_i) ⊗ _\Q(\Q^k/V_i)$ is zero for every $i$. Then there is a finitely supported $\nu:\Gamma\to\Q$ with
 
-$$ \sum_{\gamma\in q} \nu(\gamma)=0 \qquad (q\in\Gamma/\Lambda_i,\ 1\le i\le s) $$
+$$ \sum_{\gamma\in q} \nu(\gamma)=0 \qquad (q\in\Gamma/Λ_i,\ 1\le i\le s) $$
 
 and
 
 $$ \sum_\gamma \nu(\gamma)=0, \quad \sum_\gamma \nu(\gamma)\gamma = 0, \quad \sum_\gamma \nu(\gamma)\gamma\gamma^{\mathsf T} = C. $$
 
-Proof. The Laurent ring $R=\Q[X_1^{\pm 1},\ldots,X_k^{\pm 1}]$ is the group algebra of $\Gamma$ via $X^\gamma=\prod_j X_j^{\gamma_j}$. The kernel of the quotient map $\Gamma\to\Gamma/\Lambda_i$ is
+Proof. The Laurent ring $R=\Q[X_1^{\pm 1},...,X_k^{\pm 1}]$ is the group algebra of $\Gamma$ via $X^\gamma=\prod_j X_j^{\gamma_j}$. The kernel of the quotient map $\Gamma\to\Gamma/Λ_i$ is
 
-$$ J_i = (X^h-1 : h\in\Lambda_i). $$
+$$ J_i = (X^h-1 : h\inΛ_i). $$
 
-Indeed, a Laurent polynomial vanishes on every coset of $\Lambda_i$ exactly when it is a sum of terms $c_\gamma(X^\gamma-X^{\gamma_0})$ inside the cosets of its support, and each such term lies in $J_i$.
+Indeed, a Laurent polynomial vanishes on every coset of $Λ_i$ exactly when it is a sum of terms $c_\gamma(X^\gamma-X^{\gamma_0})$ inside the cosets of its support, and each such term lies in $J_i$.
 
-Pass to formal logarithmic coordinates. With $\mathfrak m=(X_1-1,\ldots,X_k-1)$ and $Z_j=X_j-1$, the $\mathfrak m$-adic completion is $\widehat R=\Q[[Z_1,\ldots,Z_k]]$, because the factors $1+Z_j$ are invertible modulo each power of $(Z_1,\ldots,Z_k)$. The substitutions $Y_j=\log(1+Z_j)$ and $Z_j=\exp(Y_j)-1$ identify $\widehat R$ with $\Q[[Y_1,\ldots,Y_k]]$ and $\mathfrak m\widehat R$ with $(Y_1,\ldots,Y_k)$. For $h\in\Gamma$,
+Pass to formal logarithmic coordinates. With $\mathfrak m=(X_1-1,...,X_k-1)$ and $Z_j=X_j-1$, the $\mathfrak m$-adic completion is $\widehat R=\Q[[Z_1,...,Z_k]]$, because the factors $1+Z_j$ are invertible modulo each power of $(Z_1,...,Z_k)$. The substitutions $Y_j=\log(1+Z_j)$ and $Z_j=\exp(Y_j)-1$ identify $\widehat R$ with $\Q[[Y_1,...,Y_k]]$ and $\mathfrak m\widehat R$ with $(Y_1,...,Y_k)$. For $h\in\Gamma$,
 
-$$ X^h-1 = \exp(h\cdot Y)-1 = (h\cdot Y)\sum_{n\ge 0}\frac{(h\cdot Y)^n}{(n+1)!}, $$
+$$ X^h-1 = \exp(h\cdot Y)-1 = (h\cdot Y)\sum_{n\ge 0}((h\cdot Y)^n)/((n+1)!), $$
 
-and the last factor is a unit, so $J_i\widehat R=(h\cdot Y : h\in\Lambda_i)\widehat R$.
+and the last factor is a unit, so $J_i\widehat R=(h\cdot Y : h\inΛ_i)\widehat R$.
 
-Put $Q_2(Y)=\tfrac12 Y^{\mathsf T}C Y$ and identify $\Q[Y_1,\ldots,Y_k]$ with the symmetric algebra of $\Q^k$ via $\varepsilon_j\mapsto Y_j$. The kernel of the projection onto the symmetric algebra of $\Q^k/V_i$ is generated in degree one by $V_i$; this follows by extending a basis of $V_i$ to a basis of $\Q^k$. Since the tensor $C$ vanishes on the quotient, $Q_2$ lies in the ideal generated by the linear forms $h\cdot Y$, $h\in\Lambda_i$, and therefore $Q_2\in J_i\widehat R$ for every $i$.
+Put $Q_2(Y)=\tfrac12 Y^{\mathsf T}C Y$ and identify $\Q[Y_1,...,Y_k]$ with the symmetric algebra of $\Q^k$ via $ε_j\mapsto Y_j$. The kernel of the projection onto the symmetric algebra of $\Q^k/V_i$ is generated in degree one by $V_i$; this follows by extending a basis of $V_i$ to a basis of $\Q^k$. Since the tensor $C$ vanishes on the quotient, $Q_2$ lies in the ideal generated by the linear forms $h\cdot Y$, $h\inΛ_i$, and therefore $Q_2\in J_i\widehat R$ for every $i$.
 
-The ring $R$ is Noetherian, and $\widehat R$ is flat over $R$ (Tag 00MB of the Stacks project). The injection $R/I\to\bigoplus_i R/J_i$, with $I=\bigcap_i J_i$, therefore survives tensor with $\widehat R$, so $I\widehat R=\bigcap_i J_i\widehat R$ and $Q_2\in I\widehat R$.
+The ring $R$ is Noetherian, and $\widehat R$ is flat over $R$ (Tag 00MB of the Stacks project). The injection $R/I\to⊕_i R/J_i$, with $I=∩_i J_i$, therefore survives tensor with $\widehat R$, so $I\widehat R=∩_i J_i\widehat R$ and $Q_2\in I\widehat R$.
 
-Recover a finite Laurent polynomial by truncation. Write $Q_2=\sum_{a=1}^N f_a\alpha_a$ with $f_a\in I$ and $\alpha_a\in\widehat R$. For each $a$, truncate the $Z$-expansion of $\alpha_a$ through degree two to obtain $b_a\in R$ with $b_a-\alpha_a\in\mathfrak m^3\widehat R$. Then $f=\sum_a f_a b_a\in I$ and $f(e^{Y_1},\ldots,e^{Y_k})=\tfrac12 Y^{\mathsf T}C Y \pmod{(Y_1,\ldots,Y_k)^3}$. Write $f=\sum_\gamma \nu(\gamma)X^\gamma$. Membership $f\in J_i$ for all $i$ gives the coset sums. Since $X^\gamma=\exp(\gamma\cdot Y)=1+\gamma\cdot Y+\tfrac12(\gamma\cdot Y)^2 \pmod{(Y)^3}$, comparison of the constant term, gradient and Hessian at $Y=0$ gives the moment identities.
+Recover a finite Laurent polynomial by truncation. Write $Q_2=\sum_{a=1}^N f_a\alpha_a$ with $f_a\in I$ and $\alpha_a\in\widehat R$. For each $a$, truncate the $Z$-expansion of $\alpha_a$ through degree two to obtain $b_a\in R$ with $b_a-\alpha_a\in\mathfrak m^3\widehat R$. Then $f=\sum_a f_a b_a\in I$ and $f(e^{Y_1},...,e^{Y_k})=\tfrac12 Y^{\mathsf T}C Y \pmod{(Y_1,...,Y_k)^3}$. Write $f=\sum_\gamma \nu(\gamma)X^\gamma$. Membership $f\in J_i$ for all $i$ gives the coset sums. Since $X^\gamma=\exp(\gamma\cdot Y)=1+\gamma\cdot Y+\tfrac12(\gamma\cdot Y)^2 \pmod{(Y)^3}$, comparison of the constant term, gradient and Hessian at $Y=0$ gives the moment identities.
 
 ./pdf/ramsrc/stacks-00MB.html
 
 Applied to the matrix and lattices of the tensor, the lemma produces signed rational weights whose positive and negative parts agree in total mass, first moment, and gradient second moment up to the prescribed $C$. Within each evaluation class the two parts balance separately, so when the affine functions $w(\lambda)$ are evaluated at $a_i$, the resulting coordinate multiset is the same on both sides. The next step redistributes these weights so that the negative gradient second moment is small while all equalities remain exact.
 
-The tensor will now produce two configurations at arbitrarily different scales whose coordinate multisets agree at every label. Write $D_C=\tfrac12\sum_{j,l=1}^k C_{jl}\partial_j\partial_l$ for a real symmetric $k\times k$ matrix $C$, and put $r_+=\max\{r,0\}$ and $r_-=\max\{-r,0\}$ for real $r$.
+The tensor will now produce two configurations at arbitrarily different scales whose coordinate multisets agree at every label. Write $D_C=\tfrac12\sum_{j,l=1}^k C_{jl}∂_j∂_l$ for a real symmetric $k\times k$ matrix $C$, and put $r_+=\max\{r,0\}$ and $r_-=\max\{-r,0\}$ for real $r$.
 
-Lemma (two-scale configurations). Let $A=\{a_1,\ldots,a_s\}\subset\R^d$ have affine span $\R^d$ with $s\ge 2$, and let $W=\R^{1+d}$ be regarded as a vector space over $\Q$. Suppose a symmetric tensor $T\in W\otimes_\Q W$ satisfies $(e_i\otimes e_i)(T)=0$ for $1\le i\le s$ and $G(T)=I_d$. For every $\eta>0$ there are an integer $\ell\ge 1$, a real $q=\eta/(1+\eta)$, and vectors $f_i,g_i\in\R^\ell$ with
+Lemma (two-scale configurations). Let $A=\{a_1,...,a_s\}\subset\R^d$ have affine span $\R^d$ with $s\ge 2$, and let $W=\R^{1+d}$ be regarded as a vector space over $\Q$. Suppose a symmetric tensor $T\in W ⊗ _\Q W$ satisfies $(e_i ⊗  e_i)(T)=0$ for $1\le i\le s$ and $G(T)=I_d$. For every $\eta>0$ there are an integer $\ell\ge 1$, a real $q=\eta/(1+\eta)$, and vectors $f_i,g_i\in\R^\ell$ with
 
 $$ \|f_i-f_j\|^2 = \|a_i-a_j\|^2, \qquad \|g_i-g_j\|^2 = q\|a_i-a_j\|^2 \quad (1\le i,j\le s), $$
 
@@ -188,23 +188,23 @@ and with $g_i$ a coordinate permutation of $f_i$ for each $i$.
 
 The lemma is proved in three parts. The first is a smoothing estimate, the second turns smoothed weights into rational ones while preserving cancellation, and the third assembles the two lists.
 
-Lemma (compactly supported smoothing). Let $C$ be a real symmetric $k\times k$ matrix and $U$ a real $d\times k$ matrix with $d\ge 1$ and $U C U^{\mathsf T}=I_d$. For every $\eta>0$ there is a nonnegative $b\in C_c^\infty(\R^k)$ with $\int_{\R^k} b(x)\,dx>0$ and
+Lemma (compactly supported smoothing). Let $C$ be a real symmetric $k\times k$ matrix and $U$ a real $d\times k$ matrix with $d\ge 1$ and $U C U^{\mathsf T}=I_d$. For every $\eta>0$ there is a nonnegative $b\in C_c^∞(\R^k)$ with $\int_{\R^k} b(x)\,dx>0$ and
 
 $$ \int_{\R^k} (D_C b)_-(x)\,\|U x\|^2\,dx < \eta \int_{\R^k} b(x)\,dx. $$
 
-Proof. The identity $U C U^{\mathsf T}=I_d$ forces $U$ to have rank $d$. Set $H=\operatorname{im}(U^{\mathsf T})$ and $V=\ker U$, so $\R^k=H\oplus V$ orthogonally. The quadratic form of $C$ on $H$ is positive definite: if $0\ne h=U^{\mathsf T}y$, then $h^{\mathsf T} C h=y^{\mathsf T} U C U^{\mathsf T} y=\|y\|^2>0$. Choose $\epsilon>0$ with $\epsilon\operatorname{tr}(UU^{\mathsf T})<\eta/8$. With $P_H,P_V$ the orthogonal projections, put $S=\epsilon P_H + L P_V$ for $L$ large enough that $S$ and $S+C$ are positive definite. Writing $S+C$ in blocks over $H\oplus V$ as
+Proof. The identity $U C U^{\mathsf T}=I_d$ forces $U$ to have rank $d$. Set $H=im(U^{\mathsf T})$ and $V=\ker U$, so $\R^k=H ⊕  V$ orthogonally. The quadratic form of $C$ on $H$ is positive definite: if $0\ne h=U^{\mathsf T}y$, then $h^{\mathsf T} C h=y^{\mathsf T} U C U^{\mathsf T} y=\|y\|^2>0$. Choose $ε>0$ with $εtr(UU^{\mathsf T})<\eta/8$. With $P_H,P_V$ the orthogonal projections, put $S=ε P_H + L P_V$ for $L$ large enough that $S$ and $S+C$ are positive definite. Writing $S+C$ in blocks over $H ⊕  V$ as
 
-$$ S+C = \begin{pmatrix} A & B \\ B^{\mathsf T} & C_{VV}+L I_V \end{pmatrix}, \qquad A=C_{HH}+\epsilon I_H>0, $$
+$$ S+C =  A & B \\ B^{\mathsf T} & C_{VV}+L I_V , \qquad A=C_{HH}+ε I_H>0, $$
 
 the Schur complement criterion gives positive definiteness after enlarging $L$; when $V=\{0\}$ there is no second block. Since $U P_V=0$,
 
-$$ \operatorname{tr}(U S U^{\mathsf T}) = \epsilon\operatorname{tr}(UU^{\mathsf T}) < \eta/8. $$
+$$ tr(U S U^{\mathsf T}) = εtr(UU^{\mathsf T}) < \eta/8. $$
 
 Every $S+tC$ with $0\le t\le 1$ is a convex combination of two positive definite matrices, hence positive definite.
 
 For a positive definite $Q$ let $\phi_Q$ be the centered Gaussian density with covariance $Q$. Differentiating $\phi_{Q_t}$ with $Q_t=S+tC$ gives
 
-$$ \frac{d}{dt}\phi_{Q_t}(x) = \frac12\bigl(x^{\mathsf T}Q_t^{-1}C Q_t^{-1} x - \operatorname{tr}(Q_t^{-1}C)\bigr)\phi_{Q_t}(x) = D_C\phi_{Q_t}(x). $$
+$$ (d)/(dt)\phi_{Q_t}(x) = \frac12(x^{\mathsf T}Q_t^{-1}C Q_t^{-1} x - tr(Q_t^{-1}C))\phi_{Q_t}(x) = D_C\phi_{Q_t}(x). $$
 
 The eigenvalues of $Q_t$ are uniformly bounded above and below, so the densities and every spatial derivative have uniform Gaussian decay. Hence
 
@@ -212,21 +212,21 @@ $$ b_*(x) = \int_0^1 \phi_{S+tC}(x)\,dt $$
 
 is a nonnegative Schwartz function of integral $1$, and differentiation under the integral gives $D_C b_*=\phi_{S+C}-\phi_S$. The pointwise inequality $(\phi_{S+C}-\phi_S)_-\le\phi_S$ and the trace bound give
 
-$$ \int_{\R^k}(D_C b_*)_-(x)\|U x\|^2\,dx \le \int_{\R^k}\phi_S(x)\|U x\|^2\,dx = \operatorname{tr}(U S U^{\mathsf T}) < \eta/8. $$
+$$ \int_{\R^k}(D_C b_*)_-(x)\|U x\|^2\,dx \le \int_{\R^k}\phi_S(x)\|U x\|^2\,dx = tr(U S U^{\mathsf T}) < \eta/8. $$
 
-Compactify by fixing $\chi\in C_c^\infty(\R^k)$ with $0\le\chi\le 1$, equal to $1$ on the unit ball and zero outside the ball of radius $2$, and setting $\chi_R(x)=\chi(x/R)$ and $b_R=\chi_R b_*$. Then $\int b_R\to 1$. The product rule writes $D_C b_R$ as $\chi_R D_C b_*$ plus a term with first derivatives of $\chi_R$ and a term with $D_C\chi_R$. The latter two are supported on the shell $R\le\|x\|\le 2R$, where their bounds are $R^{-1}$ and $R^{-2}$ and where $b_*$ has Gaussian decay, so their weighted integrals tend to zero. Since $r\mapsto r_-$ is $1$-Lipschitz, $\int |(D_C b_R)_--(D_C b_*)_-|\,\|U x\|^2\to 0$. For $R$ large, $\int b_R>1/2$ and the deviation is below $\eta/8$, giving
+Compactify by fixing $\chi\in C_c^∞(\R^k)$ with $0\le\chi\le 1$, equal to $1$ on the unit ball and zero outside the ball of radius $2$, and setting $\chi_R(x)=\chi(x/R)$ and $b_R=\chi_R b_*$. Then $\int b_R\to 1$. The product rule writes $D_C b_R$ as $\chi_R D_C b_*$ plus a term with first derivatives of $\chi_R$ and a term with $D_C\chi_R$. The latter two are supported on the shell $R\le\|x\|\le 2R$, where their bounds are $R^{-1}$ and $R^{-2}$ and where $b_*$ has Gaussian decay, so their weighted integrals tend to zero. Since $r\mapsto r_-$ is $1$-Lipschitz, $\int |(D_C b_R)_--(D_C b_*)_-|\,\|U x\|^2\to 0$. For $R$ large, $\int b_R>1/2$ and the deviation is below $\eta/8$, giving
 
 $$ \int (D_C b_R)_-\|U x\|^2 < \eta/4 < \eta \int b_R. $$
 
 Then $b=b_R$ satisfies the required inequality.
 
-Lemma (finite rational weights). Let $\Gamma=\Z^k$, let $\Lambda_1,\ldots,\Lambda_s$ be subgroups of $\Gamma$, and let $\nu:\Gamma\to\Q$ be finitely supported with zero pushforward on each $\Gamma/\Lambda_i$ and with zero mass, zero first moment, and second moment $\sum_\gamma \nu(\gamma)\gamma\gamma^{\mathsf T}=C$. Let $U$ be a real $d\times k$ matrix with $U C U^{\mathsf T}=I_d$ and $d\ge 1$. For every $\eta>0$ there are an integer $n\ge 1$, a finitely supported $\mu:\Gamma\to\Q$, and a positive rational $\zeta$ with zero pushforward of $\mu$ on each $\Gamma/\Lambda_i$ and
+Lemma (finite rational weights). Let $\Gamma=\Z^k$, let $Λ_1,...,Λ_s$ be subgroups of $\Gamma$, and let $\nu:\Gamma\to\Q$ be finitely supported with zero pushforward on each $\Gamma/Λ_i$ and with zero mass, zero first moment, and second moment $\sum_\gamma \nu(\gamma)\gamma\gamma^{\mathsf T}=C$. Let $U$ be a real $d\times k$ matrix with $U C U^{\mathsf T}=I_d$ and $d\ge 1$. For every $\eta>0$ there are an integer $n\ge 1$, a finitely supported $\mu:\Gamma\to\Q$, and a positive rational $\zeta$ with zero pushforward of $\mu$ on each $\Gamma/Λ_i$ and
 
-$$ \sum_\lambda \mu(\lambda)\frac{\lambda}{n}\frac{\lambda^{\mathsf T}}{n} = \zeta C, \qquad \sum_\lambda \mu(\lambda)_-\left\|U\frac{\lambda}{n}\right\|^2 < \eta\zeta. $$
+$$ \sum_\lambda \mu(\lambda)(\lambda)/(n)\frac{\lambda^{\mathsf T}}{n} = \zeta C, \qquad \sum_\lambda \mu(\lambda)_-\left\|U(\lambda)/(n)\right\|^2 < \eta\zeta. $$
 
 Proof. Take $b$ from the smoothing lemma. For a positive integer $n$ set $d_n(\lambda)=n^{2-k}b(\lambda/n)$ and $\mu_n=\nu*d_n$, so $\mu_n(\lambda)=\sum_\gamma \nu(\gamma)d_n(\lambda-\gamma)$. Pushforward to a quotient commutes with convolution, so every required pushforward of $\mu_n$ vanishes. For any finitely supported real $d$ the moment identities of $\nu$ give
 
-$$ \sum_\lambda (\nu*d)(\lambda)=0, \qquad \sum_\lambda (\nu*d)(\lambda)\lambda\lambda^{\mathsf T} = \Bigl(\sum_\beta d(\beta)\Bigr)C, $$
+$$ \sum_\lambda (\nu*d)(\lambda)=0, \qquad \sum_\lambda (\nu*d)(\lambda)\lambda\lambda^{\mathsf T} = (\sum_\beta d(\beta))C, $$
 
 by substituting $\lambda=\beta+\gamma$ and using the vanishing of the mass and first moment of $\nu$. With $\zeta_n=n^{-2}\sum_\lambda d_n(\lambda)=n^{-k}\sum_\lambda b(\lambda/n)$ the exact second-moment identity holds for $(\mu_n,\zeta_n)$, and Riemann sums give $\zeta_n\to\int b>0$.
 
@@ -234,35 +234,35 @@ For $x=\lambda/n$ a Taylor expansion gives
 
 $$ n^k\mu_n(\lambda) = n^2\sum_\gamma \nu(\gamma) b(x-\gamma/n) = D_C b(x)+O(n^{-1}), $$
 
-uniformly in $x$, since the third derivatives of $b$ are bounded and $\sum_\gamma |\nu(\gamma)|\|\gamma\|^3<\infty$. After dividing the lattice by $n$, both the support of $\mu_n$ and the support of $D_C b(\lambda/n)$ stay in a single fixed ball, uniformly in $n$, where $\|U x\|^2$ is bounded. The lattice points in that ball number $O(n^k)$, and $r\mapsto r_-$ is $1$-Lipschitz, so
+uniformly in $x$, since the third derivatives of $b$ are bounded and $\sum_\gamma |\nu(\gamma)|\|\gamma\|^3<∞$. After dividing the lattice by $n$, both the support of $\mu_n$ and the support of $D_C b(\lambda/n)$ stay in a single fixed ball, uniformly in $n$, where $\|U x\|^2$ is bounded. The lattice points in that ball number $O(n^k)$, and $r\mapsto r_-$ is $1$-Lipschitz, so
 
 $$ \sum_\lambda \mu_n(\lambda)_-\|U\lambda/n\|^2 - n^{-k}\sum_\lambda (D_C b(\lambda/n))_-\|U\lambda/n\|^2 = O(n^{-1}). $$
 
 The second sum is a Riemann sum, so by the smoothing lemma,
 
-$$ \sum_\lambda \mu_n(\lambda)_-\|U\lambda/n\|^2 \longrightarrow \int (D_C b)_-\|U x\|^2 < \eta\int b. $$
+$$ \sum_\lambda \mu_n(\lambda)_-\|U\lambda/n\|^2 → \int (D_C b)_-\|U x\|^2 < \eta\int b. $$
 
 Fix $n$ large enough that $\zeta_n>0$ and the strict inequality holds for $(\mu_n,\zeta_n)$. Let $E$ be the finite support of $d_n$. The maps $d\mapsto \nu*d$ and $d\mapsto\zeta=n^{-2}\sum_\lambda d(\lambda)$ are linear, and the functional $d\mapsto\sum_{\lambda\in\supp\nu+E}(\nu*d)(\lambda)_-\|U\lambda/n\|^2$ is continuous on $\R^E$. Since $\zeta>0$ and the strict inequality are open conditions on $d$, a rational $d$ supported in $E$ near $d_n$ yields $\mu=\nu*d$ and $\zeta$ both rational, zero pushforwards on every quotient, the exact second moment, and the strict small-negative bound.
 
-Proof of the two-scale lemma. Let $w_j=(v_j,u_j)$, $w(\lambda)=\sum_j \lambda_j w_j$, $U=(u_1\ \cdots\ u_k)$, and $\Lambda_i=\{\lambda\in\Gamma : e_i(w(\lambda))=0\}$ be as before, and let $\nu$ be the weight from the finite lattice identity. The symmetric rational $C$ satisfies $U C U^{\mathsf T}=I_d$. Apply the rational-weight lemma to obtain $n,\mu,\zeta$. Choose a positive integer $M$ with $M\mu(\lambda)\in\Z$ for all $\lambda$. Form the positive list with $M\mu(\lambda)_+$ repetitions of the affine row $w(\lambda/n)$, and the negative list with $M\mu(\lambda)_-$ repetitions.
+Proof of the two-scale lemma. Let $w_j=(v_j,u_j)$, $w(\lambda)=\sum_j \lambda_j w_j$, $U=(u_1\ ...\ u_k)$, and $Λ_i=\{\lambda\in\Gamma : e_i(w(\lambda))=0\}$ be as before, and let $\nu$ be the weight from the finite lattice identity. The symmetric rational $C$ satisfies $U C U^{\mathsf T}=I_d$. Apply the rational-weight lemma to obtain $n,\mu,\zeta$. Choose a positive integer $M$ with $M\mu(\lambda)\in\Z$ for all $\lambda$. Form the positive list with $M\mu(\lambda)_+$ repetitions of the affine row $w(\lambda/n)$, and the negative list with $M\mu(\lambda)_-$ repetitions.
 
-The zero mass of $\mu$ makes the two lists have equal length. Since $e_i(w(\lambda/n))=e_i(w(\lambda'/n))$ exactly when $\lambda-\lambda'\in\Lambda_i$, the zero pushforward on $\Gamma/\Lambda_i$ says that after evaluating at $a_i$ every real coordinate value appears equally often in the two lists. The evaluation vectors are therefore coordinate permutations of each other.
+The zero mass of $\mu$ makes the two lists have equal length. Since $e_i(w(\lambda/n))=e_i(w(\lambda'/n))$ exactly when $\lambda-\lambda'\inΛ_i$, the zero pushforward on $\Gamma/Λ_i$ says that after evaluating at $a_i$ every real coordinate value appears equally often in the two lists. The evaluation vectors are therefore coordinate permutations of each other.
 
-Divide every row by $\sqrt{\zeta M}$. The gradient Gram matrices become
+Divide every row by $√(\zeta M)$. The gradient Gram matrices become
 
 $$ B_\pm = \frac1\zeta\sum_\lambda \mu(\lambda)_\pm (U\lambda/n)(U\lambda/n)^{\mathsf T}, $$
 
-with $B_+-B_-=I_d$ and $\operatorname{tr}(B_-)<\eta$. Since $B_-$ is positive semidefinite, every eigenvalue is bounded by its trace, and $P=\eta I_d-B_-$ is positive semidefinite. Choose $r_1,\ldots,r_d\in\R^d$ with $\sum_j r_j r_j^{\mathsf T}=P$, for instance the columns of $P^{1/2}$, and append the same affine rows $(0,r_j)$ to both lists. The two Gram matrices become $(1+\eta)I_d$ and $\eta I_d$, and identical appended rows preserve coordinate multiset equality. Dividing the two lists by $\sqrt{1+\eta}$ and letting $f_i,g_i$ be the respective evaluation vectors at $a_i$ preserves coordinate multiset equality and gives
+with $B_+-B_-=I_d$ and $tr(B_-)<\eta$. Since $B_-$ is positive semidefinite, every eigenvalue is bounded by its trace, and $P=\eta I_d-B_-$ is positive semidefinite. Choose $r_1,...,r_d\in\R^d$ with $\sum_j r_j r_j^{\mathsf T}=P$, for instance the columns of $P^{1/2}$, and append the same affine rows $(0,r_j)$ to both lists. The two Gram matrices become $(1+\eta)I_d$ and $\eta I_d$, and identical appended rows preserve coordinate multiset equality. Dividing the two lists by $√(1+\eta)$ and letting $f_i,g_i$ be the respective evaluation vectors at $a_i$ preserves coordinate multiset equality and gives
 
-$$ \|f_i-f_j\|^2 = \|a_i-a_j\|^2, \qquad \|g_i-g_j\|^2 = \frac{\eta}{1+\eta}\|a_i-a_j\|^2, $$
+$$ \|f_i-f_j\|^2 = \|a_i-a_j\|^2, \qquad \|g_i-g_j\|^2 = (\eta)/(1+\eta)\|a_i-a_j\|^2, $$
 
 because for an affine row $(v,u)$ the difference of evaluations at $a_i$ and $a_j$ is $(a_i-a_j)\cdot u$ and the two gradient Gram identities differ by $I_d$.
 
-The next step converts equal path endpoints into monochromatic copies. Let $\mathcal E=\R^{(\N)}$ be the Euclidean space of real sequences with finite support, and let $K$ be the free group on the letters $\xi_z$, indexed by $z\in\mathcal E$. Write $\Delta g=(g,\ldots,g)\in K^s$ for $g\in K$. A path is a chosen finite sequence of factors in $K^s$ of the following two kinds:
+The next step converts equal path endpoints into monochromatic copies. Let $\mathcal E=\R^{(\N)}$ be the Euclidean space of real sequences with finite support, and let $K$ be the free group on the letters $\xi_z$, indexed by $z\in\mathcal E$. Write $\Delta g=(g,...,g)\in K^s$ for $g\in K$. A path is a chosen finite sequence of factors in $K^s$ of the following two kinds:
 
 1. a diagonal factor $\Delta g$, assigned weight zero;
 
-2. a copy factor $X_b=(\xi_{b_1},\ldots,\xi_{b_s})$ with $b_1,\ldots,b_s\in\mathcal E$ and $\|b_i-b_j\|^2=u\|a_i-a_j\|^2$ for some $u\ge 0$, assigned weight $u$.
+2. a copy factor $X_b=(\xi_{b_1},...,\xi_{b_s})$ with $b_1,...,b_s\in\mathcal E$ and $\|b_i-b_j\|^2=u\|a_i-a_j\|^2$ for some $u\ge 0$, assigned weight $u$.
 
 The endpoint of a path is the ordered product of its factors in $K^s$, and its weight is the sum of the assigned weights. The weight belongs to the chosen path, not to its endpoint: two paths with equal endpoint may have different weights.
 
@@ -274,13 +274,13 @@ Lemma (finite-dimensional reduction). Fix $r\ge 2$. If every $r$-coloring of $\m
 
 ./pdf/egmrss.pdf
 
-Proof. Suppose the contrary, so every $\R^D$ admits an $r$-coloring avoiding $A$. Consider the compact product space $\{1,\ldots,r\}^{\mathcal E}$. For each ordered congruent copy $(b_1,\ldots,b_s)$ of $A$ in $\mathcal E$ impose the clopen condition that $b_1,\ldots,b_s$ are not all of the same color. Every finite collection of these conditions involves finitely many finite-support vectors; choosing $D$ large enough that all lie in the first $D$ coordinates, an avoiding coloring of $\R^D$ extends arbitrarily to $\mathcal E$ and satisfies the finite collection. Compactness gives a coloring of $\mathcal E$ satisfying every condition, contrary to the hypothesis.
+Proof. Suppose the contrary, so every $\R^D$ admits an $r$-coloring avoiding $A$. Consider the compact product space $\{1,...,r\}^{\mathcal E}$. For each ordered congruent copy $(b_1,...,b_s)$ of $A$ in $\mathcal E$ impose the clopen condition that $b_1,...,b_s$ are not all of the same color. Every finite collection of these conditions involves finitely many finite-support vectors; choosing $D$ large enough that all lie in the first $D$ coordinates, an avoiding coloring of $\R^D$ extends arbitrarily to $\mathcal E$ and satisfies the finite collection. Compactness gives a coloring of $\mathcal E$ satisfying every condition, contrary to the hypothesis.
 
 Lemma (synchronization). Fix $n\ge 1$. Let two paths share an endpoint and have weights $\lambda>0$ and $\mu\ge 0$, with $\rho=\mu/\lambda<1/n$. Then there is an endpoint $w\in K^s$ admitting a path of weight $1/t$ for every integer $1\le t\le n$.
 
-Proof. Set $\alpha_t=(1/t-\rho)/(1-\rho)$ for $1\le t\le n$. These numbers satisfy $0<\alpha_n<\cdots<\alpha_1=1$. Partition $[0,1]$ at the points $\alpha_t$. For each resulting interval of length $l>0$, apply to both paths the endomorphism of $K$ given by $\xi_z\mapsto\xi_{\sqrt{l/\lambda}\,z}$; it preserves every diagonal factor and multiplies every copy-factor weight by $l/\lambda$, so the images share an endpoint and have weights $l$ and $\rho l$. Concatenating these interval paths in increasing interval order produces one endpoint independent of which of the two paths is chosen on each interval. For fixed $t$, choose the larger weight on the intervals before $\alpha_t$ and the smaller weight on the remaining intervals; the total weight is $\alpha_t+\rho(1-\alpha_t)=1/t$. The fixed order of concatenation gives a single endpoint $w$ for all $t$, with no commutation of factors.
+Proof. Set $\alpha_t=(1/t-\rho)/(1-\rho)$ for $1\le t\le n$. These numbers satisfy $0<\alpha_n<...<\alpha_1=1$. Partition $[0,1]$ at the points $\alpha_t$. For each resulting interval of length $l>0$, apply to both paths the endomorphism of $K$ given by $\xi_z\mapsto\xi_{√(l/\lambda)\,z}$; it preserves every diagonal factor and multiplies every copy-factor weight by $l/\lambda$, so the images share an endpoint and have weights $l$ and $\rho l$. Concatenating these interval paths in increasing interval order produces one endpoint independent of which of the two paths is chosen on each interval. For fixed $t$, choose the larger weight on the intervals before $\alpha_t$ and the smaller weight on the remaining intervals; the total weight is $\alpha_t+\rho(1-\alpha_t)=1/t$. The fixed order of concatenation gives a single endpoint $w$ for all $t$, with no commutation of factors.
 
-The ultrafilter facts required for the final step follow the standard treatment in Hindman-Strauss. Let $\mathcal S$ be the monoid of finite strings on the alphabet $\mathcal E$, with concatenation and the empty string $\epsilon$ as identity. Choose pairwise disjoint infinite coordinate blocks in $\mathcal E$ and let $J_j:\mathcal E\to\mathcal E$ be the corresponding linear isometric embeddings. For a finite string $z=(z_1,\ldots,z_L)$ define $\Phi(z)=\sum_{j=1}^L J_j z_j$. For two strings of the same length,
+The ultrafilter facts required for the final step follow the standard treatment in Hindman-Strauss. Let $\mathcal S$ be the monoid of finite strings on the alphabet $\mathcal E$, with concatenation and the empty string $ε$ as identity. Choose pairwise disjoint infinite coordinate blocks in $\mathcal E$ and let $J_j:\mathcal E\to\mathcal E$ be the corresponding linear isometric embeddings. For a finite string $z=(z_1,...,z_L)$ define $\Phi(z)=\sum_{j=1}^L J_j z_j$. For two strings of the same length,
 
 $$ \|\Phi(z)-\Phi(z')\|^2 = \sum_{j=1}^L \|z_j-z'_j\|^2. $$
 
@@ -288,44 +288,44 @@ Diagonal factors may contain group inverses and cannot be evaluated directly in
 
 ./pdf/ellis.pdf
 
-An ultrafilter on $\mathcal S$ is a maximal proper filter of subsets of $\mathcal S$. Let $\beta\mathcal S$ be the space of all such ultrafilters. For $B\subseteq\mathcal S$ the basic clopen set is $\overline B=\{u\in\beta\mathcal S : B\in u\}$. The space $\beta\mathcal S$ is compact Hausdorff, being a closed subspace of $\{0,1\}^{\mathcal P(\mathcal S)}$. For a string $x$ put $x^{-1}B=\{y\in\mathcal S : xy\in B\}$; this is a preimage under concatenation, not a string inverse. Define the product by
+An ultrafilter on $\mathcal S$ is a maximal proper filter of subsets of $\mathcal S$. Let $\beta\mathcal S$ be the space of all such ultrafilters. For $B⊆\mathcal S$ the basic clopen set is $\overline B=\{u\in\beta\mathcal S : B\in u\}$. The space $\beta\mathcal S$ is compact Hausdorff, being a closed subspace of $\{0,1\}^{\mathcal P(\mathcal S)}$. For a string $x$ put $x^{-1}B=\{y\in\mathcal S : xy\in B\}$; this is a preimage under concatenation, not a string inverse. Define the product by
 
 $$ B\in uv \iff \{x\in\mathcal S : x^{-1}B\in v\}\in u, $$
 
 and write $\delta_x$ for the principal ultrafilter at $x$.
 
-Lemma (corner group). The product makes $\beta\mathcal S$ a compact right-topological semigroup with identity $\delta_\epsilon$. It contains an idempotent $p$ with $p(\beta\mathcal S)p$ a group with identity $p$.
+Lemma (corner group). The product makes $\beta\mathcal S$ a compact right-topological semigroup with identity $\delta_ε$. It contains an idempotent $p$ with $p(\beta\mathcal S)p$ a group with identity $p$.
 
-Proof. For fixed $v$ the map $B\mapsto\{x : x^{-1}B\in v\}$ preserves finite intersections and complements, so $uv$ is an ultrafilter. For $u,v,w\in\beta\mathcal S$ both parenthesizations of the triple product contain $B$ exactly when $\{x : \{y : \{z : xyz\in B\}\in w\}\in v\}\in u$, which is associativity. For fixed $v$ the inverse image of $\overline B$ under $u\mapsto uv$ is $\overline{\{x : x^{-1}B\in v\}}$, so right translation is continuous, and the assertion about $\delta_\epsilon$ follows from the definition.
+Proof. For fixed $v$ the map $B\mapsto\{x : x^{-1}B\in v\}$ preserves finite intersections and complements, so $uv$ is an ultrafilter. For $u,v,w\in\beta\mathcal S$ both parenthesizations of the triple product contain $B$ exactly when $\{x : \{y : \{z : xyz\in B\}\in w\}\in v\}\in u$, which is associativity. For fixed $v$ the inverse image of $\overline B$ under $u\mapsto uv$ is $\overline{\{x : x^{-1}B\in v\}}$, so right translation is continuous, and the assertion about $\delta_ε$ follows from the definition.
 
-Choose a minimal nonempty compact left ideal $L_0$ in $\beta\mathcal S$; the intersection of any chain of nonempty compact left ideals is again such an ideal, so one exists. For $v\in L_0$ the set $(\beta\mathcal S)v$ is a nonempty compact left ideal contained in $L_0$, so it equals $L_0$, and $L_0$ is a compact subsemigroup. Choose a minimal nonempty compact subsemigroup $H_0\subseteq L_0$. For $x\in H_0$ the set $H_0 x$ is a compact subsemigroup, so $H_0 x=H_0$; hence $\{y\in H_0 : yx=x\}$ is nonempty, compact, and a subsemigroup, so it equals $H_0$, and $x^2=x$. In particular $L_0$ contains an idempotent $p$.
+Choose a minimal nonempty compact left ideal $L_0$ in $\beta\mathcal S$; the intersection of any chain of nonempty compact left ideals is again such an ideal, so one exists. For $v\in L_0$ the set $(\beta\mathcal S)v$ is a nonempty compact left ideal contained in $L_0$, so it equals $L_0$, and $L_0$ is a compact subsemigroup. Choose a minimal nonempty compact subsemigroup $H_0⊆ L_0$. For $x\in H_0$ the set $H_0 x$ is a compact subsemigroup, so $H_0 x=H_0$; hence $\{y\in H_0 : yx=x\}$ is nonempty, compact, and a subsemigroup, so it equals $H_0$, and $x^2=x$. In particular $L_0$ contains an idempotent $p$.
 
 The corner $G=p(\beta\mathcal S)p$ is a monoid with identity $p$. Every $y\in G$ lies in $L_0$, so $p=vy$ for some $v\in\beta\mathcal S$. Since $py=y$, one has $(pvp)y=pvy=p$, so $y$ has a left inverse in $G$. A monoid in which every element has a left inverse is a group: if $ay=p$ and $ba=p$, then $b=b(ay)=(ba)y=y$, whence also $ya=p$.
 
-Lemma (simultaneous realization). Let $q_{i,j}\in\beta\mathcal S$ for $1\le i\le s$ and $1\le j\le M$ with $M\ge 1$. Suppose every column $j$ has one of the following forms: either $q_{i,j}=q_j$ is independent of $i$, or $q_{i,j}=\delta_{z_{i,j}}$ for prescribed strings $z_{i,j}\in\mathcal S$. If $B\in q_{i,1}\cdots q_{i,M}$ for every $i$, there are strings $x_{i,j}$ such that all products $x_{i,1}\cdots x_{i,M}$ belong to $B$, with $x_{i,j}$ independent of $i$ in every column of the first form and $x_{i,j}=z_{i,j}$ in every column of the second form.
+Lemma (simultaneous realization). Let $q_{i,j}\in\beta\mathcal S$ for $1\le i\le s$ and $1\le j\le M$ with $M\ge 1$. Suppose every column $j$ has one of the following forms: either $q_{i,j}=q_j$ is independent of $i$, or $q_{i,j}=\delta_{z_{i,j}}$ for prescribed strings $z_{i,j}\in\mathcal S$. If $B\in q_{i,1}... q_{i,M}$ for every $i$, there are strings $x_{i,j}$ such that all products $x_{i,1}... x_{i,M}$ belong to $B$, with $x_{i,j}$ independent of $i$ in every column of the first form and $x_{i,j}=z_{i,j}$ in every column of the second form.
 
-Proof. Choose the strings from left to right. Before column $j$ let $P_i$ be the chosen prefix and maintain the invariant $P_i^{-1}B\in q_{i,j}\cdots q_{i,M}$. Initially $P_i=\epsilon$. Put $v_i=q_{i,j+1}\cdots q_{i,M}$, with an empty product read as $\delta_\epsilon$. By the product rule the set $E_i=\{x : x^{-1}(P_i^{-1}B)\in v_i\}$ belongs to $q_{i,j}$.
+Proof. Choose the strings from left to right. Before column $j$ let $P_i$ be the chosen prefix and maintain the invariant $P_i^{-1}B\in q_{i,j}... q_{i,M}$. Initially $P_i=ε$. Put $v_i=q_{i,j+1}... q_{i,M}$, with an empty product read as $\delta_ε$. By the product rule the set $E_i=\{x : x^{-1}(P_i^{-1}B)\in v_i\}$ belongs to $q_{i,j}$.
 
-In a common column the finite intersection $\bigcap_i E_i$ belongs to the common ultrafilter, hence is nonempty, and its elements can be chosen equal for all $i$. In a principal column $z_{i,j}\in E_i$, so that string is chosen. Replacing $P_i$ by $P_ix_{i,j}$ preserves the invariant, and after the last column the invariant says $P_i^{-1}B\in\delta_\epsilon$, that is, $P_i\in B$.
+In a common column the finite intersection $∩_i E_i$ belongs to the common ultrafilter, hence is nonempty, and its elements can be chosen equal for all $i$. In a principal column $z_{i,j}\in E_i$, so that string is chosen. Replacing $P_i$ by $P_ix_{i,j}$ preserves the invariant, and after the last column the invariant says $P_i^{-1}B\in\delta_ε$, that is, $P_i\in B$.
 
-Proof of the path criterion. Fix $r\ge 2$ and an arbitrary coloring $c:\mathcal E\to\{1,\ldots,r\}$. Choose $n$ such that every $r$-coloring of $\{1,\ldots,s\}^n$ has a monochromatic combinatorial line, by the Hales-Jewett theorem; any length guaranteed by Shelah's primitive recursive bounds also suffices, because only existence is used. Such a line has a nonempty set of variable positions, occupied by one common letter, and fixed letters elsewhere.
+Proof of the path criterion. Fix $r\ge 2$ and an arbitrary coloring $c:\mathcal E\to\{1,...,r\}$. Choose $n$ such that every $r$-coloring of $\{1,...,s\}^n$ has a monochromatic combinatorial line, by the Hales-Jewett theorem; any length guaranteed by Shelah's primitive recursive bounds also suffices, because only existence is used. Such a line has a nonempty set of variable positions, occupied by one common letter, and fixed letters elsewhere.
 
 ./pdf/hales-jewett.pdf
 ./pdf/shelah-329.pdf
 
-In the group formulation of Leader, Russell and Walters the number of variable positions is fixed before the word coloring; without that restriction ordinary Hales-Jewett applies, and the line chooses its own number of variable positions. The hypothesis together with synchronization gives an endpoint $w=(w_1,\ldots,w_s)\in K^s$ and a path of weight $1/t$ ending at $w$ for every integer $1\le t\le n$.
+In the group formulation of Leader, Russell and Walters the number of variable positions is fixed before the word coloring; without that restriction ordinary Hales-Jewett applies, and the line chooses its own number of variable positions. The hypothesis together with synchronization gives an endpoint $w=(w_1,...,w_s)\in K^s$ and a path of weight $1/t$ ending at $w$ for every integer $1\le t\le n$.
 
 ./pdf/lrw-transitive.pdf
 
-Color $\mathcal S$ by $c\circ\Phi$ and write its color classes as $B_1,\ldots,B_r$. Choose $p$ as in the corner-group lemma. Since $K$ is free there is a homomorphism
+Color $\mathcal S$ by $c\circ\Phi$ and write its color classes as $B_1,...,B_r$. Choose $p$ as in the corner-group lemma. Since $K$ is free there is a homomorphism
 
-$$ \psi:K\longrightarrow p(\beta\mathcal S)p, \qquad \psi(\xi_z)=p\delta_{(z)}p, $$
+$$ \psi:K→ p(\beta\mathcal S)p, \qquad \psi(\xi_z)=p\delta_{(z)}p, $$
 
-where $(z)$ is the one-letter string with entry $z$. Color a word $i_1\cdots i_n$ by the unique index $k$ for which $B_k\in\psi(w_{i_1})\cdots\psi(w_{i_n})$; the coloring is well defined because every ultrafilter contains exactly one class of a finite partition.
+where $(z)$ is the one-letter string with entry $z$. Color a word $i_1... i_n$ by the unique index $k$ for which $B_k\in\psi(w_{i_1})...\psi(w_{i_n})$; the coloring is well defined because every ultrafilter contains exactly one class of a finite partition.
 
 Take a monochromatic combinatorial line and let $t$ be its number of variable positions. For each of the line's $s$ words, expand the factor at every variable position using the chosen path of weight $1/t$ ending at $w$. A diagonal path factor contributes one common ultrafilter $\psi(g)$. A copy factor contributes $p\delta_{(b_i)}p$ in role $i$: the two $p$ factors are common and the middle factor is principal at a prescribed one-letter string. Unexpanded fixed positions are common factors as well. The identity of the corner group is $p$; an empty group product is kept as this common factor. The expanded products therefore have the column forms required by the realization lemma, and all contain the same color class $B_k$.
 
-Applying the realization lemma produces strings $z^{(1)},\ldots,z^{(s)}\in B_k$. Every common factor has been realised by the same string in all roles, and every varying factor has length one, so the resulting strings have equal length and their entries align. Common strings contribute zero to their pairwise squared distances, and each of the $t$ expanded paths contributes $\|a_i-a_j\|^2/t$ by its weight. Hence
+Applying the realization lemma produces strings $z^{(1)},...,z^{(s)}\in B_k$. Every common factor has been realised by the same string in all roles, and every varying factor has length one, so the resulting strings have equal length and their entries align. Common strings contribute zero to their pairwise squared distances, and each of the $t$ expanded paths contributes $\|a_i-a_j\|^2/t$ by its weight. Hence
 
 $$ \|\Phi(z^{(i)})-\Phi(z^{(j)})\|^2 = t\cdot\frac1t\|a_i-a_j\|^2 = \|a_i-a_j\|^2. $$
 
@@ -351,7 +351,7 @@ Differences of letters along the graph generate, after taking normal closure in
 
 For $g\in K$ let $g^{[i]}\in K^s$ agree with $g$ in coordinate $i$ and vanish elsewhere in the sense of carrying the identity in the remaining coordinates. A right fraction is an element $uv^{-1}$ with $u,v\in M$, and its cost, for chosen expressions of $u$ and $v$, is $\deg u+\deg v$. Define
 
-$$ L_i=\{g\in K : g^{[i]}=uv^{-1}\text{ for some }u,v\in M\}, $$
+$$ L_i=\{g\in K : g^{[i]}=uv^{-1} for some u,v\in M\}, $$
 
 and for $g\in L_i$ let $c_i(g)$ be the least cost of a right fraction representing $g^{[i]}$; the possible costs form a nonempty set of nonnegative integers.
 
@@ -383,7 +383,7 @@ Averaging over coordinate permutations finishes the corrections. Let $H$ be a fi
 
 Lemma (permutation averaging). Let $H$ be a finite group of coordinate permutations of $\mathcal E$ and $Z\subset\mathcal E$ a finite $H$-invariant set. For every $\delta>0$ there is a tuple $w\in K^Z$ represented by diagonal factors and factors $(\xi_{hx})_{x\in Z}$, $h\in H$, of some positive degree $m$, such that
 
-$$ w_xw_y^{-1}\in L, \qquad c(w_xw_y^{-1})\le\delta m \quad (x,y\text{ in the same }H\text{-orbit}). $$
+$$ w_xw_y^{-1}\in L, \qquad c(w_xw_y^{-1})\le\delta m \quad (x,y in the same H-orbit). $$
 
 Proof. Membership in $L$ is arranged first and costs are made small afterwards. Start with $w_x=\xi_x$, represented with degree one; its differences $w_xw_y^{-1}$ lie in $N$.
 
@@ -397,19 +397,19 @@ Any normal-subgroup condition already obtained on another orbit survives: if $w_
 
 For the cost bound, fix one orbit $O$ and right-normalize at $x_0$ again so that all values on $O$ lie in $L$. Put $B=\max_{x\in O} c(w_x)$ and $h=|H|$. If $h=1$ all orbits are singletons and the bound holds vacuously. Suppose $h\ge 2$. Repeatedly perform
 
-$$ w'_x=\Bigl(\prod_{g\in H} w_{gx}\Bigr) w_{x_0}^{-1}. $$
+$$ w'_x=(\prod_{g\in H} w_{gx}) w_{x_0}^{-1}. $$
 
 For each $x\in O$ one factor of the product is $a=w_{x_0}$; writing the product as $PaQ$, one has $w'_x=P(aQa^{-1})$ and $c(w'_x)\le c(P)+c(Q)\le(h-1)B$. All new values on $O$ still lie in $L$, and the represented degree is multiplied by $h$. Thus, after $k$ repetitions starting from degree $m_0$, the ratio of maximum difference cost to degree is at most
 
-$$ \frac{2B}{m_0}\Bigl(\frac{h-1}{h}\Bigr)^k, $$
+$$ (2B)/(m_0)((h-1)/(h))^k, $$
 
 using $c(w_xw_y^{-1})\le c(w_x)+c(w_y)$, and this tends to zero.
 
 Treating one orbit must not spoil the bound on another. If $a_jb_j^{-1}\in L$ for $1\le j\le h$, then
 
-$$ c\bigl((a_1\cdots a_h)(b_1\cdots b_h)^{-1}\bigr)\le\sum_{j=1}^h c(a_jb_j^{-1}), $$
+$$ c((a_1... a_h)(b_1... b_h)^{-1})\le\sum_{j=1}^h c(a_jb_j^{-1}), $$
 
-as follows by telescoping with $A_j=a_1\cdots a_j$ and $B_j=b_1\cdots b_j$: the identity $A_jB_j^{-1}=(A_{j-1}(a_jb_j^{-1})A_{j-1}^{-1})(A_{j-1}B_{j-1}^{-1})$ reduces the statement for $j$ to the statement for $j-1$. The product in the contraction therefore multiplies the maximum difference cost on any other orbit by at most $h$, while multiplying the degree by exactly $h$, so its ratio cannot increase; appending a common right factor changes no differences. The bound $\delta$ can be achieved on one orbit after another.
+as follows by telescoping with $A_j=a_1... a_j$ and $B_j=b_1... b_j$: the identity $A_jB_j^{-1}=(A_{j-1}(a_jb_j^{-1})A_{j-1}^{-1})(A_{j-1}B_{j-1}^{-1})$ reduces the statement for $j$ to the statement for $j-1$. The product in the contraction therefore multiplies the maximum difference cost on any other orbit by at most $h$, while multiplying the degree by exactly $h$, so its ratio cannot increase; appending a common right factor changes no differences. The bound $\delta$ can be achieved on one orbit after another.
 
 Proposition (equal path endpoints). Suppose $q>0$ and $f_i,g_i\in\R^\ell$ satisfy $\|f_i-f_j\|^2=\|a_i-a_j\|^2$ and $\|g_i-g_j\|^2=q\|a_i-a_j\|^2$ for all $i,j$, and each $g_i$ is a coordinate permutation of $f_i$. For every $\delta>0$ there are two paths with equal endpoint and weights $\lambda>0$ and $\mu\ge 0$, with $\mu/\lambda\le q+s\delta$.
 
@@ -435,9 +435,9 @@ Corollary (subtransitive sets). Every nonempty subset of a finite transitive Euc
 
 Proof. Singletons are immediate. Let $A\subset\R^d$ with $s\ge 2$ and affine span $\R^d$, and suppose an isometric embedding sends $a_i$ to $y_i$ in a finite transitive set $Y\subset\R^n$. Let $H$ be the finite group of distance-preserving permutations of $Y$. For $h\in H$ the map $a_i\mapsto h(y_i)$ extends to an affine isometry; let $w_{hj}\in W=\R^{1+d}$ be its $j$-th affine coordinate row, so that $e_i(w_{hj})=(h(y_i))_j$, and the gradient Gram matrix of these $n$ rows is $I_d$. With $c_{hj}=((h(y_1))_j,0)\in W$ a constant affine row, the symmetric rational tensor
 
-$$ T = \frac1{|H|}\sum_{h\in H}\sum_{j=1}^n \bigl(w_{hj}\otimes w_{hj} - c_{hj}\otimes c_{hj}\bigr) $$
+$$ T = \frac1{|H|}\sum_{h\in H}\sum_{j=1}^n (w_{hj} ⊗  w_{hj} - c_{hj} ⊗  c_{hj}) $$
 
-has $G(T)=I_d$. For each $i$ the multiset $(h(y_i))_{h\in H}$ contains every point of $Y$ with multiplicity $|H|/|Y|$, so the tensor evaluation at $a_i$ matches that at $a_1$, giving $(e_i\otimes e_i)(T)=0$. The criterion makes $A$ Ramsey.
+has $G(T)=I_d$. For each $i$ the multiset $(h(y_i))_{h\in H}$ contains every point of $Y$ with multiplicity $|H|/|Y|$, so the tensor evaluation at $a_i$ matches that at $a_1$, giving $(e_i ⊗  e_i)(T)=0$. The criterion makes $A$ Ramsey.
 
 ./pdf/lrw-transitive.pdf
 
@@ -447,15 +447,15 @@ A closely related positive direction replaces transitivity by solvable symmetry.
 
 Quadratic interpolation supplies a further family of tensor certificates. The hypothesis says that quadratic functions can take arbitrary prescribed values on the configuration.
 
-Proposition (quadratic interpolation). Let $A=\{a_1,\ldots,a_s\}\subset\R^d$ be spherical and affinely span $\R^d$. Put $p_i=(1,a_i)^{\mathsf T}$ and let $F$ be its coordinate field. If the $s$ row vectors $(p_{i\alpha}p_{i\beta})_{0\le\alpha,\beta\le d}$ are linearly independent over $F$, then $A$ is Ramsey.
+Proposition (quadratic interpolation). Let $A=\{a_1,...,a_s\}\subset\R^d$ be spherical and affinely span $\R^d$. Put $p_i=(1,a_i)^{\mathsf T}$ and let $F$ be its coordinate field. If the $s$ row vectors $(p_{i\alpha}p_{i\beta})_{0\le\alpha,\beta\le d}$ are linearly independent over $F$, then $A$ is Ramsey.
 
 Proof. The singleton case is immediate, so $s\ge 2$. Sphericity provides a real matrix with spatial block $I_d$ and quadratic values zero at every $p_i$. The requirements form a linear system over $F$, and Gaussian elimination over $F$ yields a solution in $F^N$ with $N=(d+1)^2$; denote it by $h$.
 
-Let $D\in\operatorname{Mat}_{s\times N}(B)$ be the tensor evaluation matrix with entry $p_{i\alpha}\otimes p_{i\beta}$ in row $i$ and column $(\alpha,\beta)$. Lift $h$ to $b\in B^N$ by $x\mapsto x\otimes 1$. The row independence permits a choice of $s$ columns of $D$ whose square submatrix $M$ has $\delta=m_F(\det M)\ne 0$. Let $\iota:B^s\to B^N$ insert a vector into these coordinates, so $D\iota=M$. By the adjugate identity,
+Let $D\inMat_{s\times N}(B)$ be the tensor evaluation matrix with entry $p_{i\alpha} ⊗  p_{i\beta}$ in row $i$ and column $(\alpha,\beta)$. Lift $h$ to $b\in B^N$ by $x\mapsto x ⊗  1$. The row independence permits a choice of $s$ columns of $D$ whose square submatrix $M$ has $\delta=m_F(\det M)\ne 0$. Let $\iota:B^s\to B^N$ insert a vector into these coordinates, so $D\iota=M$. By the adjugate identity,
 
-$$ z = (\det M)b - \iota\operatorname{adj}(M) D b \in \ker D. $$
+$$ z = (\det M)b - \iotaadj(M) D b \in \ker D. $$
 
-Since $m_F(D)h=0$, applying $m_F$ gives $m_F(z)=\delta h$. Multiplying $z$ by $\delta^{-1}\otimes 1$ therefore produces a solution of the criterion. The argument does not require $\det M$ to be a unit of $B$.
+Since $m_F(D)h=0$, applying $m_F$ gives $m_F(z)=\delta h$. Multiplying $z$ by $\delta^{-1} ⊗  1$ therefore produces a solution of the criterion. The argument does not require $\det M$ to be a unit of $B$.
 
 For at most five circle points, products of two line equations supply the required interpolation.
 
@@ -467,7 +467,7 @@ Proof. Work in the plane of the circle and extend the set, if necessary, to five
 
 Corollary (cyclic kites). For every transcendental $a\in(-1,1)$ the cyclic quadrilateral
 
-$$ K_a = \bigl\{(-1,0),(1,0),(a,\sqrt{1-a^2}),(a,-\sqrt{1-a^2})\bigr\} $$
+$$ K_a = \bigl\{(-1,0),(1,0),(a,√(1-a^2)),(a,-√(1-a^2))\bigr\} $$
 
 is Ramsey and is not subtransitive.
 
@@ -477,21 +477,21 @@ Proof. The four points are distinct and lie on the unit circle, so the circle-po
 
 Nine algebraically independent points on a rational parametrisation of the circle give a spherical set that is not Ramsey. Palvolgyi's generic seven-point claim already implies this, by passing to a seven-point subset. The criterion reaches it directly by a determinant calculation.
 
-Proposition (nine circle points). Let $t_1,\ldots,t_9$ be algebraically independent real numbers over $\Q$ and put
+Proposition (nine circle points). Let $t_1,...,t_9$ be algebraically independent real numbers over $\Q$ and put
 
-$$ a_i = \left(\frac{1-t_i^2}{1+t_i^2}, \frac{2t_i}{1+t_i^2}\right) \qquad (1\le i\le 9). $$
+$$ a_i = ((1-t_i^2)/(1+t_i^2), (2t_i)/(1+t_i^2)) \qquad (1\le i\le 9). $$
 
 The nine points $a_i$ form a spherical set that is not Ramsey.
 
-Proof. The parametrisation lies on the unit circle and is injective, because $t_i=(a_i)_2/(1+(a_i)_1)$; the points are distinct, affinely span $\R^2$, and have coordinate field $F=\Q(t_1,\ldots,t_9)$. Algebraic independence identifies $F$ with a rational function field, so $B=F\otimes_\Q F$ is the localization of $\Q[T_1,\ldots,T_9,U_1,\ldots,U_9]$ inverting all nonzero polynomials in the $T$ variables alone and all nonzero polynomials in the $U$ variables alone. In particular $B$ is a domain and embeds in the fraction field $\Q(T_1,\ldots,T_9,U_1,\ldots,U_9)$.
+Proof. The parametrisation lies on the unit circle and is injective, because $t_i=(a_i)_2/(1+(a_i)_1)$; the points are distinct, affinely span $\R^2$, and have coordinate field $F=\Q(t_1,...,t_9)$. Algebraic independence identifies $F$ with a rational function field, so $B=F ⊗ _\Q F$ is the localization of $\Q[T_1,...,T_9,U_1,...,U_9]$ inverting all nonzero polynomials in the $T$ variables alone and all nonzero polynomials in the $U$ variables alone. In particular $B$ is a domain and embeds in the fraction field $\Q(T_1,...,T_9,U_1,...,U_9)$.
 
-Put $p(t)=\bigl(1,\frac{1-t^2}{1+t^2},\frac{2t}{1+t^2}\bigr)^{\mathsf T}$. Over the fraction field the nine tensor evaluation equations have coefficient matrix $D$ with rows $(p_\alpha(T_i)p_\beta(U_i))_{0\le\alpha,\beta\le 2}$. The determinant is nonzero: specialize the nine pairs $(T_i,U_i)$ to the grid $\{0,1,-1\}^2$, ordered as $0,1,-1$ in both coordinates. All denominators remain nonzero, and the resulting matrix is the ordinary Kronecker product $C\otimes C$ with
+Put $p(t)=(1,(1-t^2)/(1+t^2),(2t)/(1+t^2))^{\mathsf T}$. Over the fraction field the nine tensor evaluation equations have coefficient matrix $D$ with rows $(p_\alpha(T_i)p_\beta(U_i))_{0\le\alpha,\beta\le 2}$. The determinant is nonzero: specialize the nine pairs $(T_i,U_i)$ to the grid $\{0,1,-1\}^2$, ordered as $0,1,-1$ in both coordinates. All denominators remain nonzero, and the resulting matrix is the ordinary Kronecker product $C ⊗  C$ with
 
-$$ C=\begin{pmatrix}1&1&0\\1&0&1\\1&0&-1\end{pmatrix}, \qquad \det C=2, $$
+$$ C=1&1&0\\1&0&1\\1&0&-1, \qquad \det C=2, $$
 
 so its determinant is $2^6=64$. This evaluates the specific determinant expression and does not assert a specialization of the whole localized ring $B$.
 
-The only solution of $D\operatorname{vec}(P)=0$ over the fraction field is therefore $P=0$, and injectivity of the embedding of $B$ gives the same conclusion over $B$. Such a matrix has no multiplied spatial block $I_2$, so the criterion excludes the Ramsey property.
+The only solution of $Dvec(P)=0$ over the fraction field is therefore $P=0$, and injectivity of the embedding of $B$ gives the same conclusion over $B$. Such a matrix has no multiplied spatial block $I_2$, so the criterion excludes the Ramsey property.
 
 ./pdf/palvolgyi-heptagon.pdf
 
@@ -499,29 +499,29 @@ A second negative example uses one transcendental parameter and a derivation ins
 
 Proposition (three concentric squares). Set
 
-$$ t=\sum_{m=1}^\infty 10^{-m!}, \qquad u=\frac{1-t^2}{1+t^2}, \qquad v=\frac{2t}{1+t^2}, $$
+$$ t=\sum_{m=1}^∞ 10^{-m!}, \qquad u=(1-t^2)/(1+t^2), \qquad v=(2t)/(1+t^2), $$
 
 and $Q_0=\{(\pm 1,0),(0,\pm 1)\}$. Define the rotations
 
-$$ R_+=\begin{pmatrix}u&-v\\v&u\end{pmatrix}, \qquad R_-=\begin{pmatrix}u&v\\-v&u\end{pmatrix}, \qquad X = R_+ Q_0 \cup R_- Q_0 \cup Q_0. $$
+$$ R_+=u&-v\\v&u, \qquad R_-=u&v\\-v&u, \qquad X = R_+ Q_0 \cup R_- Q_0 \cup Q_0. $$
 
 The twelve points of $X$ lie on the unit circle and are not Ramsey.
 
 Proof. First $0.11<t<0.12$ and $t$ is transcendental. The rational partial sums $t_m=p_m/q_m$ with $q_m=10^{m!}$ satisfy $0<t-t_m<2q_m^{-(m+1)}$ for $m\ge 2$. If $t$ had an irreducible polynomial $P\in\Z[T]$ of degree $d$, then $P(t_m)\ne 0$ and $|P(t_m)|\ge q_m^{-d}$, while a bound $C\ge 1$ for $|P'|$ on $[0,1]$ would give $|P(t_m)|\le C|t-t_m|<2C q_m^{-(m+1)}$, a contradiction for large $m$.
 
-The rotations $R_+$ and $R_-$ act through angles $\theta=2\arctan t$ and $-\theta$ with $0<\theta<\pi/4$. Their pairwise differences and their differences from zero are nonzero and below $\pi/2$ in absolute value, so the three squares are disjoint. All twelve points lie on the unit circle, and $Q_0$ already affinely spans the plane.
+The rotations $R_+$ and $R_-$ act through angles $\theta=2arctan t$ and $-\theta$ with $0<\theta<\pi/4$. Their pairwise differences and their differences from zero are nonzero and below $\pi/2$ in absolute value, so the three squares are disjoint. All twelve points lie on the unit circle, and $Q_0$ already affinely spans the plane.
 
-The coordinate field of $X$ is $F=\Q(t)$, because its coordinates include $u$ and $v$ and $t=v/(1+u)$. The derivation $\partial=\tfrac{1+t^2}{2}\frac{d}{dt}$ on $F$ has $\partial u=-v$ and $\partial v=u$. Write $R_0=I_2$, label the points $x_{\epsilon,q}=R_\epsilon q$ with $\epsilon\in\{+,-,0\}$ and $q\in Q_0$, and assign weights $\beta_{+,q}=\beta_{-,q}=1$ and $\beta_{0,q}=-2$. Put $p_i=(1,x_i)^{\mathsf T}$ for the twelve labels. Then
+The coordinate field of $X$ is $F=\Q(t)$, because its coordinates include $u$ and $v$ and $t=v/(1+u)$. The derivation $∂=(1+t^2)/(2)(d)/(dt)$ on $F$ has $∂ u=-v$ and $∂ v=u$. Write $R_0=I_2$, label the points $x_{ε,q}=R_ε q$ with $ε\in\{+,-,0\}$ and $q\in Q_0$, and assign weights $\beta_{+,q}=\beta_{-,q}=1$ and $\beta_{0,q}=-2$. Put $p_i=(1,x_i)^{\mathsf T}$ for the twelve labels. Then
 
-$$ \sum_i \beta_i p_i p_i^{\mathsf T}=0, \quad \sum_i \beta_i (\partial p_i) p_i^{\mathsf T}=0, \quad \sum_i \beta_i (\partial p_i)(\partial p_i)^{\mathsf T}=\begin{pmatrix}0&0\\0&4 I_2\end{pmatrix}. $$
+$$ \sum_i \beta_i p_i p_i^{\mathsf T}=0, \quad \sum_i \beta_i (∂ p_i) p_i^{\mathsf T}=0, \quad \sum_i \beta_i (∂ p_i)(∂ p_i)^{\mathsf T}=0&0\\0&4 I_2. $$
 
-The first identity uses $\sum_q \beta_{. q}=0$, $\sum_q q=0$ and $\sum_q q q^{\mathsf T}=2I_2$. Writing $J=\begin{pmatrix}0&-1\\1&0\end{pmatrix}$, the derivatives of the rotations are $\partial R_+=R_+ J$, $\partial R_-=-R_- J$ and $\partial R_0=0$. The spatial squared moment is $2(1+1-2)I_2=0$; the mixed moment is $2J-2J=0$; and the derivative moment is $2I_2+2I_2=4I_2$. The constant and vector entries vanish by the symmetric weights on $Q_0$.
+The first identity uses $\sum_q \beta_{. q}=0$, $\sum_q q=0$ and $\sum_q q q^{\mathsf T}=2I_2$. Writing $J=0&-1\\1&0$, the derivatives of the rotations are $∂ R_+=R_+ J$, $∂ R_-=-R_- J$ and $∂ R_0=0$. The spatial squared moment is $2(1+1-2)I_2=0$; the mixed moment is $2J-2J=0$; and the derivative moment is $2I_2+2I_2=4I_2$. The constant and vector entries vanish by the symmetric weights on $Q_0$.
 
-Define the $\Q$-linear map $\Phi:F\otimes_\Q F\to F$ by $\Phi(a\otimes b)=(\partial a)(\partial b)$. Expanding each entry of $P\in\operatorname{Mat}_3(B)$ into pure tensors $a\otimes b$, the product rule expresses $\Phi\bigl((p_i\otimes 1)^{\mathsf T}P(1\otimes p_i)\bigr)$ as a sum of four types of term.
+Define the $\Q$-linear map $\Phi:F ⊗ _\Q F\to F$ by $\Phi(a ⊗  b)=(∂ a)(∂ b)$. Expanding each entry of $P\inMat_3(B)$ into pure tensors $a ⊗  b$, the product rule expresses $\Phi((p_i ⊗  1)^{\mathsf T}P(1 ⊗  p_i))$ as a sum of four types of term.
 
-The types carrying $\partial a$ or $\partial b$ alone vanish under $\sum_i \beta_i$ by the first two moment identities and the transpose of the second. The remaining term is $a b\,(\partial p_{i\alpha})(\partial p_{i\beta})$, whose $\beta_i$-summed value is $\begin{pmatrix}0&0\\0&4 I_2\end{pmatrix}_{\alpha\beta}ab$. Hence
+The types carrying $∂ a$ or $∂ b$ alone vanish under $\sum_i \beta_i$ by the first two moment identities and the transpose of the second. The remaining term is $a b\,(∂ p_{i\alpha})(∂ p_{i\beta})$, whose $\beta_i$-summed value is $0&0\\0&4 I_2_{\alpha\beta}ab$. Hence
 
-$$ \sum_i \beta_i \Phi\bigl((p_i\otimes 1)^{\mathsf T} P(1\otimes p_i)\bigr) = 4\sum_{\alpha=1}^2 m_F(P_{\alpha\alpha}). $$
+$$ \sum_i \beta_i \Phi((p_i ⊗  1)^{\mathsf T} P(1 ⊗  p_i)) = 4\sum_{\alpha=1}^2 m_F(P_{\alpha\alpha}). $$
 
 A matrix satisfying the criterion would make the left side zero and the right side $8$, a contradiction. The argument uses a derivation only on $F$ and adds no regularity condition to the colorings in the definition of the Ramsey property.