AFTD Auto-Formalizing Theoretical Domains

op2130_conditional_variation_seven_counterexample

theoremverified

For a fixed seven-request sequence on a six-vertex path and the all-false coin tape, the terminal value of vertex 3 has conditional martingale quadratic variation exactly 67/32, exceeding 2.

Statement

theorem op2130_conditional_variation_seven_counterexample :
    let es : List (Fin 6 × Fin 6) := [(4,5), (2,3), (0,1), (1,2), (1,2), (2,3), (3,4)]
    let S : ℕ → ℤ := fun t => ∑ r : Fin 7 → Bool,
      if ∀ i : Fin 7, i.val < t → r i = false then
        ((carpool_discrepancies 6 es (carpool_greedy_orientations 6 es (List.ofFn r))).getD 7 (fun _ => 0)) 3
      else 0
    (∑ t ∈ Finset.range 7, (4 : ℤ)^t * (2 * S (t+1) - S t)^2) = 34304
Source
OP-2130, finite repeated-path counterexample
Verified
24 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 2
  • carpool_discrepanciesThe sequence of discrepancy vectors (d₀, ..., d_T) starting from the zero vector, where each d_t is updated from d_{t-1} using the t-th…
  • 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…

The proof, explained

The theorem establishes that the conditional quadratic variation of the terminal discrepancy at vertex 3 under the all-false coin tape is 67/32 by computing the rescaled integer quantity ∑_{t=0}^6 4^t (2 S(t+1) - S(t))² = 34304. Because the request sequence has length 7 and the coin space has only 2⁷ = 128 elements, all quantities are finite, concrete integers. The proof proceeds entirely by exhaustive computational verification via the `decide` tactic.

  1. The weighted sum ∑_{t=0}^6 4^t (2 S(t+1) - S(t))² evaluates to exactly 34304. automation

    The claim is a closed equality between explicit integer expressions. The sequence of 7 edge requests on 6 vertices and the coin tapes r : Fin 7 → Bool range over a finite space of size 2⁷ = 128. For each coin tape, the greedy orientations and resulting discrepancy vectors at each step are computed by the deterministic functions carpool_greedy_orientations and carpool_discrepancies. The values S(t) condition on the first t coin flips being false, and the subsequent sum over t ∈ {0, …, 6} involves only standard integer arithmetic. The `decide` tactic checks this finite equality by direct evaluation in Lean's computational kernel, with the heartbeat limit increased to 2,000,000 to allow the full evaluation of all 128 trajectories.

    lines 8–9

      set_option maxHeartbeats 2000000 in
        decide

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

theorem op2130_conditional_variation_seven_counterexample :    let es : List (Fin 6 × Fin 6) := [(4,5), (2,3), (0,1), (1,2), (1,2), (2,3), (3,4)]    let S : ℕ → ℤ := fun t => ∑ r : Fin 7 → Bool,      if ∀ i : Fin 7, i.val < t → r i = false then        ((carpool_discrepancies 6 es (carpool_greedy_orientations 6 es (List.ofFn r))).getD 7 (fun _ => 0)) 3      else 0    (∑ t ∈ Finset.range 7, (4 : ℤ)^t * (2 * S (t+1) - S t)^2) = 34304 := by  set_option maxHeartbeats 2000000 in    decide
See it in the graphDiscuss this resultChallenge it