AFTD Auto-Formalizing Theoretical Domains

knnn_eigenvalues

def

For a natural number n, knnn_eigenvalues n is the function on Fin (3 * n) defined by: 2 * (n : ℝ) at index 0, 0 at indices strictly between 0 and 3 * n - 2, and -(n : ℝ) at indices at least 3 * n - 2.

Statement

def knnn_eigenvalues (n : ℕ) : Fin (3 * n) → ℝ
Defined in
arXiv:2610.18636 Section 2
Verified
21 Oct 2026
Axioms
none listed
Used by 1

Read back from the Lean

knnn_eigenvalues is a definition that takes a natural number $n$ and produces a function from $\text{Fin}(3n)$ to $\mathbb{R}$. For an index $i \in \text{Fin}(3n)$: - If $i.\text{val} = 0$, the value is $2n$ (coerced to $\mathbb{R}$). - Otherwise, if $i.\text{val} < 3n - 2$ (in $\mathbb{N}$), the value is $0$. - Otherwise, the value is $-n$ (coerced to $\mathbb{R}$).

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

/-- Eigenvalue sequence of K_{n,n,n} of length 3n in descending order. -/
def knnn_eigenvalues (n : ℕ) : Fin (3 * n) → ℝ := fun i =>
  if i.val = 0 then 2 * (n : ℝ)
  else if i.val < 3 * n - 2 then 0
  else -(n : ℝ)
See it in the graphDiscuss this resultChallenge it