Theorem 1 (proof, first step): the population logistic-regression optimum is the log-density ratio
ProvedNonlinearICAAux.logistic_optimum_is_log_ratioAssume the nonlinear ICA model with auxiliary variables (eqs. (1), (4)), and let and , with an independent copy of , be the two classes of eq. (5). For a measurable regression function let
be the population logistic loss with equal class weights. Then the log-density ratio is measurable and minimises over all measurable , and every measurable minimiser of equals almost everywhere with respect to Lebesgue measure times the law of .
This is the "well-known theory" invoked in the first line of the proof of Theorem 1: logistic regression with infinite data and unrestricted function class converges to the difference of the log-densities of the two classes.
Formalization Note The paper cites this fact (Gutmann and Hyvärinen, 2012) without proof. The two expectations are integrals against the densities and with respect to Lebesgue measure times the law of .
import Mathlib import Definitions.Def_NonlinearICAAux_Basic open MeasureTheory open scoped ENNReal
namespace NonlinearICAAux
theorem logistic_optimum_is_log_ratio {n m : ℕ} (μ : Measure (Fin m → ℝ)) [IsProbabilityMeasure μ]
(q : Fin n → ℝ → (Fin m → ℝ) → ℝ) (f : (Fin n → ℝ) ≃ (Fin n → ℝ))
(hM : IsAuxICAModel μ q f) :
Measurable (fun p : (Fin n → ℝ) × (Fin m → ℝ) => logRatio μ q f p.1 p.2) ∧
(∀ r : (Fin n → ℝ) × (Fin m → ℝ) → ℝ, Measurable r →
logisticLoss μ q f (fun p => logRatio μ q f p.1 p.2) ≤ logisticLoss μ q f r) ∧
(∀ r : (Fin n → ℝ) × (Fin m → ℝ) → ℝ, Measurable r →
(∀ r' : (Fin n → ℝ) × (Fin m → ℝ) → ℝ, Measurable r' →
logisticLoss μ q f r ≤ logisticLoss μ q f r') →
r =ᵐ[(volume : Measure (Fin n → ℝ)).prod μ] fun p => logRatio μ q f p.1 p.2) := by sorry
end NonlinearICAAuxRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Fix natural numbers and , with and the spaces of real - and -tuples. The statement has these data:
- a probability measure on (Borel), the law of the auxiliary variable ;
- functions , written ;
- a bijection with inverse .
Hypothesis. The triple is assumed to satisfy all of the following:
- Both and are maps on all of .
- Each is Borel measurable on .
- For every , the function
is Lebesgue-integrable on , and its Lebesgue integral equals . 4. For every , the function is -integrable.
Derived quantities. For and , let be the absolute Jacobian determinant of at . Define:
The logarithm follows the total-function convention (and for ). So at any with , the value is .
For any function , define the extended-valued loss by
Here is Lebesgue measure on . The integral is a lower (nonnegative) Lebesgue integral: each of the two summands is replaced by wherever it would be negative, and the value is allowed.
Conclusion. The theorem asserts the conjunction of three statements:
- The function is Borel measurable on .
- For every Borel-measurable ,
as an inequality in . 3. For every Borel-measurable that minimises among Borel-measurable functions (that is, for every measurable ), we have almost everywhere with respect to .
Edge cases.
- No finiteness of is asserted. If , then statement 2 forces for every measurable . In that case statement 3 claims that every measurable agrees with almost everywhere.
- If , then is a single point carrying unit mass, the empty sum is , and .
- If , then is the unit mass at the single point of . Then , so wherever .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.