diff c08de14..aff8c4e squarefree_polynomial_values_v2.txt
diff --git a/squarefree_polynomial_values_v2.txt b/squarefree_polynomial_values_v2.txt
index 4a48c75..62d0429 100644
--- a/squarefree_polynomial_values_v2.txt
+++ b/squarefree_polynomial_values_v2.txt
@@ -24,6 +24,7 @@ The formulation and published reproof in Xiao are used: the input interval is $1
 ./sfrefs/reuss-2015.pdf
 
 Granville showed that the $abc$ conjecture yields the predicted squarefree-value density for separable integer polynomials with no fixed prime-square divisor. Greaves and Helfgott treated squarefree values of binary forms; a density in two integer variables does not by itself give the density on the fixed line with second coordinate one. Recent results of Browning and Shparlinski and of Sofos study the averaged discrepancy over polynomial coefficient families, and those averaged statements do not imply a theorem for each fixed polynomial. Carella's preprint claims the asymptotics for $n^4+1$ and $n^4+2$; Zapata Ceballos and Jalalvand claim positive density for certain monic degree-$2q$ polynomials including $n^4+1$. Neither claim enters as a theorem input: the large-prime estimate and sieve transfer below are proved independently.
+./browning-shparlinski-jnt-2024.pdf
 ./sfrefs/carella-2023.pdf
 
 For higher degrees Browning's theorem gives a direct consequence. Let $f\in\mathbb Z[x]$ be irreducible over $\mathbb Q$ of degree $d\ge4$ and $k=d-2$. If $f$ has no fixed prime $k$th-power divisor, then
@@ -90,7 +91,7 @@ The geometric arguments place the counted points on varieties whose equations va
 ./sfrefs/heathbrown-2002-density.pdf
 ./sfrefs/salberger-2007.pdf
 
-Throughout, degree means the ordinary degree of the projective closure, summed over irreducible components for a reducible set; irreducibility is over $\mathbb C$; B\'ezout bounds are used for intersections and linear projections in fixed ambient dimension. Fix positive weights $\omega_1,\ldots,\omega_N$ and let the weight of a monomial $z^\alpha$ be $\omega\cdot\alpha$. For an affine algebraic set $A\subseteq\mathbb C^N$ put
+Throughout, degree means the ordinary degree of the projective closure, summed over irreducible components for a reducible set; irreducibility is over $\mathbb C$; Bezout bounds are used for intersections and linear projections in fixed ambient dimension. Fix positive weights $\omega_1,\ldots,\omega_N$ and let the weight of a monomial $z^\alpha$ be $\omega\cdot\alpha$. For an affine algebraic set $A\subseteq\mathbb C^N$ put
 $$H_A(T)=\dim_{\mathbb C}\operatorname{span}\{z^\alpha|_A: \omega\cdot\alpha\le T\},$$
 the supply of independent polynomial functions whose weighted size is at most a constant times $X^T$.
 
