Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Supplementary D: Theorem 1 under the Alternative Assumption of Variability

Proved
NonlinearICAAux.identifiability_alternative_variability

by Xeroth · Nov 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

contrastive-learningexponential-familyidentifiabilitynonlinear-ica

Assume the hypotheses of Theorem 1 with two changes: each qi(s,u)q_i(s,\mathbf u)qi​(s,u) is three times continuously differentiable jointly in (s,u)∈R×Rm(s,\mathbf u)\in\mathbb R\times\mathbb R^m(s,u)∈R×Rm (the auxiliary variable is continuous-valued), and the Assumption of Variability is replaced by the Alternative Assumption of Variability: for every y∈Rn\mathbf y\in\mathbb R^ny∈Rn there are an index jjj and 2n2n2n values u1,…,u2n\mathbf u_1,\dots,\mathbf u_{2n}u1​,…,u2n​ such that the vectors w~(y,ul)\tilde{\mathbf w}(\mathbf y,\mathbf u_l)w~(y,ul​),

w~(y,u)=(∂2q1(y1,u)∂y1∂uj,…,∂2qn(yn,u)∂yn∂uj,∂3q1(y1,u)∂y12∂uj,…,∂3qn(yn,u)∂yn2∂uj),\tilde{\mathbf w}(\mathbf y,\mathbf u)=\Big(\frac{\partial^2q_1(y_1,\mathbf u)}{\partial y_1\partial u_j},\dots,\frac{\partial^2q_n(y_n,\mathbf u)}{\partial y_n\partial u_j},\frac{\partial^3q_1(y_1,\mathbf u)}{\partial y_1^2\partial u_j},\dots,\frac{\partial^3q_n(y_n,\mathbf u)}{\partial y_n^2\partial u_j}\Big),w~(y,u)=(∂y1​∂uj​∂2q1​(y1​,u)​,…,∂yn​∂uj​∂2qn​(yn​,u)​,∂y12​∂uj​∂3q1​(y1​,u)​,…,∂yn2​∂uj​∂3qn​(yn​,u)​),

are linearly independent. If h\mathbf hh is a C2C^2C2 diffeomorphism and ∑iψi(hi(x),u)=log⁡p(x∣u)−log⁡p(x)\sum_i\psi_i(h_i(\mathbf x),\mathbf u)=\log p(\mathbf x\mid\mathbf u)-\log p(\mathbf x)∑i​ψi​(hi​(x),u)=logp(x∣u)−logp(x) for all x,u\mathbf x,\mathbf ux,u, then there are a permutation σ\sigmaσ and bijections φi\varphi_iφi​ with

hi(x)=φi(sσ(i))for all x and i.h_i(\mathbf x)=\varphi_i\big(s_{\sigma(i)}\big)\qquad\text{for all }\mathbf x\text{ and }i.hi​(x)=φi​(sσ(i)​)for all x and i.

Formalization Note The paper states "Theorem 1 holds with this alternative assumption as well". Joint C3C^3C3 smoothness is the regularity under which the mixed derivatives in w~\tilde{\mathbf w}w~ exist and the paper's differentiation in uju_juj​ is valid. The paper's wording does not say "for any y\mathbf yy"; the quantifier is taken from the original Assumption of Variability, which the proof requires at every point. The index jjj may depend on y\mathbf yy.

Preamble
import Mathlib
import Definitions.Def_NonlinearICAAux_Basic

open MeasureTheory
open scoped ENNReal
Formal statement
namespace NonlinearICAAux

theorem identifiability_alternative_variability {n m : ℕ} (μ : Measure (Fin m → ℝ))
    [IsProbabilityMeasure μ] (q : Fin n → ℝ → (Fin m → ℝ) → ℝ) (f : (Fin n → ℝ) ≃ (Fin n → ℝ))
    (hM : IsAuxICAModel μ q f)
    (hq : ∀ i, ContDiff ℝ 3 (fun p : ℝ × (Fin m → ℝ) => q i p.1 p.2))
    (hvar : AltVariability q)
    (h : (Fin n → ℝ) ≃ (Fin n → ℝ)) (hh : IsC2Diffeo h) (ψ : Fin n → ℝ → (Fin m → ℝ) → ℝ)
    (hopt : ∀ x u, regFun ψ h x u = logRatio μ q f x u) :
    ∃ σ : Equiv.Perm (Fin n), ∃ φ : Fin n → ℝ → ℝ, (∀ i, Function.Bijective (φ i)) ∧
      ∀ x i, h x i = φ i (f.symm x (σ i)) := by sorry

