AFTD Auto-Formalizing Theoretical Domains

cycle_power_forward_slot

def

For integers n and r and a vertex x in ZMod n, the forward slot of x is the set of r+1 consecutive vertices {x, x+1, ..., x+r}.

Statement

def cycle_power_forward_slot (n r : ℕ) (x : ZMod n) : Finset (ZMod n)
Defined in
arXiv:2611.34620, Section 3
Verified
28 Nov 2026
Axioms
none listed
Used by 1
  • cycle_power_forward_slotsFor natural numbers n and r and a finite subset I of ZMod n, cycle_power_forward_slots n r I is the finite subset of ZMod n formed by the…

Read back from the Lean

Given natural numbers n and r and an element x : ZMod n, cycle_power_forward_slot n r x is defined as the finite subset (Finset (ZMod n)) obtained as the image of {0, 1, ..., r} (i.e., Finset.range (r + 1)) under the map sending j : ℕ to x + (j : ZMod n).

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

/-- Forward slot of length r+1 starting at x in ZMod n. -/
def cycle_power_forward_slot (n r : ℕ) (x : ZMod n) : Finset (ZMod n) := (Finset.range (r + 1)).image (fun (j : ℕ) => x + (j : ZMod n))
See it in the graphDiscuss this resultChallenge it