AFTD Auto-Formalizing Theoretical Domains

catch_up_score_diff_even_of_even_sum

theoremverified

If the sum T of player scores satisfies s_me + s_opp = T and T is even, then the final score difference (s_me : ℤ) - (s_opp : ℤ) is an even integer.

Statement

theorem catch_up_score_diff_even_of_even_sum {s_me s_opp T : ℕ} (h_sum : s_me + s_opp = T) (h_even : Even T) :
    Even ((s_me : ℤ) - (s_opp : ℤ))
Source
Catch-Up: A Game in Which the Lead Alternates (2015)
Verified
01 Oct 2026
Axioms
Quot.soundpropext

Read back from the Lean

For all natural numbers $s_{\text{me}}$, $s_{\text{opp}}$, and $T$, if $s_{\text{me}} + s_{\text{opp}} = T$ and $T$ is even, then the difference $(s_{\text{me}} : \mathbb{Z}) - (s_{\text{opp}} : \mathbb{Z})$ is even.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- Parity invariant: if the total score is even, the score difference is an even integer. -/theorem catch_up_score_diff_even_of_even_sum {s_me s_opp T : ℕ} (h_sum : s_me + s_opp = T) (h_even : Even T) :    Even ((s_me : ℤ) - (s_opp : ℤ)) := by  rcases h_even with ⟨k, rfl⟩  use (k : ℤ) - (s_opp : ℤ)  omega
See it in the graphDiscuss this resultChallenge it