Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Compact support / prefix bound.

Proved
OnlineBeckFiala.walk_abs_le_one

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

aether-catalognovelty

Compact support / prefix bound. If every increment satisfies |a t| ≤ 1, the greedy self-balancing walk never leaves [-1, 1].

theorem OnlineBeckFiala.walk_abs_le_one(a : ℕ → ℝ) (ha : ∀ s, |a s| ≤ 1) :
    ∀ t, |walk a t| ≤ 1 := by sorry

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

Preamble
-- Thm stub generated from Novelty/OnlineBeckFialaWalk.lean
import Mathlib
import Definitions.Def_Novelty_OnlineBeckFialaWalk
/-
# The Self-Balancing Walk: Online Prefix Discrepancy in One Dimension

The **Beck–Fiala** line of research studies *discrepancy*: given vectors arriving
one at a time, choose a sign `±1` for each so that every *prefix* of the resulting
signed sum stays small.  The recent work *"Online Beck–Fiala Down to Logarithmic
Sparsity"* builds its high-dimensional algorithm out of a one-dimensional
primitive — a **compactly supported, online, self-balancing walk**.  This file
formalizes that primitive in full.

Concretely, real increments `a 0, a 1, a 2, …` with `|a t| ≤ 1` arrive online.  At
step `t` we must commit to a sign `ε t ∈ {+1, -1}` *depending only on the history*
and on the current increment, forming the running sum
`S t = ∑_{s < t} ε s · a s`.  The greedy rule "push the running sum back toward
`0`" keeps the walk trapped in the compact interval `[-1, 1]` **forever**,
independently of how many increments arrive.

Main results:

* `walk_abs_le_one` — the greedy walk satisfies `|S t| ≤ 1` for every `t`
  (the compact-support / prefix-discrepancy bound).
* `onlineSign_mem` — the committed values really are signs, `ε t = 1 ∨ ε t = -1`.
* `walk_eq_sum` — the greedy walk equals the online signed prefix sum
  `∑_{s < t} ε s · a s`, certifying that the bound is about a genuine `±1` coloring.
* `prefix_discrepancy_le_one` — combining the two: the online signed prefix sums
  all have absolute value `≤ 1`.
* `exists_signs_prefix_le_one` — hence a sign sequence keeping every prefix within
  `[-1, 1]` *exists* (the offline consequence).
* `online_prefix_lower_bound` — `1` is optimal: on the all-ones stream every online
  strategy already incurs prefix discrepancy `≥ 1` at the very first step.
* `walk_abs_le` — the scaled version: increments bounded by `c ≥ 0` give
  `|S t| ≤ c`.
-/

open OnlineBeckFiala

open Finset
Formal statement
theorem OnlineBeckFiala.walk_abs_le_one(a : ℕ → ℝ) (ha : ∀ s, |a s| ≤ 1) :
    ∀ t, |walk a t| ≤ 1 := by sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/Novelty/OnlineBeckFialaWalk.lean#L95

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