Exact counter change across an Antihydra odd run
ProvedAntihydra.odd_run_counter_exactantihydrabusy-beavernumber-theory
Let be any Antihydra trajectory and let an integer counter gain two on even states and lose one on odd states. Set , where is the exponent of two dividing a positive integer. Then
This exact counter identity applies at any starting time, independently of the distinguished initial value eight or initial counter zero. It relates the reserve needed at a state to the counter at the end of its following odd run; at an even state .
Preamble
import Definitions.Def_AntihydraTwoOrder
Formal statement
theorem Antihydra.odd_run_counter_exact
(a : Nat → Nat) (b : Nat → Int)
(ha : ∀ n, 2 ≤ a n)
(a_rec : ∀ n, a (n + 1) = (3 * a n) / 2)
(b_rec : ∀ n, b (n + 1) = if a n % 2 = 0 then b n + 2 else b n - 1) :
∀ n, b (n + Antihydra.twoOrder (a n - 1)) =
b n - (Antihydra.twoOrder (a n - 1) : Int) := by sorrySource
Derived from BMO#2, beaver_math_olympiad_problem_2_antihydra, https://github.com/google-deepmind/formal-conjectures/blob/main/FormalConjectures/Other/BeaverMathOlympiad.lean. The counter identity and endpoint reduction are supporting derivations, not quotations. The finite horizon comes from the existing proved Antihydra.nonneg_first_100000 on Prove2Me.