AFTD Auto-Formalizing Theoretical Domains

geometric_thermo_probe_error

def

For dimension N, parameter q, probe set F : Finset ℕ, and population vectors x, y : Fin N → ℝ, the detected probe error geometric_thermo_probe_error N q F x y is the maximum of the finite set {0} ∪ {geometric_thermo_diff N q x y j : j ∈ F}.

Statement

noncomputable def geometric_thermo_probe_error (N : ℕ) (q : ℝ) (F : Finset ℕ) (x y : Fin N → ℝ) : ℝ
Defined in
arXiv:2610.35433
Verified
27 Nov 2026
Axioms
none listed
Built on 1
  • geometric_thermo_diffFor natural numbers N and j, real number q, and population vectors x and y on Fin N, the thermomajorization prefix difference…
Used by 1
  • geometric_thermo_missed_errorFor dimension N, parameter q, and probe set F : Finset ℕ, the worst-case missed error geometric_thermo_missed_error N q F is the supremum…

Read back from the Lean

The declaration defines geometric_thermo_probe_error, a function that takes a natural number $N$, a real number $q$, a finite set of natural numbers $F$, and two functions $x, y : Fin N → ℝ$, and returns the maximum element of the finite set formed by inserting $0$ into the image of $F$ under geometric_thermo_diff N q x y. That is, it returns $\max(\{0\} \cup \{\text{geometric\_thermo\_diff}(N, q, x, y, j) \mid j \in F\})$.

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

/-- Maximum thermomajorization discrepancy detected by probe set F. -/
noncomputable def geometric_thermo_probe_error (N : ℕ) (q : ℝ) (F : Finset ℕ) (x y : Fin N → ℝ) : ℝ := (insert (0 : ℝ) (F.image (geometric_thermo_diff N q x y))).max' (Finset.insert_nonempty 0 _)
See it in the graphDiscuss this resultChallenge it