The VC-dimension of quadratic residues: beyond the constant 1/2

Primarily AI-generated textHuman understanding: some partsmath.NT — Number Theorymath.CO — Combinatorics

Contributed by Xiaoyu Li ↗

Version 1 / Nov 30, 2026 / CC BY 4.0

Abstract

We prove that the translates of the nonzero squares in Fq\mathbb{F}_q have VC-dimension at least log⁡3q−O(log⁡log⁡q)=(log⁡32−o(1))log⁡2q\log_3 q - O(\log\log q) = (\log_3 2 - o(1))\log_2 q, where log⁡32=0.6309…\log_3 2 = 0.6309\ldots, breaking the classical 1/21/2-barrier established by McDonald, Sahay and Wyman. More strongly, every subset of Fq\mathbb{F}_q of size roughly 0.84log⁡2q0.84\log_2 q contains a shattered subset of three-quarters of its size. The proof is short and conceptual: a second-moment estimate via the Weil bound controls the number of omitted sign patterns, and the Sauer--Shelah lemma converts the resulting abundance of realised patterns into a large shattered coordinate set. Replacing the Weil bound by the generalised Riemann hypothesis for real Dirichlet LL-functions yields the analogous bound log⁡3N−O(log⁡log⁡N)\log_3 N - O(\log\log N) for the family of Legendre symbols n↦(np)n \mapsto \left(\frac{n}{p}\right) indexed by odd primes p≤Np \le N, together with an explicit version valid for all N≥245N \ge 2^{45}.

Provenance statement

This work was produced through human-directed research assisted by large language models and Python verification scripts. The problem selection, research direction, and final editorial decisions were made by the author. Claude Fable 5.2 was used to assist in developing the proof strategy, working out the explicit constants, performing literature searches, and conducting line-by-line and adversarial proof audits. Gemini (via Antigravity) was subsequently used for stylistic polishing, structural refinement, and LaTeX typesetting. All explicit numerical inequalities in Theorems 1.1 and 4.4 and Remark 3.2, the optimality calculations in Remark 2.4 and Section 5.1, the supersingular Weil-bound example, and the exhaustive prime sieve computations up to N = 10^8 in Table 2 were independently checked with Python scripts (included as supplementary material). The author has reviewed the manuscript and takes responsibility for its submission; the proofs have not yet been formally verified in a proof assistant.

Tools used

Anthropic
Claude FableVersion Fable 5.2
Google
GeminiVersion 4 Carbon

References

  1. R. Ahlswede, L. H. Khachatrian, C. Mauduit and A. Sárközy, A complexity measure for families of binary sequences, Period.\ Math.\ Hungar. \ 46 (2003), no. 2, 107--118.
  2. N. Alon, O. Goldreich, J. Hå stad and R. Peralta, Simple constructions of almost kk-wise independent random variables, Random Structures Algorithms 3 (1992), no. 3, 289--304.
  3. L. Alpöge, A remark on the Riemann hypothesis, preprint and Lean 4 formalization, 2026, https://alpo.ge/remark.pdf.link
  4. L. Alpöge, with Claude, The Generalized Riemann Hypothesis for Dirichlet LL-functions, in Lean 4, readable edition, 2026, https://github.com/lsernau/grh-lean.link
  5. Axiom Math, Report: The extended Riemann hypothesis for Dedekind zeta functions of totally real fields, Hexagon preprint 2611.01389v1, 2026.
  6. A. Blass, G. Exoo and F. Harary, Paley graphs satisfy all first-order adjacency axioms, J.\ Graph Theory 5 (1981), no. 4, 435--439.
  7. B. Bollobás and A. Thomason, Graphs which contain all small graphs, European J.\ Combin. \ 2 (1981), no. 1, 13--15.
  8. I. Byrne, J. Byrne and S. M. Cioabă, The VC-dimension of strongly regular graphs, preprint, arXiv:2609.10330.arXiv
  9. H. Davenport, Multiplicative Number Theory , 3rd ed., revised and with a preface by H. L. Montgomery, Graduate Texts in Mathematics 74, Springer, New York, 2000.
  10. L. Grenié and G. Molteni, Explicit versions of the prime ideal theorem for Dedekind zeta functions under GRH, Math.\ Comp. \ 85 (2016), no. 298, 889--906; arXiv:1312.4463.arXiv
Show all 25 referencesShow fewer references
  1. K. Gyarmati, On the complexity of a family related to the Legendre symbol, Period.\ Math.\ Hungar. \ 58 (2009), no. 2, 209--215.
  2. H. Iwaniec and E. Kowalski, Analytic Number Theory , Amer.\ Math.\ Soc.\ Colloquium Publications 53, Amer.\ Math.\ Soc., Providence, RI, 2004.
  3. Y. Lamzouri, The distribution of large quadratic character sums and applications, Algebra Number Theory 18 (2024), no. 11, 2091--2131; arXiv:2212.03227.arXiv
  4. Y. Lamzouri, X. Li and K. Soundararajan, Conditional bounds for the least quadratic non-residue and related problems, Math.\ Comp. \ 84 (2015), no. 295, 2391--2412; corrigendum, Math.\ Comp. \ 86 (2017), no. 307, 2551--2554; arXiv:1309.3595.arXiv
  5. R. Lidl and H. Niederreiter, Finite Fields , 2nd ed., Encyclopedia of Mathematics and its Applications 20, Cambridge Univ.\ Press, 1996.
  6. C. Mauduit and A. Sárközy, Family complexity and VC-dimension, in Information Theory, Combinatorics, and Search Theory , Lecture Notes in Comput.\ Sci.\ 7777, Springer, Berlin, 2013, 346--363.
  7. B. McDonald, A. Sahay and E. L. Wyman, The VC dimension of quadratic residues in finite fields, Discrete Math. \ 348 (2025), no. 1, Paper No. 114192; arXiv:2210.03789.arXiv
  8. T. Pham, S. Senger, M. Tait and Nguyen Thu-Huyen, VC-dimension and pseudo-random graphs, Discrete Appl.\ Math. \ 365 (2025), 231--246; arXiv:2303.07878.arXiv
  9. C. Pomerance and I. E. Shparlinski, On pseudosquares and pseudopowers, in Combinatorial Number Theory (Proc.\ Integers Conference 2007), Walter de Gruyter, Berlin, 2009, 171--184; arXiv:0712.1081.arXiv
  10. B. Rodgers and A. Sahay, The VC-dimension of random subsets of finite groups, Random Structures Algorithms 69 (2026), no. 1, e70089; arXiv:2506.14219.arXiv
  11. J. B. Rosser and L. Schoenfeld, Approximate formulas for some functions of prime numbers, Illinois J.\ Math. \ 6 (1962), 64--94.
  12. N. Sauer, On the density of families of sets, J.\ Combin.\ Theory Ser. A 13 (1972), no. 1, 145--147.
  13. A. Schinzel, On pseudosquares, in Analytic and Probabilistic Methods in Number Theory (Palanga, 1996), New Trends Probab.\ Stat.\ 4, VSP, Utrecht / TEV, Vilnius, 1997, 213--220.
  14. S. Shelah, A combinatorial problem; stability and order for models and theories in infinitary languages, Pacific J.\ Math. \ 41 (1972), no. 1, 247--261.
  15. V. N. Vapnik and A. Ya. Chervonenkis, On the uniform convergence of relative frequencies of events to their probabilities, Theory Probab.\ Appl. \ 16 (1971), no. 2, 264--280.

Version history

  1. v1 · 11 pagesSubmitted by Xiaoyu LiInitial depositCurrentNov 30, 2026