Title:Erdős Problem 724
Statement:Let be the maximum number of mutually orthogonal Latin squares of order . Is it true that This question is from [Er81].
| Subjects: | Combinatorics (math.CO) |
| MSC classes: | 05 |
| Tags: | question |
| Cite as: | NS.03006 [math.CO] · NS.03006v1 for this version |
| Declaration: | Erdos724.erdos_724 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | 5e1a4863e63fec6727df0b2cda305e005d8c0b98f46d7a9a59a5ed57ba1fc65b |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/724.lean |
Formal statement
theorem erdos_724 :
∃ c > (0 : ℝ), ∀ᶠ n : ℕ in atTop, c * Real.sqrt (n : ℝ) ≤ (maxMOLS n : ℝ)Show the full Challenge.lean (163 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 724
*References:*
- [erdosproblems.com/724](https://www.erdosproblems.com/724)
- [OEIS A001438](https://oeis.org/A001438)
- [Be83c] Beth, Thomas, *Eine Bemerkung zur Abschätzung der Anzahl orthogonaler lateinischer
Quadrate mittels Siebverfahren*. Abh. Math. Sem. Univ. Hamburg (1983), 284-288.
- [BPS60] Bose, R. C. and Shrikhande, S. S. and Parker, E. T., *Further results on the
construction of mutually orthogonal Latin squares and the falsity of Euler's conjecture*.
Canadian J. Math. (1960), 189-203.
- [CES60] Chowla, S. and Erdős, P. and Straus, E. G., *On the maximal number of pairwise
orthogonal Latin squares of a given order*. Canadian J. Math. (1960), 204-208.
- [Er81] Erdős, P., *On the combinatorial problems which I would most like to see solved*.
Combinatorica (1981), 25-42.
- [Wi74] Wilson, Richard M., *Concerning the number of mutually orthogonal Latin squares*.
Discrete Math. (1974), 181-198.
-/
@[expose] public section
open Filter Finset
namespace Erdos724
/--
Two Latin squares $L, M$ of order $n$ are orthogonal if superimposing them gives each ordered
pair of symbols at most once, i.e. the map $(i, j) \mapsto (L_{ij}, M_{ij})$ is injective
(hence bijective).
-/
def IsOrthogonal {n : ℕ} (L M : LatinSquare n) : Prop :=
Function.Injective fun p : Fin n × Fin n => (L.mat p.1 p.2, M.mat p.1 p.2)
/--
`maxMOLS n` is $f(n)$, the maximum number of mutually orthogonal Latin squares of order $n$:
the largest size of a set of Latin squares of order $n$ that are pairwise orthogonal. For
$n \leq 1$ this gives $f(n) = 1$, while OEIS A001438 uses $\infty$.
-/
noncomputable def maxMOLS (n : ℕ) : ℕ :=
sSup {k : ℕ | ∃ S : Finset (LatinSquare n), #S = k ∧
(S : Set (LatinSquare n)).Pairwise IsOrthogonal}
/--
Let $f(n)$ be the maximum number of mutually orthogonal Latin squares of order $n$. Is it true
that
$$f(n) \gg n^{1/2}?$$
This question is from [Er81].
-/
@[category research open, question, AMS 5]
theorem erdos_724 :
∃ c > (0 : ℝ), ∀ᶠ n : ℕ in atTop, c * Real.sqrt (n : ℝ) ≤ (maxMOLS n : ℝ) := by
sorry
/--
Euler conjectured that $f(n) = 1$ when $n \equiv 2 \pmod{4}$. This is false: Bose, Parker, and
Shrikhande [BPS60] proved $f(n) \geq 2$ for $n \geq 7$, so for example $f(10) \geq 2$.
-/
@[category research solved, question, AMS 5]
theorem erdos_724.variants.euler_conjecture :
¬ ∀ n : ℕ, n ≡ 2 [MOD 4] → maxMOLS n = 1 := by
sorry
/--
Bose, Parker, and Shrikhande [BPS60] proved that $f(n) \geq 2$ for all $n \geq 7$.
-/
@[category research solved, AMS 5]
theorem erdos_724.variants.bose_parker_shrikhande :
∀ n : ℕ, 7 ≤ n → 2 ≤ maxMOLS n := by
sorry
/--
Chowla, Erdős, and Straus [CES60] proved that
$$f(n) \gg n^{1/91}.$$
-/
@[category research solved, AMS 5]
theorem erdos_724.variants.chowla_erdos_straus :
∃ c > (0 : ℝ), ∀ᶠ n : ℕ in atTop,
c * (n : ℝ) ^ ((1 : ℝ) / 91) ≤ (maxMOLS n : ℝ) := by
sorry
/--
Wilson [Wi74] proved that
$$f(n) \gg n^{1/17}.$$
-/
@[category research solved, AMS 5]
theorem erdos_724.variants.wilson :
∃ c > (0 : ℝ), ∀ᶠ n : ℕ in atTop,
c * (n : ℝ) ^ ((1 : ℝ) / 17) ≤ (maxMOLS n : ℝ) := by
sorry
/--
Beth [Be83c] proved that
$$f(n) \gg n^{1/14.8}.$$
-/
@[category research solved, AMS 5]
theorem erdos_724.variants.beth :
∃ c > (0 : ℝ), ∀ᶠ n : ℕ in atTop,
c * (n : ℝ) ^ ((1 : ℝ) / 14.8) ≤ (maxMOLS n : ℝ) := by
sorry
/--
For $n \geq 2$ there are at most $n - 1$ mutually orthogonal Latin squares of order $n$:
$$f(n) \leq n - 1.$$
This is classical; see OEIS A001438.
-/
@[category textbook, AMS 5]
theorem erdos_724.variants.le_sub_one :
∀ n : ℕ, 2 ≤ n → maxMOLS n ≤ n - 1 := by
intro n hn
apply csSup_le'
rintro k ⟨S, rfl, hS⟩
let i0 : Fin n := ⟨0, by omega⟩
let i1 : Fin n := ⟨1, by omega⟩
have h01 : i0 ≠ i1 := by simp [i0, i1, Fin.ext_iff]
-- `c L` is the column of row `i0` that holds the symbol of cell `(i1, i0)`.
let c : LatinSquare n → Fin n := fun L ↦
(Equiv.ofBijective (L.mat i0) (Finite.injective_iff_bijective.1 (L.row_injective i0))).symm
(L.mat i1 i0)
have hc : ∀ L : LatinSquare n, L.mat i0 (c L) = L.mat i1 i0 := fun L ↦
Equiv.ofBijective_apply_symm_apply _ _ _
-- `c L ≠ i0`, since column `i0` has no repeated symbol.
have hc0 : ∀ L : LatinSquare n, c L ≠ i0 := by
intro L h
have h' := hc L
rw [h] at h'
exact h01 (L.col_injective i0 h')
-- Orthogonal squares have different `c`: otherwise their pairs agree at `(i0, c)` and `(i1, i0)`.
have hinj : Set.InjOn c S := by
intro L hL M hM hLM
by_contra hne
have horth : IsOrthogonal L M := hS hL hM hne
have := @horth (i0, c L) (i1, i0)
(show (L.mat i0 (c L), M.mat i0 (c L)) = (L.mat i1 i0, M.mat i1 i0) by
rw [hc L, hLM, hc M])
exact h01 (congrArg Prod.fst this)
calc #S = #(S.image c) := (Finset.card_image_of_injOn hinj).symm
_ ≤ #((Finset.univ : Finset (Fin n)).erase i0) := Finset.card_le_card fun x hx ↦ by
obtain ⟨L, -, rfl⟩ := Finset.mem_image.1 hx
exact Finset.mem_erase.2 ⟨hc0 L, Finset.mem_univ _⟩
_ = n - 1 := by rw [Finset.card_erase_of_mem (Finset.mem_univ _), Finset.card_univ,
Fintype.card_fin]
end Erdos724
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos724.erdos_724 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_724 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-724 nosorry submit erdos-724 nosorry/erdos-724/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-724-variants-euler-conjecture — known result
- erdos-724-variants-bose-parker-shrikhande — known result
- erdos-724-variants-chowla-erdos-straus — known result
- erdos-724-variants-wilson — known result
- erdos-724-variants-beth — known result
- erdos-724-variants-le-sub-one — textbook
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.