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
- standard_core_two_one_is_coreThe finset standard_core_two_one is a core in the graph lattice_graph_two_one, that is, is_graph_core lattice_graph_two_one…
- mem_lattice_graph_two_one_neighborsFor v u : ℤ × ℤ, u belongs to the finset lattice_graph_two_one_neighbors v if and only if lattice_graph_two_one.Adj v u.
- instFintypeNeighborSetLatticeGraphTwoOneFor any vertex v : ℤ × ℤ, the neighbor set lattice_graph_two_one.neighborSet v is finite, with a Fintype instance.
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⟩ }