Theorem 4.4, Steps 1-2 (as proved): a zero-loss smooth encoder is a function of content with uniform law
ProvedContentStyle.alignMaxEnt_minimiser_content_uniformAssume the setting and conditions (i)–(iii) of Theorem 4.2, with and . Let be smooth with
which by Claim A.1 is the global minimum. Then:
- for all and , so depends on the content only;
- is uniformly distributed on .
Formalization Note This is Steps 1–2 of the proof of Theorem 4.4 (eqs. (29)–(31)), stated as proved there. The proof treats a minimiser as a function with . Step 3 of the proof, the invertibility of , rests on Proposition A.2, which is false. Theorem 4.4 itself is false (see the mission description), so it is not stated.
import Mathlib import Definitions.Def_ContentStyle_Basic open MeasureTheory open scoped ContDiff
namespace ContentStyle
theorem alignMaxEnt_minimiser_content_uniform {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)
(g : Obs d → (Fin nc → ℝ)) (hg : SmoothOnSet (f '' (C ×ˢ S)) g)
(hcube : Set.MapsTo g (f '' (C ×ˢ S)) (cube nc))
(hzero : alignMaxEntLoss C S M f g = 0) :
(∀ c ∈ C, ∀ s ∈ S, ∀ s' ∈ S, g (f (c, s)) = g (f (c, s'))) ∧
(latentLaw C S M).map (fun z => g (f z)) = volume.restrict (cube nc) := by sorry
end ContentStyleRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix natural numbers (content dimension), (style dimension) and (observation dimension; is allowed). Latents are pairs , and observations lie in . Let and be sets, and write . Assume is open in and, as a subspace, simply connected. Simple connectivity includes path-connectedness and hence non-emptiness, so and are both nonempty.
The model. A latent model consists of three arbitrary real-valued functions:
- a function ;
- a function on all subsets , including and the full set;
- for each such , a function of two arguments .
For write:
- for its restriction to the coordinates in ;
- ;
- for the vector that equals on the coordinates in and equals off .
Probability hypotheses. The model is assumed to satisfy all of the following:
- is Borel measurable on all of .
- on and (Lebesgue measure ).
- for every , and .
- For every :
- is measurable;
- for each , and . Here is Lebesgue measure on ; for this is the unit mass on the single point, forcing .
- for all and all , if then .
Condition (i). "Smooth on a set " is used in the following sense: every point of has an open neighbourhood and a function on agreeing with the given map on . With this meaning, satisfies:
- is smooth on ;
- is injective on ;
- the map sending each to a chosen -preimage in is smooth on . On this map is ; elsewhere its values are arbitrary.
Condition (ii). is on , and for Lebesgue-almost every .
Condition (iii). For every style index there is a set such that:
- ;
- is on , in the sense of on a (possibly non-open) set;
- for every there is an open containing with for all .
The encoder. Finally let be smooth on in the sense above. Assume maps into the open unit cube .
The loss. Define the alignment term as the -valued quantity
where . Let be the measure on with density with respect to Lebesgue measure restricted to . Define the entropy term as follows:
- If is not -a.e. measurable, then .
- Otherwise, let .
- If is not absolutely continuous with respect to Lebesgue measure, then .
- Otherwise, with (and infinite values of read as ),
The hypothesis is that, in the extended reals,
Under the extended-real conventions ( and ), this holds exactly when is finite and .
Conclusion. Two statements hold:
- For all and ,
- The pushforward of under equals Lebesgue measure restricted to the open unit cube . That is, for is uniformly distributed on . The pushforward is by convention the zero measure if the map is not a.e. measurable, so this conclusion also entails a.e. measurability.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.