Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:ShelahSpencerZeroOneLaw · zeroOne_rational

Source:Problems from papers
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

If 0<α<10 < \alpha < 1 is rational, then there is a first-order sentence φ\varphi in the language of graphs whose probability in G(n,n−α)G(n, n^{-\alpha}) does not converge as n→∞n \to \infty.

Subjects:Logic (math.LO); Combinatorics (math.CO)
MSC classes:03, 05
Cite as:NS.07536 [math.LO] · NS.07536v1 for this version
Declaration:ShelahSpencerZeroOneLaw.zeroOne_rational
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10; accepted critique: up to 100
Statement hash:3f5d6e6b6068c61751ac8c686fdc8c582e65203d6d43f3c32a76c22f3952678a
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/Paper/ShelahSpencerZeroOneLaw.lean

Formal statement

theorem zeroOne_rational
   (α : ℝ) (hα : 0 < α ∧ α < 1) (hrat : ¬Irrational α) :
   ∃ φ : Language.graph.Sentence,
   ∀ b : ENNReal,
   ¬ Tendsto (fun n =>
     sparseRandomGraph n α hα.1
       {G | @Language.Sentence.Realize Language.graph (Fin n) G.structure φ}) atTop (𝓝 b)
Show the full Challenge.lean (84 lines) — definitions included
module

public import FormalConjecturesUtil

/-! # Shelah-Spencer's Zero-One Law for Sparse Random Graphs

*References*:

* [Shelah and Spencer,
  Zero-one laws for sparse random graphs](https://doi.org/10.1090/S0894-0347-1988-0924703-8),
  Journal of the American Mathematical Society, 1(1), 97-115 (1988).
* [Glebskii et al.,
  Range and degree of realizability of formulas
  in the restricted predicate calculus](https://doi.org/10.1007/BF01071084),
  Cybernetics, 5(2), 142-154 (1969) (for $\alpha = 0$).
-/

@[expose] public section

open FirstOrder Filter MeasureTheory Topology
namespace ShelahSpencerZeroOneLaw

/-- The edge probability $n^{-\alpha}$ as an element of the unit interval.

At $n = 0$, this uses Mathlib's convention $0^{-\alpha} = 0$. This choice does not affect an
asymptotic statement as $n \to \infty$. -/
noncomputable def sparseProbability (n : ℕ) (α : ℝ) (hα : 0 < α) : unitInterval :=
  ⟨(n : ℝ) ^ (-α), Real.rpow_nonneg (Nat.cast_nonneg n) (-α), by
    cases n with
    | zero => simpa using Real.zero_rpow_le_one (-α)
    | succ n =>
        exact Real.rpow_le_one_of_one_le_of_nonpos
          (by exact_mod_cast Nat.succ_le_succ (Nat.zero_le n)) (by simp [hα.le])⟩

/-- The probability law $G(n, n^{-\alpha})$ on simple graphs with vertex set `Fin n`. -/
noncomputable def sparseRandomGraph (n : ℕ) (α : ℝ) (hα : 0 < α) :
    Measure (SimpleGraph (Fin n)) :=
  SimpleGraph.binomialRandom (Fin n) (sparseProbability n α hα)

/-- If $0 < \alpha < 1$ is irrational, then for every first-order sentence $\varphi$ in the
language of graphs, the probability that $G(n, n^{-\alpha})$ satisfies $\varphi$ tends to either
zero or one as $n \to \infty$. -/
@[category research solved, AMS 3 5]
theorem zeroOne_irrational
   (α : ℝ) (hα : 0 < α ∧ α < 1) (hirr : Irrational α) (φ : Language.graph.Sentence) :
   Tendsto (fun n =>
     sparseRandomGraph n α hα.1
       {G | @Language.Sentence.Realize Language.graph (Fin n) G.structure φ}) atTop (𝓝 0) ∨
   Tendsto (fun n =>
     sparseRandomGraph n α hα.1
       {G | @Language.Sentence.Realize Language.graph (Fin n) G.structure φ}) atTop (𝓝 1) := by
  sorry

/-- If $0 < \alpha < 1$ is rational, then there is a first-order sentence $\varphi$ in the
language of graphs whose probability in $G(n, n^{-\alpha})$ does not converge as
$n \to \infty$. -/
@[category research solved, AMS 3 5]
theorem zeroOne_rational
   (α : ℝ) (hα : 0 < α ∧ α < 1) (hrat : ¬Irrational α) :
   ∃ φ : Language.graph.Sentence,
   ∀ b : ENNReal,
   ¬ Tendsto (fun n =>
     sparseRandomGraph n α hα.1
       {G | @Language.Sentence.Realize Language.graph (Fin n) G.structure φ}) atTop (𝓝 b) := by
  sorry

end ShelahSpencerZeroOneLaw

To prove it: keep every definition of Challenge.lean unchanged and prove ShelahSpencerZeroOneLaw.zeroOne_rational with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_zeroOne_rational : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk papers-shelahspencerzeroonelaw--zeroone-rational      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch papers-shelahspencerzeroonelaw--zeroone-rational
nosorry submit papers-shelahspencerzeroonelaw--zeroone-rational nosorry/papers-shelahspencerzeroonelaw--zeroone-rational/Solution.lean --wait

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.