AFTD Auto-Formalizing Theoretical Domains

thermomajorization_sparse_probe_sharp_missed_trace_error

theoremverifiedformalization

For any dimension n ≥ 2 and probe set F ⊆ {1,...,n-1}, the worst-case thermomajorization prefix error missed by F at an unprobed rank j ∈ {1,...,n-1} \ F equals thermomajorization_probe_gap_error a b j where a = max({0} ∪ {k ∈ F : k < j}) and b = min({n} ∪ {k ∈ F : k > j}), and for any probe set with nonempty unprobed set {1,...,n-1} \ F, the global conversion missed error thermomajorization_missed_error n F equals the supremum of thermomajorization_probe_gap_error a b j over all unprobed j.

Statement

theorem thermomajorization_sparse_probe_sharp_missed_trace_error :
    (∀ (n : ℕ) (hn : 2 ≤ n) (F : Finset ℕ) (hF : F ⊆ Finset.Ioo 0 n)
      (j : ℕ) (hj : j ∈ Finset.Ioo 0 n \ F),
      let a := (insert 0 (F.filter (· < j))).max' (Finset.insert_nonempty 0 _)
      let b := (insert n (F.filter (j < ·))).min' (Finset.insert_nonempty n _)
      thermomajorization_pointwise_missed_error n F j =
        thermomajorization_probe_gap_error a b j) ∧
    (∀ (n : ℕ) (hn : 2 ≤ n) (F : Finset ℕ) (hF : F ⊆ Finset.Ioo 0 n)
      (hF_ne : (Finset.Ioo 0 n \ F).Nonempty),
      thermomajorization_missed_error n F =
        ⨆ j ∈ Finset.Ioo 0 n \ F,
          let a := (insert 0 (F.filter (· < j))).max' (Finset.insert_nonempty 0 _)
          let b := (insert n (F.filter (j < ·))).min' (Finset.insert_nonempty n _)
          thermomajorization_probe_gap_error a b j)
Formalizes
arXiv:2610.35433, Population capacity and the geometry of thermomajorization
Verified
17 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 6

Read back from the Lean

The theorem asserts the conjunction of two statements: 1. For every natural number $n \ge 2$, every finite set $F \subseteq \{1, \dots, n - 1\}$, and every $j \in \{1, \dots, n - 1\} \setminus F$, if we define: - $a = \max (\{0\} \cup \{k \in F \mid k < j\})$, and - $b = \min (\{n\} \cup \{k \in F \mid j < k\})$, then the pointwise missed error thermomajorization_pointwise_missed_error n F j is equal to the probe gap error thermomajorization_probe_gap_error a b j. 2. For every natural number $n \ge 2$, every finite set $F \subseteq \{1, \dots, n - 1\}$ such that the set difference $\{1, \dots, n - 1\} \setminus F$ is non-empty, the missed error thermomajorization_missed_error n F is equal to the supremum over all $j \in \{1, \dots, n - 1\} \setminus F$ of thermomajorization_probe_gap_error a b j, where for each $j$: - $a = \max (\{0\} \cup \{k \in F \mid k < j\})$, and - $b = \min (\{n\} \cup \{k \in F \mid j < k\})$.

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 proof splits the theorem into its pointwise and global assertions. The pointwise equality at an unprobed rank j is proved by antisymmetry (le_antisymm) from matching upper and lower bounds (thermomajorization_pointwise_missed_error_le_gap_error and thermomajorization_pointwise_missed_error_ge_gap_error). The global missed error is then rewritten via thermomajorization_missed_error_eq_iSup_pointwise as the supremum of pointwise missed errors, which reduces term-by-term to the same pointwise equality.

  1. For any dimension n ≥ 2, probe set F ⊆ {1, ..., n - 1}, and unprobed rank j ∈ {1, ..., n - 1} \\ F, the pointwise missed error equals the probe gap error.

    We split the conjunction to establish the pointwise formula first (`constructor`). Introducing n, hn (2 ≤ n), F, hF, j, and hj, the equality follows by antisymmetry (`le_antisymm`) from the matching upper bound (`thermomajorization_pointwise_missed_error_le_gap_error`) and lower bound (`thermomajorization_pointwise_missed_error_ge_gap_error`).

    lines 16–20

    uses le_antisymm, thermomajorization_pointwise_missed_error_le_gap_error, thermomajorization_pointwise_missed_error_ge_gap_error

      constructor
      · intro n hn F hF j hj
        exact le_antisymm
          (thermomajorization_pointwise_missed_error_le_gap_error n hn F hF j hj)
          (thermomajorization_pointwise_missed_error_ge_gap_error n hn F hF j hj)
  2. The global missed error formula reduces to showing that each pointwise missed error equals the corresponding probe gap error.

    For the second conjunct, we introduce the parameters n, hn, F, hF, and the nonemptiness hypothesis hF_ne. We rewrite the global missed error as a supremum of pointwise missed errors using `thermomajorization_missed_error_eq_iSup_pointwise`. Applying congruence (`congr`) across the supremum index j and its membership hypothesis reduces the goal to proving equality pointwise for each unprobed rank j.

    lines 21–24

    uses thermomajorization_missed_error_eq_iSup_pointwise

      · intro n hn F hF hF_ne
        rw [thermomajorization_missed_error_eq_iSup_pointwise n hn F hF hF_ne]
        congr 1 with j
        congr 1 with hj
  3. The global missed error equals the supremum of the probe gap errors over all unprobed ranks.

    For each unprobed rank j, the pointwise missed error equals the probe gap error by antisymmetry (`le_antisymm`), combining `thermomajorization_pointwise_missed_error_le_gap_error` and `thermomajorization_pointwise_missed_error_ge_gap_error`.

    lines 25–27

    uses le_antisymm, thermomajorization_pointwise_missed_error_le_gap_error, thermomajorization_pointwise_missed_error_ge_gap_error

        exact le_antisymm
          (thermomajorization_pointwise_missed_error_le_gap_error n hn F hF j hj)
          (thermomajorization_pointwise_missed_error_ge_gap_error n hn F hF j hj)