end NonlinearICAAux
Source
Hyvärinen, Sasaki and Turner, Nonlinear ICA Using Auxiliary Variables and Generalized Contrastive Learning, arXiv:1805.08651v3 (AISTATS 2019), Supplementary D, eqs. (41)-(42), p. 13; Theorem 1, Section 4.2, pp. 4-5
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting. Let n,m≥0n, m \ge 0n,m≥0 be natural numbers. Write Rn\mathbb{R}^nRn for the source/observation space and Rm\mathbb{R}^mRm for the auxiliary-variable space. The data are:

  • a probability measure μ\muμ on Rm\mathbb{R}^mRm, the law of the auxiliary variable uuu;
  • for each i∈{1,…,n}i \in \{1,\dots,n\}i∈{1,…,n}, a function qi:R×Rm→Rq_i : \mathbb{R} \times \mathbb{R}^m \to \mathbb{R}qi​:R×Rm→R;
  • a bijection f:Rn→Rnf : \mathbb{R}^n \to \mathbb{R}^nf:Rn→Rn with inverse g=f−1g = f^{-1}g=f−1;
  • a second bijection h:Rn→Rnh : \mathbb{R}^n \to \mathbb{R}^nh:Rn→Rn with components h1,…,hnh_1,\dots,h_nh1​,…,hn​;
  • for each iii, a function ψi:R×Rm→R\psi_i : \mathbb{R} \times \mathbb{R}^m \to \mathbb{R}ψi​:R×Rm→R. No measurability, continuity or other regularity is assumed for the ψi\psi_iψi​.

Hypotheses.

  1. Model assumptions.
    • fff and f−1f^{-1}f−1 are both C2C^2C2 on Rn\mathbb{R}^nRn.
    • Each (s,u)↦qi(s,u)(s,u) \mapsto q_i(s,u)(s,u)↦qi​(s,u) is jointly measurable.
    • For every u∈Rmu \in \mathbb{R}^mu∈Rm, the function
s↦exp⁡(∑i=1nqi(si,u))s \mapsto \exp\Big(\sum_{i=1}^n q_i(s_i,u)\Big)s↦exp(i=1∑n​qi​(si​,u))
 is Lebesgue-integrable on $\mathbb{R}^n$, with integral exactly $1$.
  • For every s∈Rns \in \mathbb{R}^ns∈Rn, the function u↦exp⁡(∑iqi(si,u))u \mapsto \exp\big(\sum_i q_i(s_i,u)\big)u↦exp(∑i​qi​(si​,u)) is μ\muμ-integrable.
  1. Smoothness of qqq. Each (s,u)↦qi(s,u)(s,u) \mapsto q_i(s,u)(s,u)↦qi​(s,u) is C3C^3C3 on R×Rm\mathbb{R}\times\mathbb{R}^mR×Rm.

  2. Alternative Assumption of Variability. For every y∈Rny \in \mathbb{R}^ny∈Rn there exist an index j∈{1,…,m}j \in \{1,\dots,m\}j∈{1,…,m} and 2n2n2n points u1,…,u2n∈Rmu_1,\dots,u_{2n} \in \mathbb{R}^mu1​,…,u2n​∈Rm such that the 2n2n2n vectors w~(y,u1),…,w~(y,u2n)\tilde w(y,u_1),\dots,\tilde w(y,u_{2n})w~(y,u1​),…,w~(y,u2n​) in R2n\mathbb{R}^{2n}R2n are linearly independent. Here

