carpool_path_greedy_cubic_witness
For 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 vertices and a length-matched sequence of tie coins such that greedy reaches absolute vertex discrepancy at least D at some prefix. Repeated requests are allowed.
Statement
theorem carpool_path_greedy_cubic_witness : ∀ D : ℕ, 1 ≤ D → ∃ edges : List (Fin (2*D) × Fin (2*D)), carpool_path_requests (2*D) edges ∧ edges.length ≤ D^3 ∧ ∃ r : Fin edges.length → Bool, D ≤ carpool_max_discrepancy (2*D) edges (carpool_greedy_orientations (2*D) edges (List.ofFn r))- Related work
- OP-2130, proposed here; arXiv:2609.21348 Theorem 1.1 gives a deterministic greedy upper bound, not this prescribed path construction.
- Verified
- 22 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 4
- carpool_path_requestsEvery requested ordered pair joins consecutive vertices of the n-vertex path; repetitions and either endpoint order are allowed.
- 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…
- carpool_max_discrepancyThe maximum discrepancy M_T over all time steps 0 ≤ t ≤ T of the maximum vertex discrepancy.
- op_2130_path_cascade_witnessFor every D ≥ 1 there is an edge sequence on SimpleGraph.pathGraph (2*D) of length at most D^3 and one coin tape whose greedy run reaches…
- Used by 1
- carpool_path_greedy_cubic_tail_lowerThere 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…
Read back from the Lean
For every natural number $D \ge 1$, there exists a list edges of pairs of vertices in $\mathrm{Fin}(2D)$ such that:
1. Every edge $(u, v)$ in edges consists of adjacent vertices on the path graph of $2D$ vertices (that is, $u.val + 1 = v.val$ or $v.val + 1 = u.val$);
2. The length of edges is at most $D^3$;
3. There exists a tie-breaking sequence $r : \mathrm{Fin}(\mathrm{length}(edges)) \to \mathrm{Bool}$ such that the maximum vertex discrepancy achieved during the greedy carpool orientation process on edges (with $2D$ vertices, using $r$ to break ties when vertex discrepancies are equal) is at least $D$.
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 directly re-packages the result of op_2130_path_cascade_witness, which establishes that for any D ≥ 1, there exists a sequence of at most D³ edges in the path graph on 2D vertices and a tie coin sequence forcing the greedy algorithm to reach discrepancy at least D. The proof extracts these witnesses and translates the path graph adjacency predicate into the arithmetic definition of path requests using SimpleGraph.pathGraph_adj.mp.
Fix D ≥ 1 and obtain a request sequence of at most D³ path-graph edges along with tie coins driving greedy discrepancy to at least D.
We introduce the parameter D and the hypothesis D ≥ 1, then invoke op_2130_path_cascade_witness. This provides a list of edges, a proof hadj that every edge connects adjacent vertices in the path graph on 2D vertices, a length bound hlen showing the list has length at most D³, and a tie-breaking coin sequence r ensuring the greedy discrepancy reaches at least D (hr).
uses
op_2130_path_cascade_witnessintro D hD obtain ⟨edges, hadj, hlen, r, hr⟩ := op_2130_path_cascade_witness D hD
The witness edges and tie coins r satisfy the conditions of the theorem.
We package edges and r as the required witness. The discrepancy bound hr and length bound hlen carry over directly. The property carpool_path_requests requires the indices of each edge in edges to differ by 1; this is deduced from hadj by applying SimpleGraph.pathGraph_adj.mp to each edge.
uses
SimpleGraph.pathGraph_adj.mpexact ⟨edges, fun e he => SimpleGraph.pathGraph_adj.mp (hadj e he), hlen, r, hr⟩
op_2130_path_cascade_witness- For every natural number D ≥ 1, there exists a list of at most D³ edges adjacent in the path graph on 2D vertices and a sequence of tie coins causing greedy orientation to reach discrepancy at least D.
SimpleGraph.pathGraph_adj.mp- If two vertices are adjacent in a path graph, their vertex indices differ by exactly 1.
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_witness : ∀ D : ℕ, 1 ≤ D → ∃ edges : List (Fin (2*D) × Fin (2*D)), carpool_path_requests (2*D) edges ∧ edges.length ≤ D^3 ∧ ∃ r : Fin edges.length → Bool, D ≤ carpool_max_discrepancy (2*D) edges (carpool_greedy_orientations (2*D) edges (List.ofFn r)) := by intro D hD obtain ⟨edges, hadj, hlen, r, hr⟩ := op_2130_path_cascade_witness D hD exact ⟨edges, fun e he => SimpleGraph.pathGraph_adj.mp (hadj e he), hlen, r, hr⟩