Theorem 4.2: identifying content with a generative model
ProvedContentStyle.generative_block_identifiesLet and , and let be open and simply connected. Let pairs be generated by (2)–(3) from satisfying Assumptions 3.1–3.2 and conditions (i)–(iii):
- is a diffeomorphism of onto ;
- is a smooth density on with almost everywhere;
- every style index lies in some with such that is smooth in and, for every , positive on an open set containing .
Let be a generative model of the same form on , also satisfying (i)–(iii), with . Suppose it matches the data likelihood,
Then block-identifies the true content: there is a map , injective on , with
So maximum-likelihood generative modelling of pairs of views recovers the content block up to an invertible reparametrisation.
Formalization Note Equality of likelihoods is stated as equality of the laws of on Borel sets. Block-identification is stated pointwise on , with injective on (Definition 4.1).
import Mathlib import Definitions.Def_ContentStyle_Basic open MeasureTheory open scoped ContDiff
namespace ContentStyle
theorem generative_block_identifies {nc ns d : ℕ} (hnc : 1 ≤ nc) (hns : 1 ≤ ns)
(C : Set (Fin nc → ℝ)) (S : Set (Fin ns → ℝ)) (hZ : IsLatentSpace C S)
(M : LatentModel nc ns) (f : Latent nc ns → Obs d)
(hM : IsAugModel C S M) (hi : CondI C S f) (hii : CondII C S M) (hiii : CondIII S M)
(Mhat : LatentModel nc ns) (fhat : Latent nc ns → Obs d)
(hMhat : IsAugModel C S Mhat) (hihat : CondI C S fhat) (hiihat : CondII C S Mhat)
(hiiihat : CondIII S Mhat)
(hX : fhat '' (C ×ˢ S) = f '' (C ×ˢ S))
(hmatch : ∀ E : Set (Obs d × Obs d), MeasurableSet E →
obsPairProb C S M f E = obsPairProb C S Mhat fhat E) :
BlockIdentifies C S f (fun x => (Function.invFunOn fhat (C ×ˢ S) x).1) := by sorry
end ContentStyleRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix natural numbers , and ; is not excluded. Latents are pairs with and . Observations lie in .
Let and be sets. Write and assume:
- is open in .
- is simply connected as a subspace. In particular it is nonempty and path-connected.
For a subset , including :
- denotes the restriction of to the coordinates in .
- .
- For , is the vector that equals on and off .
Generative model. A "latent model" consists of three arbitrary real-valued functions:
- a function ;
- a function on the subsets ;
- for each , a function .
The theorem takes two such models, and , where are functions. Both models use the same sets and . Each of the two models is assumed to satisfy all of the following.
Model assumptions (stated for ; identically for ):
- is Borel measurable on all of .
- on .
- , where is Lebesgue measure.
- for every , and . The sum runs over all subsets, including .
- For each , the following hold:
- is jointly measurable.
- For every and every , .
- For every , . For , is a single point of measure , so this says .
- For every and with , we have .
Condition (i) (for ; identically for ). Here "smooth on a set " means: every point has an open neighbourhood and a function that is on and agrees with the given function on . The condition requires:
- is smooth on .
- is injective on .
- The choice-based inverse is smooth on . This map sends each to the unique with , and sends points outside to an unspecified value.
Condition (ii):
- is on .
- at Lebesgue-almost every point of .
Condition (iii): for every style index there is a subset such that:
- ;
- is (jointly in both arguments) on ;
- for every there is an open set with and for all .
Matching hypotheses.
- The two models have the same image: .
- For every measurable , the two models give the same pair probability: .
The pair probability is the extended-nonnegative quantity
In this formula:
- .
- Integrals are with respect to Lebesgue measure, as lower Lebesgue integrals in .
- is defined in the same way from , , and .
Conclusion. Define the inferred content by
Here is a chosen point with whenever , and an unspecified value otherwise.
The theorem asserts that there exists a function such that:
- is injective on . Nothing is required of outside , and neither surjectivity nor continuity is required.
- For every ,
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.