# Reproduction files: halving the even top elements of the Schinzel–Szekeres set

- `check.py` — the numerical check in Section 3 of the paper (not used in the proof). Run `python3 check.py <x>` (needs numpy).
- `check.out` — its output for x = 600, 3000 and 10⁶.
- `lean/` — the Lean 4 / Mathlib proof (Section 5 of the paper): `WQ1.lean` with `lakefile.toml`, `lake-manifest.json` and `lean-toolchain` pinning Lean v4.34.1 and Mathlib commit d13f23b723b8a846827a245b89c10fc7d3f11612. In that folder run `lake exe cache get`, then `lake env lean WQ1.lean`. Lemma 1, Lemma 2 and the counting identity are proved without hypotheses; Weingartner's Theorems 2 and 10 are hypotheses of `main` and `not_question1`.

The proof itself uses only the two lemmas in the paper and Theorems 2 and 10 and Table 2 of A. Weingartner, "The Schinzel–Szekeres function", Res. Number Theory 11 (2025), Paper No. 63 (arXiv:2310.13038).
