This repository contains a Lean 4 formalization of the following theorem:
Theorem. Let
$D : E(n,d) \to \mathbb{Q}$ be a function on weak compositions satisfying:
$S_n$ -symmetry:$D(e \circ \sigma^{-1}) = D(e)$ for all permutations$\sigma$ - Log-concavity:
$D(e)^2 \geq D(e - \delta_i + \delta_j) \cdot D(e + \delta_i - \delta_j)$ - Strict positivity:
$D(e) > 0$ Then:
- Maximum:
$D$ is maximized on balanced vectors ($|e_i - e_j| \leq 1$ for all$i,j$ )- Minimum:
$D$ is minimized on concentrated vectors ($e = d \cdot \delta_k$ for some$k$ )
The main application is to descendant integrals on moduli spaces of curves:
These satisfy the hypotheses via:
- Symmetry from the
$S_n$ action permuting marked points - Log-concavity from Khovanskii–Teissier inequalities (since
$\psi$ -classes are nef) - Positivity from effectiveness of nef classes
The blueprint website (with dependency graphs and proof status) is available at: https://schmittj.github.io/balanced-vectors-blueprint/
lake exe cache get # Download mathlib cache
lake build # Build the projectpip install leanblueprint
cd blueprint
leanblueprint all
# Output in blueprint/web/BalancedVectors.lean- Main Lean 4 formalizationblueprint/- Blueprint documentationsrc/content.tex- LaTeX source with Blueprint annotationsblueprint.toml- Blueprint configuration
.github/workflows/- CI/CD for building and deploying
| Name | Type | Description |
|---|---|---|
WeakComposition n d |
Structure | n-tuple with sum d and non-negative entries |
IsBalanced |
Definition | All entries differ by at most 1 |
IsConcentrated |
Definition | All mass on one index |
SymmetricLogConcaveFunction |
Structure | Bundles D with its 3 properties |
main_theorem |
Theorem | Combined max/min result |
This project is released under the Apache 2.0 license.
This formalization accompanies the paper "Extremal descendant integrals on moduli spaces of curves" by Johannes Schmitt.