Theorem 3: overlap between ID and OOD breaks the linear condition
ProvedOODLearnable.overlap_breaks_linear_conditionLet , let be a loss with iff , let be a hypothesis space and let be a priori-unknown space. Suppose some has overlap between ID and OOD (Definition 4) and satisfies
Then Condition 1 does not hold in , and OOD detection is not learnable in for .
Formalization Note Definition 4 asks that and uses the Radon-Nikodym derivatives of both and ; the formal definition requires and , which is equivalent when and is what the derivatives need when . 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 overlap_breaks_linear_condition {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)) (h𝒟 : IsPriorUnknown 𝒟) (D : Domain 𝒳 K) (hD : D ∈ 𝒟)
(hov : HasOverlap D) (hin : (⨅ h ∈ H, riskIn ℓ D h) = 0)
(hout : (⨅ h ∈ H, riskOut ℓ D h) = 0) :
¬ LinearCondition ℓ 𝒟 H ∧ ¬ IsLearnable ℓ 𝒟 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 . The feature space is with the σ-algebra it inherits from the Borel σ-algebra of .
Fix , which may be . The full label set is :
- are the in-distribution (ID) labels;
- is the out-of-distribution (OOD) label.
Labels carry the discrete σ-algebra.
Domains. A domain is a triple where:
- is a probability measure on ;
- is a probability measure on ;
- .
The ID marginal is the pushforward of onto . If or , no probability measure on exists. In that case no domain exists, and the theorem holds vacuously.
Risks. For a hypothesis and a loss , all risks are lower Lebesgue integrals taking values in :
For :
The risk of is . An infimum over is taken in , so it equals when .
Hypotheses of the theorem.
- satisfies if and only if .
- is a set of functions , each of which is measurable.
- is a set of domains that is prior-unknown. That is, for every and every , the domain also lies in .
- is a domain that has overlap. This means there is a σ-finite measure on with and , such that
- and .
- These are infima, which need not be attained.
- Together they force .
- They concern only the given ; its own plays no role in them.
Conclusion. Both of the following hold.
(a) The Linear Condition fails for . There exist some and some such that
(b) OOD detection is not learnable in for . An algorithm assigns to each and each sample a function . No measurability of itself is required. Part (b) says there is no pair consisting of an algorithm and a sequence satisfying all of the following:
- for every and every sample . Nothing is required at .
- is non-increasing and .
- For every and every , the map is almost-everywhere measurable with respect to the -fold product measure , and
Here , because a non-increasing sequence tending to is non-negative.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.