General algorithms and the strong breakdown epsilon (Def. 9.3, (9.5), Def. 9.17)
DefinitionExtendedSmale9_GeneralAlgorithmA computational problem consists of an input set , an evaluation family , a metric space , and a (possibly multivalued) solution map .
A general algorithm (Definition 9.3) is a map together with, for every , a set of evaluations such that
- is nonempty, and finite whenever ;
- if for all , then ;
- under the same hypothesis, .
The error is , where the distance from to any point is (display (9.5)).
The strong breakdown epsilon (Definition 9.17) is
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
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 of inputs, an index type , functions () and a type , a general algorithm consists of:
- an output map ( is encoded as "no value");
- a read-set map .
These must satisfy the following conditions for all :
- ;
- is finite whenever the output at is not ;
- if for every , then the outputs at and coincide;
- under the same hypothesis, .
No measurability, computability or separation condition is imposed.
Error. For an output and a set ( a pseudo-extended-metric space), the error is if , and if . The latter equals when .
Strong breakdown epsilon. For and it is the supremum in of all such that every general algorithm (for , with outputs in ) has error at some . It is if no such exists, e.g. if is empty.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.