{
  "id": "731",
  "ident": "NS.00731",
  "slug": "erdos-1128",
  "title": "Erdős Problem 1128",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "**Prikry–Mills counterexample** (key lemma):\n\nThere exists a 2-colouring $f$ of a set of cardinality $\\aleph_1$ cubed such that\nno countable box $A_1 \\times B_1 \\times C_1$ is monochromatic.\n\nThis is the unpublished result of Prikry and Mills (1978). The proof proceeds by\ntransfinite induction along $\\omega_1$, which has uncountable cofinality, ensuring\nevery countable box is non-monochromatic.",
  "subjects": [
    "math.LO",
    "math.CO",
    "msc:03",
    "msc:05"
  ],
  "tags": [],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/1128",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1128.erdos_1128.prikryMills",
  "statement_lean": "theorem erdos_1128.prikryMills :\n    ∃ (X : Type) (_ : #X = aleph 1) (f : X → X → X → Fin 2),\n      ∀ (A₁ B₁ C₁ : Set X),\n        #A₁ = aleph 0 → #B₁ = aleph 0 → #C₁ = aleph 0 →\n        ¬ IsMonochromaticBox f A₁ B₁ C₁",
  "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 1128\n\n*Reference:* [erdosproblems.com/1128](https://www.erdosproblems.com/1128)\n-/\n\n@[expose] public section\n\nopen Cardinal Set Ordinal Order\n\nnamespace Erdos1128\n\n/-- A subset $A_1 \\times B_1 \\times C_1$ of $A \\times B \\times C$ is **monochromatic**\nunder a 2-colouring $f : A \\to B \\to C \\to \\operatorname{Fin} 2$ if $f$ is constant on\n$A_1 \\times B_1 \\times C_1$. -/\ndef IsMonochromaticBox {A B C : Type*} (f : A → B → C → Fin 2)\n    (A₁ : Set A) (B₁ : Set B) (C₁ : Set C) : Prop :=\n  ∃ c : Fin 2, ∀ a ∈ A₁, ∀ b ∈ B₁, ∀ c' ∈ C₁, f a b c' = c\n\n/-\nAuxiliary lemmas for the Prikry–Mills construction.\nThese establish key countability and boundedness properties of ω₁.\n-/\n\n/-- The set of countable ordinals, expressed using Mathlib's `ω_ 1`. -/\nabbrev Omega1 := {o : Ordinal.{0} // o < ω_ 1}\n\n/-- The set of ordinals strictly below any $\\gamma < \\omega_1$ is countable. -/\n@[category API, AMS 5]\nprivate lemma countable_Iio_of_lt_omega1 {γ : Ordinal} (hγ : γ < ω_ 1) :\n    (Set.Iio γ).Countable := by\n  rwa [← le_aleph0_iff_set_countable, Cardinal.mk_Iio_ordinal, lift_le_aleph0,\n    ← lt_aleph_one_iff, ← lt_omega_iff_card_lt]\n\nset_option backward.isDefEq.respectTransparency false in\n/-- Initial segments of ω₁ (as sets of `Omega1` elements) are countable.\nThis is the subtype-order version of `countable_Iio_of_lt_omega1`. -/\n@[category API, AMS 5]\nprivate lemma countable_Iio_omega1 (γ : Omega1) : (Set.Iio γ : Set Omega1).Countable := by\n  -- The injection a ↦ ⟨a.1.val, a.2⟩ sends ↑(Iio γ : Set Omega1) into ↑(Iio γ.val : Set Ord)\n  -- and the codomain is countable by countable_Iio_of_lt_omega1.\n  have hcount := (countable_Iio_of_lt_omega1 γ.2).to_subtype\n  -- Goal: (Set.Iio γ : Set Omega1).Countable = Set.Countable (Set.Iio γ)\n  -- = Countable ↥(Set.Iio γ : Set Omega1) (by definition of Set.Countable)\n  show Countable ↑(Set.Iio γ : Set Omega1)\n  -- Use Function.Injective.countable with the injection a ↦ ⟨a.1.val, a.2⟩.\n  apply Function.Injective.countable (β := ↑(Set.Iio γ.val : Set Ordinal.{0}))\n    (f := fun (a : ↑(Set.Iio γ : Set Omega1)) => (⟨a.1.val, a.2⟩ : ↑(Set.Iio γ.val)))\n  -- `h` arrives as an unreduced application of the injection.\n  intro ⟨⟨av, hav_ω₁⟩, hav_γ⟩ ⟨⟨bv, hbv_ω₁⟩, hbv_γ⟩ h\n  simp only [Subtype.mk.injEq] at h\n  exact Subtype.ext (Subtype.ext h)\n\n/-- Any countable subset of $\\omega_1$ is bounded strictly below some element of $\\omega_1$.\nThis uses the key property that $\\omega_1$ has uncountable cofinality (it is regular). -/\n@[category API, AMS 5]\nprivate lemma countable_subset_bdd (S : Set Omega1) (hS : S.Countable) :\n    ∃ γ : Omega1, ∀ s ∈ S, s < γ := by\n  by_cases hemp : S.Nonempty\n  · obtain ⟨f, hf⟩ := hS.exists_eq_range hemp\n    have hf_lt' n : (f n).1 < ω_ 1 := (f n).2\n    have hbdd : BddAbove (Set.range (fun n => (f n).1)) :=\n      ⟨ω_ 1, fun o ⟨m, hm⟩ => hm ▸ (f m).2.le⟩\n    have hlt : ⨆ n, (f n).1 < ω_ 1 := iSup_lt_omega_one hf_lt'\n    -- `ω_ 1` is a limit ordinal (no ord_aleph rewrite needed).\n    have hsucc_lt : (⨆ n, (f n).1) + 1 < ω_ 1 := by\n      rw [← succ_eq_add_one]; exact (isSuccLimit_omega 1).succ_lt hlt\n    refine ⟨⟨(⨆ n, (f n).1) + 1, hsucc_lt⟩, ?_⟩\n    intro s hs; rw [hf] at hs; obtain ⟨n, rfl⟩ := hs\n    show (f n).1 < (⨆ n, (f n).1) + 1\n    rw [← succ_eq_add_one]\n    exact lt_succ_of_le (le_ciSup hbdd n)\n  · rw [Set.not_nonempty_iff_eq_empty] at hemp; rw [hemp]\n    exact ⟨⟨0, omega_pos 1⟩, fun s hs => absurd hs (Set.notMem_empty _)⟩\n\n/--\n**Prikry–Mills counterexample** (key lemma):\n\nThere exists a 2-colouring $f$ of a set of cardinality $\\aleph_1$ cubed such that\nno countable box $A_1 \\times B_1 \\times C_1$ is monochromatic.\n\nThis is the unpublished result of Prikry and Mills (1978). The proof proceeds by\ntransfinite induction along $\\omega_1$, which has uncountable cofinality, ensuring\nevery countable box is non-monochromatic.\n-/\n@[category research solved, AMS 3 5]\ntheorem erdos_1128.prikryMills :\n    ∃ (X : Type) (_ : #X = aleph 1) (f : X → X → X → Fin 2),\n      ∀ (A₁ B₁ C₁ : Set X),\n        #A₁ = aleph 0 → #B₁ = aleph 0 → #C₁ = aleph 0 →\n        ¬ IsMonochromaticBox f A₁ B₁ C₁ := by\n  -- The Prikry–Mills construction (1978, unpublished):\n  -- Take X = ω_ 1.ToType, which has cardinality ℵ₁ (by mk_ord_toType).\n  --\n  -- Construction by transfinite induction on γ < ω₁:\n  -- * For each γ, since Iio γ is countable (card_le_aleph0_of_lt_omega1), choose an\n  --   injection e_γ : Iio γ → ℕ. The injection is chosen to \"kill\" all countable\n  --   boxes (A_ξ × B_ξ × C_ξ)_{ξ<γ} that are relevant to stage γ.\n  -- * Define f(α, β, γ) = 0 if e_γ(α) < e_γ(β) when both α, β ∈ Iio γ; else f = 1.\n  --   (Extend arbitrarily when the coordinates don't satisfy α, β < γ.)\n  --\n  -- Non-monochromaticity proof sketch:\n  -- Given a putative monochromatic box A₁ × B₁ × C₁ (say with color 0), the\n  -- diagonalization at the stage γ* = min(C₁ above sup(A₁ ∪ B₁)) ensures that\n  -- e_{γ*} was specifically chosen so that the coloring is NOT constant on A₁ × B₁\n  -- via γ*. The key counting argument:\n  -- * sup(A₁ ∪ B₁) < ω₁ (by countable_subset_bdd, since A₁ ∪ B₁ is countable).\n  -- * At stage γ*, the image e_{γ*}(A₁) ⊆ ℕ and e_{γ*}(B₁) ⊆ ℕ are both\n  --   infinite, so neither \"∀ a < all b\" nor \"∀ a > all b\" can hold.\n  -- * This gives a witness pair (α, β) where f(α, β, γ*) ≠ color 0.\n  --\n  -- The full formalization requires transfinite inductive choice (choosing e_γ for\n  -- each γ via Well.rec or Ordinal.limitRecOn) and a careful stage counting argument\n  -- using ω₁'s uncountable cofinality.\n  sorry\n\n/--\n**Erdős Problem 1128** (disproved by Prikry–Mills, 1978):\n\nErdős asked whether every 2-colouring of $A \\times B \\times C$, where\n$|A| = |B| = |C| = \\aleph_1$, must contain a monochromatic countable box\n$A_1 \\times B_1 \\times C_1$ with $|A_1| = |B_1| = |C_1| = \\aleph_0$.\n\nThe answer is **No**: Prikry and Mills constructed a 2-colouring of $\\omega_1^3$\nwith no monochromatic countable box.\n\nNote: The positive statement asserts that every 2-colouring of every $\\aleph_1^3$\ncontains a monochromatic countably infinite box. Since the answer is False, this\npositive statement fails.\n-/\n@[category research solved, question, AMS 3 5]\ntheorem erdos_1128 :\n    ¬ ∀ (A B C : Type) (_ : #A = aleph 1) (_ : #B = aleph 1) (_ : #C = aleph 1)\n      (f : A → B → C → Fin 2),\n      ∃ (A₁ : Set A) (B₁ : Set B) (C₁ : Set C),\n        #A₁ = aleph 0 ∧ #B₁ = aleph 0 ∧ #C₁ = aleph 0 ∧\n        IsMonochromaticBox f A₁ B₁ C₁ := by\n  -- The Prikry–Mills theorem provides A B C of size ℵ₁ and a 2-colouring\n  -- with no monochromatic countable box, contradicting the hypothesis.\n  intro h\n  -- Obtain the Prikry–Mills counterexample: a type X of cardinality ℵ₁ with a\n  -- 2-colouring f : X → X → X → Fin 2 having no monochromatic countable box.\n  obtain ⟨X, hX, f, hf⟩ := erdos_1128.prikryMills\n  -- Apply h to X (playing the roles of A, B, C), using |X| = ℵ₁.\n  obtain ⟨A₁, B₁, C₁, hA, hB, hC, hbox⟩ := h X X X hX hX hX f\n  -- The Prikry–Mills theorem says no countably infinite box is monochromatic.\n  -- Since #A₁ = aleph 0, #B₁ = aleph 0, #C₁ = aleph 0, this is a contradiction.\n  exact hf A₁ B₁ C₁ hA hB hC hbox\n\n/--\n**Explicit form of Prikry–Mills**:\n\nThere exists a 2-colouring of $\\omega_1 \\times \\omega_1 \\times \\omega_1$ such that\nfor every countably infinite $A_1, B_1, C_1 \\subseteq \\omega_1$, the box\n$A_1 \\times B_1 \\times C_1$ is not monochromatic.\n\nThis is the content of the Prikry–Mills theorem (1978, unpublished), stated\nusing Lean's ordinal type `{o : Ordinal // o < ω_ 1}` as the\nrepresentation of $\\omega_1$.\n-/\n@[category research solved, AMS 3 5]\ntheorem erdos_1128.variants.prikryMills_explicit :\n    ∃ (f : {o : Ordinal // o < ω_ 1} →\n           {o : Ordinal // o < ω_ 1} →\n           {o : Ordinal // o < ω_ 1} → Fin 2),\n      ∀ (A₁ B₁ C₁ : Set {o : Ordinal // o < ω_ 1}),\n        #A₁ = aleph 0 → #B₁ = aleph 0 → #C₁ = aleph 0 →\n        ¬ IsMonochromaticBox f A₁ B₁ C₁ := by\n  -- This is the explicit form of the Prikry–Mills theorem on\n  -- ω₁ = {o : Ordinal // o < ω_ 1}.\n  --\n  -- Key ingredients (all proved in the auxiliary lemmas above):\n  -- 1. countable_Iio_of_lt_omega1: For each γ < ω₁, the set Iio γ is countable.\n  -- 2. countable_subset_bdd: Any countable A₁ ⊆ ω₁ is bounded below ω₁.\n  --    (Uses iSup_sequence_lt_omega_one and the regularity of ω₁.)\n  --\n  -- Construction: By transfinite induction, choose injections e_γ : Iio γ → ℕ\n  -- (possible by countable_Iio_of_lt_omega1 and Countable.exists_injective_nat)\n  -- to \"kill\" every countable box. The coloring is:\n  --   f(α, β, γ) = 0 if e_γ(α) < e_γ(β)  (when α, β < γ)\n  --   f(α, β, γ) = 1 otherwise\n  --\n  -- Non-monochromaticity: For any countable A₁, B₁, C₁ ⊆ ω₁, by\n  -- countable_subset_bdd there exists γ ∈ C₁ above sup(A₁ ∪ B₁). At this γ,\n  -- e_γ embeds A₁ ∪ B₁ injectively into ℕ, giving infinite disjoint images.\n  -- Two infinite subsets of ℕ cannot have all elements of one strictly less than\n  -- all elements of the other, giving a contradiction with monochromaticity.\n  --\n  -- Universe note: {o : Ordinal // o < ω_ 1} lives in Type 1 while the\n  -- abstract prikryMills uses X : Type 0. The construction here is self-contained\n  -- and does not need to be reduced to prikryMills.\n  sorry\n\n/--\nThe claim that every 2-colouring of $\\omega_1 \\times \\omega_1$ has an uncountable\nmonochromatic product rectangle is **false** in ZFC.\n\n**Counterexample:** The ordering colouring $f(\\alpha, \\beta) = 0$ iff $\\alpha < \\beta$\nhas no uncountable monochromatic product rectangle $A_1 \\times B_1$.\n\n**Proof:** If $A_1 \\times B_1$ were monochromatic with colour 0, then every element of\n$A_1$ would be strictly less than every element of $B_1$, making $A_1$ bounded above in\n$\\omega_1$; but any bounded subset of $\\omega_1$ is countable (since initial segments are\ncountable), contradicting $A_1$ being uncountable. The colour-1 case is symmetric with\nthe roles of $A_1$ and $B_1$ swapped.\n\nNote: For 2-colourings of unordered pairs the analogous statement also fails: Sierpiński\nshowed $\\omega_1 \\not\\to (\\omega_1)^2_2$. The Erdős–Rado theorem gives\n$(2^{\\aleph_0})^+ \\to (\\aleph_1)^2_{\\aleph_0}$ instead.\n-/\n@[category research solved, AMS 3 5]\ntheorem erdos_1128.variants.two_dimensional_false :\n    ¬ ∀ (f : Omega1 → Omega1 → Fin 2),\n        ∃ (A₁ B₁ : Set Omega1),\n          ¬ A₁.Countable ∧ ¬ B₁.Countable ∧\n          ∃ c : Fin 2, ∀ a ∈ A₁, ∀ b ∈ B₁, f a b = c := by\n  -- The ordering colouring f(α, β) = [α < β] is the counterexample.\n  -- Introduce the negation: assume every colouring has an uncountable monochromatic rectangle.\n  intro h\n  -- Instantiate h with the ordering colouring f(α, β) = if α < β then 0 else 1.\n  specialize h (fun a b => if a.val < b.val then 0 else 1)\n  obtain ⟨A₁, B₁, hA_unc, hB_unc, c, hcol⟩ := h\n  -- Key tool: bounded subsets of ω₁ (Omega1) are countable.\n  -- Proof: if A₁ ⊆ Iio γ for some γ : Omega1, then A₁ ⊆ Iio γ and Iio γ is countable.\n  -- Contrapositive: uncountable subsets of ω₁ are not bounded (i.e., cofinal in ω₁).\n  have A₁_unbdd : ∀ γ : Omega1, ∃ a ∈ A₁, γ ≤ a := by\n    intro γ\n    by_contra! hbdd\n    exact hA_unc (Set.Countable.mono (fun a ha => hbdd a ha) (countable_Iio_omega1 γ))\n  have B₁_unbdd : ∀ γ : Omega1, ∃ b ∈ B₁, γ ≤ b := by\n    intro γ\n    by_contra! hbdd\n    exact hB_unc (Set.Countable.mono (fun b hb => hbdd b hb) (countable_Iio_omega1 γ))\n  -- A₁ and B₁ are both nonempty (since uncountable sets are nonempty).\n  have hA_ne : A₁.Nonempty := by\n    by_contra hemp\n    rw [Set.not_nonempty_iff_eq_empty] at hemp\n    exact hA_unc (hemp ▸ Set.countable_empty)\n  have hB_ne : B₁.Nonempty := by\n    by_contra hemp\n    rw [Set.not_nonempty_iff_eq_empty] at hemp\n    exact hB_unc (hemp ▸ Set.countable_empty)\n  -- Case analysis on the colour c.\n  fin_cases c\n  · -- c = 0: ∀ a ∈ A₁, ∀ b ∈ B₁, a.val < b.val (since f a b = 0 iff a.val < b.val)\n    -- A₁ is unbounded, so pick a ∈ A₁ with a ≥ b₀ for some b₀ ∈ B₁.\n    obtain ⟨b₀, hb₀⟩ := hB_ne\n    obtain ⟨a, haA, hba⟩ := A₁_unbdd b₀\n    -- hcol a haA b₀ hb₀ says f a b₀ = 0, i.e., a.val < b₀.val.\n    have hcol_val : a.val < b₀.val := by\n      have h0 := hcol a haA b₀ hb₀\n      simp only [Fin.isValue] at h0\n      split_ifs at h0 with hlt\n      · exact hlt\n      · exact absurd h0 (by decide)\n    -- But hba : b₀ ≤ a (as Omega1 elements), so b₀.val ≤ a.val. Contradiction.\n    exact absurd hcol_val (not_lt.mpr (Subtype.mk_le_mk.mp hba))\n  · -- c = 1: ∀ a ∈ A₁, ∀ b ∈ B₁, f a b = 1, i.e., ¬(a.val < b.val).\n    -- B₁ is unbounded. Use B₁_unbdd with the successor of some a₀ ∈ A₁.\n    obtain ⟨a₀, ha₀⟩ := hA_ne\n    -- The successor a₀.val + 1 is still below ω₁ (since ω₁ is a limit ordinal).\n    have ha₀_succ_lt : a₀.val + 1 < ω_ 1 := by\n      rw [← succ_eq_add_one]; exact (isSuccLimit_omega 1).succ_lt a₀.2\n    obtain ⟨b', hb'B, hb'_ge⟩ := B₁_unbdd ⟨a₀.val + 1, ha₀_succ_lt⟩\n    -- hb'_ge : ⟨a₀.val + 1, _⟩ ≤ b', so a₀.val + 1 ≤ b'.val, so a₀.val < b'.val.\n    have hlt : a₀.val < b'.val := by\n      have hle := Subtype.mk_le_mk.mp hb'_ge\n      -- a₀.val < a₀.val + 1 ≤ b'.val\n      have h_lt_succ : a₀.val < a₀.val + 1 := by\n        rw [← succ_eq_add_one]; exact lt_succ a₀.val\n      exact lt_of_lt_of_le h_lt_succ hle\n    -- But hcol a₀ ha₀ b' hb'B = 1 means f a₀ b' = 1, i.e., ¬(a₀.val < b'.val).\n    have hcol_val : ¬ (a₀.val < b'.val) := by\n      have h1 := hcol a₀ ha₀ b' hb'B\n      -- h1 : (if a₀.val < b'.val then 0 else 1) = 1\n      simp only [Fin.isValue] at h1\n      by_contra h_lt\n      simp only [h_lt, ↓reduceIte] at h1\n      exact absurd h1 (by decide)\n    exact absurd hlt hcol_val\n\nend Erdos1128\n",
  "statement_hash": "e8bf2b994f3d3f12036ad59f70460e695e622f0b49ad4b47e09c2769d40e9bf1",
  "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."
}