w~(y,u)=(∂2q1∂s ∂uj(y1,u),…,∂2qn∂s ∂uj(yn,u), ∂3q1∂s2 ∂uj(y1,u),…,∂3qn∂s2 ∂uj(yn,u)).\tilde w(y,u) = \Big( \tfrac{\partial^2 q_1}{\partial s\,\partial u_j}(y_1,u),\dots,\tfrac{\partial^2 q_n}{\partial s\,\partial u_j}(y_n,u),\ \tfrac{\partial^3 q_1}{\partial s^2\,\partial u_j}(y_1,u),\dots,\tfrac{\partial^3 q_n}{\partial s^2\,\partial u_j}(y_n,u)\Big).w~(y,u)=(∂s∂uj​∂2q1​​(y1​,u),…,∂s∂uj​∂2qn​​(yn​,u), ∂s2∂uj​∂3q1​​(y1​,u),…,∂s2∂uj​∂3qn​​(yn​,u)).

These are derivatives in the single coordinate uju_juj​ of ∂sqi\partial_s q_i∂s​qi​ and ∂s2qi\partial_s^2 q_i∂s2​qi​, evaluated at s=yis = y_is=yi​. The index jjj and the points ulu_lul​ may depend on yyy.

When m=0m = 0m=0 no index jjj exists, so this hypothesis cannot be satisfied and the theorem is vacuous. When n=0n = 0n=0 (and m≥1m \ge 1m≥1), the family is empty and the condition holds trivially.

  1. Second map. hhh and h−1h^{-1}h−1 are both C2C^2C2.

  2. Pointwise identity. For every x∈Rnx \in \mathbb{R}^nx∈Rn and every u∈Rmu \in \mathbb{R}^mu∈Rm (not merely almost everywhere),

∑i=1nψi(hi(x),u)=log⁡p(x∣u)−log⁡p(x).\sum_{i=1}^n \psi_i\big(h_i(x),u\big) = \log p(x\mid u) - \log p(x).i=1∑n​ψi​(hi​(x),u)=logp(x∣u)−logp(x).

The two terms on the right are defined with J(x)=∣det⁡Dg(x)∣J(x) = \big|\det Dg(x)\big|J(x)=​detDg(x)​, the absolute Jacobian determinant of g=f−1g = f^{-1}g=f−1:

p(x∣u)=exp⁡(∑iqi(g(x)i,u)) J(x),p(x\mid u) = \exp\Big(\sum_i q_i\big(g(x)_i,u\big)\Big)\, J(x),p(x∣u)=exp(i∑​qi​(g(x)i​,u))J(x), p(x)=(∫Rmexp⁡(∑iqi(g(x)i,u′)) dμ(u′)) J(x).p(x) = \Big(\int_{\mathbb{R}^m} \exp\Big(\sum_i q_i\big(g(x)_i,u'\big)\Big)\, d\mu(u')\Big)\, J(x).p(x)=(∫Rm​exp(i∑​qi​(g(x)i​,u′))dμ(u′))J(x).

Here log⁡\loglog is the real logarithm extended by the conventions log⁡0=0\log 0 = 0log0=0 and log⁡t=log⁡∣t∣\log t = \log|t|logt=log∣t∣ for t<0t<0t<0.

No loss function or optimization problem appears in the statement; the hypothesis is only this exact identity.

Conclusion. There exist a permutation σ\sigmaσ of {1,…,n}\{1,\dots,n\}{1,…,n} and functions φ1,…,φn:R→R\varphi_1,\dots,\varphi_n : \mathbb{R}\to\mathbb{R}φ1​,…,φn​:R→R, each a bijection of R\mathbb{R}R, such that for all x∈Rnx \in \mathbb{R}^nx∈Rn and all iii,

hi(x)=φi((f−1(x))σ(i)).h_i(x) = \varphi_i\big( (f^{-1}(x))_{\sigma(i)} \big).hi​(x)=φi​((f−1(x))σ(i)​).

No continuity, monotonicity or smoothness of the φi\varphi_iφi​ is asserted, only bijectivity. When n=0n=0n=0 the conclusion holds trivially.

Human review
  • Endorsed by Shuze Chen · Nov 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 24, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me