op_2130_converse_d1
There exists an edge sequence of length at most 1^3 = 1 on the 2-vertex path graph SimpleGraph.pathGraph 2 such that the uniform probability over all fair coin assignments that randomized greedy carpooling achieves maximum prefix discrepancy at least 1 is at least 1.
Statement
theorem op_2130_converse_d1 : ∃ (edges : List (Fin 2 × Fin 2)), (∀ e ∈ edges, (SimpleGraph.pathGraph 2).Adj e.1 e.2) ∧ edges.length ≤ 1 ^ 3 ∧ let T := edges.length let high_discrepancy := Finset.univ.filter (fun r : Fin T → Bool => 1 ≤ carpool_max_discrepancy 2 edges (carpool_greedy_orientations 2 edges (List.ofFn r))) 1 ≤ ((high_discrepancy.card : ℝ) / (2 ^ T : ℝ))
- Source
- arXiv:2611.00388; OP-2130
- Verified
- 22 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 3
- inst_decidableRel_pathGraphAdjacency in the path graph
pathGraph nis decidable. - 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.
- inst_decidableRel_pathGraphAdjacency in the path graph
Read back from the Lean
There exists a list edges of pairs of vertices in Fin 2 such that:
1. Every edge e ∈ edges is an edge of the 2-vertex path graph SimpleGraph.pathGraph 2 (i.e., e.1 and e.2 are adjacent in pathGraph 2).
2. The length of edges is at most $1^3$ (i.e., at most 1).
3. Letting $T$ be the length of edges, the proportion of coin toss assignments $r : \text{Fin } T \to \text{Bool}$ for which the greedy carpool algorithm (using r for tie-breaking) attains a maximum vertex discrepancy of at least 1 is at least 1 (i.e., 100% of all $2^T$ coin assignments yield a maximum discrepancy of at least 1).
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 proof explicitly provides the single-edge sequence [(0, 1)] on the 2-vertex path graph, which has length 1 ≤ 1³. Starting from zero discrepancy, orienting this single edge inevitably shifts the vertex discrepancies to ±1, achieving maximum prefix discrepancy 1 regardless of the coin toss. Evaluating the greedy carpool algorithm on all 2¹ = 2 possible coin sequences verifies that both reach discrepancy at least 1, giving a success probability of 2 / 2¹ = 1 ≥ 1.
Choose the candidate edge sequence to be the single edge [(0, 1)] on the 2-vertex path graph.
We provide the witness [(0, 1)], where vertices 0 and 1 are bounded in Fin 2 by computational checks. This reduces the existential claim to three subgoals: showing that (0, 1) is an edge of the 2-vertex path graph, that the sequence length is at most 1³ = 1, and that the probability of achieving maximum discrepancy at least 1 is at least 1.
refine ⟨[(⟨0, by decide⟩, ⟨1, by decide⟩)], ?_, ?_, ?_⟩
Every edge in the sequence [(0, 1)] is an adjacent pair in the 2-vertex path graph.
Take an arbitrary edge e in [(0, 1)]. By List.mem_singleton, e must be (0, 1). After substituting e = (0, 1), the adjacency condition between vertices 0 and 1 in the 2-vertex path graph is checked by finite evaluation (decide).
uses
List.mem_singleton· intro e he simp only [List.mem_singleton] at he subst he decide
The sequence length satisfies 1 ≤ 1³.
The length of the singleton list [(0, 1)] is 1, and the inequality 1 ≤ 1³ holds by arithmetic evaluation (decide).
· decideWith probability at least 1, randomized greedy carpooling on [(0, 1)] achieves maximum prefix discrepancy at least 1.
For an edge sequence of length T = 1, there are 2¹ = 2 possible coin flip sequences. Since both vertices start with discrepancy 0, assigning any orientation to the edge (0, 1) shifts the discrepancy of its endpoints to +1 and -1, yielding a maximum prefix discrepancy of 1. Computational reflection (decide) confirms that both coin assignments satisfy this condition, so the set of successful coin assignments has cardinality 2 (hc). Substituting this into the ratio gives 2 / 2¹ = 1 ≥ 1, which norm_num verifies.
· intro T high_discrepancy have hc : high_discrepancy.card = 2 := by decide change 1 ≤ (high_discrepancy.card : ℝ) / (2 ^ 1 : ℝ) rw [hc] norm_num
List.mem_singleton- An element belongs to a singleton list if and only if it equals the sole element of that list: a ∈ [b] ↔ a = b.
- The cardinality of the set of coin assignments achieving discrepancy at least 1 is computed by `decide` (line 18), which exhaustively executes the carpool discrepancy functions on both of the 2 possible coin assignments of length 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.
/-- The D = 1 base case of the OP-2130 converse: a single edge on the 2-vertex path achieves maximum prefix discrepancy at least 1 with probability 1. -/theorem op_2130_converse_d1 : ∃ (edges : List (Fin 2 × Fin 2)), (∀ e ∈ edges, (SimpleGraph.pathGraph 2).Adj e.1 e.2) ∧ edges.length ≤ 1 ^ 3 ∧ let T := edges.length let high_discrepancy := Finset.univ.filter (fun r : Fin T → Bool => 1 ≤ carpool_max_discrepancy 2 edges (carpool_greedy_orientations 2 edges (List.ofFn r))) 1 ≤ ((high_discrepancy.card : ℝ) / (2 ^ T : ℝ)) := by refine ⟨[(⟨0, by decide⟩, ⟨1, by decide⟩)], ?_, ?_, ?_⟩ · intro e he simp only [List.mem_singleton] at he subst he decide · decide · intro T high_discrepancy have hc : high_discrepancy.card = 2 := by decide change 1 ≤ (high_discrepancy.card : ℝ) / (2 ^ 1 : ℝ) rw [hc] norm_num