AFTD Auto-Formalizing Theoretical Domains

thermomajorization_witness_y_mem_antitone_stdSimplex

theoremverified

For any dimension n and rank 0 < j ≤ n, the thermomajorization candidate vector witness_y n j is a nonincreasing probability vector in the standard simplex.

Statement

theorem thermomajorization_witness_y_mem_antitone_stdSimplex (n j : ℕ)
    (hj0 : 0 < j) (hjn : j ≤ n) :
    thermomajorization_witness_y n j ∈ stdSimplex ℝ (Fin n) ∧
      Antitone (thermomajorization_witness_y n j)
Source
OP-2138
Verified
22 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3
  • thermomajorization_witness_yFor 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…
  • LinearOrder.toTotalPreorderEvery LinearOrder is a TotalPreorder.
  • TotalPreorderA total preorder: a preorder where ≤ is total (complete). This is weaker than LinearOrder — it does NOT require antisymmetry or…
Used by 1

Read back from the Lean

For all natural numbers $n$ and $j$, if $0 < j$ and $j \le n$, then thermomajorization_witness_y n j is an element of the standard simplex stdSimplex ℝ (Fin n) and is antitone (monotonically non-increasing as a function on Fin n).

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

The proof, explained

The thermomajorization witness vector y assigns 1/j to the first j coordinates and 0 to all remaining coordinates. It belongs to the standard simplex because all entries are nonnegative and, since j ≤ n, the sum of its j non-zero entries is j * (1/j) = 1. It is nonincreasing (antitone) because for any indices i ≤ i', either both lie below j (so y_{i'} = y_i = 1/j) or i' ≥ j (so y_{i'} = 0 ≤ y_i).

  1. Every component of the witness vector is nonnegative: 0 ≤ y_i for all i.

    Unfolding the definition of the witness vector, component y_i equals 1/j if i < j and 0 otherwise. In the first case, 1/j is nonnegative because j > 0 (verified by `positivity`). In the second case, 0 ≤ 0 holds by reflexivity (`le_refl`).

    lines 6–11

    uses thermomajorization_witness_y, le_refl

      have h_nonneg : ∀ i, 0 ≤ thermomajorization_witness_y n j i := by
        intro i
        simp only [thermomajorization_witness_y]
        split_ifs with h
        · positivity
        · exact le_refl 0
  2. The sum of all components of the witness vector equals 1: ∑_{i=0}^{n-1} y_i = 1.

    Unfolding the definition of y, the sum over Fin n is rewritten as a sum over the range {0, ..., n - 1} using `Fin.sum_univ_eq_sum_range`. The sum of the conditional expression is converted to a sum over the filtered set {k < n | k < j} using `Finset.sum_filter`. Since j ≤ n, this filtered range is precisely {0, ..., j - 1} (`Finset.range j`), verified by extensionality and linear arithmetic (`omega`). The sum of the constant 1/j over this set of size j evaluates to j * (1/j), which simplifies to 1 via `field_simp` since j > 0.

    lines 12–21

    uses thermomajorization_witness_y, Fin.sum_univ_eq_sum_range, Finset.sum_filter, Finset.mem_filter, Finset.mem_range, Finset.sum_const, Finset.card_range, nsmul_eq_mul

      have hsum : ∑ i : Fin n, thermomajorization_witness_y n j i = 1 := by
        simp only [thermomajorization_witness_y]
        rw [Fin.sum_univ_eq_sum_range (fun k => if k < j then (1 : ℝ) / j else 0) n]
        rw [← Finset.sum_filter]
        have hfilter : (Finset.range n).filter (fun k => k < j) = Finset.range j := by
          ext k
          simp only [Finset.mem_filter, Finset.mem_range]
          omega
        rw [hfilter, Finset.sum_const, Finset.card_range, nsmul_eq_mul]
        field_simp
  3. The witness vector belongs to the standard simplex, reducing the remaining goal to proving that y is nonincreasing.

    The standard simplex comprises vectors whose coordinates are nonnegative and sum to 1. Combining the nonnegativity hypothesis `h_nonneg` and the unit sum hypothesis `hsum` establishes membership in the standard simplex, leaving only the antitonicity condition to prove.

    line 22

      refine ⟨⟨h_nonneg, hsum⟩, ?_⟩
  4. For indices i ≤ i' with i' < j, the monotonicity condition y_{i'} ≤ y_i holds.

    Given i ≤ i' and i' < j, transitivity (`lt_of_le_of_lt`) ensures that i < j as well. Hence both y_{i'} and y_i equal 1/j, so y_{i'} ≤ y_i holds with equality.

    lines 23–26

    uses lt_of_le_of_lt, thermomajorization_witness_y

      intro i i' hii
      by_cases h1 : (i' : ℕ) < j
      · have h2 : (i : ℕ) < j := lt_of_le_of_lt hii h1
        simp [thermomajorization_witness_y, h1, h2]
  5. For indices i ≤ i' with i' ≥ j, the monotonicity condition y_{i'} ≤ y_i holds.

    When i' ≥ j, definitionally y_{i'} = 0. The goal reduces to showing 0 ≤ y_i. Depending on whether i < j or not, y_i is either 1/j (which is ≥ 0 by `positivity`) or 0 (which is ≥ 0 by `le_refl`), completing the proof that y is antitone.

    lines 27–32

    uses thermomajorization_witness_y, le_refl

      · have h0 : thermomajorization_witness_y n j i' = 0 := by
          simp [thermomajorization_witness_y, h1]
        rw [h0, thermomajorization_witness_y]
        split_ifs with h2
        · positivity
        · exact le_refl 0
thermomajorization_witness_y
The candidate vector y in dimension n, whose i-th coordinate is 1/j if i < j and 0 otherwise.
le_refl
Inequality is reflexive: a ≤ a for every element a in a preorder.
Fin.sum_univ_eq_sum_range
The sum of a function over all elements of Fin n equals the sum over the range {0, ..., n - 1}.
Finset.sum_filter
Summing a conditional expression over a finite set equals summing over the subset of elements satisfying the condition.
Finset.mem_filter
An element belongs to a filtered finite set if and only if it belongs to the base set and satisfies the predicate.
Finset.mem_range
A natural number m belongs to the range {0, ..., n - 1} if and only if m < n.
Finset.sum_const
The sum of a constant value b over a finite set s equals |s| • b.
Finset.card_range
The cardinality of the range {0, ..., n - 1} is n.
nsmul_eq_mul
In a semiring, natural number scalar multiplication n • a equals the product n * a.
lt_of_le_of_lt
Transitivity of weak and strict inequality: if a ≤ b and b < c, then a < c.

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

/-- Thermomajorization witness vector y is a nonincreasing probability vector. -/theorem thermomajorization_witness_y_mem_antitone_stdSimplex (n j : ℕ)    (hj0 : 0 < j) (hjn : j ≤ n) :    thermomajorization_witness_y n j ∈ stdSimplex ℝ (Fin n) ∧      Antitone (thermomajorization_witness_y n j) := by  have h_nonneg : ∀ i, 0 ≤ thermomajorization_witness_y n j i := by    intro i    simp only [thermomajorization_witness_y]    split_ifs with h    · positivity    · exact le_refl 0  have hsum : ∑ i : Fin n, thermomajorization_witness_y n j i = 1 := by    simp only [thermomajorization_witness_y]    rw [Fin.sum_univ_eq_sum_range (fun k => if k < j then (1 : ℝ) / j else 0) n]    rw [← Finset.sum_filter]    have hfilter : (Finset.range n).filter (fun k => k < j) = Finset.range j := by      ext k      simp only [Finset.mem_filter, Finset.mem_range]      omega    rw [hfilter, Finset.sum_const, Finset.card_range, nsmul_eq_mul]    field_simp  refine ⟨⟨h_nonneg, hsum⟩, ?_⟩  intro i i' hii  by_cases h1 : (i' : ℕ) < j  · have h2 : (i : ℕ) < j := lt_of_le_of_lt hii h1    simp [thermomajorization_witness_y, h1, h2]  · have h0 : thermomajorization_witness_y n j i' = 0 := by      simp [thermomajorization_witness_y, h1]    rw [h0, thermomajorization_witness_y]    split_ifs with h2    · positivity    · exact le_refl 0
See it in the graphDiscuss this resultChallenge it