Theorem 4: impossibility theorem for the total space
ProvedOODLearnable.impossibility_total_spaceLet , let be a loss with iff , and let be a hypothesis space. Let map the ID labels to and the OOD label to . If
then OOD detection is not learnable in the total space (all domains) for .
Formalization Note is the cardinality in of the set . 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).
import Mathlib import Definitions.Def_OODLearnable_Basic open MeasureTheory Filter Topology open scoped ENNReal NNReal
namespace OODLearnable
theorem impossibility_total_space {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)
(hφ : 1 < (phiComp H).encard) :
¬ IsLearnable ℓ (totalSpace : Set (Domain 𝒳 K)) H := by sorry
end OODLearnableRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix natural numbers and , and an arbitrary subset . Here is Euclidean space with its Borel -algebra, and carries the trace -algebra . itself is not assumed to be Borel, nonempty, or anything else.
The label set is with the discrete -algebra:
- labels are the in-distribution (ID) labels;
- label is the out-of-distribution (OOD) label.
Hypotheses.
- A loss (finite, nonnegative real values) such that, for all labels ,
-
A set of functions , every one of which is measurable.
-
Let send to and every other label to . The class
of binary functions on must contain strictly more than one distinct function. That is, there are and a point where one of equals and the other does not.
This hypothesis can only hold when and :
- if , every hypothesis outputs only label , so has at most one element;
- if , there is only one function on .
Domains and risks. A domain is a triple where:
- is any probability measure on ;
- is any probability measure on ;
- .
The total space is the set of all such triples, with no further restriction. For a hypothesis , define in :
These are lower (nonnegative extended) integrals, and no measurability of is required for them to be defined.
An algorithm assigns, to every and every sample , a function . No measurability or other regularity of is assumed. The sample law is the -fold product of : an i.i.d. sample drawn from the ID part only, with no OOD data.
Conclusion. OOD detection is not learnable in for . That is, there do not exist an algorithm and a real sequence satisfying all of the following simultaneously:
- for every and every sample of size , ;
- is non-increasing and as ;
- for every domain and every :
- the map is almost-everywhere measurable with respect to ; and
- the following holds:
where the integral is a lower integral in , the infimum is taken in , and over an empty would be .
Note that a non-increasing sequence tending to is automatically , so .
Nothing is required of (sample size ).
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.