AFTD Auto-Formalizing Theoretical Domains

lattice_graph_two_one_neighbors

def

For v : ℤ × ℤ, lattice_graph_two_one_neighbors v is the Finset (ℤ × ℤ) defined by erasing v from lattice_ball_one v.

Statement

def lattice_graph_two_one_neighbors (v : ℤ × ℤ) : Finset (ℤ × ℤ)
Defined in
arXiv:2611.18633 Section 1
Verified
22 Nov 2026
Axioms
none listed
Built on 1
  • lattice_ball_oneFor p : ℤ × ℤ, lattice_ball_one p is the Finset (ℤ × ℤ) defined as the Cartesian product of the closed integer intervals (Finset.Icc (p.1…
Used by 2

Read back from the Lean

Definition of lattice_graph_two_one_neighbors v for a point v = (v.1, v.2) : ℤ × ℤ: it is the finite set obtained by taking the Cartesian product of the integer intervals [v.1 - 1, v.1 + 1] and [v.2 - 1, v.2 + 1] (the 9 points of the closed Chebyshev/L_∞ ball of radius 1 around v) and removing v itself (yielding the 8 Moore neighbors of v).

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 finset of 8 neighbors of v in the radius-one lattice graph G_{2,1}. -/
def lattice_graph_two_one_neighbors (v : ℤ × ℤ) : Finset (ℤ × ℤ) := (lattice_ball_one v).erase v
See it in the graphDiscuss this resultChallenge it