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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 725

Source:Erdős Problems
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Elsewhere:on aiXiv: partial progress — Not resolved on aiXiv. Latest progress: partial in aiXiv:2609.00679 (2026-08-03). · erdosproblems.com: open (a claim recorded elsewhere, not verified on nosorry)
2 results recorded on aiXiv
  1. Lean formalization The sublinear-range asymptotic for the number of k×nk\times n Latin rectangles is formally verified in Lean. — aiXiv:2609.00679, 2026-08-03 · claimed by its authors; no independent check recorded on aiXiv
  2. partial For every K(n)=o(n)K(n)=o(n), uniformly for 0≤k≤K(n)0\leq k\leq K(n), the number of k×nk\times n Latin rectangles satisfies Lk,n∼(n!)k((n)k/nk)n(1−k/n)−n/2e−k/2L_{k,n}\sim (n!)^k((n)_k/n^k)^n(1-k/n)^{-n/2}e^{-k/2}, with relative error O(k/n)O(k/n). With the refined normalization A~k,n=(n!)k((n)k/nk)nexp⁡{[n(Hn−Hn−k)−k]/2}\widetilde A_{k,n}=(n!)^k((n)_k/n^k)^n\exp\{[n(H_n-H_{n-k})-k]/2\}, log⁡(Lk,n/A~k,n)=O(k2/n2)\log(L_{k,n}/\widetilde A_{k,n})=O(k^2/n^2). This extends Godsil–McKay from k=o(n6/7)k=o(n^{6/7}). — aiXiv:2609.00679, 2026-08-03 · claimed by its authors; no independent check recorded on aiXiv

From aixiv.online, an open archive of AI-assisted research, synced daily. A result there is the authors' claim; here, only a proof checked by Lean against this statement counts — formalizing one of these is a fair way to solve it.

Statement:

Give an asymptotic formula for the number of k×nk\times n Latin rectangles.

The formula F(k,n)F(k,n) must satisfy L(k,n)∼F(k,n)L(k,n)\sim F(k,n) as n→∞n\to\infty for every choice of k=k(n)≤nk=k(n)\leq n, so it also covers Latin squares (k=nk=n).

Subjects:Combinatorics (math.CO)
MSC classes:05
Tags:question
Cite as:NS.03014 [math.CO] · NS.03014v1 for this version
Declaration:Erdos725.erdos_725
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:1675cb0c04a2ed4567ae9f132dcf58989e2b449f04eb073504a9ef18dcffbb08
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/725.lean

Formal statement

theorem erdos_725 (k : ℕ → ℕ) (hk : ∀ n, k n ≤ n) :
    (fun n ↦ (L (k n) n : ℝ)) ~[atTop] fun n ↦ erdos_725.answer (k n) n