le_antisymm
In any partial order, if a ≤ b and b ≤ a, then a = b.
thermomajorization_pointwise_missed_error_le_gap_error
For dimension n ≥ 2, probe set F ⊆ {1,...,n-1}, and unprobed rank j, the pointwise missed error at j is at most the probe gap error (j - a)(b - j) / (j(b - a)) defined by the flanking probed ranks a and b.
thermomajorization_pointwise_missed_error_ge_gap_error
For dimension n ≥ 2, probe set F ⊆ {1,...,n-1}, and unprobed rank j, the pointwise missed error at j is at least the probe gap error (j - a)(b - j) / (j(b - a)) defined by the flanking probed ranks a and b.
thermomajorization_missed_error_eq_iSup_pointwise
For dimension n ≥ 2, probe set F ⊆ {1,...,n-1}, and nonempty unprobed set, the global thermomajorization missed error is the supremum of the pointwise missed errors over all unprobed ranks j.

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

/-- Sharp missed trace error for sparse binary probes under thermomajorization at uniform Gibbs weights (OP-1727). -/theorem thermomajorization_sparse_probe_sharp_missed_trace_error :    (∀ (n : ℕ) (hn : 2 ≤ n) (F : Finset ℕ) (hF : F ⊆ Finset.Ioo 0 n)      (j : ℕ) (hj : j ∈ Finset.Ioo 0 n \ F),      let a := (insert 0 (F.filter (· < j))).max' (Finset.insert_nonempty 0 _)      let b := (insert n (F.filter (j < ·))).min' (Finset.insert_nonempty n _)      thermomajorization_pointwise_missed_error n F j =        thermomajorization_probe_gap_error a b j) ∧    (∀ (n : ℕ) (hn : 2 ≤ n) (F : Finset ℕ) (hF : F ⊆ Finset.Ioo 0 n)      (hF_ne : (Finset.Ioo 0 n \ F).Nonempty),      thermomajorization_missed_error n F =        ⨆ j ∈ Finset.Ioo 0 n \ F,          let a := (insert 0 (F.filter (· < j))).max' (Finset.insert_nonempty 0 _)          let b := (insert n (F.filter (j < ·))).min' (Finset.insert_nonempty n _)          thermomajorization_probe_gap_error a b j) := by  constructor  · intro n hn F hF j hj    exact le_antisymm      (thermomajorization_pointwise_missed_error_le_gap_error n hn F hF j hj)      (thermomajorization_pointwise_missed_error_ge_gap_error n hn F hF j hj)  · intro n hn F hF hF_ne    rw [thermomajorization_missed_error_eq_iSup_pointwise n hn F hF hF_ne]    congr 1 with j    congr 1 with hj    exact le_antisymm      (thermomajorization_pointwise_missed_error_le_gap_error n hn F hF j hj)      (thermomajorization_pointwise_missed_error_ge_gap_error n hn F hF j hj)
See it in the graphDiscuss this resultChallenge it