Theorem 1: learnability in priori-unknown spaces
ProvedOODLearnable.prior_unknown_learnability_equivalenceLet , let be a loss on with iff , let be a hypothesis space, and let be any set of domains. Put
Then:
- is a priori-unknown space and ;
- if is a priori-unknown space, OOD detection is learnable in for (Definition 1) if and only if it is strongly learnable in for (Definition 2);
- OOD detection is strongly learnable in for if and only if it is learnable in for .
The theorem reduces the study of strong learnability, which controls every mixing weight at once, to plain learnability in priori-unknown spaces.
Formalization Note The feature space is with the Borel structure; every hypothesis in is assumed measurable (the paper's implicit convention, needed for the risks to be defined). Domains are triples ; learnability requires the expected risks to be defined (a.e.-measurable integrands).
import Mathlib import Definitions.Def_OODLearnable_Basic open MeasureTheory Filter Topology open scoped ENNReal NNReal
namespace OODLearnable
theorem prior_unknown_learnability_equivalence {dim : ℕ} {𝒳 : Set (EuclideanSpace ℝ (Fin dim))}
{K : ℕ} (ℓ : Fin (K + 1) → Fin (K + 1) → ℝ≥0) (hℓ : IsOODLoss ℓ)
(H : Set (𝒳 → Fin (K + 1))) (hHmeas : ∀ h ∈ H, Measurable h) (𝒟 : Set (Domain 𝒳 K)) :
(IsPriorUnknown (priorClosure 𝒟) ∧ 𝒟 ⊆ priorClosure 𝒟) ∧
(IsPriorUnknown 𝒟 → (IsLearnable ℓ 𝒟 H ↔ IsStronglyLearnable ℓ 𝒟 H)) ∧
(IsStronglyLearnable ℓ 𝒟 H ↔ IsLearnable ℓ (priorClosure 𝒟) H) := by sorry
end OODLearnableRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix a dimension and an arbitrary subset (Euclidean space). The feature space is itself, with the σ-algebra induced from the Borel σ-algebra of . may be empty, and may be .
Fix ; is allowed. The label set is , where:
- are the in-distribution (ID) labels;
- is the out-of-distribution (OOD) label.
Hypotheses.
- Loss. satisfies . No other property (symmetry, boundedness beyond finiteness, etc.) is assumed.
- Hypothesis space. is a set of functions , each of which is measurable: every level set is measurable. may be empty.
- Domain space. is an arbitrary set of domains.
Domains. A domain is a triple consisting of:
- a probability measure on ;
- a probability measure on ;
- a number .
If or , no domain exists, and every statement below about domains holds vacuously.
For , the domain is with replaced by ; the two measures are unchanged.
Risks. All risks take values in and are Lebesgue integrals:
For real , the -risk is
where . The risk is .
Algorithms. An algorithm assigns to every and every sample a function . No measurability or other regularity of is required. The sample sees only ID-labelled points.
Write for the -fold product measure of . This is the law of the sample, and it does not depend on .
Learnable. OOD detection is learnable in for if there exist an algorithm and a real sequence such that all of the following hold:
- for all and all samples ;
- is non-increasing and (hence );
- for every and every :
- the map is almost-everywhere measurable with respect to , and
The infimum is taken in ; it equals when . Nothing is required at .
Strongly learnable. OOD detection is strongly learnable in for if there exist a single and a single satisfying the same first two conditions, such that for every , every in the closed interval , and every :
- is a.e.-measurable, and
Prior-unknown spaces and prior closure. A set is prior-unknown if whenever and . The prior closure of is
Conclusion. Under the hypotheses above, all three of the following hold simultaneously.
- is prior-unknown, and .
- If is prior-unknown, then OOD detection is learnable in for if and only if it is strongly learnable in for .
- With no assumption on , OOD detection is strongly learnable in for if and only if it is learnable in for .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.