Show the full Challenge.lean (107 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 725

*References:*
- [erdosproblems.com/725](https://www.erdosproblems.com/725)
- [Er81] Erdős, P., *On the combinatorial problems which I would most like to see solved*.
  Combinatorica 1 (1981), 25-42. [PDF](https://www.renyi.hu/~p_erdos/1981-16.pdf)
- [ErKa46] Erdős, P. and Kaplansky, I., *The asymptotic number of Latin rectangles*.
  Amer. J. Math. 68 (1946), 230-236. [PDF](https://www.renyi.hu/~p_erdos/1946-12.pdf)
- [Ya51] Yamamoto, K., *On the asymptotic number of Latin rectangles*.
  Jpn. J. Math. 21 (1951), 113-119.
-/

@[expose] public section

open Filter Asymptotics

namespace Erdos725

/-- `M` is a $k\times n$ Latin rectangle: `M i j` is the entry in row `i` and column `j`, the
entries are in `Fin n` (standing for $\{1,\dots,n\}$), every row is a permutation of the
entries, and no entry is repeated in a column. -/
abbrev IsLatinRectangle {k n : ℕ} (M : Fin k → Fin n → Fin n) : Prop :=
  (∀ i, Function.Injective (M i)) ∧ ∀ j, Function.Injective fun i ↦ M i j

/-- $L(k,n)$ is the number of $k\times n$ Latin rectangles. Rows, columns and entries are
labelled and the rows are ordered. It is $0$ for $k>n\geq 1$ and $1$ for $k=0$. -/
noncomputable def L (k n : ℕ) : ℕ :=
  Nat.card {M : Fin k → Fin n → Fin n // IsLatinRectangle M}

/-- There are $n!$ Latin rectangles with one row. -/
@[category test, AMS 5]
theorem L_one (n : ℕ) : L 1 n = n.factorial := by
  have e : {M : Fin 1 → Fin n → Fin n // IsLatinRectangle M} ≃ Equiv.Perm (Fin n) :=
    { toFun := fun M ↦ Equiv.ofBijective (M.1 0) (Finite.injective_iff_bijective.1 (M.2.1 0))
      invFun := fun σ ↦ ⟨fun _ ↦ σ, fun _ ↦ σ.injective, fun _ a b _ ↦ Subsingleton.elim a b⟩
      left_inv := fun M ↦ by
        refine Subtype.ext (funext fun i ↦ ?_)
        have hi : i = 0 := Subsingleton.elim i 0
        subst hi
        rfl
      right_inv := fun σ ↦ Equiv.ext fun _ ↦ rfl }
  unfold L
  rw [Nat.card_congr e, Nat.card_perm, Nat.card_eq_fintype_card, Fintype.card_fin]

def erdos_725.answer : ℕ → ℕ → ℝ := sorry

/--
Give an asymptotic formula for the number of $k\times n$ Latin rectangles.

The formula $F(k,n)$ must satisfy $L(k,n)\sim F(k,n)$ as $n\to\infty$ for every choice of
$k=k(n)\leq n$, so it also covers Latin squares ($k=n$).
-/
@[category research open, question value, AMS 5]
theorem erdos_725 (k : ℕ → ℕ) (hk : ∀ n, k n ≤ n) :
    (fun n ↦ (L (k n) n : ℝ)) ~[atTop] fun n ↦ erdos_725.answer (k n) n := by
  sorry

/--
Erdős and Kaplansky [ErKa46] proved the count is
$$\sim e^{-\binom{k}{2}}(n!)^k$$
when $k=o((\log n)^{3/2-\epsilon})$.

Here $\epsilon>0$ is fixed.
-/
@[category research solved, AMS 5]
theorem erdos_725.variants.erdos_kaplansky (ε : ℝ) (hε : 0 < ε) (k : ℕ → ℕ)
    (hk : (fun n ↦ (k n : ℝ)) =o[atTop] fun n ↦ Real.log n ^ (3 / 2 - ε)) :
    (fun n ↦ (L (k n) n : ℝ)) ~[atTop]
      fun n ↦ Real.exp (-((k n).choose 2 : ℝ)) * (n.factorial : ℝ) ^ k n := by
  sorry

/--
Yamamoto [Ya51] extended this to $k\leq n^{1/3-o(1)}$.

As in [Ya51, p. 113], we assume $k<n^{1/3-\delta}$ with $n^{-\delta}\to 0$, where $\delta$
may be a positive constant or a function of $n$.
-/
@[category research solved, AMS 5]
theorem erdos_725.variants.yamamoto (δ : ℕ → ℝ)
    (hδ : Tendsto (fun n : ℕ ↦ (n : ℝ) ^ (-δ n)) atTop (nhds 0)) (k : ℕ → ℕ)
    (hk : ∀ᶠ n in atTop, (k n : ℝ) < (n : ℝ) ^ (1 / 3 - δ n)) :
    (fun n ↦ (L (k n) n : ℝ)) ~[atTop]
      fun n ↦ Real.exp (-((k n).choose 2 : ℝ)) * (n.factorial : ℝ) ^ k n := by
  sorry

end Erdos725

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

nosorry fetch erdos-725
nosorry submit erdos-725 nosorry/erdos-725/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

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.