op_2130_converse_from_path_witness
If 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 discrepancy D, then the converse conjunct of OP-2130 holds with C' = 2.
Statement
theorem op_2130_converse_from_path_witness (hwit : ∀ (D : ℕ), 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 ∧ ∃ coin : Fin edges.length → Bool, D ≤ carpool_max_discrepancy (2 * D) edges (carpool_greedy_orientations (2 * D) edges (List.ofFn coin))) : ∃ (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
- step towards op_2130_repeated_path_greedy_sharp_cubic_exponential_tail
- Verified
- 22 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- 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 1
- 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…
The proof, explained
The proof selects the constant C' = 2. By hypothesis, for each D ≥ 1 there is an edge sequence of length T ≤ D³ and at least one coin tape achieving prefix discrepancy at least D, so the set G of high-discrepancy tapes satisfies |G| ≥ 1. Since 2 ≤ exp(2) and T ≤ D³, the total number of coin tapes satisfies 2^T ≤ exp(2 D³), which implies that the probability |G| / 2^T of reaching discrepancy D is at least 1 / 2^T ≥ exp(-2 D³).
Choose C' = 2 and instantiate the witness edges for any given D ≥ 1.
We set C' = 2, which is strictly positive (verified by numerical normalization). For any D ≥ 1, the hypothesis hwit supplies an edge sequence of length T ≤ D³ on the path graph P_{2D} and a coin tape achieving prefix discrepancy at least D. Witnessing the existential quantifier with these edges leaves the probabilistic discrepancy bound to be proven.
classical refine ⟨2, by norm_num, ?_⟩ intro D hD obtain ⟨edges, he, hlen, coin, hcoin⟩ := hwit D hD refine ⟨edges, he, hlen, ?_⟩
The set G of coin tapes achieving discrepancy at least D has cardinality at least 1.
Let G be the subset of all coin tapes of length T on which the greedy orientation produces discrepancy at least D. Since the witness tape coin provided by the hypothesis satisfies this by assumption, G is nonempty, and by Finset.one_le_card.mpr its cardinality is at least 1.
uses
Finset.one_le_card.mprlet G := Finset.univ.filter (fun r : Fin edges.length → Bool => D ≤ carpool_max_discrepancy (2 * D) edges (carpool_greedy_orientations (2 * D) edges (List.ofFn r))) change Real.exp (-(2 : ℝ) * (D : ℝ)^3) ≤ (G.card : ℝ) / (2 ^ edges.length : ℝ) have hG : (1 : ℝ) ≤ (G.card : ℝ) := by have hn : 1 ≤ G.card := by apply Finset.one_le_card.mpr exact ⟨coin, by simp [G, hcoin]⟩ exact_mod_cast hn
The total number of coin tapes 2^T is at most exp(2 D³).
Since x + 1 ≤ exp(x) for all reals (Real.add_one_le_exp), taking x = 2 gives 2 ≤ exp(2). Raising both sides to the power T = edges.length gives 2^T ≤ (exp 2)^T = exp(2T) via pow_le_pow_left₀ and Real.exp_nat_mul. Since T ≤ D³, monotonicity of the exponential (Real.exp_le_exp.mpr) gives exp(2T) ≤ exp(2 D³), and transitivity (le_trans) concludes 2^T ≤ exp(2 D³).
uses
Real.add_one_le_exp,pow_le_pow_left₀,le_trans,Real.exp_nat_mul,Real.exp_le_exp.mprhave hexp2 : (2 : ℝ) ≤ Real.exp 2 := by have := Real.add_one_le_exp (2 : ℝ) linarith have hpow : (2 : ℝ)^edges.length ≤ (Real.exp 2)^edges.length := pow_le_pow_left₀ (by positivity) hexp2 _ have htime : (edges.length : ℝ) ≤ (D : ℝ)^3 := by exact_mod_cast hlen have hbig : (2 : ℝ)^edges.length ≤ Real.exp (2 * (D : ℝ)^3) := by apply le_trans hpow rw [← Real.exp_nat_mul] apply Real.exp_le_exp.mpr nlinarith
exp(-2 D³) ≤ |G| / 2^T.
Inverting 2^T ≤ exp(2 D³) yields 1 / exp(2 D³) ≤ 1 / 2^T via one_div_le_one_div_of_le. Using Real.exp_neg to identify exp(-2 D³) with 1 / exp(2 D³), and chaining with 1 / 2^T ≤ |G| / 2^T (from 1 ≤ |G| by div_le_div_of_nonneg_right), transitivity (le_trans) establishes the required lower bound.
uses
one_div_le_one_div_of_le,Real.exp_neg,le_trans,div_le_div_of_nonneg_righthave hrecip : 1 / Real.exp (2 * (D : ℝ)^3) ≤ 1 / (2 : ℝ)^edges.length := one_div_le_one_div_of_le (by positivity) hbig have hneg : Real.exp (-(2 : ℝ) * (D : ℝ)^3) = 1 / Real.exp (2 * (D : ℝ)^3) := by rw [show -(2 : ℝ) * (D : ℝ)^3 = -(2 * (D : ℝ)^3) by ring, Real.exp_neg] ring rw [hneg] exact le_trans hrecip (div_le_div_of_nonneg_right hG (by positivity))
Finset.one_le_card.mpr- A finite set has cardinality at least 1 if it is nonempty.
Real.add_one_le_exp- For any real number x, x + 1 ≤ exp(x).
pow_le_pow_left₀- For real (or ordered monoid) elements, 0 ≤ a ≤ b implies a^n ≤ b^n for every natural number n.
le_trans- The relation ≤ is transitive: if a ≤ b and b ≤ c, then a ≤ c.
Real.exp_nat_mul- For any real x and natural number n, exp(n * x) = (exp x)^n.
Real.exp_le_exp.mpr- The real exponential function is order-preserving: if x ≤ y, then exp(x) ≤ exp(y).
one_div_le_one_div_of_le- For positive reals, if a ≤ b then 1 / b ≤ 1 / a.
Real.exp_neg- For any real number x, exp(-x) = 1 / exp(x).
div_le_div_of_nonneg_right- Dividing both sides of a ≤ b by a non-negative number c yields a / c ≤ b / c.
- The argument establishes the exponential probability lower bound directly from the existence of a single high-discrepancy coin tape: because the tape space has size 2^T and T ≤ D³, the probability of hitting that single tape is at least 1 / 2^T ≥ exp(-2 D³), requiring no probabilistic concentration arguments.
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 deterministic single-tape witness implies the converse conjunct with constant C' = 2. -/theorem op_2130_converse_from_path_witness (hwit : ∀ (D : ℕ), 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 ∧ ∃ coin : Fin edges.length → Bool, D ≤ carpool_max_discrepancy (2 * D) edges (carpool_greedy_orientations (2 * D) edges (List.ofFn coin))) : ∃ (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 classical refine ⟨2, by norm_num, ?_⟩ intro D hD obtain ⟨edges, he, hlen, coin, hcoin⟩ := hwit D hD refine ⟨edges, he, hlen, ?_⟩ let G := Finset.univ.filter (fun r : Fin edges.length → Bool => D ≤ carpool_max_discrepancy (2 * D) edges (carpool_greedy_orientations (2 * D) edges (List.ofFn r))) change Real.exp (-(2 : ℝ) * (D : ℝ)^3) ≤ (G.card : ℝ) / (2 ^ edges.length : ℝ) have hG : (1 : ℝ) ≤ (G.card : ℝ) := by have hn : 1 ≤ G.card := by apply Finset.one_le_card.mpr exact ⟨coin, by simp [G, hcoin]⟩ exact_mod_cast hn have hexp2 : (2 : ℝ) ≤ Real.exp 2 := by have := Real.add_one_le_exp (2 : ℝ) linarith have hpow : (2 : ℝ)^edges.length ≤ (Real.exp 2)^edges.length := pow_le_pow_left₀ (by positivity) hexp2 _ have htime : (edges.length : ℝ) ≤ (D : ℝ)^3 := by exact_mod_cast hlen have hbig : (2 : ℝ)^edges.length ≤ Real.exp (2 * (D : ℝ)^3) := by apply le_trans hpow rw [← Real.exp_nat_mul] apply Real.exp_le_exp.mpr nlinarith have hrecip : 1 / Real.exp (2 * (D : ℝ)^3) ≤ 1 / (2 : ℝ)^edges.length := one_div_le_one_div_of_le (by positivity) hbig have hneg : Real.exp (-(2 : ℝ) * (D : ℝ)^3) = 1 / Real.exp (2 * (D : ℝ)^3) := by rw [show -(2 : ℝ) * (D : ℝ)^3 = -(2 * (D : ℝ)^3) by ring, Real.exp_neg] ring rw [hneg] exact le_trans hrecip (div_le_div_of_nonneg_right hG (by positivity))