AFTD Auto-Formalizing Theoretical Domains

op_2130_repeated_path_greedy_converse

theoremverified

There exists an absolute positive real constant C' such that for every integer D ≥ 1, there exists an edge sequence on the path graph SimpleGraph.pathGraph (2 * D) of length at most D^3 such that the uniform probability over all fair coin assignments that randomized greedy carpooling achieves maximum prefix discrepancy at least D is at least exp(-C' * D^3).

Statement

theorem op_2130_repeated_path_greedy_converse :
    ∃ (C' : ℝ), 0 < C' ∧
      ∀ (D : ℕ) (hD : 1 ≤ D),
        ∃ (edges : List (Fin (2 * D) × Fin (2 * D))),
          (∀ e ∈ edges, (SimpleGraph.pathGraph (2 * D)).Adj e.1 e.2) ∧
          edges.length ≤ D ^ 3 ∧
          let T := edges.length
          let high_discrepancy := Finset.univ.filter (fun r : Fin T → Bool =>
            D ≤ carpool_max_discrepancy (2 * D) edges
              (carpool_greedy_orientations (2 * D) edges (List.ofFn r)))
          Real.exp (-C' * (D : ℝ) ^ 3) ≤ ((high_discrepancy.card : ℝ) / (2 ^ T : ℝ))
Source
OP-2130: consequence of a successful path witness with at most D^3 requests; the related cubic-order path witness is Lemma 6 of https://drops.dagstuhl.de/storage/00lipics/lipics-vol055-icalp2016/LIPIcs.ICALP.2016.43/LIPIcs.ICALP.2016.43.pdf
Verified
22 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 4
  • op_2130_converse_from_path_witnessIf for every D ≥ 1 there is a path edge sequence of length at most D³ on P_{2D} and one coin tape whose greedy run reaches maximum prefix…
  • 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…
  • 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…
Used by 1

Read back from the Lean

There exists a constant $C' \in \mathbb{R}$ with $C' > 0$ such that for every natural number $D \ge 1$, there exists a list of pairs edges of vertices in $\text{Fin}(2D)$ such that: 1. Every edge $e = (u, v)$ in edges is an edge of the path graph on $2D$ vertices (that is, $(u, v)$ are adjacent in SimpleGraph.pathGraph (2 * D)). 2. The number of edges $T = \text{edges.length}$ satisfies $T \le D^3$. 3. Under the greedy carpool algorithm on $2D$ vertices with edge sequence edges and fair random tie-breaking coin flips $r \in \text{Fin } T \to \text{Bool}$, the probability that the maximum vertex discrepancy ever reached is at least $D$ is at least $\exp(-C' \cdot D^3)$. That is, the proportion of coin sequences $r$ satisfying this condition, $|high\_discrepancy| / 2^T$, 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 establishes a lower bound on the probability of reaching discrepancy at least D in the randomized greedy carpooling model on a path graph of 2D vertices, using at most D³ edge requests. The argument combines two components: `op_2130_path_cascade_witness`, which explicitly provides an edge sequence and a deterministic coin outcome that reaches discrepancy D, and `op_2130_converse_from_path_witness`, which converts the existence of a single successful coin assignment into an exponential lower bound of at least exp(-C' D³) under the uniform distribution on coin flips.

  1. There exists a positive constant C' such that for every D ≥ 1, some edge sequence of length at most D³ on the 2D-vertex path graph achieves maximum prefix discrepancy at least D with probability at least exp(-C' D³).

    The result is obtained immediately by applying `op_2130_converse_from_path_witness` to `op_2130_path_cascade_witness`. The lemma `op_2130_path_cascade_witness` guarantees that for any D ≥ 1, there exists an oblivious edge sequence of length T ≤ D³ and at least one coin assignment driving the discrepancy to at least D. The reduction `op_2130_converse_from_path_witness` then shows that the existence of even a single favorable coin outcome out of 2^T possibilities ensures that the uniform probability of achieving high discrepancy is at least 2^(-T) ≥ 2^(-D³) ≥ exp(-C' D³) for an absolute constant C' > 0.

    line 13

    uses op_2130_converse_from_path_witness, op_2130_path_cascade_witness

      exact op_2130_converse_from_path_witness op_2130_path_cascade_witness
op_2130_converse_from_path_witness
If for every D ≥ 1 there exists a sequence of at most D³ edges on the 2D-vertex path graph and a coin sequence leading the randomized greedy algorithm to maximum discrepancy at least D, then there exists an absolute constant C' > 0 such that the uniform probability of achieving discrepancy at least D is at least exp(-C' D³).
op_2130_path_cascade_witness
For every D ≥ 1, there exists an edge sequence of length at most D³ on the 2D-vertex path graph and a coin assignment such that the randomized greedy carpooling algorithm achieves maximum prefix discrepancy at least D.

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

/-- The converse in OP-2130: for every D ≥ 1, an oblivious edge sequence of at most D^3 requests on the 2D-vertex path graph achieves maximum prefix discrepancy D with probability at least exp(-C' * D^3). -/theorem op_2130_repeated_path_greedy_converse :    ∃ (C' : ℝ), 0 < C' ∧      ∀ (D : ℕ) (hD : 1 ≤ D),        ∃ (edges : List (Fin (2 * D) × Fin (2 * D))),          (∀ e ∈ edges, (SimpleGraph.pathGraph (2 * D)).Adj e.1 e.2) ∧          edges.length ≤ D ^ 3 ∧          let T := edges.length          let high_discrepancy := Finset.univ.filter (fun r : Fin T → Bool =>            D ≤ carpool_max_discrepancy (2 * D) edges              (carpool_greedy_orientations (2 * D) edges (List.ofFn r)))          Real.exp (-C' * (D : ℝ) ^ 3) ≤ ((high_discrepancy.card : ℝ) / (2 ^ T : ℝ)) := by  exact op_2130_converse_from_path_witness op_2130_path_cascade_witness
See it in the graphDiscuss this resultChallenge it