AFTD Auto-Formalizing Theoretical Domains

indicator_types_consecutive

def

For t ∈ Fin 3, the indicator vector indicator_types_consecutive t : Fin 24 → ℝ taking value 1 on edge e : Fin 24 if e.val / 4 equals (2 * t.val + 2) % 6, (2 * t.val + 3) % 6, or (2 * t.val + 4) % 6, and 0 otherwise, indicating edges of consecutive types 2t+2, 2t+3, 2t+4 modulo 6 among the 24 edges of the 6-cycle cluster graph.

Statement

def indicator_types_consecutive (t : Fin 3) : Fin 24 → ℝ
Defined in
arXiv:2611.33631, Section 3
Verified
29 Nov 2026
Axioms
none listed
Used by 3
  • six_cycle_slack_nonneg_rank_boundsThe 24 × 39 six-cycle slack block matrix six_cycle_slack_matrix satisfies HasNonnegFactorization six_cycle_slack_matrix 14, and its…
  • six_cycle_cluster_identityFor every t ∈ Fin 3 and edge e ∈ Fin 24, the indicator vector indicator_types_consecutive t evaluated at e equals indicator_type_even…
  • six_cycle_slack_matrixThe 24 × 39 real slack block matrix six_cycle_slack_matrix : Matrix (Fin 24) (Fin 39) ℝ whose (e, j) entry is indicator_types_consecutive…

Read back from the Lean

The definition indicator_types_consecutive takes an element t : Fin 3 and returns a function from Fin 24 to ℝ. For any e : Fin 24, let j = e.val / 4 (natural number division), and let t0 = (2 * t.val + 2) % 6, t1 = (2 * t.val + 3) % 6, and t2 = (2 * t.val + 4) % 6. The function evaluates to 1 if j = t0 or j = t1 or j = t2, and 0 otherwise.

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

/-- Indicator vector X_t of edges of types 2t+2, 2t+3, 2t+4 mod 6 in the 6-cycle cluster graph. -/
def indicator_types_consecutive (t : Fin 3) : Fin 24 → ℝ := fun e =>
    let j := e.val / 4
    let t0 := (2 * t.val + 2) % 6
    let t1 := (2 * t.val + 3) % 6
    let t2 := (2 * t.val + 4) % 6
    if j = t0 ∨ j = t1 ∨ j = t2 then 1 else 0
See it in the graphDiscuss this resultChallenge it