AFTD Auto-Formalizing Theoretical Domains

lattice_graph_two_one

def

The radius-one lattice graph G_{2,1} on ℤ² has an edge between distinct lattice points u and v if and only if |u₁ - v₁| ≤ 1 and |u₂ - v₂| ≤ 1.

Statement

def lattice_graph_two_one : SimpleGraph (ℤ × ℤ)
Defined in
arXiv:2611.18633 Definition 1.1
Verified
22 Nov 2026
Axioms
none listed
Used by 3

Read back from the Lean

lattice_graph_two_one is the simple graph with vertex set ℤ × ℤ where two vertices u = (u₁, u₂) and v = (v₁, v₂) are adjacent if and only if u ≠ v, |u₁ - v₁| ≤ 1, and |u₂ - v₂| ≤ 1.

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 radius-one lattice graph G_{2,1} on ℤ × ℤ. -/
def lattice_graph_two_one : SimpleGraph (ℤ × ℤ) := {
  Adj := fun u v => u ≠ v ∧ |u.1 - v.1| ≤ 1 ∧ |u.2 - v.2| ≤ 1
  symm := ⟨fun _ _ h => ⟨Ne.symm h.1, by rw [abs_sub_comm]; exact h.2.1, by rw [abs_sub_comm]; exact h.2.2⟩⟩
  loopless := ⟨fun _ h => h.1 rfl⟩
}
See it in the graphDiscuss this resultChallenge it