AFTD Auto-Formalizing Theoretical Domains

thermomajorization_random_single_probe_sharp_witness_family_two_level

theoremverified

For dimension n = 2 and any probability distribution q ∈ stdSimplex ℝ (Finset.Ioo 0 2), there exist integers a, j, b with a < j ∧ j < b ∧ b ≤ 2 such that the expected missed conversion error thermomajorization_expected_missed_error 2 q (thermomajorization_witness_x 2 a j b) (thermomajorization_witness_y 2 j) equals thermomajorization_random_probe_worst_error 2 q.

Statement

theorem thermomajorization_random_single_probe_sharp_witness_family_two_level :
    ∀ (q : Finset.Ioo 0 2 → ℝ) (hq : q ∈ stdSimplex ℝ (Finset.Ioo 0 2)),
      ∃ a j b, a < j ∧ j < b ∧ b ≤ 2 ∧
        thermomajorization_expected_missed_error 2 q
          (thermomajorization_witness_x 2 a j b) (thermomajorization_witness_y 2 j) =
        thermomajorization_random_probe_worst_error 2 q
Source
OP-2138
Verified
22 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 8
  • 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}…
  • 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…
  • thermomajorization_expected_missed_errorFor dimension n : ℕ, a function q : Finset.Ioo 0 n → ℝ on the subtype of probe ranks, and population vectors x, y : Fin n → ℝ, the…
  • thermomajorization_random_probe_worst_errorFor dimension n : ℕ and a function q : Finset.Ioo 0 n → ℝ on the subtype of probe ranks, the worst-case expected missed conversion error…
  • thermomajorization_diffFor population vectors x and y in ℝⁿ and an index j : ℕ, thermomajorization_diff x y j is the prefix difference ∑_{i < j} (y i - x i)…
  • thermomajorization_probe_errorFor population vectors x, y : Fin n → ℝ and a finite set of probe ranks F : Finset ℕ, the detected conversion error…
  • 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…

Read back from the Lean

For every function q : Finset.Ioo 0 2 → ℝ belonging to the standard simplex over Finset.Ioo 0 2 (which is the singleton {1}, so q(1) = 1), there exist natural numbers a, j, b such that a < j, j < b, b ≤ 2 (which uniquely forces (a, j, b) = (0, 1, 2)), and the expected missed error for dimension n = 2, probe distribution q, and witness vectors x = thermomajorization_witness_x 2 a j b and y = thermomajorization_witness_y 2 j equals the worst-case expected missed error thermomajorization_random_probe_worst_error 2 q (defined as the supremum of the expected missed error over all antitone probability vectors x, y in the standard simplex on Fin 2).

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

In dimension n = 2, the set of allowed intermediate probes is the open interval of integers (0, 2), which contains only the single index 1. Any probability distribution q on this set must place all its weight on 1, so the expected single-probe error coincides with the full probe error and the expected missed error vanishes identically for all vectors. Consequently, the worst-case error is also zero, and setting the witness indices to a = 0, j = 1, b = 2 trivially satisfies the ordering constraints and achieves the equality 0 = 0.

  1. The probability distribution q assigns probability 1 to the unique probe index 1.

    The index set Finset.Ioo 0 2 consists of natural numbers strictly between 0 and 2, which contains only 1. Therefore the universe of this subtype is the singleton {1}. Because q is in the standard simplex, the sum of all its values is 1, which reduces to q(1) = 1.

    lines 8–21

    uses Finset.mem_univ, Finset.mem_singleton, true_iff, Finset.mem_Ioo, Finset.sum_singleton

      intro q hq
      have hq1 : q ⟨1, by decide⟩ = 1 := by
        have hsum : (∑ k : ↥(Finset.Ioo 0 2), q k) = q ⟨1, by decide⟩ := by
          have huniv : (Finset.univ : Finset ↥(Finset.Ioo 0 2)) = {⟨1, by decide⟩} := by
            ext z
            simp only [Finset.mem_univ, Finset.mem_singleton, true_iff]
            obtain ⟨v, hv⟩ := z
            simp only [Finset.mem_Ioo] at hv
            have : v = 1 := by omega
            subst this
            rfl
          rw [huniv, Finset.sum_singleton]
        rw [← hsum]
        exact hq.2
  2. The expected missed conversion error is identically zero for all vectors x and y.

    For any vectors x, y : Fin 2 → ℝ, the full probe error over {1} is max 0 (diff x y 1). Meanwhile, the expected probe error under q is the sum over {1} of q(k) * max 0 (diff x y k), which reduces to q(1) * max 0 (diff x y 1) = max 0 (diff x y 1) since q(1) = 1. The expected missed error is defined as their difference, which cancels to 0.

    lines 22–43

    uses Finset.image_singleton, Finset.max'_insert, Finset.singleton_nonempty, Finset.max'_singleton, Finset.mem_univ, Finset.mem_singleton, true_iff, Finset.mem_Ioo, Finset.sum_singleton, one_mul

      have hconst : ∀ x y : Fin 2 → ℝ, thermomajorization_expected_missed_error 2 q x y = 0 := by
        intro x y
        have hprobe : thermomajorization_probe_error 2 (Finset.Ioo 0 2) x y =
            max 0 (thermomajorization_diff x y 1) := by
          unfold thermomajorization_probe_error
          rw [show (Finset.Ioo 0 2 : Finset ℕ) = {1} from by decide]
          simp only [Finset.image_singleton]
          rw [Finset.max'_insert (H := Finset.singleton_nonempty _), Finset.max'_singleton]
        have hsum2 : (∑ k : ↥(Finset.Ioo 0 2), q k * max 0 (thermomajorization_diff x y (k : ℕ)))
            = max 0 (thermomajorization_diff x y 1) := by
          have huniv : (Finset.univ : Finset ↥(Finset.Ioo 0 2)) = {⟨1, by decide⟩} := by
            ext z
            simp only [Finset.mem_univ, Finset.mem_singleton, true_iff]
            obtain ⟨v, hv⟩ := z
            simp only [Finset.mem_Ioo] at hv
            have : v = 1 := by omega
            subst this
            rfl
          rw [huniv, Finset.sum_singleton, hq1, one_mul]
        unfold thermomajorization_expected_missed_error
        rw [hprobe, hsum2]
        ring
  3. The worst-case random probe error is zero.

    The worst-case random probe error is the supremum of the expected missed error over all pairs of antitone distributions. Since the expected missed error is identically zero for all vectors, this supremum is also 0.

    lines 44–47

      have hworst : thermomajorization_random_probe_worst_error 2 q = 0 := by
        unfold thermomajorization_random_probe_worst_error
        simp only [hconst]
        simp
  4. The witness triple (a, j, b) = (0, 1, 2) satisfies 0 < 1 < 2 ≤ 2 and attains the worst-case error.

    Choosing a = 0, j = 1, and b = 2 satisfies 0 < 1, 1 < 2, and 2 ≤ 2 by elementary arithmetic. Both the expected missed error at these witness vectors and the worst-case error evaluate to 0, establishing their equality.

    lines 48–49

      refine ⟨0, 1, 2, by norm_num, by norm_num, by norm_num, ?_⟩
      rw [hconst, hworst]
