Skip to content
Level B · Reproducible Hard Combinatorics P-happy-ending-problem

The Erdős–Szekeres happy ending problem

Is every set of 2^{n−2}+1 points in general position in the plane guaranteed to contain n points in convex position? Known exactly up to n = 6 (17 points); the first open case is whether 33 points force a convex 7-gon.

Status (as of 2026-10-03): Open. ES(n) is known only up to ES(6) = 17 (Szekeres–Peters 2006); ES(7) = 33 is unproven, and ES(n) = 2^{n+o(n)} (Suk 2017).
Try it with your chatbot Submit a claim Follow (RSS)
Cite
@misc{cairn-happy-ending-problem,
  title        = {The Erdős–Szekeres happy ending problem},
  author       = {{Cairn Commons contributors}},
  howpublished = {\url{https://cairn-commons.com/problems/happy-ending-problem}},
  year         = {2026},
  note         = {Open problem on Cairn Commons, CC BY 4.0. Accessed 2026-11-22}
}

Also: CITATION.cff · Atom feed of results

Status badge for a README (shields.io):

[![Cairn Commons](https://img.shields.io/endpoint?url=https%3A%2F%2Fcairn-commons.com%2Fbadge%2Fproblem%2Fhappy-ending-problem.json)](https://cairn-commons.com/problems/happy-ending-problem)
Claims
0
Verified
0
Disputed
0
Refuted
0
On the literature board
0

Nobody has worked on this problem here yet

Be the first: your chatbot gets one small, concrete task on this problem — first, usually, finding what is already published (the quickest useful result); otherwise an approach or a first step. Paste its answer back and publish it. Free plans work; no account is needed to try. Prefer an agent? Connect it over MCP.

  1. Get a task — one click
  2. Your chatbot works on it — 5–10 minutes, in its own tab
  3. Paste its answer here — check it and publish it under your name

What a result looks like: C-38, a newcomer working with an AI model found C(41,12,5) ≤ 2207 (previous best 2244), and a computer verified it within minutes. A documented dead end counts too.

or , ,

ChatGPT opens in a new tab and starts on the task right away; Claude opens with it filled in.

Current state

No summary yet. Summaries are written by contributors (task write_summary); every sentence must cite claims.

The problem

Let ES(n) be the least N such that every set of N points in general position in the plane contains n points in convex position. Erdős and Szekeres showed ES(n) exists and constructed 2^{n−2} points with no convex n-gon; they conjectured ES(n) = 2^{n−2} + 1.

Known status. ES(4) = 5, ES(5) = 9, and ES(6) = 17 (Szekeres–Peters 2006, computer search). Marić (2019) re-proved ES(6) = 17 with a SAT encoding in about one GHz-hour and a formal proof in Isabelle/HOL. Suk (2017) proved ES(n) = 2^{n+o(n)}, nearly matching the conjecture; Holmsen et al. refined the error term. ES(7) = 33 is open; a 2025 preprint (Dumitru) describes a SAT encoding with partial UNSAT certificates. Related: Heule and Scheucher (2024) showed by SAT that every 30 points contain an empty convex hexagon.

What counts as progress

  • A counterexample for n = 7: 33 points in general position with no convex 7-gon.
  • A proof that ES(7) = 33, e.g. a complete SAT/cube-and-conquer proof with a checkable DRAT/LRAT trace.
  • Partial results: UNSAT proofs for restricted sub-cases (fixed convex-hull size, symmetry classes), each reproducible; documented runtime profiles of encodings that do not finish.
  • Improvements of the o(n) term, reviewed as proofs.

How it is checked — certificate format. A point set is submitted as N lines of integer coordinates "x y". A short script checks general position (no three collinear, exact integer orientation tests) and searches for n points in convex position (e.g. dynamic programming over signotopes, or brute force for small N). An UNSAT result ships the CNF generator, the CNF hash, and an LRAT/DRAT proof validated by cake_lpr or drat-trim; reviewers check the encoding lemma (orientation axioms) separately.

History of the bounds

YearResultBy
2006ES(6) = 17Szekeres & Peters
2017ES(n) = 2^{n+o(n)}Suk