@@ -106,7 +107,7 @@ The weights are fixed in the statement; uniformity over a family follows when th
 
 A patch is a triple $(A,G,\Delta)$ where $A$ is an irreducible $\mathbb Q$-defined variety of dimension $h$, the list $G$ consists of $N-h$ integer polynomials vanishing on $A$, and $\Delta$ is a square Jacobian minor in $N-h$ chosen coordinate columns; it covers the points of $A$ at which $\Delta\ne0$. For $h=N$ the list is empty and $\Delta=1$. A patch need not give $A$ globally as a complete intersection; its equations are local coordinates where the minor is nonzero. For every algebraic set $Z'\subseteq\mathbb C^N$ of degree at most $e$ there is a list of boundedly many patches $(A,G,\Delta)$ with $A\subseteq Z'$ covering $S\cap Z'$, with bounded degrees, all coefficients of $G$ and $\Delta$ bounded by $C'X^{C'}$, and, at a covered point $z$, $\Delta(z)$ a nonzero integer of absolute value at most $C''X^{C''}$, the bounds depending only on $e,N,C$ and the weights. The construction can be fixed as a function of $Z'$ and $S$ alone.
 
-The patch lemma follows by splitting $Z'$ into components and descending to rational equations. If a component $A$ is not defined over $\mathbb Q$, some automorphism $\sigma$ of $\mathbb C$ over $\mathbb Q$ has $\sigma(A)\ne A$, and every rational point of $A$ lies in $A\cap\sigma(A)$, a proper bounded-degree intersection, so one replaces $A$ by the components there and recurses in smaller dimension. For the descent: if every such $\sigma$ fixed $A$, each finite-dimensional space of equations of degree at most $e'$ would be preserved; the reduced row-echelon basis in ordered monomials is unique, so the coefficients are fixed by all $\sigma$ and hence rational; the fixed field is $\mathbb Q$, since a nonrational algebraic number has a conjugate and a transcendental number can be moved by translation in a transcendence basis. For $A$ defined over $\mathbb Q$ of dimension $h$ and degree $e'$, the equations of ordinary degree at most $e'$ in its ideal have generic Jacobian rank $N-h$: choose $h$ coordinate functions algebraically independent in $\mathbb C(A)$, project onto these and in turn each remaining coordinate, each image closure being an irreducible hypersurface of degree at most $e'$ whose equation has nonzero derivative in the extra coordinate by separability in characteristic zero, and lift these equations to a diagonal generically nonzero minor. Evaluating all monomials of degree at most $e'$ on $S\cap A$ gives an integer matrix of bounded column count and entries bounded by a fixed power of $X$; its nullspace $W$ has an integer spanning set of polynomial height by choosing independent rows and pivot columns, solving by cofactors, and clearing the pivot determinant. Comparing its complexification with the degree-$e'$ part of the ideal: if the containment is strict, one bounded-height spanning polynomial does not vanish on $A$ but vanishes on $S\cap A$, so one intersects and recurses; if equality holds, the spanning equations give the generic Jacobian rank, and choosing $N-h$ of these polynomials with a nonzero minor gives a patch, recursing on $\Delta=0$ for the rest. A rational zero-dimensional component through $z\in S$ is the point $z$, with equations $z_l'-z_l$ and minor $1$. Every recursive intersection is proper with B\'ezout-bounded degree, dimension decreases, and the list and heights are controlled; fixing the choices once as functions of $Z'$, its degree allowance and $S$ makes equal inputs give identical data.
+The patch lemma follows by splitting $Z'$ into components and descending to rational equations. If a component $A$ is not defined over $\mathbb Q$, some automorphism $\sigma$ of $\mathbb C$ over $\mathbb Q$ has $\sigma(A)\ne A$, and every rational point of $A$ lies in $A\cap\sigma(A)$, a proper bounded-degree intersection, so one replaces $A$ by the components there and recurses in smaller dimension. For the descent: if every such $\sigma$ fixed $A$, each finite-dimensional space of equations of degree at most $e'$ would be preserved; the reduced row-echelon basis in ordered monomials is unique, so the coefficients are fixed by all $\sigma$ and hence rational; the fixed field is $\mathbb Q$, since a nonrational algebraic number has a conjugate and a transcendental number can be moved by translation in a transcendence basis. For $A$ defined over $\mathbb Q$ of dimension $h$ and degree $e'$, the equations of ordinary degree at most $e'$ in its ideal have generic Jacobian rank $N-h$: choose $h$ coordinate functions algebraically independent in $\mathbb C(A)$, project onto these and in turn each remaining coordinate, each image closure being an irreducible hypersurface of degree at most $e'$ whose equation has nonzero derivative in the extra coordinate by separability in characteristic zero, and lift these equations to a diagonal generically nonzero minor. Evaluating all monomials of degree at most $e'$ on $S\cap A$ gives an integer matrix of bounded column count and entries bounded by a fixed power of $X$; its nullspace $W$ has an integer spanning set of polynomial height by choosing independent rows and pivot columns, solving by cofactors, and clearing the pivot determinant. Comparing its complexification with the degree-$e'$ part of the ideal: if the containment is strict, one bounded-height spanning polynomial does not vanish on $A$ but vanishes on $S\cap A$, so one intersects and recurses; if equality holds, the spanning equations give the generic Jacobian rank, and choosing $N-h$ of these polynomials with a nonzero minor gives a patch, recursing on $\Delta=0$ for the rest. A rational zero-dimensional component through $z\in S$ is the point $z$, with equations $z_l'-z_l$ and minor $1$. Every recursive intersection is proper with Bezout-bounded degree, dimension decreases, and the list and heights are controlled; fixing the choices once as functions of $Z'$, its degree allowance and $S$ makes equal inputs give identical data.
 
 For $h\ge1$ let $s_h(L)$ be the sum of the first $L$ total degrees of monomials in $h$ variables, ordered by degree and counted with multiplicity; counting lattice points in a simplex gives $s_h(L)=\frac{h}{h+1}(h!)^{1/h}L^{1+1/h}+O_h(L)$. Fix $\nu>0$ and a degree bound for a patch with $h=\dim A>0$ satisfying the Hilbert alternative. Let $z\in S\cap A$ be covered by the patch and $\mathcal Q$ a set of distinct primes with $q\nmid\Delta(z)$ and $\prod_{q\in\mathcal Q}q\ge X^{\delta_h+\nu}$. For large $X$ the points of $S\cap A$ congruent to $z$ modulo these primes lie on a bounded-degree polynomial not vanishing identically on $A$, uniformly in the patch and primes with dependence on $\nu$ and the data; extra congruence conditions may be imposed. The proof fixes $q\nmid\Delta(z)$, translates to $z$ with the $h$ free columns as coordinates, and solves $G=0$ as power series in the free differences over $\mathbb Z_q$ by the invertible Jacobian, Hensel giving every nearby solution uniquely; hence each coordinate monomial has an integral expansion. An $L$-by-$L$ determinant of monomial values there has $q$-adic valuation at least $s_h(L)$: expanding in free-difference monomials, a repeated expansion monomial gives zero and the differences lie in $q\mathbb Z_q$, the least total degree of $L$ distinct expansion monomials being $s_h(L)$. On the other hand the Hilbert bound permits independent monomials with the $j$-th of weight at most $\delta_h(h!j)^{1/h}+O(1)$ (substitute $T=\delta_h(h!j)^{1/h}+C_1$), whose first $L$ have total weight at most $\delta_h s_h(L)+O(L)$ by $s_h$, so the evaluation determinant has absolute value at most $C_LX^{\delta_h s_h(L)+C_2L}$ and is an integer divisible by $(\prod_{q\in\mathcal Q}q)^{s_h(L)}$. Choosing $L$ with $\nu s_h(L)>C_2L$ and then $X$ large forces every such determinant to vanish, giving deficient rank on the class, and a nonzero rational linear combination vanishing on the class but not on $A$ has bounded degree.
 
@@ -123,7 +124,7 @@ whose probability is at most the stated bound plus $o(1)$, and sampling $q$ from
 To choose blocks for which at least half of $S$ has enough good primes at every stage, allocate the nondecreasing cumulative exponents $E_r,\ldots,E_1$ (with $E_h=\max_{h\le s\le r}\delta_s$ and $E_{r+1}=0$) and put $a_i=E_{h_i}-E_{h_i+1}\ge0$. Choose small $\xi>0$ with $\xi(E_1+r\gamma)<\gamma/2$, take $T_0$ large in terms of $r,B_0,\xi$, then $\zeta>0$ with $\zeta(T_0+1)\le\gamma$, and use disjoint prime pools of cardinality tending to infinity all in $[X^\zeta,C_rX^\zeta]$ (possible by Chebyshev after partitioning into $r$ comparable pools). Choose the blocks independently with block $i$ sampled as in the deletion estimate, starting its size interval at $\ell_i=\lceil(a_i+\gamma)/\zeta\rceil$, so every allowed size satisfies $a_i+\gamma\le\zeta t_i\le a_i+2\gamma$. Call $z$ regular if in each block at most a fraction $\xi$ of its primes divide any full-path minor at $z$. Markov and a union bound give $\mathbb P(z\text{ not regular})\le\frac r\xi(B_0/T_0+o(1))<1/2$ for large $T_0$ and then $X$, so some fixed choice makes at least $|S|/2$ points regular, and for a regular point all but a fraction $\xi$ of primes in the first $i$ blocks avoid the current parent minor, the product of the remaining primes being at least
 $$X^{(1-\xi)\zeta\sum_{j\le i}t_j}\ge X^{(1-\xi)(E_{h_i}+i\gamma)}\ge X^{\delta_{h_i}+\gamma/2}.$$
 
-Arrange the full paths of regular points in a tree using the same kernels and fixed patches, stopping at a parent satisfying the small-count alternative or at a zero-dimensional parent. Inductively a parent at step $i$ has dimension at most $h_i$. At an auxiliary prime $q$ the reductions of a parent patch with $\Delta\ne0$ number $O(q^h)$: fixing the $h$ free coordinates, the other $N-h$ equations have invertible Jacobian there so the solutions are isolated zeros of a square system, B\'ezout-bounded even if other fiber components have positive dimension, summed over free coordinates; no good-reduction assumption is needed. For a regular point the primes of the new block at which the parent minor vanishes number at most $\xi t_i$, and allowing all such subsets ($\le2^{t_i}$, a constant) gives, since $q\le C_rX^\zeta$,
+Arrange the full paths of regular points in a tree using the same kernels and fixed patches, stopping at a parent satisfying the small-count alternative or at a zero-dimensional parent. Inductively a parent at step $i$ has dimension at most $h_i$. At an auxiliary prime $q$ the reductions of a parent patch with $\Delta\ne0$ number $O(q^h)$: fixing the $h$ free coordinates, the other $N-h$ equations have invertible Jacobian there so the solutions are isolated zeros of a square system, Bezout-bounded even if other fiber components have positive dimension, summed over free coordinates; no good-reduction assumption is needed. For a regular point the primes of the new block at which the parent minor vanishes number at most $\xi t_i$, and allowing all such subsets ($\le2^{t_i}$, a constant) gives, since $q\le C_rX^\zeta$,
 $$O\!\left(X^{\zeta t_i(h_i+N\xi)}\right)\le O\!\left(X^{(a_i+2\gamma)(h_i+N\xi)}\right)$$
 new simultaneous classes, imposing earlier congruences only decreasing the count. If the parent has dimension exactly $h_i$, the cumulative product and the residue-cut lemma give a polynomial in $\mathcal K_i$ not vanishing on the parent but vanishing on the entire class in $S\cap A$ (every class member shares the good residues and satisfies $G=0$), so $A\cap V(\mathcal K_i)$ has dimension at most $h_i-1$ with boundedly many patches; smaller-dimension parents are covered automatically. After $r$ stages every nonexceptional leaf is zero-dimensional with boundedly many points, and the total branching exponent is at most
 $$\sum_{i=1}^r h_i a_i+2\gamma\sum_{i=1}^r h_i+N\xi(E_1+2r\gamma),$$
@@ -206,7 +207,7 @@ the image of each counted $x$ has bounded norm since $Mx_i-c_ix_0=Mx_0(s_i-c_i/M
 
 Linear changes preserve dimensions, degrees, and the weighted polynomial spaces within each block (every $a_i$ is a linear combination of the $x'_i$ of weight $U$, every $b_i$ of the $y'_i$ of weight $V$), irrespective of coefficients; the numerical size bounds used for counting are those on $x',y'$.
 
-For $d=4$ a later Hilbert estimate needs $n$ algebraic over the functions $a_1,\ldots,a_4$, which is arranged by removing a small set of $x'$. Let $Z$ be an initial bounded-degree set from the cut proposition restricted to $a_1a_2a_3a_4\ne0$ in coordinates $(a,n)$, $b_i=(n-\theta_i)/a_i^2$, and suppose either $\dim Z\le3$ or $Z$ has irreducible equation $F(a,n)=0$ of positive degree in $n$. Then the $a$ for which the $n$-fiber has dimension one have closure of dimension at most two and bounded degree; deleting the selected points above it costs $O_f(X^{2U})$ in a box, and on every irreducible subvariety of $Z$ meeting the remaining points, $n$ is algebraic over $\mathbb Q(a_1,\ldots,a_4)$. Substituting $b_i=(n-\theta_i)/a_i^2$ into bounded-degree equations and clearing denominators, a fiber has dimension one exactly when each resulting polynomial in $n$ vanishes identically, so its base is the common zero set of the coefficient polynomials on the $a$-torus, of bounded degree, excluding components in $a_1a_2a_3a_4=0$. If $\dim Z\le3$ the fiber-dimension inequality gives dimension at most two; otherwise the coefficients of $F$ in $n$ have no common nonconstant factor, so the common zero set has codimension at least two in four-dimensional $a$-space. The invertible linear change to $x'$ preserves this, and a bounded-degree set of dimension at most two has $O(B^2)$ integer points in a box of radius $B$ (slice by a nonconstant coordinate and apply B\'ezout inductively), giving $O(X^{2U})$ exceptional $x'$, with $O_f(1)$ selected points per $x'$ by the factorization lemma's fixed-$x$ bound. If $Y\subseteq Z$ is irreducible with $n$ transcendental over the $a_i$-field, every polynomial relation in $n$ has zero coefficients on $Y$, so $Y$'s $a$-image lies in the removed base and meets no remaining point.
+For $d=4$ a later Hilbert estimate needs $n$ algebraic over the functions $a_1,\ldots,a_4$, which is arranged by removing a small set of $x'$. Let $Z$ be an initial bounded-degree set from the cut proposition restricted to $a_1a_2a_3a_4\ne0$ in coordinates $(a,n)$, $b_i=(n-\theta_i)/a_i^2$, and suppose either $\dim Z\le3$ or $Z$ has irreducible equation $F(a,n)=0$ of positive degree in $n$. Then the $a$ for which the $n$-fiber has dimension one have closure of dimension at most two and bounded degree; deleting the selected points above it costs $O_f(X^{2U})$ in a box, and on every irreducible subvariety of $Z$ meeting the remaining points, $n$ is algebraic over $\mathbb Q(a_1,\ldots,a_4)$. Substituting $b_i=(n-\theta_i)/a_i^2$ into bounded-degree equations and clearing denominators, a fiber has dimension one exactly when each resulting polynomial in $n$ vanishes identically, so its base is the common zero set of the coefficient polynomials on the $a$-torus, of bounded degree, excluding components in $a_1a_2a_3a_4=0$. If $\dim Z\le3$ the fiber-dimension inequality gives dimension at most two; otherwise the coefficients of $F$ in $n$ have no common nonconstant factor, so the common zero set has codimension at least two in four-dimensional $a$-space. The invertible linear change to $x'$ preserves this, and a bounded-degree set of dimension at most two has $O(B^2)$ integer points in a box of radius $B$ (slice by a nonconstant coordinate and apply Bezout inductively), giving $O(X^{2U})$ exceptional $x'$, with $O_f(1)$ selected points per $x'$ by the factorization lemma's fixed-$x$ bound. If $Y\subseteq Z$ is irreducible with $n$ transcendental over the $a_i$-field, every polynomial relation in $n$ has zero coefficients on $Y$, so $Y$'s $a$-image lies in the removed base and meets no remaining point.
 
 The determinant cuts and lattice coordinates leave the selected points on an arithmetic variety and on bounded-degree sets inside each box. A weighted Hilbert function now supplies the last input of the counting theorem: a lower bound on independent polynomial functions on each subvariety, uniform in coefficients and in the integral changes.
 
@@ -402,7 +403,7 @@ The proof splits into a patch decomposition, a Taylor rank lemma, a residue-clas
 
 Lemma (bounded patch list).  For every output $(Z, S)$ there are a finite list of bounded-degree integer polynomials, a square Jacobian minor $\Delta$ supported on $N - h$ coordinate columns, and a family of irreducible subschemes $A \subseteq Z$ of dimension $h$, all with degrees and heights bounded in terms of $D_{\mathrm{cap}}$, $N$, and the coefficient vectors of $Z$, such that each point of $S$ lies on at least one patch $(A, \Delta)$ on which the vanishing polynomials on $S \cap A$ form a complete intersection.
 
-Sketch.  Let $e$ be a fixed degree bound.  The evaluation map of degree-$\leq e$ monomials at $S \cap A$, or rather its integer nullspace, has a spanning set of polynomial height: select independent rows and pivot columns, solve for the non-pivot coordinates by cofactors, and clear the pivot determinant.  If the complexified nullspace strictly contains the degree-$e$ part of the ideal of $A$, then some bounded-height spanning polynomial does not vanish identically on $A$; add it, intersect with its zero set (a proper subvariety of smaller dimension), and recurse.  If not, the spanning polynomials form the truncation of the ideal of $A$ at degree $e$, the generic Jacobian rank is maximal, and $N - h$ of the spanning polynomials with a nonvanishing minor $\Delta$ form the patch.  Recursion on the residual locus $A \cap \{\Delta = 0\}$ leaves only the covered stratum.  Every recursive intersection is proper, so B\'ezout's bounds control the length of the chain, the degrees, and the heights.  The choices are fixed once, depending only on the input data and $S$, so equal inputs give identical patch lists.
+Sketch.  Let $e$ be a fixed degree bound.  The evaluation map of degree-$\leq e$ monomials at $S \cap A$, or rather its integer nullspace, has a spanning set of polynomial height: select independent rows and pivot columns, solve for the non-pivot coordinates by cofactors, and clear the pivot determinant.  If the complexified nullspace strictly contains the degree-$e$ part of the ideal of $A$, then some bounded-height spanning polynomial does not vanish identically on $A$; add it, intersect with its zero set (a proper subvariety of smaller dimension), and recurse.  If not, the spanning polynomials form the truncation of the ideal of $A$ at degree $e$, the generic Jacobian rank is maximal, and $N - h$ of the spanning polynomials with a nonvanishing minor $\Delta$ form the patch.  Recursion on the residual locus $A \cap \{\Delta = 0\}$ leaves only the covered stratum.  Every recursive intersection is proper, so Bezout's bounds control the length of the chain, the degrees, and the heights.  The choices are fixed once, depending only on the input data and $S$, so equal inputs give identical patch lists.
 
 Lemma (Taylor rank).  Let $\ell$ analytic columns have uniformly bounded derivatives on bounded complex neighborhoods with small variables $u_1, \ldots, u_r, z$ of weights $w, \ldots, w, 1$.  Suppose the rank of monomial evaluation columns of weight at most $T$ is at most $a T^r + O(T^{r-1}+1)$ with $a > 0$.  If $\ell$ such columns are independent with weights $\lambda_1 \leq \cdots \leq \lambda_\ell$, then
 $$\sum_{j=1}^{\ell} \lambda_j \geq \frac{r}{r+1} a^{-1/r} \ell^{1+1/r} - O(\ell).$$