explaingit

phillipkerger/zero-order-bounds-lean-verification

Analysis updated 2026-05-18

57LeanAudience · researcherComplexity · 5/5Setup · hard

TLDR

A machine checked Lean proof verifying a mathematical limit on how accurately derivative free optimization algorithms can find a function's minimum.

Mindmap

mindmap
  root((repo))
    What it does
      Verify optimization proof
      Check lower bound claim
      Confirm geometric arguments
    Tech stack
      Lean 4
      mathlib
      Elan
    Use cases
      Verify a research paper claim
      Study formal proof techniques
      Check optimization theory bounds
    Audience
      Researchers
      Mathematicians
    Scope
      Lower bound only
      Upper bound not covered

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Verify that a research paper's lower bound claim about optimization algorithms is mathematically correct.

USE CASE 2

Study how a complex proof involving convex geometry is formalized step by step in Lean.

USE CASE 3

Reproduce the paper's verification builds to independently confirm the proof checks out.

USE CASE 4

Compare the Lean proof's statements against the paper's text using the included comparator tooling.

What is it built with?

Lean 4mathlibElan

How does it compare?

phillipkerger/zero-order-bounds-lean-verificationlean-dojo/torchleangaearon/analysis-solutions
Stars575542
LanguageLeanLeanLean
Last pushed2025-09-23
MaintenanceQuiet
Setup difficultyhardhardmoderate
Complexity5/55/54/5
Audienceresearcherresearcherresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires installing the Elan toolchain and building large Lean and mathlib proof files, which can take significant time and disk space.

In plain English

This repository holds a formal, machine checked proof written in the Lean proof assistant, built to accompany a mathematics research paper about optimization algorithms. It is aimed at researchers in mathematics and computer science rather than general software developers, and its purpose is to verify, line by line, that a specific mathematical claim in the paper is actually true. The claim itself is about a type of optimization problem called derivative free convex optimization, where an algorithm can only ask for the exact value of a function at chosen points, never its slope or direction. The paper argues there is a hard limit on how accurately any such algorithm can find the lowest point of the function within a fixed number of questions, and this repository proves that limit is real using Lean, a tool that checks every logical step of a proof so nothing can be waved through by hand. The repository contains two separate, independently checkable results. The first and simpler one is an older bound already proven and kept unchanged. The second is a sharper, more complete result from the same paper, fully verified here, including the more advanced geometric arguments the paper relies on, such as spherical averaging and a classical inequality called Brunn-Minkowski. The authors are careful to note that only the paper's lower bound claim is verified this way. Other parts of the paper, such as upper bound results, are explicitly outside what this repository checks. To build and verify the proofs yourself, you install a Lean tool called Elan, then run a series of build commands that compile each proof file and check it against a trusted, zero shortcut verification mode, meaning the proof is confirmed from first principles rather than relying on cached results. The repository also includes comparison tooling to check the proof's statements and assumptions against the paper's text. No license information is given in the README.

Copy-paste prompts

Prompt 1
Explain in plain terms what a derivative free convex optimization lower bound means and why this repository proves one.
Prompt 2
Walk me through installing Elan and running the build commands to verify these Lean proofs myself.
Prompt 3
Help me understand the difference between the preserved simpler bound and the fuller, sharper bound in this repository.
Prompt 4
Explain what the trust zero verification mode is checking that a normal build would not.

Frequently asked questions

What is zero-order-bounds-lean-verification?

A machine checked Lean proof verifying a mathematical limit on how accurately derivative free optimization algorithms can find a function's minimum.

What language is zero-order-bounds-lean-verification written in?

Mainly Lean. The stack also includes Lean 4, mathlib, Elan.

How hard is zero-order-bounds-lean-verification to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is zero-order-bounds-lean-verification for?

Mainly researcher.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.