Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

General algorithms and the strong breakdown epsilon (Def. 9.3, (9.5), Def. 9.17)

Definition
ExtendedSmale9_GeneralAlgorithm

by LG · Sep 30, 2026 · Mathlib 777aaa6 (Lean v4.29.0-rc3)

computabilitylinear-programmingsci-hierarchysmale-9th-problem

A computational problem consists of an input set Ω\OmegaΩ, an evaluation family Λ={Λj:Ω→C}j\Lambda = \{\Lambda_j : \Omega\to\mathbb C\}_{j}Λ={Λj​:Ω→C}j​, a metric space MMM, and a (possibly multivalued) solution map Ξ:Ω⇉M\Xi:\Omega\rightrightarrows MΞ:Ω⇉M.

A general algorithm (Definition 9.3) is a map Γ:Ω→M∪{NH}\Gamma:\Omega\to M\cup\{\mathrm{NH}\}Γ:Ω→M∪{NH} together with, for every ι\iotaι, a set ΛΓ(ι)\Lambda_\Gamma(\iota)ΛΓ​(ι) of evaluations such that

  1. ΛΓ(ι)\Lambda_\Gamma(\iota)ΛΓ​(ι) is nonempty, and finite whenever Γ(ι)≠NH\Gamma(\iota)\neq\mathrm{NH}Γ(ι)=NH;
  2. if Λj(ι′)=Λj(ι)\Lambda_j(\iota')=\Lambda_j(\iota)Λj​(ι′)=Λj​(ι) for all j∈ΛΓ(ι)j\in\Lambda_\Gamma(\iota)j∈ΛΓ​(ι), then Γ(ι′)=Γ(ι)\Gamma(\iota')=\Gamma(\iota)Γ(ι′)=Γ(ι);
  3. under the same hypothesis, ΛΓ(ι′)=ΛΓ(ι)\Lambda_\Gamma(\iota')=\Lambda_\Gamma(\iota)ΛΓ​(ι′)=ΛΓ​(ι).

The error is dist⁡(Γ(ι),Ξ(ι))=inf⁡ξ∈Ξ(ι)d(Γ(ι),ξ)∈[0,∞]\operatorname{dist}(\Gamma(\iota),\Xi(\iota)) = \inf_{\xi\in\Xi(\iota)} d(\Gamma(\iota),\xi)\in[0,\infty]dist(Γ(ι),Ξ(ι))=infξ∈Ξ(ι)​d(Γ(ι),ξ)∈[0,∞], where the distance from NH\mathrm{NH}NH to any point is ∞\infty∞ (display (9.5)).

The strong breakdown epsilon (Definition 9.17) is

εBs=sup⁡{ε≥0:∀ Γ ∃ ι∈Ω, dist⁡(Γ(ι),Ξ(ι))>ε}.\varepsilon_B^s = \sup\{\varepsilon\ge0 : \forall\,\Gamma\ \exists\,\iota\in\Omega,\ \operatorname{dist}(\Gamma(\iota),\Xi(\iota))>\varepsilon\}.εBs​=sup{ε≥0:∀Γ ∃ι∈Ω, dist(Γ(ι),Ξ(ι))>ε}.
Definition code
import Mathlib

/-!
# General algorithms and the strong breakdown epsilon

Bastounis–Hansen–Vlačić, *The extended Smale's 9th problem*, §9.2 (Definition 9.3,
display (9.5)) and §9.4 (Definition 9.17).

A computational problem `{Ξ, Ω, M, Λ}` is encoded by
* an input type `Ω`,
* an index type `Idx` and an evaluation family `Λ : Idx → Ω → ℂ`
  (the evaluation set is `{Λ j | j : Idx}`),
* a metric space `M`, and a (multivalued) solution map `Ξ : Ω → Set M`.
-/

open scoped ENNReal

namespace ExtendedSmale9

/-- A general algorithm (Definition 9.3) for a computational problem with evaluation
family `Λ : Idx → Ω → ℂ` and output space `M`.  The output `none` stands for the
non-halting output `NH`; `queried ι` is the set of (indices of) evaluations
`Λ_Γ(ι) ⊆ Λ` used on input `ι`. -/
structure GeneralAlgorithm {Ω Idx : Type*} (Λ : Idx → Ω → ℂ) (M : Type*) where
  /-- The output `Γ(ι) ∈ M ∪ {NH}` (`none` = `NH`). -/
  run : Ω → Option M
  /-- The set of evaluations `Λ_Γ(ι)` read on input `ι`. -/
  queried : Ω → Set Idx
  /-- (i) `Λ_Γ(ι)` is nonempty. -/
  queried_nonempty : ∀ ι, (queried ι).Nonempty
  /-- (i) `Λ_Γ(ι)` is finite whenever `Γ(ι) ≠ NH`. -/
  queried_finite : ∀ ι, run ι ≠ none → (queried ι).Finite
  /-- (ii) the action of `Γ` on `ι` is determined by `{f(ι)}_{f ∈ Λ_Γ(ι)}`. -/
  run_eq_of_agree : ∀ ι ι', (∀ j ∈ queried ι, Λ j ι' = Λ j ι) → run ι' = run ι
  /-- (iii) inputs agreeing on `Λ_Γ(ι)` have the same set of read evaluations. -/
  queried_eq_of_agree : ∀ ι ι', (∀ j ∈ queried ι, Λ j ι' = Λ j ι) → queried ι' = queried ι

