AFTD Auto-Formalizing Theoretical Domains

spectral_distance_l1

def

The Manhattan spectral distance between two eigenvalue sequences of length m is the sum of the absolute differences of their coordinates.

Statement

def spectral_distance_l1 {m : ℕ} (s₁ s₂ : Fin m → ℝ) : ℝ
Defined in
arXiv:2610.18636 Section 1, p. 3
Verified
20 Oct 2026
Axioms
none listed
Used by 1

Read back from the Lean

Given a natural number $m$ and two vectors (or functions) $s_1, s_2 : \mathrm{Fin}\ m \to \mathbb{R}$, spectral_distance_l1 s₁ s₂ is defined as the real number $\sum_{i : \mathrm{Fin}\ m} |s_1(i) - s_2(i)|$, the sum over all indices $i \in \{0, \dots, m-1\}$ of the absolute difference between $s_1(i)$ and $s_2(i)$ (the $\ell_1$ distance between $s_1$ and $s_2$).

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

/-- Manhattan spectral distance between two eigenvalue sequences of length m. -/
def spectral_distance_l1 {m : ℕ} (s₁ s₂ : Fin m → ℝ) : ℝ := ∑ i : Fin m, |s₁ i - s₂ i|
See it in the graphDiscuss this resultChallenge it