lean_workbook_plus_79054
ProvedSolutionWe will use -adic valuation. Let and for some prime . We are given and , for non-negative integers . (This follows from the identity .) From the first inequality, we have . Since can be any non-negative integer, the inequality is certainly true for , so we have . But and are non-negative integers, so we have . We can do the same thing with the second inequality: . This inequality is true for , so . Again, and are positive integers, so we also have . and must satisfy both and , so . This proves that and have equal -adic valuations for any prime , so they are themselves equal.
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_79054 (a b : ℤ) (h₀ : 0 < a ∧ 0 < b) (h₁ : ∀ k : ℕ, (2 * k * b) ≤ (2 * k + 1) * a) (h₂ : ∀ j : ℕ, (2 * j + 1) * a ≤ (2 * j + 2) * b) : a = b := by sorry
Source