AFTD Auto-Formalizing Theoretical Domains

xz_cyclic_succ

def

The cyclic successor i ↦ (i + 1) mod n on Fin n, total also for n = 0 (where the argument is impossible).

Statement

def xz_cyclic_succ {n : ℕ} (i : Fin n) : Fin n
Source
step towards xz_scar_uniform_reduced_spectrum_odd_length_doubling
Verified
01 Nov 2026
Axioms
none listed
Used by 1

Lean source view module on GitHub

/-- The cyclic successor `(i + 1) mod n` on `Fin n`. -/
def xz_cyclic_succ {n : ℕ} (i : Fin n) : Fin n := ⟨(i.val + 1) % n, Nat.mod_lt _ (Nat.lt_of_le_of_lt (Nat.zero_le i.val) i.isLt)⟩
See it in the graphDiscuss this resultChallenge it