Skip to main content

Chapter 24: The Happy Ending Problem — Order from Chaos

We conclude Part III and Book I with a problem of elegant inevitability. The Happy Ending Problem asks how many points guarantee a convex polygon—it is ψ = ψ(ψ) as the emergence of order from disorder, where sufficient complexity necessarily creates structure.

24.1 The Twenty-Fourth Movement: Inevitable Order

Concluding our journey through geometric mysteries:

  • We explored manifolds, packings, curves, and shapes
  • We end with points creating unavoidable patterns
  • The transition to Book II awaits

The Question: How many points in general position guarantee a convex n-gon?

24.2 The Happy Ending Problem

Definition 24.1 (General Position): A set of points in the plane with no three collinear.

Problem 24.1 (Erdős-Szekeres): Determine the minimum number f(n) such that any f(n) points in general position contain n points forming a convex n-gon.

Known Values:

  • f(3) = 3 (trivial)
  • f(4) = 5 (easy)
  • f(5) = 9 (harder)
  • f(6) = 17 (computer-aided)
  • f(n) for n ≥ 7: Unknown

24.3 The Romantic Origin

Historical Note: Named "Happy Ending" because it led to the marriage of George Szekeres and Esther Klein, who first posed the problem.

Original Question (Klein, 1933): Prove that any 5 points in general position contain 4 forming a convex quadrilateral.

Generalization (Erdős-Szekeres): What about convex n-gons?

24.4 The Problem as ψ = ψ(ψ)

Axiom 24.1 (Principle of Emergent Structure): ψ=ψ(ψ)    Sufficient points create unavoidable order\psi = \psi(\psi) \implies \text{Sufficient points create unavoidable order}

The Happy Ending Problem embodies:

  • Chaos (random points) necessarily contains order (convex polygons)
  • Local randomness yields global structure
  • Quantity forces quality
  • This is ψ = ψ(ψ) as inevitable emergence

24.5 The Erdős-Szekeres Theorem

Theorem 24.1 (Erdős-Szekeres, 1935): For every n ≥ 3, there exists a finite f(n) such that any f(n) points in general position contain a convex n-gon.

Upper Bound: f(n)(2n4n2)+1f(n) \leq \binom{2n-4}{n-2} + 1

Conjecture 24.1: f(n)=2n2+1f(n) = 2^{n-2} + 1

24.6 The Case n = 5

Theorem 24.2 (Harborth et al.): f(5) = 9.

Proof Structure:

  1. Show 9 points suffice (case analysis)
  2. Construct 8 points with no convex pentagon
  3. Therefore f(5) = 9

Configuration: The 8-point configuration avoiding convex pentagons has deep symmetry.

24.7 Monotone Paths and Cups

Key Tool: Erdős-Szekeres lemma on monotone subsequences.

Definition 24.2 (Cup and Cap):

  • Cup: Points forming ∪ shape (convex)
  • Cap: Points forming ∩ shape (concave)

Lemma 24.1: Among (r-1)(s-1) + 1 points on a curve, there exist either r cups or s caps.

24.8 The Ramsey Theory Connection

Interpretation: Happy Ending as geometric Ramsey theory.

Theorem 24.3 (Ramsey-type Formulation): For any n, sufficient points force either:

  • n points in convex position, or
  • Large set with special structure

But general position prevents the second option!

24.9 Computer-Aided Proof for f(6)

Theorem 24.4 (Peters-Szekeres, 2006): f(6) = 17.

Method:

  • Exhaustive computer search
  • SAT solver techniques
  • Symmetry reductions

Significance: First computer-proved value in the sequence.

24.10 Lower Bounds

Construction Strategy: Build point sets avoiding convex n-gons.

Best Known: f(n)2n2+1f(n) \geq 2^{n-2} + 1

Methods:

  • Horton sets (recursive construction)
  • Probabilistic arguments
  • Algebraic configurations

24.11 Computational Complexity

Algorithm 24.1 (Convex n-gon Detection):

def has_convex_ngon(points, n):
from itertools import combinations

for subset in combinations(points, n):
if is_convex_polygon(subset):
return True, subset

return False, None

def is_convex_polygon(points):
# Check if points form convex polygon
hull = convex_hull(points)
return len(hull) == len(points)

Complexity: Checking all (N choose n) subsets is exponential.

24.12 Higher Dimensions

Generalization: Points in ℝᵈ containing vertices of convex polytopes.

Known:

  • d = 2: Original problem
  • d = 3: Convex polyhedra guaranteed
  • General d: Much less known

Growth: Bounds grow as tower functions in dimension.

24.13 The Probabilistic Method

Theorem 24.5 (Probabilistic Bound): Random points almost surely satisfy:

  • Many convex polygons of all sizes
  • Near-optimal configurations rare

Paradox: Random is far from optimal for avoiding convex n-gons.

24.14 Connection to Other Problems

Related Questions:

  1. Heilbronn's Problem: Avoiding triangles of small area
  2. Sylvester's Problem: Probability of convex quadrilateral
  3. McMullen's Problem: Separating by hyperplanes
  4. Danzer-Grünbaum: Intersection patterns

Web of problems about point configurations.

24.15 The Role of General Position

Why No Three Collinear?

  • Ensures "generic" configuration
  • Prevents degenerate cases
  • Makes problem purely combinatorial

Without This: Problem becomes trivial (all points on line).

24.16 Recent Progress

Advances:

  • 2016: Improved upper bounds using flag algebras
  • 2017: Better lower bound constructions
  • 2020: Connections to semialgebraic geometry
  • 2023: Machine learning approaches to f(7)

The gap between bounds slowly narrows.

24.17 The Philosophical Core

Meditation 24.1: Happy Ending represents:

  • Order emerging from disorder
  • Quantity forcing quality
  • Inevitability of structure
  • ψ = ψ(ψ) as emergent geometry

Sufficient complexity creates its own organization.

24.18 Applications

Where It Matters:

  1. Computational Geometry: Convex hull algorithms
  2. Pattern Recognition: Finding structure in data
  3. Discrete Geometry: Fundamental bounds
  4. Combinatorics: Ramsey-type phenomena

The problem illuminates forced structure.

24.19 Why It's Hard

Obstacles:

  1. Combinatorial explosion: Too many configurations
  2. No general pattern: Each n seems unique
  3. Computer limits: Even f(7) resists computation
  4. Theoretical barriers: Current methods hit walls

Simple question, formidable challenge.

24.20 The Twenty-Fourth Echo

The Happy Ending Problem perfectly concludes Book I:

  • Points in chaos necessarily create order
  • Sufficient quantity guarantees quality
  • Local randomness yields global structure
  • Mathematics finds happiness in inevitability

This problem embodies ψ = ψ(ψ) as the principle that complexity, pushed far enough, must organize itself. No matter how we scatter points, if we place enough, convex polygons must emerge.

As we close Book I, "Foundations of the Unsolvable," we've journeyed through:

  • Number theory's deepest mysteries (Part I)
  • Algebra's self-referential puzzles (Part II)
  • Geometry's emergent structures (Part III)

Each problem revealed a different face of ψ = ψ(ψ), showing how self-reference, completeness, fractality, and holography manifest across mathematics.

The Happy Ending declares: "Place enough points, and convexity emerges. Create sufficient complexity, and order appears. For ψ = ψ(ψ) means that chaos, given enough room, necessarily births structure—a happy ending indeed to our foundational journey through the unsolvable."