Latent causal model, information-theoretic JEPA objective and action-variability assumption
DefinitionIActThereforeIAm_BasicObjects of Sections 2-3 and Appendices C-E of Liu, Huang and Shi (2026).
- Latent causal model (Eqs. 1-3). The latent state is and actions lie in a measurable space . The pair has a probability law . Each coordinate evolves as with jointly measurable mechanisms , parent sets , and disturbances that are independent of each other and of , with laws . All statements use the resulting joint law of . Observations are .
- Information quantities. , in nats. For a law on with Lebesgue density , the differential entropy is . It is set to when has no density or is not integrable. The open unit cube is .
- Objective (Eq. 4). For an encoder , write and . A transition model is jointly measurable and, for each , a probability density on . The objective is
A pair is admissible if is measurable with values in , a.s., the log-likelihood is integrable, and ; on admissible pairs is a real number. A global minimizer over a parameterized model is an admissible pair whose objective is at most that of every admissible pair . 4. Induced transition density (Eq. 6). is a version of when the joint law of equals the law of times . 5. Assumption 3.1. is smooth () and injective. 6. Assumption 3.2 (Eqs. 7-8). The functions are densities of the conditional laws of . They are positive, in and jointly continuous. With ,
Action variability means that for all there are actions for which the vectors are linearly independent, i.e. the matrix is invertible. 7. Factorized model (Eq. 47). . On the encoder range, i.e. for with and , the factors are positive, in and jointly continuous. Outside this range they are unrestricted. 8. Contrastive term (Eqs. 56-59). . The Gaussian negative log-likelihood is . The Gaussian kernel is . The contrastive term is , and .
Formalization Note The SCM is encoded by its mechanisms, noise laws and the law of ; the joint law is the push-forward of . The DAG requirement holds for every choice of parent sets, because all edges go from time to time . Mutual information uses Mathlib's InformationTheory.klDiv. The objective is real-valued and is only used on admissible pairs, where it equals the paper's value. Encoders and observation spaces are general: is a measurable space, and a real normed space in Theorem 3.3.
import Mathlib
/-!
Liu, Huang and Shi, *I Act Therefore I Am: When Is JEPA's Action-Conditioning Enough to Learn
Causal Mechanisms?*, arXiv:2609.31161v1 (2026): the latent causal generative model of Section 2.1
(Eqs. (1)-(3)), the information-theoretic JEPA objective of Section 2.2 (Eq. (4)), the induced
transition density of Theorem 2.1 (Eq. (6)), Assumptions 3.1 and 3.2 of Section 3 (Eqs. (7)-(8)),
the factorized transition model of Appendix D (Eq. (47)), and the Gaussian contrastive term of
Appendix E (Eqs. (56)-(58)).
-/
open MeasureTheory
open scoped ENNReal ContDiff
noncomputable section
namespace IActThereforeIAm
/-- Section 2.1, Eqs. (1)-(2): a latent causal generative model. The latent state is
`s_t ∈ ℝ^d`, actions lie in `A`, and `s_{t,i} := f_i(s_{t-1,pa_i}, a_{t-1}, ε_{t,i})`, where the
disturbances `ε_{t,1}, …, ε_{t,d}` are mutually independent and independent of `(s_{t-1}, a_{t-1})`.
The observation `x_t = g(s_t)` is attached separately, as a map `g`. -/
structure LatentSCM (d : ℕ) (A : Type*) [MeasurableSpace A] where
/-- The parent set `pa_i ⊆ {1, …, d}` of `s_{t,i}` in `s_{t-1}`. -/
pa : Fin d → Finset (Fin d)
/-- The mechanism `f_i(s_{t-1}, a_{t-1}, ε_{t,i})`. -/
mech : Fin d → (Fin d → ℝ) → A → ℝ → ℝ
/-- The law of the disturbance `ε_{t,i}`. -/
noise : Fin d → Measure ℝ
/-- The joint law of `(s_{t-1}, a_{t-1})`. -/
prev : Measure ((Fin d → ℝ) × A)
/-- Section 2.1: the standing conditions on a latent causal model. The laws of `(s_{t-1}, a_{t-1})`
and of each disturbance are probability measures, each mechanism is jointly measurable, and
`f_i` depends on `s_{t-1}` only through its parents `s_{t-1,pa_i}`. -/
def LatentSCM.IsValid {d : ℕ} {A : Type*} [MeasurableSpace A] (M : LatentSCM d A) : Prop :=
IsProbabilityMeasure M.prev ∧ (∀ i, IsProbabilityMeasure (M.noise i)) ∧
(∀ i, Measurable (fun x : ((Fin d → ℝ) × A) × ℝ => M.mech i x.1.1 x.1.2 x.2)) ∧
(∀ i (s s' : Fin d → ℝ) (a : A) (e : ℝ), (∀ j ∈ M.pa i, s j = s' j) →
M.mech i s a e = M.mech i s' a e)
/-- Section 2.1, Eqs. (1) and (3): the joint law of `((s_{t-1}, a_{t-1}), s_t)`, obtained by drawing
`(s_{t-1}, a_{t-1})` and independent disturbances `ε_{t,i}` and applying the mechanisms. -/
def LatentSCM.jointLaw {d : ℕ} {A : Type*} [MeasurableSpace A] (M : LatentSCM d A) :
Measure (((Fin d → ℝ) × A) × (Fin d → ℝ)) :=
(M.prev.prod (Measure.pi M.noise)).map
(fun x => (x.1, fun i => M.mech i x.1.1 x.1.2 (x.2 i)))
/-- Section 2.2: the mutual information `I(X; Y)` of random variables `X`, `Y` on `(Ω, P)`, the
Kullback-Leibler divergence of their joint law from the product of their laws (in nats, valued
in `[0, ∞]`). -/
def mutualInfo {Ω α β : Type*} [MeasurableSpace Ω] [MeasurableSpace α] [MeasurableSpace β]
(P : Measure Ω) (X : Ω → α) (Y : Ω → β) : ℝ≥0∞ :=
InformationTheory.klDiv (P.map fun w => (X w, Y w)) ((P.map X).prod (P.map Y))
/-- Theorem 2.1, Eq. (5): `I(s_t; s_{t-1}, a_{t-1})` under the latent model. -/
def latentInfo {d : ℕ} {A : Type*} [MeasurableSpace A] (M : LatentSCM d A) : ℝ≥0∞ :=
mutualInfo M.jointLaw (fun w => w.2) (fun w => w.1)
/-- Theorem 2.1, Eq. (5): `I(z_t; z_{t-1}, a_{t-1})` for the representation `z = h(g(s))`. -/
def reprInfo {d : ℕ} {A X : Type*} [MeasurableSpace A] [MeasurableSpace X] (M : LatentSCM d A)
(g : (Fin d → ℝ) → X) (h : X → Fin d → ℝ) : ℝ≥0∞ :=
mutualInfo M.jointLaw (fun w => h (g w.2)) (fun w => (h (g w.1.1), w.1.2))
/-- Section 2.2: the law of the representation `z_t = h(x_t) = h(g(s_t))`. -/
def reprLaw {d : ℕ} {A X : Type*} [MeasurableSpace A] [MeasurableSpace X] (M : LatentSCM d A)
(g : (Fin d → ℝ) → X) (h : X → Fin d → ℝ) : Measure (Fin d → ℝ) :=
M.jointLaw.map fun w => h (g w.2)
/-- Theorem 2.1: the open unit cube `(0, 1)^d`, the range of the encoder. -/
def unitCube (d : ℕ) : Set (Fin d → ℝ) :=
Set.pi Set.univ fun _ => Set.Ioo (0 : ℝ) 1
open Classical in
/-- Section 2.2, Eq. (4): the differential entropy `H(μ) = -∫ f log f` of a law `μ` on `ℝ^d` with
Lebesgue density `f`. It is `-∞` (`⊥`) when `μ` has no density or `f log f` is not integrable;
for laws carried by a bounded set, such as `(0,1)^d`, this is the standard value. -/
def diffEntropy {d : ℕ} (μ : Measure (Fin d → ℝ)) : EReal :=
if μ ≪ volume ∧ Integrable (fun z => Real.negMulLog (μ.rnDeriv volume z).toReal) volume then
((∫ z, Real.negMulLog (μ.rnDeriv volume z).toReal : ℝ) : EReal)
else ⊥
/-- Section 2.2: `p(z_t | z_{t-1}, a_{t-1})` is an action-conditioned transition model on `ℝ^d`:
jointly measurable and, for each context `c = (z_{t-1}, a_{t-1})`, a probability density. -/
def IsTransitionModel {d : ℕ} {A : Type*} [MeasurableSpace A]
(p : (Fin d → ℝ) × A → (Fin d → ℝ) → ℝ) : Prop :=
Measurable (fun x : ((Fin d → ℝ) × A) × (Fin d → ℝ) => p x.1 x.2) ∧ (∀ c z, 0 ≤ p c z) ∧
∀ c, ∫ z, p c z = 1
/-- Section 2.2, Eq. (4): the objective
`L_λ(h, φ) = -E[log p_φ(z_t | z_{t-1}, a_{t-1})] - λ H(z_t)` with `z = h(g(s))`. It is the
paper's (finite) value on admissible pairs (`IsAdmissible`). -/
def objective {d : ℕ} {A X : Type*} [MeasurableSpace A] [MeasurableSpace X] (M : LatentSCM d A)
(g : (Fin d → ℝ) → X) (lam : ℝ) (h : X → Fin d → ℝ)
(p : (Fin d → ℝ) × A → (Fin d → ℝ) → ℝ) : ℝ :=
-(∫ w, Real.log (p (h (g w.1.1), w.1.2) (h (g w.2))) ∂M.jointLaw) -
lam * (diffEntropy (reprLaw M g h)).toReal
/-- Theorem 2.1: an admissible pair `(h, p_φ)`. The encoder `h : X → (0,1)^d` is measurable, `p_φ`
is a transition model, and both terms of Eq. (4) are finite: the log-likelihood is a.s. defined
(`p_φ > 0`) and integrable, and `z_t` has finite differential entropy. -/
def IsAdmissible {d : ℕ} {A X : Type*} [MeasurableSpace A] [MeasurableSpace X]
(M : LatentSCM d A) (g : (Fin d → ℝ) → X) (h : X → Fin d → ℝ)
(p : (Fin d → ℝ) × A → (Fin d → ℝ) → ℝ) : Prop :=
Measurable h ∧ (∀ x i, h x i ∈ Set.Ioo (0 : ℝ) 1) ∧ IsTransitionModel p ∧
(∀ᵐ w ∂M.jointLaw, 0 < p (h (g w.1.1), w.1.2) (h (g w.2))) ∧
Integrable (fun w => Real.log (p (h (g w.1.1), w.1.2) (h (g w.2)))) M.jointLaw ∧
diffEntropy (reprLaw M g h) ≠ ⊥
/-- Theorems 2.1 and 3.3: `(h, φ)` is a global minimizer of Eq. (4) over all admissible pairs of an
encoder and a parameter `φ` of the transition model `model φ`. -/
def IsGlobalMin {d : ℕ} {A X Θ : Type*} [MeasurableSpace A] [MeasurableSpace X]
(M : LatentSCM d A) (g : (Fin d → ℝ) → X) (lam : ℝ)
(model : Θ → (Fin d → ℝ) × A → (Fin d → ℝ) → ℝ) (h : X → Fin d → ℝ) (φ : Θ) : Prop :=
IsAdmissible M g h (model φ) ∧
∀ (h' : X → Fin d → ℝ) (φ' : Θ), IsAdmissible M g h' (model φ') →
objective M g lam h (model φ) ≤ objective M g lam h' (model φ')
/-- Theorem 2.1, Eq. (6): `p(z_t | z_{t-1}, a_{t-1}) = Q_h(z_t | z_{t-1}, a_{t-1})` a.e., i.e. `p` is a
version of the transition density induced by `h`: the joint law of `(c_t, z_t)`, with
`c_t = (z_{t-1}, a_{t-1})`, is the law of `c_t` times `p(z | c) dz`. -/
def IsReprTransitionDensity {d : ℕ} {A X : Type*} [MeasurableSpace A] [MeasurableSpace X]
(M : LatentSCM d A) (g : (Fin d → ℝ) → X) (h : X → Fin d → ℝ)
(p : (Fin d → ℝ) × A → (Fin d → ℝ) → ℝ) : Prop :=
M.jointLaw.map (fun w => ((h (g w.1.1), w.1.2), h (g w.2))) =
((M.jointLaw.map fun w => (h (g w.1.1), w.1.2)).prod volume).withDensity
(fun x => ENNReal.ofReal (p x.1 x.2))
/-- Assumption 3.1: the observation mapping `g` is smooth and invertible (injective). -/
def ObsRegular {d : ℕ} {X : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X]
(g : (Fin d → ℝ) → X) : Prop :=
ContDiff ℝ ∞ g ∧ Function.Injective g
/-- Section 2.1, Eq. (3): `dens i s' a` is a density of `p(s_{t,i} | s_{t-1,pa_i} = s'_{pa_i},
a_{t-1} = a)`, the law of `f_i(s', a, ε_{t,i})`. -/
def HasTransitionDensities {d : ℕ} {A : Type*} [MeasurableSpace A] (M : LatentSCM d A)
(dens : Fin d → (Fin d → ℝ) → A → ℝ → ℝ) : Prop :=
∀ i (s' : Fin d → ℝ) (a : A), (M.noise i).map (fun e => M.mech i s' a e) =
volume.withDensity (fun u => ENNReal.ofReal (dens i s' a u))
/-- Assumption 3.2 (regularity it presupposes): every conditional density is positive, twice
continuously differentiable in `s_{t,i}`, and jointly continuous in `(s_{t-1}, a_{t-1}, s_{t,i})`. -/
def IsRegularDensity {d : ℕ} {A : Type*} [TopologicalSpace A]
(dens : Fin d → (Fin d → ℝ) → A → ℝ → ℝ) : Prop :=
∀ i, (∀ s' a u, 0 < dens i s' a u) ∧ (∀ s' a, ContDiff ℝ 2 (dens i s' a)) ∧
Continuous (fun x : ((Fin d → ℝ) × A) × ℝ => dens i x.1.1 x.1.2 x.2)
/-- Assumption 3.2, Eq. (8): `w(s_t, s_{t-1}, a_{t-1}) = (∂q_1/∂s_{t,1}, …, ∂q_d/∂s_{t,d},
∂²q_1/∂s_{t,1}², …, ∂²q_d/∂s_{t,d}²)` with `q_i = log p(s_{t,i} | s_{t-1,pa_i}, a_{t-1})`; the first
block is indexed by `Sum.inl i`, the second by `Sum.inr i`. -/
def scoreVec {d : ℕ} {A : Type*} (dens : Fin d → (Fin d → ℝ) → A → ℝ → ℝ)
(s s' : Fin d → ℝ) (a : A) : Fin d ⊕ Fin d → ℝ :=
Sum.elim (fun i => deriv (fun u => Real.log (dens i s' a u)) (s i))
(fun i => deriv (deriv fun u => Real.log (dens i s' a u)) (s i))
/-- Assumption 3.2, Eq. (7): for all `s_t, s_{t-1}` there are `2d + 1` actions `a^{(0)}, …, a^{(2d)}`
such that the `2d × 2d` matrix `L` with columns `w(a^{(ℓ)}) - w(a^{(0)})`, `ℓ = 1, …, 2d`, is
invertible (its columns are linearly independent). -/
def ActionVariability {d : ℕ} {A : Type*} (dens : Fin d → (Fin d → ℝ) → A → ℝ → ℝ) : Prop :=
∀ s s' : Fin d → ℝ, ∃ acts : Fin (2 * d + 1) → A,
LinearIndependent ℝ (fun l : Fin (2 * d) =>
scoreVec dens s s' (acts l.succ) - scoreVec dens s s' (acts 0))
/-- Appendix D, Eq. (47): the transition model factorizes across representation components,
`p_φ(z_t | z_{t-1}, a_{t-1}) = ∏_j p_{φ,j}(z_{t,j} | z_{t-1}, a_{t-1})`. On the encoder range
(`z_{t-1} ∈ (0,1)^d`, `z_{t,j} ∈ (0,1)`), where the proof evaluates it, each factor is positive, twice
continuously differentiable in `z_{t,j}`, and jointly continuous. Outside the range the factors are
unrestricted (an optimal model equals `Q_h` a.e. and so vanishes a.e. off `(0,1)^d`). -/
def IsRegularFactorizedModel {d : ℕ} {A : Type*} [TopologicalSpace A]
(p : (Fin d → ℝ) × A → (Fin d → ℝ) → ℝ) : Prop :=
∃ pj : Fin d → (Fin d → ℝ) × A → ℝ → ℝ, (∀ c z, p c z = ∏ j, pj j c (z j)) ∧
(∀ j c v, c.1 ∈ unitCube d → v ∈ Set.Ioo (0 : ℝ) 1 → 0 < pj j c v) ∧
(∀ j c, c.1 ∈ unitCube d → ContDiffOn ℝ 2 (pj j c) (Set.Ioo 0 1)) ∧
∀ j, ContinuousOn (fun x : ((Fin d → ℝ) × A) × ℝ => pj j x.1 x.2)
{x | x.1.1 ∈ unitCube d ∧ x.2 ∈ Set.Ioo (0 : ℝ) 1}
/-- Appendix E: the squared Euclidean norm `‖v‖₂² = ∑_i v_i²` on `ℝ^d`. -/
def sqNorm {d : ℕ} (v : Fin d → ℝ) : ℝ := ∑ i, v i ^ 2
/-- Appendix E, Eq. (57): the negative log-likelihood of `z` under `N(m, σ² I)`,
`ℓ_φ(z) = ‖z - m‖² / (2σ²) + (d/2) log(2πσ²)`. -/
def gaussNLL {d : ℕ} (σ : ℝ) (m z : Fin d → ℝ) : ℝ :=
sqNorm (z - m) / (2 * σ ^ 2) + (d : ℝ) / 2 * Real.log (2 * Real.pi * σ ^ 2)
/-- Appendix E: the Gaussian kernel with bandwidth `b`,
`φ_b(x) = (2π b²)^{-d/2} exp(-‖x‖² / (2b²))`. -/
def gaussKernel {d : ℕ} (b : ℝ) (x : Fin d → ℝ) : ℝ :=
(2 * Real.pi * b ^ 2) ^ (-(d : ℝ) / 2) * Real.exp (-sqNorm x / (2 * b ^ 2))
/-- Appendix E, Eq. (58): `U_K = log[(1/K) ∑_{k=1}^K exp(-ℓ_φ(z^{(k)}) / τ)]` for the predicted mean
`m = μ_φ(z_{t-1}, a_{t-1})` and the first `K` samples of the sequence `zs`. -/
def contrastiveU {d : ℕ} (σ τ : ℝ) (m : Fin d → ℝ) (zs : ℕ → Fin d → ℝ) (K : ℕ) : ℝ :=
Real.log ((1 / (K : ℝ)) * ∑ k ∈ Finset.range K, Real.exp (-gaussNLL σ m (zs k) / τ))
/-- Appendix E, Eq. (59): `(p_z * φ_b)(z_t) = ∫ φ_b(z - z_t) dp_z(z)`. -/
def kernelSmoothed {d : ℕ} (μ : Measure (Fin d → ℝ)) (b : ℝ) (zt : Fin d → ℝ) : ℝ :=
∫ z, gaussKernel b (z - zt) ∂μ
end IActThereforeIAm
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
LatentSCM d A (a data structure; it asserts nothing). Here is a natural number and is any set with a σ-algebra. An object of this type consists of four pieces of data, with no constraints attached:
- a parent set for each index ;
- a mechanism for each . It takes the entire previous state , not only the parent coordinates;
- a noise measure on for each . It may be any measure, not necessarily a probability measure;
- a measure on , playing the role of the law of . It also may be any measure.
Nothing in the structure links to , requires measurability, or mentions an observation map. When there are no components at all.
LatentSCM.IsValid M holds exactly when all four of the following are true:
- is a probability measure on .
- Every is a probability measure on .
- For every , the map is measurable for the product σ-algebra on .
- For every , all , all and all :
In words, depends on only through the coordinates in .
If , then depends only on . No independence statement appears here, and no condition on the graph is imposed.
LatentSCM.jointLaw M is a measure on . It is the pushforward of the product measure on under the map
I write a generic point of the result as .
- The independence of the from each other and from comes only from using the product measure.
- The definition makes sense whether or not
IsValidholds. - By the library convention, if this map is not almost-everywhere measurable, the pushforward is the zero measure.
mutualInfo P X Y. Here is any measure space (no normalisation assumed), and , are arbitrary functions (no measurability assumed). The value, in , is the Kullback–Leibler divergence
where , , are the pushforward laws. The library's divergence works as follows:
- It equals unless and the log-likelihood ratio is integrable.
- Otherwise it equals , with natural logarithm.
- For probability measures the two mass terms cancel and this is the usual KL divergence in nats.
- Non-measurable or produce zero-measure laws by convention.
latentInfo M is the mutual information, computed under as defined above, between two random variables:
- the second component , and
- the first component .
That is,
reprInfo M g h. Here and are arbitrary functions; neither is assumed measurable or injective. The value is the mutual information under between
The value lies in .
reprLaw M g h is the measure on obtained by pushing forward along . It is the law of ; it is the zero measure if this map is not almost-everywhere measurable.
unitCube d is the open cube
For it is the whole one-point space .
diffEntropy μ. Let be any measure on , and let be its Radon–Nikodym derivative with respect to Lebesgue measure , read as a real number (an infinite value is read as ). The value is an extended real number defined by cases:
- The integrand uses the convention .
- In the first case the value is always a finite real.
- Every case not covered — no density, or not integrable — is assigned . This includes laws whose entropy would classically be .
- is not required to be a probability measure. For example, the zero measure has entropy .
- For , "Lebesgue measure" is the unit point mass, so every is absolutely continuous.
IsTransitionModel p. Here assigns to each context and each a real number . The predicate holds exactly when:
- is jointly measurable;
- for every and ;
- for every context (not merely almost every), .
Since a non-integrable function is assigned integral , condition 3 forces integrability. So for each , is a genuine Lebesgue probability density on .
objective M g λ h p. The inputs are the model , an observation map , a real number (any sign allowed), an encoder , and a function as above. The real number returned is
Junk-value conventions apply:
- and for .
- The integral is if the integrand is not integrable.
- An entropy of is replaced by , so the -term vanishes in that case.
No admissibility is assumed by this definition itself.
IsAdmissible M g h p holds exactly when all of the following are true:
- is measurable.
- For every (not just those in the image of ) and every , . So maps into .
- satisfies
IsTransitionModel: jointly measurable, nonnegative, and integrating to in for every context. - For -almost every :
- The function is integrable with respect to .
- . Equivalently, the law of is absolutely continuous with respect to Lebesgue measure and is integrable, so the entropy is a finite real.
No measurability, injectivity or smoothness of is required, and no validity of is required.
IsGlobalMin M g λ model h φ. Here is any set of parameters and assigns to each a function . The predicate holds exactly when both of the following are true:
- is admissible, in the sense of
IsAdmissibleabove. - For every function and every such that is admissible,
The comparison class consists only of admissible pairs whose second component lies in the family . The inequality is non-strict, so minimisers need not be unique. is an arbitrary real.
IsReprTransitionDensity M g h p. Write and . The predicate asserts an equality of measures on :
Here is Lebesgue measure on . In words, is a version of the conditional density of given , after negative values are clipped to . Nothing requires to be measurable or to be a transition model.
ObsRegular g. Here is a real normed vector space. The predicate states that :
- is infinitely differentiable (), and
- is injective.
Nothing is assumed about its inverse: it need not be smooth or continuous on the image, and need not be an immersion or an embedding. No relation between this norm structure and any σ-algebra on is stated.
HasTransitionDensities M dens. Here is a real number for each , , and . The predicate states that for every , every (the full vector) and every (not merely almost every), the following two measures on coincide:
- the pushforward of under ;
- Lebesgue measure with density .
In particular, each such law is absolutely continuous with respect to Lebesgue measure. Its total mass equals that of , and nothing here requires to be a probability measure.
IsRegularDensity dens. Here carries a topology. The predicate states that for every all three of the following hold:
- for all , and .
- For each fixed , the map is twice continuously differentiable on all of .
- is jointly continuous on .
Nothing ties to any model , and nothing requires it to integrate to .
scoreVec dens s s' a. For a current state , a previous state and an action , write . This is a vector with entries, indexed by two disjoint copies of :
- The second derivative is computed as the derivative of the derivative function.
- Any derivative that does not exist is taken to be .
- follows the conventions and .
ActionVariability dens. The predicate states that for all there exist actions (repetitions allowed, depending on and ) such that the vectors
are linearly independent over in , with the score vector defined above. Equivalently, the matrix with these columns is invertible.
- The quantification is over all of .
- For the family is empty, so the condition reduces to " is nonempty".
- If is empty, the condition fails for every .
IsRegularFactorizedModel p. Here carries a topology. The predicate asserts that there exist functions , for , contexts and , such that all four of the following hold:
- For all and ,
- whenever and .
- For each and each with , the map is twice continuously differentiable on .
- For each , is continuous on the set where and .
Each factor may depend on the whole context but only on its own coordinate . The action component is unrestricted throughout. Outside the cube the factors are arbitrary. The factors need not be densities. For the product is empty and the predicate says .
sqNorm v is the squared Euclidean norm
It equals when .
gaussNLL σ m z is the real number
for any real and any .
- Only enters, so negative behaves like .
- For , division by zero and are both taken to be , so .
gaussKernel b x is the real number
for any real and any . The power is a real power with these conventions: for , , and division by zero gives . Consequently, at the kernel is identically when and identically when .
contrastiveU σ τ m zs K. Here is an infinite sequence in and is a natural number. Only the samples are used. The value is
where is the Gaussian negative log-likelihood with parameters and , as defined above.
- For , and , so .
- For , every exponent is , so for .
kernelSmoothed μ b z_t. Here is any measure on , is real and . The value is the real number
with the Gaussian kernel defined above. The integral is taken to be if the integrand is not -integrable, for example for some infinite measures .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.