instFintypeNeighborSetLatticeGraphTwoOne
instance
For any vertex v : ℤ × ℤ, the neighbor set lattice_graph_two_one.neighborSet v is finite, with a Fintype instance.
Statement
instance instFintypeNeighborSetLatticeGraphTwoOne (v : ℤ × ℤ) : Fintype (lattice_graph_two_one.neighborSet v)- Defined in
- arXiv:2611.18633 Section 1
- Verified
- 22 Nov 2026
- Axioms
- none listed
- Built on 5
- lattice_graph_two_oneThe 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₂|…
- lattice_graph_two_one_neighborsFor v : ℤ × ℤ, lattice_graph_two_one_neighbors v is the Finset (ℤ × ℤ) defined by erasing v from lattice_ball_one v.
- 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…
- TotalPreorderA total preorder: a preorder where
≤is total (complete). This is weaker thanLinearOrder— it does NOT require antisymmetry or… - LinearOrder.toTotalPreorderEvery
LinearOrderis aTotalPreorder.
- Used by 1
- 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…
Read back from the Lean
For every vertex $v \in \mathbb{Z} \times \mathbb{Z}$, the neighbor set of $v$ in the graph lattice_graph_two_one is finite (has a Fintype instance).
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
/-- Fintype instance for the neighbor set of any vertex in G_{2,1}. -/ instance instFintypeNeighborSetLatticeGraphTwoOne (v : ℤ × ℤ) : Fintype (lattice_graph_two_one.neighborSet v) := Fintype.ofFinset (lattice_graph_two_one_neighbors v) fun u => by dsimp [lattice_graph_two_one_neighbors, lattice_ball_one, lattice_graph_two_one] simp only [Finset.mem_erase, Finset.mem_product, Finset.mem_Icc, SimpleGraph.mem_neighborSet] constructor · rintro ⟨hne, ⟨h1l, h1u⟩, ⟨h2l, h2u⟩⟩ refine ⟨Ne.symm hne, ?_, ?_⟩ · rw [abs_le]; constructor <;> omega · rw [abs_le]; constructor <;> omega · rintro ⟨hne, h1, h2⟩ rw [abs_le] at h1 h2 refine ⟨Ne.symm hne, ⟨by omega, by omega⟩, ⟨by omega, by omega⟩⟩