AFTD Auto-Formalizing Theoretical Domains

angular_dist_mod

def

For a natural number q and rotation angles θ₁, θ₂ : ℝ, the angular distance modulo π/q between θ₁ and θ₂ is the infimum over all integers k of |θ₁ - θ₂ - (k : ℝ) * π / (q : ℝ)|.

Statement

noncomputable def angular_dist_mod (q : ℕ) (θ₁ θ₂ : ℝ) : ℝ
Defined in
arXiv:2611.11852: Section 2
Verified
11 Nov 2026
Axioms
none listed

Read back from the Lean

angular_dist_mod is a noncomputable definition that takes a natural number q : ℕ and two real numbers θ₁, θ₂ : ℝ, and returns the infimum (sInf) of the set of real numbers |θ₁ - θ₂ - (k * π) / q| as k ranges over the integers ℤ.

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

/-- The angular distance modulo pi/q between two rotation angles theta_1 and theta_2. -/
noncomputable def angular_dist_mod (q : ℕ) (θ₁ θ₂ : ℝ) : ℝ := sInf { |θ₁ - θ₂ - (k : ℝ) * Real.pi / (q : ℝ)| | (k : ℤ) }
See it in the graphDiscuss this resultChallenge it