Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Order-3 mean matching.

Proved
ProjectivePlaneCoupon.match3

by raver1975 · Sep 12, 2026 · Mathlib c5ea003 (Lean v4.30.0)

aether-catalogmachinelearning

Order-3 mean matching. The (count-weighted) total plane avoid-mass over all triples equals C(n,3) times the uniform value: the collinear and generic plane probabilities pColl, pGen average to the uniform uAvoid q 3.

theorem ProjectivePlaneCoupon.match3(q : ℕ) (hq : 2 ≤ q) :
    cColl q * pColl q + cGen q * pGen q = T3 q * uAvoid q 3 := by sorry

Formalization Note Transplanted verbatim from the Aether Catalog source MachineLearning/ProjectivePlaneCoupon/Slowness.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.

Preamble
-- Thm stub generated from MachineLearning/ProjectivePlaneCoupon/Slowness.lean
import Mathlib
import Definitions.Def_MachineLearning_ProjectivePlaneCoupon_Slowness
/-
Copyright (c) 2026 Harmonic. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.

# Projective-plane coupon collection is slower than uniform: the structural engine

Fix a prime power `q ≥ 2` and a projective plane of order `q`.  It has
`n = q² + q + 1` points and the same number of lines; every line is a
`(q+1)`-subset of points, every point lies on `q+1` lines, and any two
distinct points lie on a unique common line.

We study two coupon-collection mechanisms on the `n` points:

* **plane mechanism** — each draw is a uniformly random *line* (one of the
  `n` lines), revealing the `q+1` points on it;
* **uniform mechanism** — each draw is a uniformly random `(q+1)`-subset of
  the `n` points.

For a covering process whose single-draw probability of *avoiding* a fixed set
`A` is `p_A`, the expected time to cover everything is the inclusion–exclusion
sum `E = Σ_{∅ ≠ A} (-1)^{|A|+1} / (1 - p_A)`.  The Grünbaum–Yaakobi question
(disproved for `q = 2`, the Fano plane) asks whether the plane mechanism is
*slower*, i.e. has the larger `E`.  The general statement (all prime powers)
is open; this file isolates the structural mechanism that drives it.

## Avoid-probabilities

For a single draw, `p_A = (number of draws avoiding A) / (number of draws)`.

* Uniform: `p_A` depends only on `k = |A|`, namely
  `uAvoid q k = C(n-k, q+1) / C(n, q+1) = ∏_{i<k}(q² - i) / ∏_{i<k}(n - i)`
  (the falling-factorial form, with `n - (q+1) = q²`).
* Plane: `p_A` depends on the *geometry* of `A`.  A single point is missed by
  `q²` lines (`pPoint`); a pair by `q² - q` (`pPair`); a **collinear** triple by
  `q² - 2q` (`pColl`); a **generic** (non-collinear) triple by `(q-1)²`
  (`pGen`).

## Main results

* `meanMatch` — the **mean-matching identity** (a binomial subset-of-a-subset
  identity): averaged over all `k`-subsets, the plane mechanism avoids a set
  with exactly the uniform probability.  This is why low orders agree.
* `match1`, `match2` — at orders `1` and `2` *every* subset is geometrically
  equivalent, so the plane and uniform avoid-probabilities coincide *exactly*;
  hence the `E`-contributions of orders `1` and `2` are identical.
* `jensen2` — strict two-point Jensen inequality for `x ↦ 1/(1-x)`.
* `slowness3` — at order `3` the plane mechanism splits a single uniform value
  into two distinct ones (`pColl ≠ pGen`) **with the same mean**, so by strict
  convexity its order-`3` contribution to `E` is strictly larger.  This is the
  first order at which the two mechanisms diverge, and it diverges in the
  "slower" direction.

-- !-- Lab Notes -- !--
Hypothesis (Hypothesizer): The plane mechanism is slower for *every* prime
  power `q`.  Bolder: the divergence is forced entirely by collinearity — the
  two mechanisms agree to all orders "on average", and disagree pointwise for
  the first time at triples, where convexity of `1/(1-p)` makes the spread-out
  plane values cost strictly more.
Experiment (Experimenter): (1) Proved the binomial identity
  `C(n,k)·C(n-k,q+1) = C(n,q+1)·C(n-(q+1),k)` from factorials — this is exactly
  "mean of plane avoid-prob over k-sets = uniform avoid-prob". (2) Proved the
  exact pointwise equalities at orders 1,2 (`match1`,`match2`). (3) Proved the
  order-3 weighted-mean identity `match3` and combined it with a freshly proved
  strict Jensen lemma `jensen2` to get `slowness3`.  Computationally verified
  the *full* `E`-inequality for `q = 2,3` (see `FanoEvidence.lean` and
  `ComputationalEvidence.md`).
Analysis (Analyst): The number of collinear triples is `n·C(q+1,3)`; the rest
  are generic.  Their avoid-counts differ by exactly one line
  (`(q-1)² - (q²-2q) = 1`), so `pColl ≠ pGen` always.  The clean factorization
  `#generic·6 = n·q³(q+1)` (used in `slowness3`) shows generic triples dominate,
  so the plane really does carry two genuinely different values at order 3.
  "True but hard": the full all-orders statement needs control of the
  alternating tail (orders `≥ 4`), which is why only `q = 2,3,4,5` are known.
Critique (Critic): `slowness3` is a genuine strict inequality (uses `jensen2`,
  itself proved by `nlinarith` on `(x-y)² > 0`), not `decide`/`native_decide`.
  The geometric avoid-counts are taken as definitions; their correctness is
  cross-checked against the explicit Fano plane in `FanoEvidence.lean`.
Synthesis (PI): Orders 1–2 contribute equally; order 3 strictly favours the
  plane (slower).  The open problem is exactly the sign-controlled tail.
-/

open Nat Finset

open ProjectivePlaneCoupon





/-! ### The binomial subset-of-a-subset identity (mean-matching) -/



/-! ### Avoid-probabilities -/










/-! ### Orders 1 and 2: the mechanisms agree exactly -/



/-! ### Order 3: the weighted-mean identity and the strict divergence -/
Formal statement
theorem ProjectivePlaneCoupon.match3(q : ℕ) (hq : 2 ≤ q) :
    cColl q * pColl q + cGen q * pGen q = T3 q * uAvoid q 3 := by sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/MachineLearning/ProjectivePlaneCoupon/Slowness.lean#L190

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me