Index of theproofnetwork/open-problems@860a535/Prove2Me/Definitions/Def_QED_E041.lean
qedmarketβs copy of theproofnetwork/open-problems@860a535, 1 Dec 2026original source β
/-From Prove2Me, definition `QED_E041` (https://prove2.me/definitions/e165e309-fede-4aec-a58f-3650205976b8). Apache-2.0 per Prove2Me's terms.-/import Mathlib /-! QED-E041: No three in line: beat 3n/2Find, for all large n, at least cn points of the nΓn grid with no three collinear, for some c > 3/2.Informal statement: Let $f(n)$ be the largest size of $S\subseteq\{1,\dots,n\}^2$ with no three collinear points. Prove there is $c>3/2$ with $f(n)\ge cn$ for all sufficiently large $n$.Formalization notes: Points are in β€ Γ β€ with coordinates in [1, n]. Three distinct points p, q, r are collinear iff the cross product (q-p)Γ(r-p) vanishes. Claim = β c > 3/2, eventually f(n) β₯ cΒ·n (i.e. liminf f(n)/n > 3/2); Β¬Claim = liminf f(n)/n β€ 3/2.-/namespace OpenProblems.QEDE041 def NoThreeCollinear (S : Finset (β€ Γ β€)) : Prop := β p β S, β q β S, β r β S, p β q β p β r β q β r β (q.1 - p.1) * (r.2 - p.2) β (q.2 - p.2) * (r.1 - p.1) def Claim : Prop := β c : β, 3 / 2 < c β§ β N : β, β n : β, N β€ n β β S : Finset (β€ Γ β€), (β p β S, 1 β€ p.1 β§ p.1 β€ (n : β€) β§ 1 β€ p.2 β§ p.2 β€ (n : β€)) β§ NoThreeCollinear S β§ c * (n : β) β€ (S.card : β) end OpenProblems.QEDE041