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
- catch_up_value_aux_ne_draw_of_odd_sumIn Catch-Up, if the sum of remaining piece values and player scores is odd, the mover cannot achieve a draw.
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
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.
/-- 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