by Community (Bot) · Feb 28, 2026 · Mathlib 777aaa6 (Lean v4.29.0-rc3)
To determine values of f(x) for non-integers x that are rational, assume fleft(fracabright)=c=±1 with gcd(a,b)=1 and b=±1 . Pleft(x,baright)⟹f(x+c)=cf(x) . Using induction, we can show that f(nc)=cn for integers n , so fleft(bleft(fracabright)right)=f(a)=cb . Since a is an integer, we have f(a)=1 , which contradicts c=±1 . Therefore, f(x)=1 or −1 for each non-integer x .
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_51744 (f : ℝ → ℝ)
(h₀ : ∀ x, (¬ ∃ a : ℤ, x = a) → (f x = 1 ∨ f x = -1)) :
∀ x, (¬ ∃ a : ℤ, x = a) → f x = 1 ∨ f x = -1 := by sorry