Index of theproofnetwork/open-problems@860a535/Prove2Me/Definitions/Def_QED_E140.lean
qedmarket’s copy of theproofnetwork/open-problems@860a535, 30 Nov 2026original source ↗
/-From Prove2Me, definition `QED_E140` (https://prove2.me/definitions/cc316635-21bb-4c37-9c6e-d8834ea6c5a4). Apache-2.0 per Prove2Me's terms.-/import Mathlib /-! QED-E140: A point at rational distance from all four corners of a squareIs there a point in the plane whose distances to all four corners of the unit square are rational numbers? Points at rational distance from three of the corners are dense in the plane, but no point has been found that also works for the fourth corner, and no one has shown that none exists.Informal statement: Decide whether there exist $x,y\in\mathbb R$ such that $\sqrt{x^2+y^2}$, $\sqrt{(x-1)^2+y^2}$, $\sqrt{x^2+(y-1)^2}$ and $\sqrt{(x-1)^2+(y-1)^2}$ are all rational.Formalization notes: Claim asserts existence of real x, y such that each of the four Euclideandistances (written with `Real.sqrt` of a nonnegative quantity, so no junk values arise) equals theimage of some rational number. The point is allowed anywhere in the plane (inside, on, or outsidethe square), matching the standard problem. Proving ¬Claim = no such point exists.-/namespace OpenProblems.QEDE140noncomputable section def Claim : Prop := ∃ x y : ℝ, (∃ q : ℚ, Real.sqrt (x ^ 2 + y ^ 2) = (q : ℝ)) ∧ (∃ q : ℚ, Real.sqrt ((x - 1) ^ 2 + y ^ 2) = (q : ℝ)) ∧ (∃ q : ℚ, Real.sqrt (x ^ 2 + (y - 1) ^ 2) = (q : ℝ)) ∧ (∃ q : ℚ, Real.sqrt ((x - 1) ^ 2 + (y - 1) ^ 2) = (q : ℝ)) endend OpenProblems.QEDE140