{
  "id": "646",
  "ident": "NS.00646",
  "slug": "erdos-1098",
  "title": "Erdős Problem 1098",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $G$ be a group and $\\Gamma=\\Gamma(G)$ be the non-commuting graph, with vertices the elements\nof $G$ and an edge between $g$ and $h$ if and only if $g$ and $h$ do not commute, $gh\\neq hg$.\n\nIf $\\Gamma$ contains no infinite complete subgraph, then is there a finite bound on the size of\ncomplete subgraphs of $\\Gamma$?\n\nThis was solved by Neumann [Ne76], who proved that $\\Gamma$ contains no infinite complete subgraph\nif and only if the centre of the group has finite index, and noted that if the centre has index $n$\nthen $\\Gamma$ contains no complete subgraph on $>n$ vertices.",
  "subjects": [
    "math.CO",
    "math.GR",
    "msc:05",
    "msc:20"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1098.erdos_1098",
  "statement_lean": "theorem erdos_1098 :\n    ∀ (G : Type*) [Group G],\n      (∀ s : Set G, (nonCommutingGraph G).IsClique s → s.Finite) →\n        ∃ n : ℕ, ∀ s : Finset G, (nonCommutingGraph G).IsClique (s : Set G) → s.card ≤ 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 1098\n\n*References:*\n- [erdosproblems.com/1098](https://www.erdosproblems.com/1098)\n- [Ne76] Neumann, B. H., *A problem of Paul Erdős on groups*. J. Austral. Math. Soc. Ser. A (1976),\n  467-472.\n-/\n\n@[expose] public section\n\nnamespace Erdos1098\n\n/-- The non-commuting graph $\\Gamma = \\Gamma(G)$ of a group `G`, with vertices the elements of `G`\nand an edge between `g` and `h` if and only if `g` and `h` do not commute, $gh \\neq hg$. -/\ndef nonCommutingGraph (G : Type*) [Group G] : SimpleGraph G where\n  Adj g h := g * h ≠ h * g\n  symm.symm := fun _ _ h => h.symm\n\n@[simp, category API, AMS 5 20]\ntheorem nonCommutingGraph_adj {G : Type*} [Group G] (g h : G) :\n    (nonCommutingGraph G).Adj g h ↔ g * h ≠ h * g := Iff.rfl\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $G$ be a group and $\\Gamma=\\Gamma(G)$ be the non-commuting graph, with vertices the elements\nof $G$ and an edge between $g$ and $h$ if and only if $g$ and $h$ do not commute, $gh\\neq hg$.\n\nIf $\\Gamma$ contains no infinite complete subgraph, then is there a finite bound on the size of\ncomplete subgraphs of $\\Gamma$?\n\nThis was solved by Neumann [Ne76], who proved that $\\Gamma$ contains no infinite complete subgraph\nif and only if the centre of the group has finite index, and noted that if the centre has index $n$\nthen $\\Gamma$ contains no complete subgraph on $>n$ vertices.\n-/\n@[category research solved, question, AMS 5 20, formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/main/src/v4.29.1/ErdosProblems/Erdos1098.lean\"]\ntheorem erdos_1098 :\n    ∀ (G : Type*) [Group G],\n      (∀ s : Set G, (nonCommutingGraph G).IsClique s → s.Finite) →\n        ∃ n : ℕ, ∀ s : Finset G, (nonCommutingGraph G).IsClique (s : Set G) → s.card ≤ n := by\n  sorry\n\n/--\nNeumann [Ne76] proved that $\\Gamma$ contains no infinite complete subgraph if and only if the\ncentre of the group has finite index.\n-/\n@[category research solved, AMS 5 20]\ntheorem erdos_1098.variants.center_finiteIndex (G : Type*) [Group G] :\n    (∀ s : Set G, (nonCommutingGraph G).IsClique s → s.Finite) ↔\n      (Subgroup.center G).FiniteIndex := by\n  sorry\n\n/--\nNeumann [Ne76] noted that if the centre has index $n$ then $\\Gamma$ contains no complete subgraph\non $>n$ vertices.\n-/\n@[category research solved, AMS 5 20]\ntheorem erdos_1098.variants.upper_bound (G : Type*) [Group G]\n    [(Subgroup.center G).FiniteIndex] :\n    (nonCommutingGraph G).CliqueFree ((Subgroup.center G).index + 1) := by\n  intro s hs\n  have hinj : Set.InjOn (fun g : G => (QuotientGroup.mk g : G ⧸ Subgroup.center G)) s := by\n    intro x hx y hy hxy\n    by_contra hne\n    apply hs.isClique hx hy hne\n    obtain ⟨z, hz, rfl⟩ : ∃ z ∈ Subgroup.center G, y = x * z :=\n      ⟨x⁻¹ * y, QuotientGroup.eq.mp hxy, by group⟩\n    rw [mul_assoc, Subgroup.mem_center_iff.mp hz x, ← mul_assoc]\n  have : Finite (G ⧸ Subgroup.center G) := Subgroup.finite_quotient_of_finiteIndex\n  let _ := Fintype.ofFinite (G ⧸ Subgroup.center G)\n  have h1 := Finset.card_le_card_of_injOn _ (t := Finset.univ)\n    (fun x _ => Finset.mem_coe.2 (Finset.mem_univ _)) hinj\n  rw [hs.card_eq, Finset.card_univ, ← Nat.card_eq_fintype_card, ← Subgroup.index] at h1\n  omega\n\nend Erdos1098\n",
  "statement_hash": "ad01c6701b32d532c229842d1756937579af68e90330a671795cf5f44b8f5864",
  "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."
}