thermomajorization_witness_x_mem_antitone_stdSimplex
For any dimension n and integers a < j < b ≤ n, the thermomajorization candidate vector witness_x n a j b is a nonincreasing probability vector in the standard simplex.
Statement
theorem thermomajorization_witness_x_mem_antitone_stdSimplex (n a j b : ℕ)
(ha : a < j) (hj : j < b) (hb : b ≤ n) :
thermomajorization_witness_x n a j b ∈ stdSimplex ℝ (Fin n) ∧
Antitone (thermomajorization_witness_x n a j b)- Source
- OP-2138
- Verified
- 22 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 4
- thermomajorization_witness_xFor dimension n and integers a < j < b ≤ n, the thermomajorization witness vector x is defined by x_i = d₁ * 1_{i < a} + d₂ * 1_{i < b}…
- TotalPreorderA total preorder: a preorder where
≤is total (complete). This is weaker thanLinearOrder— it does NOT require antisymmetry or… - LinearOrder.toTotalPreorderEvery
LinearOrderis aTotalPreorder. - thermomajorization_pointwise_missed_error_ge_gap_errorFor any dimension n ≥ 2, probe set F ⊆ {1,...,n-1}, and unprobed rank j ∈ {1,...,n-1} \ F, the pointwise missed error…
- Used by 1
- thermomajorization_expected_missed_error_le_worst_errorFor any dimension n, function q : Finset.Ioo 0 n → ℝ, and candidate parameters a < j < b ≤ n, the expected missed error…
Read back from the Lean
For all natural numbers $n, a, j, b$, if $a < j$, $j < b$, and $b \le n$, then the function thermomajorization_witness_x n a j b : Fin n → ℝ belongs to the standard simplex stdSimplex ℝ (Fin n) and is antitone (monotonically non-increasing).
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 candidate vector witness_x is defined as a linear combination of two step functions with cutoffs at a and b and weights d₁ = (b - j) / (j * (b - a)) and d₂ = (j - a) / (j * (b - a)). Given a < j < b ≤ n, both weights are strictly positive, ensuring every component is nonnegative. The total sum of the vector evaluates to a * d₁ + b * d₂ = 1 via rational arithmetic and polynomial expansion. Finally, because each step function with nonnegative weight is nonincreasing (antitone), their sum is also antitone, proving that witness_x belongs to the standard simplex and is antitone.
For any k ≤ n and d ∈ ℝ, the sum of the step function taking value d for indices below k and 0 elsewhere over Fin n is k * d.
The sum ∑_{x < n} (if x < k then d else 0) is rewritten via Finset.sum_filter as the sum of the constant d over the subset of indices x ∈ Fin n satisfying x < k. The cardinality of this subset is shown to be k by thermomajorization_pointwise_missed_error_ge_gap_error_card_fin_filter_lt. Summing the constant d over k elements yields k * d via Finset.sum_const and nsmul_eq_mul.
uses
Finset.sum_filter,thermomajorization_pointwise_missed_error_ge_gap_error_card_fin_filter_lt,Finset.sum_const,nsmul_eq_mulrw [← Finset.sum_filter] have hcard : (Finset.filter (fun x : Fin n => (x : ℕ) < k) Finset.univ).card = k := thermomajorization_pointwise_missed_error_ge_gap_error_card_fin_filter_lt n k hk rw [Finset.sum_const, hcard, nsmul_eq_mul]
For any nonnegative height c ≥ 0, the step function i ↦ (if i < k then c else 0) on Fin n is antitone (nonincreasing).
Given x ≤ y in Fin n, we compare the function values at y and x across all cases of whether y < k and x < k. When both or neither satisfy the condition, the values are equal (c ≤ c or 0 ≤ 0 by le_rfl). The case where y < k but x ≥ k is impossible because x ≤ y implies x < k via Fin.le_def.mp and lt_of_le_of_lt. In the remaining case where x < k and y ≥ k, the inequality reduces to 0 ≤ c, which holds by the assumption c ≥ 0.
uses
le_rfl,Fin.le_def.mp,lt_of_le_of_ltintro x y hxy dsimp split_ifs with h1 h2 h3 · exact le_rfl · exfalso have hxy_nat : (x : ℕ) ≤ (y : ℕ) := Fin.le_def.mp hxy exact h2 (lt_of_le_of_lt hxy_nat h1) · exact hc · exact le_rfl
The parameters j, b - j, and b - a are strictly positive in ℝ, the weights d₁ and d₂ are nonnegative, and a ≤ n.
From the integer inequalities a < j < b ≤ n, casting to the real numbers via Nat.cast_lt.mpr yields a < j and j < b. Linear arithmetic confirms that j > 0, b - j > 0, b - a > 0, and a ≤ n. The positivity tactic then deduces that the weights d₁ = (b - j) / (j * (b - a)) and d₂ = (j - a) / (j * (b - a)) are nonnegative, since both their numerators and denominators are products of strictly positive quantities.
uses
Nat.cast_lt.mprhave haR : (a : ℝ) < (j : ℝ) := Nat.cast_lt.mpr ha have hjR : (j : ℝ) < (b : ℝ) := Nat.cast_lt.mpr hj have hj0 : (0 : ℝ) < (j : ℝ) := by linarith have hbj : 0 < (b : ℝ) - (j : ℝ) := by linarith have hba : 0 < (b : ℝ) - (a : ℝ) := by linarith have hd1 : 0 ≤ ((b : ℝ) - (j : ℝ)) / ((j : ℝ) * ((b : ℝ) - (a : ℝ))) := by positivity have hd2 : 0 ≤ ((j : ℝ) - (a : ℝ)) / ((j : ℝ) * ((b : ℝ) - (a : ℝ))) := by positivity have ha_le_n : a ≤ n := by linarith
The goal is decomposed into the three simplex and monotonicity conditions, and each component of the witness vector is shown to be nonnegative.
The goal is split into componentwise nonnegativity, unit total sum, and antitonicity. For an arbitrary index i, unfolding the definition of thermomajorization_witness_x expresses the i-th entry as the sum of two indicator terms. Case analysis on whether i < a and i < b leaves four cases, in each of which the component is a sum of nonnegative terms (d₁, d₂, or 0), verified nonnegative by positivity.
refine ⟨⟨?_, ?_⟩, ?_⟩ · intro i dsimp [thermomajorization_witness_x] split_ifs with h1 h2 · positivity · positivity · positivity · positivity
The components of the witness vector sum to 1.
Unfolding thermomajorization_witness_x, the sum over all coordinates is distributed across addition into two separate sums using Finset.sum_add_distrib. Applying thermomajorization_witness_x_mem_antitone_stdSimplex_sum_ite_lt to each sum evaluates them to a * d₁ and b * d₂. Because j > 0 and b - a > 0, both factors are nonzero by ne_of_gt, and their product is nonzero by mul_ne_zero. Clearing denominators with field_simp reduces the sum to the identity a * (b - j) + b * (j - a) = j * (b - a), which is closed by ring.
uses
Finset.sum_add_distrib,thermomajorization_witness_x_mem_antitone_stdSimplex_sum_ite_lt,ne_of_gt,mul_ne_zero· dsimp [thermomajorization_witness_x] rw [Finset.sum_add_distrib] rw [thermomajorization_witness_x_mem_antitone_stdSimplex_sum_ite_lt n a ha_le_n] rw [thermomajorization_witness_x_mem_antitone_stdSimplex_sum_ite_lt n b hb] have hj_ne : (j : ℝ) ≠ 0 := ne_of_gt hj0 have hba_ne : (b : ℝ) - (a : ℝ) ≠ 0 := ne_of_gt hba have hd_ne : (j : ℝ) * ((b : ℝ) - (a : ℝ)) ≠ 0 := mul_ne_zero hj_ne hba_ne field_simp ring
The witness vector is antitone.
Unfolding thermomajorization_witness_x, the vector is represented as the pointwise sum of two step functions with nonnegative weights d₁ and d₂. Each step function is antitone by thermomajorization_witness_x_mem_antitone_stdSimplex_antitone_ite_lt, and their sum is antitone by Antitone.add.
uses
Antitone.add,thermomajorization_witness_x_mem_antitone_stdSimplex_antitone_ite_lt· dsimp [thermomajorization_witness_x] exact Antitone.add (thermomajorization_witness_x_mem_antitone_stdSimplex_antitone_ite_lt n a _ hd1) (thermomajorization_witness_x_mem_antitone_stdSimplex_antitone_ite_lt n b _ hd2)
Finset.sum_filter- Filtering a sum over a finite set by a predicate is equivalent to summing an if-then-else function taking value 0 when the condition fails.
thermomajorization_pointwise_missed_error_ge_gap_error_card_fin_filter_lt- For j ≤ n, the cardinality of the set of elements in Fin n strictly less than j is j.
Finset.sum_const- The sum of a constant value over a finite set equals the cardinality of the set scalar-multiplied by that constant.
nsmul_eq_mul- Scalar multiplication of a value by a natural number equals the product with that natural number cast into the semiring.
le_rfl- Every element in a preorder is less than or equal to itself.
Fin.le_def.mp- The inequality x ≤ y between elements of Fin n implies the inequality x ≤ y between their underlying natural numbers.
lt_of_le_of_lt- If a ≤ b and b < c, then a < c.
Nat.cast_lt.mpr- Strict inequality between natural numbers is preserved when casting to real numbers.
Finset.sum_add_distrib- The sum of a sum of functions over a finite set equals the sum of the two individual sums.
thermomajorization_witness_x_mem_antitone_stdSimplex_sum_ite_lt- The sum over Fin n of a step function with cutoff k ≤ n and constant value d equals k * d.
ne_of_gt- If b < a, then a ≠ b.
mul_ne_zero- The product of two nonzero elements in a ring with no zero divisors is nonzero.
Antitone.add- The pointwise sum of two antitone (nonincreasing) functions is antitone.
thermomajorization_witness_x_mem_antitone_stdSimplex_antitone_ite_lt- A step function taking a nonnegative constant value c for indices below k and 0 elsewhere is antitone.
- The Lean proof precedes the main theorem with two helper lemmas: one establishing that the sum of a step function over Fin n with cutoff k ≤ n equals k times the step height, and one establishing that any step function with nonnegative height is antitone.
- Verification of the unit sum identity uses field_simp and ring to clear denominators and verify polynomial equality once the denominators are shown to be nonzero.
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
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
lemma thermomajorization_witness_x_mem_antitone_stdSimplex_sum_ite_lt (n k : ℕ) (hk : k ≤ n) (d : ℝ) : (∑ x : Fin n, (if (x : ℕ) < k then d else 0)) = (k : ℝ) * d := by rw [← Finset.sum_filter] have hcard : (Finset.filter (fun x : Fin n => (x : ℕ) < k) Finset.univ).card = k := thermomajorization_pointwise_missed_error_ge_gap_error_card_fin_filter_lt n k hk rw [Finset.sum_const, hcard, nsmul_eq_mul]lemma thermomajorization_witness_x_mem_antitone_stdSimplex_antitone_ite_lt (n k : ℕ) (c : ℝ) (hc : 0 ≤ c) : Antitone (fun (i : Fin n) => if (i : ℕ) < k then c else 0) := by intro x y hxy dsimp split_ifs with h1 h2 h3 · exact le_rfl · exfalso have hxy_nat : (x : ℕ) ≤ (y : ℕ) := Fin.le_def.mp hxy exact h2 (lt_of_le_of_lt hxy_nat h1) · exact hc · exact le_rfl/-- Thermomajorization witness vector x is a nonincreasing probability vector. -/theorem thermomajorization_witness_x_mem_antitone_stdSimplex (n a j b : ℕ) (ha : a < j) (hj : j < b) (hb : b ≤ n) : thermomajorization_witness_x n a j b ∈ stdSimplex ℝ (Fin n) ∧ Antitone (thermomajorization_witness_x n a j b) := by have haR : (a : ℝ) < (j : ℝ) := Nat.cast_lt.mpr ha have hjR : (j : ℝ) < (b : ℝ) := Nat.cast_lt.mpr hj have hj0 : (0 : ℝ) < (j : ℝ) := by linarith have hbj : 0 < (b : ℝ) - (j : ℝ) := by linarith have hba : 0 < (b : ℝ) - (a : ℝ) := by linarith have hd1 : 0 ≤ ((b : ℝ) - (j : ℝ)) / ((j : ℝ) * ((b : ℝ) - (a : ℝ))) := by positivity have hd2 : 0 ≤ ((j : ℝ) - (a : ℝ)) / ((j : ℝ) * ((b : ℝ) - (a : ℝ))) := by positivity have ha_le_n : a ≤ n := by linarith refine ⟨⟨?_, ?_⟩, ?_⟩ · intro i dsimp [thermomajorization_witness_x] split_ifs with h1 h2 · positivity · positivity · positivity · positivity · dsimp [thermomajorization_witness_x] rw [Finset.sum_add_distrib] rw [thermomajorization_witness_x_mem_antitone_stdSimplex_sum_ite_lt n a ha_le_n] rw [thermomajorization_witness_x_mem_antitone_stdSimplex_sum_ite_lt n b hb] have hj_ne : (j : ℝ) ≠ 0 := ne_of_gt hj0 have hba_ne : (b : ℝ) - (a : ℝ) ≠ 0 := ne_of_gt hba have hd_ne : (j : ℝ) * ((b : ℝ) - (a : ℝ)) ≠ 0 := mul_ne_zero hj_ne hba_ne field_simp ring · dsimp [thermomajorization_witness_x] exact Antitone.add (thermomajorization_witness_x_mem_antitone_stdSimplex_antitone_ite_lt n a _ hd1) (thermomajorization_witness_x_mem_antitone_stdSimplex_antitone_ite_lt n b _ hd2)