{
  "id": "3006",
  "ident": "NS.03006",
  "slug": "erdos-724",
  "title": "Erdős Problem 724",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $f(n)$ be the maximum number of mutually orthogonal Latin squares of order $n$. Is it true\nthat\n$$f(n) \\gg n^{1/2}?$$\nThis question is from [Er81].",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos724.erdos_724",
  "statement_lean": "theorem erdos_724 :\n    ∃ c > (0 : ℝ), ∀ᶠ n : ℕ in atTop, c * Real.sqrt (n : ℝ) ≤ (maxMOLS n : ℝ)",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 724\n\n*References:*\n- [erdosproblems.com/724](https://www.erdosproblems.com/724)\n- [OEIS A001438](https://oeis.org/A001438)\n- [Be83c] Beth, Thomas, *Eine Bemerkung zur Abschätzung der Anzahl orthogonaler lateinischer\n  Quadrate mittels Siebverfahren*. Abh. Math. Sem. Univ. Hamburg (1983), 284-288.\n- [BPS60] Bose, R. C. and Shrikhande, S. S. and Parker, E. T., *Further results on the\n  construction of mutually orthogonal Latin squares and the falsity of Euler's conjecture*.\n  Canadian J. Math. (1960), 189-203.\n- [CES60] Chowla, S. and Erdős, P. and Straus, E. G., *On the maximal number of pairwise\n  orthogonal Latin squares of a given order*. Canadian J. Math. (1960), 204-208.\n- [Er81] Erdős, P., *On the combinatorial problems which I would most like to see solved*.\n  Combinatorica (1981), 25-42.\n- [Wi74] Wilson, Richard M., *Concerning the number of mutually orthogonal Latin squares*.\n  Discrete Math. (1974), 181-198.\n-/\n\n@[expose] public section\n\nopen Filter Finset\n\nnamespace Erdos724\n\n/--\nTwo Latin squares $L, M$ of order $n$ are orthogonal if superimposing them gives each ordered\npair of symbols at most once, i.e. the map $(i, j) \\mapsto (L_{ij}, M_{ij})$ is injective\n(hence bijective).\n-/\ndef IsOrthogonal {n : ℕ} (L M : LatinSquare n) : Prop :=\n  Function.Injective fun p : Fin n × Fin n => (L.mat p.1 p.2, M.mat p.1 p.2)\n\n/--\n`maxMOLS n` is $f(n)$, the maximum number of mutually orthogonal Latin squares of order $n$:\nthe largest size of a set of Latin squares of order $n$ that are pairwise orthogonal. For\n$n \\leq 1$ this gives $f(n) = 1$, while OEIS A001438 uses $\\infty$.\n-/\nnoncomputable def maxMOLS (n : ℕ) : ℕ :=\n  sSup {k : ℕ | ∃ S : Finset (LatinSquare n), #S = k ∧\n    (S : Set (LatinSquare n)).Pairwise IsOrthogonal}\n\n/--\nLet $f(n)$ be the maximum number of mutually orthogonal Latin squares of order $n$. Is it true\nthat\n$$f(n) \\gg n^{1/2}?$$\nThis question is from [Er81].\n-/\n@[category research open, question, AMS 5]\ntheorem erdos_724 :\n    ∃ c > (0 : ℝ), ∀ᶠ n : ℕ in atTop, c * Real.sqrt (n : ℝ) ≤ (maxMOLS n : ℝ) := by\n  sorry\n\n/--\nEuler conjectured that $f(n) = 1$ when $n \\equiv 2 \\pmod{4}$. This is false: Bose, Parker, and\nShrikhande [BPS60] proved $f(n) \\geq 2$ for $n \\geq 7$, so for example $f(10) \\geq 2$.\n-/\n@[category research solved, question, AMS 5]\ntheorem erdos_724.variants.euler_conjecture :\n    ¬ ∀ n : ℕ, n ≡ 2 [MOD 4] → maxMOLS n = 1 := by\n  sorry\n\n/--\nBose, Parker, and Shrikhande [BPS60] proved that $f(n) \\geq 2$ for all $n \\geq 7$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_724.variants.bose_parker_shrikhande :\n    ∀ n : ℕ, 7 ≤ n → 2 ≤ maxMOLS n := by\n  sorry\n\n/--\nChowla, Erdős, and Straus [CES60] proved that\n$$f(n) \\gg n^{1/91}.$$\n-/\n@[category research solved, AMS 5]\ntheorem erdos_724.variants.chowla_erdos_straus :\n    ∃ c > (0 : ℝ), ∀ᶠ n : ℕ in atTop,\n      c * (n : ℝ) ^ ((1 : ℝ) / 91) ≤ (maxMOLS n : ℝ) := by\n  sorry\n\n/--\nWilson [Wi74] proved that\n$$f(n) \\gg n^{1/17}.$$\n-/\n@[category research solved, AMS 5]\ntheorem erdos_724.variants.wilson :\n    ∃ c > (0 : ℝ), ∀ᶠ n : ℕ in atTop,\n      c * (n : ℝ) ^ ((1 : ℝ) / 17) ≤ (maxMOLS n : ℝ) := by\n  sorry\n\n/--\nBeth [Be83c] proved that\n$$f(n) \\gg n^{1/14.8}.$$\n-/\n@[category research solved, AMS 5]\ntheorem erdos_724.variants.beth :\n    ∃ c > (0 : ℝ), ∀ᶠ n : ℕ in atTop,\n      c * (n : ℝ) ^ ((1 : ℝ) / 14.8) ≤ (maxMOLS n : ℝ) := by\n  sorry\n\n/--\nFor $n \\geq 2$ there are at most $n - 1$ mutually orthogonal Latin squares of order $n$:\n$$f(n) \\leq n - 1.$$\nThis is classical; see OEIS A001438.\n-/\n@[category textbook, AMS 5]\ntheorem erdos_724.variants.le_sub_one :\n    ∀ n : ℕ, 2 ≤ n → maxMOLS n ≤ n - 1 := by\n  intro n hn\n  apply csSup_le'\n  rintro k ⟨S, rfl, hS⟩\n  let i0 : Fin n := ⟨0, by omega⟩\n  let i1 : Fin n := ⟨1, by omega⟩\n  have h01 : i0 ≠ i1 := by simp [i0, i1, Fin.ext_iff]\n  -- `c L` is the column of row `i0` that holds the symbol of cell `(i1, i0)`.\n  let c : LatinSquare n → Fin n := fun L ↦\n    (Equiv.ofBijective (L.mat i0) (Finite.injective_iff_bijective.1 (L.row_injective i0))).symm\n      (L.mat i1 i0)\n  have hc : ∀ L : LatinSquare n, L.mat i0 (c L) = L.mat i1 i0 := fun L ↦\n    Equiv.ofBijective_apply_symm_apply _ _ _\n  -- `c L ≠ i0`, since column `i0` has no repeated symbol.\n  have hc0 : ∀ L : LatinSquare n, c L ≠ i0 := by\n    intro L h\n    have h' := hc L\n    rw [h] at h'\n    exact h01 (L.col_injective i0 h')\n  -- Orthogonal squares have different `c`: otherwise their pairs agree at `(i0, c)` and `(i1, i0)`.\n  have hinj : Set.InjOn c S := by\n    intro L hL M hM hLM\n    by_contra hne\n    have horth : IsOrthogonal L M := hS hL hM hne\n    have := @horth (i0, c L) (i1, i0)\n      (show (L.mat i0 (c L), M.mat i0 (c L)) = (L.mat i1 i0, M.mat i1 i0) by\n        rw [hc L, hLM, hc M])\n    exact h01 (congrArg Prod.fst this)\n  calc #S = #(S.image c) := (Finset.card_image_of_injOn hinj).symm\n    _ ≤ #((Finset.univ : Finset (Fin n)).erase i0) := Finset.card_le_card fun x hx ↦ by\n        obtain ⟨L, -, rfl⟩ := Finset.mem_image.1 hx\n        exact Finset.mem_erase.2 ⟨hc0 L, Finset.mem_univ _⟩\n    _ = n - 1 := by rw [Finset.card_erase_of_mem (Finset.mem_univ _), Finset.card_univ,\n        Fintype.card_fin]\n\nend Erdos724\n",
  "statement_hash": "5e1a4863e63fec6727df0b2cda305e005d8c0b98f46d7a9a59a5ed57ba1fc65b",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}