AFTD Auto-Formalizing Theoretical Domains

catch_up_score_diff_odd_of_odd_sum

theoremverified

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

Statement

theorem catch_up_score_diff_odd_of_odd_sum {s_me s_opp T : ℕ} (h_sum : s_me + s_opp = T) (h_odd : Odd T) :
    Odd ((s_me : ℤ) - (s_opp : ℤ))
Source
Catch-Up: A Game in Which the Lead Alternates (2015)
Verified
01 Oct 2026
Axioms
Quot.soundpropext
Used by 1

Read back from the Lean

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

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

/-- If the sum of two scores is an odd natural number, their integer difference is odd. -/theorem catch_up_score_diff_odd_of_odd_sum {s_me s_opp T : ℕ} (h_sum : s_me + s_opp = T) (h_odd : Odd T) :    Odd ((s_me : ℤ) - (s_opp : ℤ)) := by  rcases h_odd with ⟨k, rfl⟩  use (k : ℤ) - (s_opp : ℤ)  omega
See it in the graphDiscuss this resultChallenge it