Theorem 10 (as proved): risk of the landmark embedding of an approximate solution
ProvedMultiViewRedundancy.error_landmark_embeddingAssume almost surely, valued in a standard Borel space and . Let be a common upper bound, -almost everywhere, of and of for a measurable with finite . Let and with i.i.d. copies of . Let , , and . With probability at least ,
The downstream risk of the landmark embedding of an imperfect contrastive solution degrades smoothly with its excess contrastive loss.
Formalization Note The paper uses the block size . Its proof splits the landmarks into disjoint blocks and needs at least of them. That number can be smaller, for example and give one block, so the statement is the one the proof establishes, with block size . The two coincide when is an integer. "With probability at least " is written as: the set of landmark tuples for which the conclusion fails has (outer) probability at most . The paper's is replaced by any almost-everywhere upper bound of and , which is all the proof uses; is a special case. Finiteness of is a hypothesis (otherwise the bound is infinite). is written in the equal form . The paper's is a typo for .
import Mathlib import Definitions.Def_MultiViewRedundancy_Basic open MeasureTheory ProbabilityTheory open scoped ENNReal NNReal
namespace MultiViewRedundancy
theorem error_landmark_embedding {X Z : Type*} [MeasurableSpace X] [MeasurableSpace Z]
[StandardBorelSpace Z] [Nonempty Z]
(ρ : Measure (X × Z × ℝ)) [IsProbabilityMeasure ρ] (hY : ∀ᵐ t ∂ρ, |t.2.2| ≤ 1)
(hac : lawXZ ρ ≪ (lawXZ ρ).fst.prod (lawXZ ρ).snd)
(f : X → Z → ℝ) (hf : Measurable (Function.uncurry f)) (G : ℝ)
(hGs : ∀ᵐ p ∂(lawXZ ρ).fst.prod (lawXZ ρ).snd, densityRatio (lawXZ ρ) p.1 p.2 ≤ G)
(hGf : ∀ᵐ p ∂(lawXZ ρ).fst.prod (lawXZ ρ).snd, Real.exp (f p.1 p.2) ≤ G)
(hint : Integrable (fun t => Real.log (1 + Real.exp (-(t.2.2 * f t.1 t.2.1))))
(contrastDist (lawXZ ρ)))
(δ : ℝ) (hδ0 : 0 < δ) (hδ1 : δ < 1) (m : ℕ) (hm : ⌈Real.logb 2 (1 / δ)⌉₊ ≤ m) :
Measure.pi (fun _ : Fin m => (lawXZ ρ).snd)
{zs | ¬ risk ρ (landmarkEmbedding (fun x z => Real.exp (f x z)) zs) ≤
ENNReal.ofReal (2 * epsLm ρ ⌊(m : ℝ) / ⌈Real.logb 2 (1 / δ)⌉₊⌋₊ +
4 * (1 + G) ^ 2 * Real.sqrt (2 * epsOptLm (lawXZ ρ) f *
epsLm ρ ⌊(m : ℝ) / ⌈Real.logb 2 (1 / δ)⌉₊⌋₊) +
16 * (1 + G) ^ 4 * epsOptLm (lawXZ ρ) f)} ≤ ENNReal.ofReal δ := by sorry
end MultiViewRedundancyRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let and be measurable spaces. is arbitrary, and is a nonempty standard Borel space. Let be a probability measure on , the law of a triple .
Derived distributions.
- is the pushforward of under .
- and are the two marginals of .
- is the product of these marginals.
Density ratio. is the real part of a fixed version of the Radon–Nikodym derivative . Its values lie in , and the value , if it occurs, is replaced by .
Conditional means. These are defined from fixed versions of the disintegration (conditional) kernels chosen by the library.
- is the integral of against the conditional law of given . That law comes from the pushforward of to .
- is the integral of against the conditional law of given . That law comes from disintegrating .
- Any integral of a non-integrable function is taken to be .
Hypotheses.
- holds -almost surely.
- is absolutely continuous with respect to .
- is jointly measurable.
- is a real number, not assumed positive, such that both of the following hold -almost everywhere:
- The function is integrable with respect to the contrastive distribution
- is a real number with .
- is a natural number with . Since , we have , and therefore .
Block size. Set
which is a natural number with .
Landmark error term. Define
Here is the variance, as an element of , of under . If , it is converted to the real number .
Optimization error term. Define
where
In , the convention is used, so points where contribute . The quantity is not assumed to be nonnegative.
Landmark embedding and risk. For a tuple of landmarks , define the embedding by
Its risk is the infimum over of the lower Lebesgue integral, with values in , of the squared error:
Bound. Define the real number
Here the square root of a negative number is . is then mapped into , with negative values becoming .
Conclusion. Under all of the above hypotheses, the theorem asserts the following. Draw i.i.d. from , that is, from the product measure on . The set of tuples for which fails has -measure at most . This is outer measure if the set is not measurable:
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.