AFTD Auto-Formalizing Theoretical Domains

cycle_same_bit_degree

def

The number of the two factor-cycle neighbors of a vertex having its bit.

Statement

def cycle_same_bit_degree (n : ℕ) [NeZero n] (b : Fin n → Bool) (i : Fin n) : ℕ
Source
Local cycle/chord ownership construction for the OP-874 campaign.
Verified
19 Nov 2026
Axioms
none listed

Lean source view module on GitHub

def cycle_same_bit_degree (n : ℕ) [NeZero n] (b : Fin n → Bool) (i : Fin n) : ℕ := (if b i = b (i-1) then 1 else 0) + (if b i = b (i+1) then 1 else 0)
See it in the graphDiscuss this resultChallenge it