AFTD Auto-Formalizing Theoretical Domains

complete_coloring_quantum_sync_value_diff

theoremverified

For all natural numbers $n$ and $m$, and all real numbers $p$, $q$, and $r$, the difference $(p + (1 - p)(1 - \frac{n - m}{m(n - 1)})) - (p + (1 - p)(1 - \frac{(q - 1)n + (q + 1)r}{n(n - 1)}))$ equals $(1 - p)(\frac{(q - 1)n + (q + 1)r}{n(n - 1)} - \frac{n - m}{m(n - 1)})$.

Statement

theorem complete_coloring_quantum_sync_value_diff (n m : ℕ) (p : ℝ) (q r : ℝ) :
    (p + (1 - p) * (1 - ((n : ℝ) - (m : ℝ)) / ((m : ℝ) * ((n : ℝ) - 1)))) -
    (p + (1 - p) * (1 - ((q - 1) * (n : ℝ) + (q + 1) * r) / ((n : ℝ) * ((n : ℝ) - 1)))) =
      (1 - p) * (((q - 1) * (n : ℝ) + (q + 1) * r) / ((n : ℝ) * ((n : ℝ) - 1)) -
        ((n : ℝ) - (m : ℝ)) / ((m : ℝ) * ((n : ℝ) - 1)))
Source
arXiv:2611.19002 Theorem 4.6.1 -- Quantum Coloring Games on Complete Graphs
Verified
22 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Used by 1

Read back from the Lean

For all natural numbers n and m, and all real numbers p, q, and r (with n and m coerced to real numbers): (p + (1 - p) * (1 - (n - m) / (m * (n - 1)))) - (p + (1 - p) * (1 - ((q - 1) * n + (q + 1) * r) / (n * (n - 1)))) = (1 - p) * (((q - 1) * n + (q + 1) * r) / (n * (n - 1)) - (n - m) / (m * (n - 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 theorem establishes an algebraic identity between the quantum and classical synchronous value expressions. Writing the two fractional subterms as $A$ and $B$, the equation is simply $(p + (1 - p)(1 - A)) - (p + (1 - p)(1 - B)) = (1 - p)(B - A)$. This holds purely by the ring axioms and is proved directly by polynomial expansion.

  1. The difference between the two expressions simplifies to $(1 - p)$ times the difference of their fractional components. automation

    Writing $A = \frac{n - m}{m(n - 1)}$ and $B = \frac{(q - 1)n + (q + 1)r}{n(n - 1)}$, the left-hand side has the form $(p + (1 - p)(1 - A)) - (p + (1 - p)(1 - B))$. Expanding and canceling $p - p$ and $(1 - A) - (1 - B) = B - A$ reduces this to $(1 - p)(B - A)$, which matches the right-hand side. The `ring` tactic performs this polynomial normalization over $\mathbb{R}$.

    line 7

      ring

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 difference between the quantum and classical synchronous value expressions reduces to a difference of fractions multiplied by 1 - p. -/theorem complete_coloring_quantum_sync_value_diff (n m : ℕ) (p : ℝ) (q r : ℝ) :    (p + (1 - p) * (1 - ((n : ℝ) - (m : ℝ)) / ((m : ℝ) * ((n : ℝ) - 1)))) -    (p + (1 - p) * (1 - ((q - 1) * (n : ℝ) + (q + 1) * r) / ((n : ℝ) * ((n : ℝ) - 1)))) =      (1 - p) * (((q - 1) * (n : ℝ) + (q + 1) * r) / ((n : ℝ) * ((n : ℝ) - 1)) -        ((n : ℝ) - (m : ℝ)) / ((m : ℝ) * ((n : ℝ) - 1))) := by  ring
See it in the graphDiscuss this resultChallenge it