cycle_power_independent_add_ne
Let $r \ge 1$ and $n \ge 2r+1$. In the cycle power graph $C_n^r$ on $\mathbb{Z}_n$, if $I \subseteq \mathbb{Z}_n$ is an independent set, then for all $x, y \in I$, $y \ne x + r$.
Statement
theorem cycle_power_independent_add_ne
(n r : ℕ) (hr : 1 ≤ r) (hn : 2 * r + 1 ≤ n)
(I : Finset (ZMod n))
(hI_indep : (simple_graph_cycle_power n r).IsIndepSet (I : Set (ZMod n)))
{x y : ZMod n} (hx : x ∈ I) (hy : y ∈ I) :
y ≠ x + (r : ZMod n)- Source
- arXiv:2611.34620 Lemma 3.2
- Verified
- 29 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- simple_graph_cycle_powerThe k-th power C_n^k of the cycle C_n: vertices are the residues mod n, and two distinct vertices are adjacent when their distance along…
Read back from the Lean
Given natural numbers $n$ and $r$ such that $1 \le r$ and $2r + 1 \le n$, and a finite subset $I \subseteq \mathbb{Z}/n\mathbb{Z}$ that is an independent set in the graph simple_graph_cycle_power n r, for all $x, y \in \mathbb{Z}/n\mathbb{Z}$, if $x \in I$ and $y \in I$, then $y \ne x + (r : \mathbb{Z}/n\mathbb{Z})$.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
The proof, explained
The theorem is proved by contradiction: suppose two vertices x, y in an independent set I satisfy y = x + r in ZMod n. Because 1 ≤ r and 2r + 1 ≤ n, we have r < n and thus r ≠ 0 mod n, ensuring x ≠ y. The distance around the cycle between x and y is at most (y - x).val = r, meaning x and y are adjacent in the cycle power graph C_n^r, which contradicts the hypothesis that I is independent.
Assume for contradiction that y = x + r in ZMod n, and deduce r < n.
We introduce the assumption y = x + r to argue by contradiction. Since 1 ≤ r and 2 * r + 1 ≤ n, linear arithmetic over ℕ (`omega`) implies r < n.
intro hxy have hr_lt_n : r < n := by omega
x ≠ y
Suppose for contradiction that x = y. Substituting y = x + r yields x + r = x + 0 by `add_zero`. Canceling x on the left with `add_left_cancel` gives r = 0 in ZMod n. Taking values via `ZMod.val_zero` gives (r : ZMod n).val = 0. Since r < n, `ZMod.val_cast_of_lt` simplifies this to r = 0 in ℕ, which linear arithmetic (`omega`) shows contradicts 1 ≤ r.
uses
add_zero,add_left_cancel,ZMod.val_zero,ZMod.val_cast_of_lthave hne : x ≠ y := by intro h have h0 : (r : ZMod n) = 0 := by have h1 : x + (r : ZMod n) = x + (0 : ZMod n) := by rw [add_zero] exact (h.trans hxy).symm exact add_left_cancel h1 have hv : (r : ZMod n).val = 0 := by rw [h0]; exact ZMod.val_zero rw [ZMod.val_cast_of_lt hr_lt_n] at hv omega
min (x - y).val (y - x).val ≤ r
From y = x + r, subtracting x gives y - x = r in ZMod n. Since r < n, `ZMod.val_cast_of_lt` gives (y - x).val = r. By `min_le_right`, the minimum of the two cycle distances is bounded by (y - x).val, which equals r.
uses
ZMod.val_cast_of_lt,min_le_righthave hmin : min (x - y).val (y - x).val ≤ r := by have hdiff : y - x = (r : ZMod n) := by rw [hxy]; ring have hv : (y - x).val = r := by rw [hdiff, ZMod.val_cast_of_lt hr_lt_n] calc min (x - y).val (y - x).val ≤ (y - x).val := min_le_right _ _ _ = r := hv
Contradiction: x and y are adjacent in the cycle power graph, contradicting that I is an independent set.
Because x ≠ y and min (x - y).val (y - x).val ≤ r, x and y satisfy the definition of adjacency in simple_graph_cycle_power n r. However, both x and y belong to I, which is assumed to be an independent set, so they cannot be adjacent.
have hadj : (simple_graph_cycle_power n r).Adj x y := ⟨hne, hmin⟩ exact hI_indep (by exact hx) (by exact hy) hne hadj
add_zero- For any element a in an additive structure with zero, a + 0 = a.
add_left_cancel- In an additive structure with left-cancellation, a + b = a + c implies b = c.
ZMod.val_zero- The natural number representative of 0 in ZMod n is 0.
ZMod.val_cast_of_lt- If a natural number a satisfies a < n, then the representative of its cast to ZMod n in the range [0, n - 1] is a itself.
min_le_right- For any elements a and b in a linear order, min a b ≤ b.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
/-- In an independent set of C_n^r with n ≥ 2r+1 and r ≥ 1, no two vertices differ by exactly r around the cycle. -/theorem cycle_power_independent_add_ne (n r : ℕ) (hr : 1 ≤ r) (hn : 2 * r + 1 ≤ n) (I : Finset (ZMod n)) (hI_indep : (simple_graph_cycle_power n r).IsIndepSet (I : Set (ZMod n))) {x y : ZMod n} (hx : x ∈ I) (hy : y ∈ I) : y ≠ x + (r : ZMod n) := by intro hxy have hr_lt_n : r < n := by omega have hne : x ≠ y := by intro h have h0 : (r : ZMod n) = 0 := by have h1 : x + (r : ZMod n) = x + (0 : ZMod n) := by rw [add_zero] exact (h.trans hxy).symm exact add_left_cancel h1 have hv : (r : ZMod n).val = 0 := by rw [h0]; exact ZMod.val_zero rw [ZMod.val_cast_of_lt hr_lt_n] at hv omega have hmin : min (x - y).val (y - x).val ≤ r := by have hdiff : y - x = (r : ZMod n) := by rw [hxy]; ring have hv : (y - x).val = r := by rw [hdiff, ZMod.val_cast_of_lt hr_lt_n] calc min (x - y).val (y - x).val ≤ (y - x).val := min_le_right _ _ _ = r := hv have hadj : (simple_graph_cycle_power n r).Adj x y := ⟨hne, hmin⟩ exact hI_indep (by exact hx) (by exact hy) hne hadj