/- Copyright 2026 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

Green's Open Problem 23

References:

    Green, Ben. "100 open problems." (2024).

    [FrKlMo25] Frantzikinakis, N., O. Klurman, and J. Moreira. "Partition regularity of Pythagorean pairs." Forum of Mathematics, Pi 13. Cambridge University Press (2025).

namespace Green23

Suppose that $\mathbb{N}$ is finitely coloured. Are there $x,y$ of the same colour such that $x^2 + y^2$ is a square?

Solved in [FrKlMo25].

@[category research solved, AMS 5 11] theorem declaration uses 'sorry'green_23 : answer(True) -- For every finite colouring of the natural numbers (k : ) (c : Fin k), -- there exist two numbers of the same colour whose squares sum to a square x y : , 0 < x 0 < y -- Exclude trivial x^2 + 0^2 = x^2 solution c x = c y -- Same colour IsSquare (x^2 + y^2) := True (k : ) (c : Fin k), x y, 0 < x 0 < y c x = c y IsSquare (x ^ 2 + y ^ 2) All goals completed! 🐙 end Green23