carpool_greedy_tail_count
def
The number of length-T Boolean coin tapes for which the greedy trajectory has maximum absolute prefix discrepancy at least D, where T is the length of the fixed request sequence.
Statement
def carpool_greedy_tail_count (n : ℕ) (edges : List (Fin n × Fin n)) (D : ℕ) : ℕ- Source
- 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
- 20 Nov 2026
- Axioms
- none listed
- Built on 2
- 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.
- Used by 3
- 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_example_d2For the displayed three requests on the four-vertex path, exactly four of the eight coin tapes reach absolute prefix discrepancy two.
- 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…
Lean source view module on GitHub
def carpool_greedy_tail_count (n : ℕ) (edges : List (Fin n × Fin n)) (D : ℕ) : ℕ := (Finset.univ.filter (fun r : Fin edges.length → Bool => D ≤ carpool_max_discrepancy n edges (carpool_greedy_orientations n edges (List.ofFn r)))).card