/- Copyright 2025 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ import FormalConjecturesUtil

Erdős Problem 189

Reference: erdosproblems.com/189

open Affine EuclideanGeometry namespace Erdos189

Erdős problem 189 asked whether the below holds for all rectangles.

def Erdos189For (P : ℝ² ℝ² ℝ² ℝ² Prop) (A : ℝ² ℝ² ℝ² ℝ² ) := ∀ᵉ (n > 0) (colouring : ℝ² Fin n), colour, area > (0 : ), a b c d, {a, b, c, d} colouring⁻¹' {colour} IsCcwConvexPolygon ![a, b, c, d] A a b c d = area P a b c d

If $\mathbb{R}^2$ is finitely coloured then must there exist some colour class which contains the vertices of a rectangle of every area?

Graham, "On Partitions of 𝔼ⁿ", Journal of Combinatorial Theory, Series A 28, 89-91 (1980). (See "Concluding Remarks" on page 96.)

Solved (with answer False, as formalised below) in: Vjekoslav Kovač, "Coloring and density theorems for configurations of a given volume", 2023 https://arxiv.org/abs/2309.09973 In fact, Kovač's colouring is even Jordan measurable (the topological boundary of each monochromatic region is Lebesgue measurable and has measure zero).

This was formalized in Lean by Alexeev and Kovac using Aristotle.

@[category research solved, AMS 5 51, formal_proof using lean4 at "https://github.com/plby/lean-proofs/blob/main/src/v4.24.0/ErdosProblems/Erdos189.lean"] theorem declaration uses 'sorry'erdos_189 : answer(False) Erdos189For (fun a b c d line[, a, b].direction line[, b, c].direction line[, b, c].direction line[, c, d].direction line[, c, d].direction line[, d, a].direction) (fun a b c d dist a b * dist b c) := False Erdos189For (fun a b c d => (affineSpan {a, b}).direction (affineSpan {b, c}).direction (affineSpan {b, c}).direction (affineSpan {c, d}).direction (affineSpan {c, d}).direction (affineSpan {d, a}).direction) fun a b c d => dist a b * dist b c All goals completed! 🐙

Graham claims this is "easy to see".

@[category research solved, AMS 5 51] theorem declaration uses 'sorry'erdos_189.variants.square : ¬ Erdos189For (fun a b c d line[, a, b].direction line[, b, c].direction line[, b, c].direction line[, c, d].direction line[, c, d].direction line[, d, a].direction dist a b = dist b c) (fun a b c d dist a b * dist b c) := ¬Erdos189For (fun a b c d => (affineSpan {a, b}).direction (affineSpan {b, c}).direction (affineSpan {b, c}).direction (affineSpan {c, d}).direction (affineSpan {c, d}).direction (affineSpan {d, a}).direction dist a b = dist b c) fun a b c d => dist a b * dist b c All goals completed! 🐙

Seems to be open, as of January 2025.

@[category research open, AMS 5 51] theorem declaration uses 'sorry'erdos_189.variants.parallelogram : ¬ Erdos189For (fun a b c d line[, a, b] line[, c, d] line[, a, d] line[, b, c]) (fun a b c d dist a b * dist b c * ( a b c).sin) := ¬Erdos189For (fun a b c d => affineSpan {a, b} affineSpan {c, d} affineSpan {a, d} affineSpan {b, c}) fun a b c d => dist a b * dist b c * ( a b c).sin All goals completed! 🐙 end Erdos189