/-- The error `dist_M(Γ(ι), Ξ(ι)) = inf_{ξ ∈ Ξ(ι)} d_M(Γ(ι), ξ)`, with the extended metric
(9.5): the distance from `NH` to any point of `M` is `∞`.  The infimum over the empty set
is `∞`. -/
noncomputable def errDist {M : Type*} [PseudoEMetricSpace M] (o : Option M) (S : Set M) :
    ℝ≥0∞ :=
  match o with
  | none => ⊤
  | some x => ⨅ ξ ∈ S, edist x ξ

/-- The strong breakdown epsilon (Definition 9.17):
`ε_B^s = sup {ε ≥ 0 | ∀ general algorithms Γ, ∃ ι ∈ Ω, dist_M(Γ(ι), Ξ(ι)) > ε}`. -/
noncomputable def strongBreakdownEps {Ω Idx M : Type*} [PseudoEMetricSpace M]
    (Λ : Idx → Ω → ℂ) (Ξ : Ω → Set M) : ℝ≥0∞ :=
  sSup {ε : ℝ≥0∞ | ∀ Γ : GeneralAlgorithm Λ M, ∃ ι : Ω, ε < errDist (Γ.run ι) (Ξ ι)}

end ExtendedSmale9

Source
A. Bastounis, A. C. Hansen, V. Vlačić, *The extended Smale's 9th problem — On computational barriers and paradoxes in estimation, regularisation, computer-assisted proofs, and learning* (preprint, 126 pp., version of 28 Jan 2021), §9.2 Definition 9.3 and display (9.5) (p. 21), §9.4 Definition 9.17 (p. 25).
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic) - drafting agent, NON-BLIND

Non-blind read-back. This read-back was written by the same agent that drafted the Lean statements (Aristotle, by Harmonic), with full knowledge of the source paper and of the intended meaning. It is not independent testimony and must not be treated as a blind audit; an independent reviewer should re-derive the meaning from the Lean code.

This file makes three definitions.

General algorithm. Given a type Ω\OmegaΩ of inputs, an index type I\mathcal II, functions Λj:Ω→C\Lambda_j:\Omega\to\mathbb CΛj​:Ω→C (j∈Ij\in\mathcal Ij∈I) and a type MMM, a general algorithm consists of:

  • an output map Ω→M∪{NH}\Omega\to M\cup\{\mathrm{NH}\}Ω→M∪{NH} (NH\mathrm{NH}NH is encoded as "no value");
  • a read-set map Q:Ω→2IQ:\Omega\to2^{\mathcal I}Q:Ω→2I.

These must satisfy the following conditions for all ι,ι′\iota,\iota'ι,ι′:

  1. Q(ι)≠∅Q(\iota)\neq\emptysetQ(ι)=∅;
  2. Q(ι)Q(\iota)Q(ι) is finite whenever the output at ι\iotaι is not NH\mathrm{NH}NH;
  3. if Λj(ι′)=Λj(ι)\Lambda_j(\iota')=\Lambda_j(\iota)Λj​(ι′)=Λj​(ι) for every j∈Q(ι)j\in Q(\iota)j∈Q(ι), then the outputs at ι′\iota'ι′ and ι\iotaι coincide;
  4. under the same hypothesis, Q(ι′)=Q(ι)Q(\iota')=Q(\iota)Q(ι′)=Q(ι).

No measurability, computability or separation condition is imposed.

Error. For an output ooo and a set S⊆MS\subseteq MS⊆M (MMM a pseudo-extended-metric space), the error is ∞\infty∞ if o=NHo=\mathrm{NH}o=NH, and inf⁡ξ∈Sedist⁡(x,ξ)∈[0,∞]\inf_{\xi\in S}\operatorname{edist}(x,\xi)\in[0,\infty]infξ∈S​edist(x,ξ)∈[0,∞] if o=xo=xo=x. The latter equals ∞\infty∞ when S=∅S=\emptysetS=∅.

Strong breakdown epsilon. For Λ\LambdaΛ and Ξ:Ω→2M\Xi:\Omega\to2^MΞ:Ω→2M it is the supremum in [0,∞][0,\infty][0,∞] of all e∈[0,∞]e\in[0,\infty]e∈[0,∞] such that every general algorithm (for Λ\LambdaΛ, with outputs in MMM) has error >e>e>e at some ι∈Ω\iota\in\Omegaι∈Ω. It is 000 if no such eee exists, e.g. if Ω\OmegaΩ is empty.

Human review
  • Endorsed by Shuze Chen · Sep 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by LG · Sep 30, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me