Finset.mem_univ
every element of a finite type belongs to its universal finset univ
Finset.mem_singleton
an element belongs to {a} if and only if it equals a
true_iff
the equivalence True ↔ p is logically equivalent to p
Finset.mem_Ioo
an element x belongs to the open interval (a, b) if and only if a < x and x < b
Finset.sum_singleton
the sum of a function over a singleton set {a} equals the value of the function at a
Finset.image_singleton
the image of a singleton {a} under a function f is {f(a)}
Finset.max'_insert
the maximum of insert a s for nonempty s is max a (max' s)
Finset.singleton_nonempty
a singleton set {a} is nonempty
Finset.max'_singleton
the maximum of a singleton set {a} is a
one_mul
one is the left identity for multiplication, 1 * a = a

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 random single probe sharp witness family holds for n = 2. -/theorem thermomajorization_random_single_probe_sharp_witness_family_two_level :    ∀ (q : Finset.Ioo 0 2 → ℝ) (hq : q ∈ stdSimplex ℝ (Finset.Ioo 0 2)),      ∃ a j b, a < j ∧ j < b ∧ b ≤ 2 ∧        thermomajorization_expected_missed_error 2 q          (thermomajorization_witness_x 2 a j b) (thermomajorization_witness_y 2 j) =        thermomajorization_random_probe_worst_error 2 q := by  intro q hq  have hq1 : q ⟨1, by decide⟩ = 1 := by    have hsum : (∑ k : ↥(Finset.Ioo 0 2), q k) = q ⟨1, by decide⟩ := by      have huniv : (Finset.univ : Finset ↥(Finset.Ioo 0 2)) = {⟨1, by decide⟩} := by        ext z        simp only [Finset.mem_univ, Finset.mem_singleton, true_iff]        obtain ⟨v, hv⟩ := z        simp only [Finset.mem_Ioo] at hv        have : v = 1 := by omega        subst this        rfl      rw [huniv, Finset.sum_singleton]    rw [← hsum]    exact hq.2  have hconst : ∀ x y : Fin 2 → ℝ, thermomajorization_expected_missed_error 2 q x y = 0 := by    intro x y    have hprobe : thermomajorization_probe_error 2 (Finset.Ioo 0 2) x y =        max 0 (thermomajorization_diff x y 1) := by      unfold thermomajorization_probe_error      rw [show (Finset.Ioo 0 2 : Finset ℕ) = {1} from by decide]      simp only [Finset.image_singleton]      rw [Finset.max'_insert (H := Finset.singleton_nonempty _), Finset.max'_singleton]    have hsum2 : (∑ k : ↥(Finset.Ioo 0 2), q k * max 0 (thermomajorization_diff x y (k : ℕ)))        = max 0 (thermomajorization_diff x y 1) := by      have huniv : (Finset.univ : Finset ↥(Finset.Ioo 0 2)) = {⟨1, by decide⟩} := by        ext z        simp only [Finset.mem_univ, Finset.mem_singleton, true_iff]        obtain ⟨v, hv⟩ := z        simp only [Finset.mem_Ioo] at hv        have : v = 1 := by omega        subst this        rfl      rw [huniv, Finset.sum_singleton, hq1, one_mul]    unfold thermomajorization_expected_missed_error    rw [hprobe, hsum2]    ring  have hworst : thermomajorization_random_probe_worst_error 2 q = 0 := by    unfold thermomajorization_random_probe_worst_error    simp only [hconst]    simp  refine ⟨0, 1, 2, by norm_num, by norm_num, by norm_num, ?_⟩  rw [hconst, hworst]
See it in the graphDiscuss this resultChallenge it