Windowing improves balance.
ProvedCakeBalancing.CircPartition.window_ratio_le_gap_ratioaether-catalogapplications
Windowing improves balance. For every window length r ≥ 1, the
r-window ratio is bounded above by the single-gap ratio.
theorem CakeBalancing.CircPartition.window_ratio_le_gap_ratio{r : ℕ} (hr : 1 ≤ r) :
P.winRatio r ≤ P.gapRatio := by sorry
Formalization Note Transplanted verbatim from the Aether Catalog source Applications/CakeBalancingRatio/Core.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.
Preamble
-- Thm stub generated from Applications/CakeBalancingRatio/Core.lean
import Mathlib
import Definitions.Def_Applications_CakeBalancingRatio_Core
/-!
# Balancing ratios of circular partitions — Core
This file develops the structural core behind the *cake balancing ratio sequence*
studied in the mission "Upper bound conjecture for the cake balancing ratio
sequence" (in the spirit of de Bruijn–Erdős cake cutting and discrepancy theory
for circular partitions).
## Setting
A sequence of points placed on a circle cuts it into arcs. We model a *cyclic
partition* by its sequence of **gap lengths** `g : ℕ → ℝ`, positive and periodic
with period `n` (so the circle carries `n` distinct arcs `g 0, …, g (n-1)`,
repeated cyclically). For a window length `r ≥ 1`, the **`r`-window sum**
starting at position `i` is the length of `r` consecutive arcs,
`W r i = g i + g (i+1) + ⋯ + g (i+r-1)`.
The **single-gap ratio** is `gapRatio = maxgap / mingap`, and the
**`r`-window ratio** is `winRatio r = maxwin r / minwin r`, where the extrema
range over the `n` cyclic starting positions. These are the finite-stage
quantities `μ¹_n` and `μ^r_n` from the mission statement.
## Main results
* `mingap_le_maxgap`, `one_le_gapRatio` : the ratio is always `≥ 1`.
* `window_ratio_le_gap_ratio` : `winRatio r ≤ gapRatio` for every `r ≥ 1`.
Aggregating `r` consecutive arcs can only *improve* balance — the key
structural monotonicity behind the `2r/p + 1` upper-bound conjecture.
* `one_le_winRatio` : `winRatio r ≥ 1`.
* `winRatio_uniform_eq_one` : the equal-arc partition has every window ratio `1`.
* `vdc3_gapRatio_eq_two` : the de Bruijn–Erdős three-point van der Corput
partition `{1/4, 1/4, 1/2}` realises single-gap ratio exactly `2`.
-- !-- Lab Notes -- !--
HYPOTHESIS (Hypothesizer). The mission conjecture `μ_r^σ ≤ 2r/p + 1` predicts
that window ratios grow at most linearly in `r`. A necessary structural fact
underneath any such bound is that *windowing cannot make balance worse*: since
each `r`-window sum lies between `r·mingap` and `r·maxgap`, the window ratio is
squeezed below the raw gap ratio. We conjecture `winRatio r ≤ gapRatio` for all
`r`, unconditionally.
EXPERIMENT (Experimenter). Proven below via the two envelope bounds
`maxwin_le_r_mul_maxgap` and `r_mul_mingap_le_minwin`, then a division estimate.
ANALYSIS (Analyst). The bound is *exact at `r = 1`* and *tight for the uniform
partition* (ratio `1` at every `r`). The van der Corput example shows the raw
ratio `2` is attainable, matching the de Bruijn–Erdős cake-cutting benchmark.
CRITIQUE (Critic). Positivity of `mingap` (hence of `minwin`) is load-bearing;
every division lemma carries the `r ≥ 1` hypothesis so denominators stay
positive. No statement is vacuous: the uniform and van der Corput witnesses
show the extremal values `1` and `2` are attained.
SYNTHESIS (PI). `winRatio r ≤ gapRatio` is the monotone scaffold on which the
full `2r/p + 1` recipe bound should rest; see `FUTURE_DIRECTIONS.md`.
-/
open CakeBalancing
open Finset
open CircPartition
variable (P : CircPartition)Formal statement
theorem CakeBalancing.CircPartition.window_ratio_le_gap_ratio{r : ℕ} (hr : 1 ≤ r) :
P.winRatio r ≤ P.gapRatio := by sorrySource