carpool_path_greedy_cubic_tail_lower
There is a positive absolute constant C such that, for every natural D at least one, a fixed request sequence on the 2D-vertex path of length at most D^3 makes the fair-coin greedy maximum absolute prefix discrepancy reach D with probability at least exp(-C D^3).
Statement
theorem carpool_path_greedy_cubic_tail_lower : ∃ C : ℝ, 0 < C ∧ ∀ D : ℕ, 1 ≤ D → ∃ edges : List (Fin (2*D) × Fin (2*D)), carpool_path_requests (2*D) edges ∧ edges.length ≤ D^3 ∧ Real.exp (-C * (D : ℝ)^3) ≤ carpool_greedy_tail_probability (2*D) edges D- Related work
- OP-2130, proposed here; arXiv:2609.21348 Theorem 1.1 gives a deterministic bound for greedy, while arXiv:2611.00388 proves a cubic tail for a different randomized algorithm.
- Verified
- 22 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 7
- carpool_path_requestsEvery requested ordered pair joins consecutive vertices of the n-vertex path; repetitions and either endpoint order are allowed.
- carpool_greedy_tail_probabilityThe probability of the greedy maximum-prefix-discrepancy event under independent fair coins, computed as its number of successful length-T…
- carpool_path_greedy_cubic_witnessFor every natural D at least one, there is a fixed sequence of at most D cubed requests between neighboring vertices of a path with 2D…
- op_2130_repeated_path_greedy_converseThere exists an absolute positive real constant C' such that for every integer D ≥ 1, there exists an edge sequence on the path graph…
- carpool_greedy_tail_countThe number of length-T Boolean coin tapes for which the greedy trajectory has maximum absolute prefix discrepancy at least D, where T is…
- carpool_max_discrepancyThe maximum discrepancy M_T over all time steps 0 ≤ t ≤ T of the maximum vertex discrepancy.
- carpool_greedy_orientationsGiven a list of edges and a list of tie-breaking coins, randomized greedy carpooling orients each edge toward the endpoint with smaller…
Read back from the Lean
There exists a real constant $C > 0$ such that for every natural number $D \ge 1$, there exists a list of directed edges edges on $2D$ vertices (represented by Fin (2*D) × Fin (2*D)) such that:
1. Every edge in edges connects adjacent vertices on the path graph of length $2D$ (for each edge $(u, v)$, either $u + 1 = v$ or $v + 1 = u$);
2. The number of edges is at most $D^3$ (edges.length ≤ D^3); and
3. The probability carpool_greedy_tail_probability (2*D) edges D that the online greedy algorithm achieves maximum vertex discrepancy at least $D$ (under uniform independent random tie-breaking coin flips) is at least $\exp(-C \cdot D^3)$.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
The proof, explained
The theorem reduces directly to `op_2130_repeated_path_greedy_converse`, which provides an absolute constant C > 0 and, for any D ≥ 1, a request sequence on the path graph of length at most D^3 reaching greedy discrepancy D with probability at least exp(-C D^3). The proof instantiates that constant and request sequence, translating the path-graph adjacency condition into `carpool_path_requests` via `SimpleGraph.pathGraph_adj.mp`. Finally, unfolding `carpool_greedy_tail_probability` reveals that the goal is syntactically identical to the probability bound already guaranteed by the converse theorem.
Fix an arbitrary D ≥ 1 and instantiate the positive constant C from the converse theorem.
We invoke `op_2130_repeated_path_greedy_converse` to obtain a constant C > 0 and a family of request sequences. We provide this C as the witness for the existential quantifier and fix an arbitrary D ≥ 1.
uses
op_2130_repeated_path_greedy_converseobtain ⟨C, hC, h⟩ := op_2130_repeated_path_greedy_converse refine ⟨C, hC, fun D hD => ?_⟩
There exists a list of requests of length at most D^3 whose edges are consecutive vertices along the path.
Specialising the converse theorem to D provides an edge list `edges` of length at most D^3 that are edges of the path graph P_{2D}, together with the probability lower bound. We offer `edges` as the witness, verify the length bound, and use `SimpleGraph.pathGraph_adj.mp` to convert the graph adjacency condition into the coordinate requirement of `carpool_path_requests` (that adjacent indices differ by 1).
uses
SimpleGraph.pathGraph_adj.mpobtain ⟨edges, hadj, hlen, hp⟩ := h D hD refine ⟨edges, fun e he => SimpleGraph.pathGraph_adj.mp (hadj e he), hlen, ?_⟩
The probability of the greedy algorithm reaching maximum discrepancy at least D is at least exp(-C D^3).
Unfolding the definitions of `carpool_greedy_tail_probability` and `carpool_greedy_tail_count` shows that the tail probability is defined as the ratio of successful coin sequences to 2^(edges.length). This matches the exact quantity bounded in the hypothesis `hp` from `op_2130_repeated_path_greedy_converse`, which immediately completes the proof.
unfold carpool_greedy_tail_probability carpool_greedy_tail_count exact hp
op_2130_repeated_path_greedy_converse- There exists an absolute constant C > 0 such that for every D ≥ 1, there exists an edge sequence on the path graph P_{2D} of length at most D^3 such that the fraction of coin sequences yielding greedy maximum absolute prefix discrepancy at least D is at least exp(-C D^3).
SimpleGraph.pathGraph_adj.mp- If two vertices are adjacent in a path graph, one vertex's index is the successor of the other's (i.e., their indices differ by 1).
- This proof is an API adapter: the substantive mathematical construction and probabilistic lower bound are established in `op_2130_repeated_path_greedy_converse`, and this theorem rephrases that result in terms of the high-level definitions `carpool_path_requests` and `carpool_greedy_tail_probability`.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
theorem carpool_path_greedy_cubic_tail_lower : ∃ C : ℝ, 0 < C ∧ ∀ D : ℕ, 1 ≤ D → ∃ edges : List (Fin (2*D) × Fin (2*D)), carpool_path_requests (2*D) edges ∧ edges.length ≤ D^3 ∧ Real.exp (-C * (D : ℝ)^3) ≤ carpool_greedy_tail_probability (2*D) edges D := by obtain ⟨C, hC, h⟩ := op_2130_repeated_path_greedy_converse refine ⟨C, hC, fun D hD => ?_⟩ obtain ⟨edges, hadj, hlen, hp⟩ := h D hD refine ⟨edges, fun e he => SimpleGraph.pathGraph_adj.mp (hadj e he), hlen, ?_⟩ unfold carpool_greedy_tail_probability carpool_greedy_tail_count exact hp