AFTD Auto-Formalizing Theoretical Domains

view_obstruction_ray_dist

def

The view-obstruction squared distance d_n(v) for an integer direction vector v, defined as the infimum over t ∈ ℝ of the squared distance from t*v to the shifted lattice (1/2, ..., 1/2) + ℤ^n.

Statement

noncomputable def view_obstruction_ray_dist (n : ℕ) (v : Fin n → ℤ) : ℝ
Defined in
arXiv:2610.37711, Equation (1.1)
Verified
08 Nov 2026
Axioms
none listed
Built on 2
  • int_to_euclideanThe canonical embedding of an integer vector z ∈ ℤ^n into the Euclidean space ℝ^n.
  • view_obstruction_centerThe center point c = (1/2, ..., 1/2) of the shifted lattice in Euclidean space ℝ^n.
Used by 2

Read back from the Lean

Given a dimension n : ℕ and an integer vector v : Fin n → ℤ, view_obstruction_ray_dist n v is defined as the real number given by the infimum over all t : ℝ and all integer vectors z : Fin n → ℤ of the squared Euclidean distance in EuclideanSpace ℝ (Fin n) between t • v (with v cast to real coordinates) and (1/2, ..., 1/2) + z (with z cast to real coordinates).

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 view-obstruction squared distance d_n(v) for an integer direction vector v. -/
noncomputable def view_obstruction_ray_dist (n : ℕ) (v : Fin n → ℤ) : ℝ := ⨅ (t : ℝ) (z : Fin n → ℤ), ‖t • int_to_euclidean n v - (view_obstruction_center n + int_to_euclidean n z)‖ ^ 2
See it in the graphDiscuss this resultChallenge it