ballBearingGraph
For any natural number k, the Ball Bearing graph ballBearingGraph k has vertex set Fin k × Fin 5. Two distinct vertices (j₁, v₁) and (j₂, v₂) are adjacent if and only if: (1) j₁ = j₂ and the unordered pair {v₁, v₂} is one of {0, 1}, {1, 2}, {1, 3}, {2, 3}, or {3, 4}; or (2) (j₁.val + 1) % k = j₂.val and (v₁, v₂) is (0, 0), (1, 0), or (4, 2); or (3) (j₂.val + 1) % k = j₁.val and (v₂, v₁) is (0, 0), (1, 0), or (4, 2).
Statement
def ballBearingGraph (k : ℕ) : SimpleGraph (Fin k × Fin 5)- Defined in
- arXiv:2611.17386 Section 2
- Verified
- 22 Nov 2026
- Axioms
- none listed
- Used by 1
- ball_bearing_not_hamiltonianFor any integer k ≥ 3, the Ball Bearing graph ballBearingGraph k contains no Hamiltonian cycle, that is, ¬ (ballBearingGraph…
Read back from the Lean
A definition of a parameterized family of simple graphs ballBearingGraph (k : ℕ) on the vertex set Fin k × Fin 5.
Two vertices x, y : Fin k × Fin 5 are adjacent if and only if x ≠ y and at least one of the following three conditions holds:
1. Intra-layer edges: x.1 = y.1 and the pair of second coordinates {x.2, y.2} is one of {0, 1}, {1, 2}, {1, 3}, {2, 3}, or {3, 4} (forming a bull graph on the 5 vertices of that layer).
2. Forward inter-layer edges: (x.1.val + 1) % k = y.1.val and (x.2, y.2) is (0, 0), (1, 0), or (4, 2).
3. Backward inter-layer edges: (y.1.val + 1) % k = x.1.val and (y.2, x.2) is (0, 0), (1, 0), or (4, 2).
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 Ball Bearing graph BB(k) on 5k vertices Fin k × Fin 5 arranged in k five-vertex gadgets in a ring. -/ def ballBearingGraph (k : ℕ) : SimpleGraph (Fin k × Fin 5) := { Adj := fun x y => x ≠ y ∧ ((x.1 = y.1 ∧ ((x.2 = 0 ∧ y.2 = 1) ∨ (x.2 = 1 ∧ y.2 = 0) ∨ (x.2 = 1 ∧ y.2 = 2) ∨ (x.2 = 2 ∧ y.2 = 1) ∨ (x.2 = 1 ∧ y.2 = 3) ∨ (x.2 = 3 ∧ y.2 = 1) ∨ (x.2 = 2 ∧ y.2 = 3) ∨ (x.2 = 3 ∧ y.2 = 2) ∨ (x.2 = 3 ∧ y.2 = 4) ∨ (x.2 = 4 ∧ y.2 = 3))) ∨ ((x.1.val + 1) % k = y.1.val ∧ ((x.2 = 0 ∧ y.2 = 0) ∨ (x.2 = 1 ∧ y.2 = 0) ∨ (x.2 = 4 ∧ y.2 = 2))) ∨ ((y.1.val + 1) % k = x.1.val ∧ ((y.2 = 0 ∧ x.2 = 0) ∨ (y.2 = 1 ∧ x.2 = 0) ∨ (y.2 = 4 ∧ x.2 = 2)))), symm := ⟨fun {x y} h => by obtain ⟨hne, h⟩ := h refine ⟨hne.symm, ?_⟩ rcases h with ⟨h1, h2⟩ | ⟨h1, h2⟩ | ⟨h1, h2⟩ · left; exact ⟨h1.symm, by tauto⟩ · right; right; exact ⟨h1, h2⟩ · right; left; exact ⟨h1, h2⟩⟩, loopless := ⟨fun {x} h => h.1 rfl⟩ }