AFTD Auto-Formalizing Theoretical Domains

metric_distortion_1d_ratio

def

For natural numbers n1 and n2, metric_distortion_1d_ratio n1 n2 is the real number ((n1 : ℝ) + 2 * (n2 : ℝ)) / (n1 : ℝ).

Statement

noncomputable def metric_distortion_1d_ratio (n₁ n₂ : ℕ) : ℝ
Defined in
arXiv:2610.26535 Lemma 5, Equation (1)
Verified
22 Oct 2026
Axioms
none listed
Used by 1

Read back from the Lean

A definition taking two natural numbers n₁ and n₂, and returning the real number ((n₁ : ℝ) + 2 * (n₂ : ℝ)) / (n₁ : ℝ).

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

/-- The distortion ratio expression ((n1 : ℝ) + 2 * (n2 : ℝ)) / (n1 : ℝ) for voter counts n1 and n2. -/
noncomputable def metric_distortion_1d_ratio (n₁ n₂ : ℕ) : ℝ :=
  ((n₁ : ℝ) + 2 * (n₂ : ℝ)) / (n₁ : ℝ)
See it in the graphDiscuss this resultChallenge it