Skip to content
back to the quest log
Many Sorting with Few Queries repository and its formalized geometric core
rare∎ researchshipped

Many Sorting, Few Queries

Ranking geometry made machine-checkable

A source-audited Lean 4 formalization of the geometric core of planar ranking elicitation with pairwise queries.

role
Formalization author
org
Independent research
when
2026

What it is

Known items are points and an unknown user preference is another point. Comparing two items reveals which side of their perpendicular bisector contains the preference point.

The formalization connects distances, halfplanes, ranking predicates, profile consistency, one-dimensional structure, and concrete examples.

The tight planar worst-case query bound remains open. The repository presents the verified geometric foundation without claiming to close it.

where the effort went

  • Geometry96
  • Proof94
  • Queries88
  • Auditability96

the numbers

Proof escapes
0
Geometry
Planar
Query
Pairwise
Lean
4.33.1

built with

  • Lean 4
  • Mathlib
  • Lake
  • Computational geometry

delivery record

What I made

I wanted a precise foundation for an open ranking-elicitation problem where informal geometric intuition can easily hide degeneracies and tie cases.

  • 01

    Euclidean distance and pairwise preference definitions

  • 02

    Bisector-halfplane characterization of comparison answers

  • 03

    Ranking and multi-user profile consistency predicates

  • 04

    One-dimensional structural results

  • 05

    Concrete verified examples and source audit notes

Hard problems

The constraints mattered as much as the finished interface.

01field note

Translating rankings into geometry

problem
A comparison statement about two distances must line up exactly with membership in a halfplane, including equality cases.
response
I decomposed the statement into algebraic distance lemmas and explicit predicates before connecting it to ranking consistency.
02field note

Preserving the open status

problem
Formalizing the geometric core is useful but does not by itself prove the tight adaptive query bound.
response
The scope document distinguishes machine-checked theorems from derived paper bounds and the unresolved planar case.

Screens

after shipping

What stayed with me

  • Geometry becomes a better algorithmic interface when boundaries and ties are represented explicitly.

  • A useful formalization can map the terrain of an open problem without pretending to solve it.