Shelah-Spencer Non-Convergence for α = p/q with p ≥ 2 in Lean 4

Result: Proves ShelahSpencerZeroOneLaw.zeroOne_rational.R1.H2 for every coprime 2 ≤ p < q: first-order graph formulas define, with parameters, a nonempty linear order D with a membership relation realizing every subset of D, and in G(n, n^(-p/q)) the residue (|D| - 1) mod 100 lies in [10, 40] with probability at least 3/4 for infinitely many n, and lies outside it with probability at least 3/4 for infinitely many n. treybeathard-jpg's reduction R1 (PR #26924) compiles this into a first-order sentence whose probability does not converge, which gives Shelah-Spencer non-convergence for all these α. Saharon Shelah and Joel Spencer (J. Amer. Math. Soc. 1, 1988) proved that G(n, n^(-α)) satisfies the first-order zero-one law for irrational α in (0, 1), while for every rational α in (0, 1) some first-order sentence has non-convergent probability. On Left to Solve, the rational half was split by treybeathard-jpg's reduction R1 into a unit-fraction branch H1 (α = 1/q) and a non-unit branch H2 (α = p/q, 2 ≤ p < q, coprime). This 12,282-line Lean 4 file (PR #63400) proves H2: definable parameterized linear orders with full subset membership whose size modulo 100 oscillates, with probability at least 3/4 along two subsequences of n. Since an ordinary path cannot balance α = p/q, the proof builds balanced rooted-path gadgets and controls them in the sparse random graph by an edge-block product measure, a bulk pool construction and exterior-failure charging, ending in the bound P[no indexed chain] ≤ 1/32. Through R1 this yields non-convergence for every such α, and together with mattdorman's proof of H1 it closed the root. Part of the code (graph measure, formula builders, tower framework) is adapted from mattdorman's PR #37374, and the line count includes it. Credits: Theorem: Saharon Shelah and Joel Spencer (1988). Reduction R1 splitting the root into H1/H2: treybeathard-jpg (open-math-agents PR #26924); Left to Solve credits the root solution to treybeathard-jpg with contributors aliuyar1234 and mattdorman. Unit-fraction branch R1.H1: mattdorman (PR #37374). The Lean file header states: 'Graph measure, formulas and tower adapted from @mattdorman, PR #37374 (Apache-2.0).' The PR body records no other third-party credit. Lean proof produced with the AI coding agent t3-code (model gpt-6.2-astra) operated by Ali Uyar.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-03
DOI
https://doi.org/10.5281/zenodo.24765128
Primary Topic
Limits and Structures in Graph Theory
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Shelah-Spencer Non-Convergence for α = p/q with p ≥ 2 in Lean 4

Ali Uyar
Zenodo (CERN European Organization for Nuclear Research)
Limits and Structures in Graph Theory
article

Shelah-Spencer Non-Convergence for α = p/q with p ≥ 2 in Lean 4

Ali Uyar
article en

Abstract

Result: Proves ShelahSpencerZeroOneLaw.zeroOne_rational.R1.H2 for every coprime 2 ≤ p < q: first-order graph formulas define, with parameters, a nonempty linear order D with a membership relation realizing every subset of D, and in G(n, n^(-p/q)) the residue (|D| - 1) mod 100 lies in [10, 40] with probability at least 3/4 for infinitely many n, and lies outside it with probability at least 3/4 for infinitely many n. treybeathard-jpg's reduction R1 (PR #26924) compiles this into a first-order sentence whose probability does not converge, which gives Shelah-Spencer non-convergence for all these α. Saharon Shelah and Joel Spencer (J. Amer. Math. Soc. 1, 1988) proved that G(n, n^(-α)) satisfies the first-order zero-one law for irrational α in (0, 1), while for every rational α in (0, 1) some first-order sentence has non-convergent probability. On Left to Solve, the rational half was split by treybeathard-jpg's reduction R1 into a unit-fraction branch H1 (α = 1/q) and a non-unit branch H2 (α = p/q, 2 ≤ p < q, coprime). This 12,282-line Lean 4 file (PR #63400) proves H2: definable parameterized linear orders with full subset membership whose size modulo 100 oscillates, with probability at least 3/4 along two subsequences of n. Since an ordinary path cannot balance α = p/q, the proof builds balanced rooted-path gadgets and controls them in the sparse random graph by an edge-block product measure, a bulk pool construction and exterior-failure charging, ending in the bound P[no indexed chain] ≤ 1/32. Through R1 this yields non-convergence for every such α, and together with mattdorman's proof of H1 it closed the root. Part of the code (graph measure, formula builders, tower framework) is adapted from mattdorman's PR #37374, and the line count includes it. Credits: Theorem: Saharon Shelah and Joel Spencer (1988). Reduction R1 splitting the root into H1/H2: treybeathard-jpg (open-math-agents PR #26924); Left to Solve credits the root solution to treybeathard-jpg with contributors aliuyar1234 and mattdorman. Unit-fraction branch R1.H1: mattdorman (PR #37374). The Lean file header states: 'Graph measure, formulas and tower adapted from @mattdorman, PR #37374 (Apache-2.0).' The PR body records no other third-party credit. Lean proof produced with the AI coding agent t3-code (model gpt-6.2-astra) operated by Ali Uyar.

Zenodo (CERN European Organization for Nuclear Research)
Limits and Structures in Graph Theory
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon