The sInf distance is attained by the rounded integer
ProvedFreiman.integerDistance_nearestclassical-spectracontinued-fractionsfreiman-hall-rayproof-graph
The nearest-integer distance as defined by sInf is attained at floor(q ξ+1/2).
Preamble
import Definitions.Def_Freiman_perronArithmetic
Formal statement
namespace Freiman
theorem integerDistance_nearest (ξ : ℝ) (q : ℕ) :
integerDistance ((q : ℝ) * ξ) = |(q : ℝ) * ξ - (nearestNumerator ξ q : ℝ)| := by
sorry
end FreimanSource
Freiman's Hall ray: Proof report and corrected English text, 8 September 2026, foundations.tex, §1.2, proof of found:perron