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
- spectral_distances_knnn_hn_eigenvaluesLet n >= 2 and let l1, l2, l3 be real numbers such that l1 + l2 + l3 = n, l1 < 2 * n, 0 < l2, and -n < l3. Let Lam = 2 * n - l1. Then 0 <…
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 : ℝ)