AFTD Auto-Formalizing Theoretical Domains

thermomajorization_witness_y

def

For dimension n and rank j, the thermomajorization witness vector y is the uniform distribution on the prefix of length j: y_i = 1 / j for i < j, and 0 otherwise.

Statement

noncomputable def thermomajorization_witness_y (n : ℕ) (j : ℕ) : Fin n → ℝ
Defined in
OP-2138
Verified
22 Nov 2026
Axioms
none listed
Used by 4

Read back from the Lean

The definition thermomajorization_witness_y takes two natural numbers n and j, and produces a function from Fin n to ℝ (a real vector of dimension n). For each index i : Fin n, the function evaluates to (1 : ℝ) / (j : ℝ) if (i : ℕ) < j, 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

/-- Thermomajorization candidate witness vector y for rank j <= n. -/
noncomputable def thermomajorization_witness_y (n : ℕ) (j : ℕ) : Fin n → ℝ :=
  fun i => if (i : ℕ) < j then (1 : ℝ) / (j : ℝ) else 0
See it in the graphDiscuss this resultChallenge it