Independent scholarship · Open accessThe monthly digest

Full manuscript · browser edition

Higher Diffeology II: Lean 4 Formalization, Differential Cohesion, Stochastic Stacks, and Real Multiplication

Continuous, single-column reading. Equations, tables, proofs, references and appendices stay in document order.

Contents · 35 sections

Higher Diffeology II
Lean 4 Formalization, Differential Cohesive AD, Stochastic Stacks,
Shifted Symplectics, and Real Multiplication

Preface to Volume II

In Volume I (Smooth Descent and Higher Diffeology [2]), we recast Patrick Iglesias-Zemmour’s foundational monograph [1] inside the cohesive (∞,1)(\infty,1)-topos H=Sh∞(Cart)\mathbf{H}= \mathrm{Sh}_\infty(\mathsf{Cart}) and established fifteen theorems across machine learning, artificial intelligence, number theory, cryptography, and system design. Five natural frontiers emerged directly at the boundary of those results:

  1. Machine-Checked Cohesive Formalization (Chapter 1): Constructing an axiom-clean, zero-sorry Lean 4.24.0 development (HigherDiffeology.*) verifying subduction pullback stability, cohesive product preservation, categorical CAP impossibility, Čech alignment regret, straight-line Σ\Sigma-protocol torsor obstructions, and equivariant fixed-stratum trapping.

  2. Differential Cohesion and Reverse-Mode AD (Chapter 2): Enlarging the site from Cart\mathsf{Cart} to infinitesimally thickened Cartesian spaces Cartinf\mathsf{Cart}_{\mathrm{inf}} via Weil algebras R[ε]/(ε2)\mathbb{R}[\varepsilon]/(\varepsilon^2) to separate kinematic and operational tangents at corners, establish functorial reverse-mode AD combinators as Diff\mathsf{Diff}-lenses, and prove cotangent moment-map annihilation μcot(θ,dLθ)=0\mu_{\mathrm{cot}}(\theta, dL_\theta) = 0 on [Θ/ ⁣/G][\Theta /\!/G].

  3. Stochastic Diffeology and Stratum Escape (Chapter 3): Equipping Diff\mathsf{Diff} with a smooth Giry/Markov kernel monad StochDiff\mathsf{StochDiff} to prove equivariant diffusion descent to Θ/G\Theta/G, exact normal-variance exponential instability and logarithmic escape times from symmetry-trapping strata ΘH\Theta^H, and vertical gauge-orthogonality of forward heat scores.

  4. Shifted Symplectics and Multisymplectic Fields (Chapter 4): Lifting Pantev–Toën–Vaquié–Vezzosi (PTVV) (−1)(-1)-shifted symplectic geometry to RCrit(L)\mathbb{R}\mathrm{Crit}(L) and gauge quotient stacks [RCrit(L)/ ⁣/G][\mathbb{R}\mathrm{Crit}(L) /\!/G]—explaining degeneracy via Atiyah–Bott–BV cohomology—and lifting 22-plectic/Souriau–Noether laws to covariant PDE extremals.

  5. Noncommutative Tori and Real Multiplication (Chapter 5): Passing from the irrational torus stack [T2/ ⁣/Rα][\mathbb{T}^2 /\!/\mathbb{R}_\alpha] to Connes–Rieffel’s smooth convolution algebra Aα∞\mathcal{A}_\alpha^\infty, constructing explicit smooth Powers–Rieffel projections of Chern class c1(pα)∈Zc_1(p_\alpha) \in \mathbb{Z}, reconciling Morita equivalence with GL2(Z)\mathrm{GL}_2(\mathbb{Z}) diffeological rigidity, and linking Pell-unit automorphisms to closed modular geodesics ℓhyp(γA)=2log⁡ε+\ell_{\mathrm{hyp}}(\gamma_A) = 2\log\varepsilon_+.

Every chapter in Part I contains three rigorously proved theorems, an inline commutative architecture diagram, a companion vector figure accompanied by an executable verification script (extensions/), and four progressively graded exercises (Levels I–IV) solved completely in Part II.

Formalization and Theoretical Extensions

Machine-Checked Cohesive and Concrete-Sheaf Formalization in Lean 4

Formalizing Volume I [2] exposes a natural architectural split between constructive Grothendieck-site and algebraic proofs—which require no continuous measure theory or Fourier analysis and therefore compile cleanly in Lean 4’s minimal type-theoretic core [7]—and analytic plot/Fourier estimates that invoke smooth partitions of unity, dominated convergence, or Poisson summation. In this chapter we build and prove, without sorry or non-standard axioms, the six-module library HigherDiffeology (v0.1.0, leanprover/lean4:v4.24.0), certifying core theorems from Chapters 1, 9, 10, 12, and 13 of Volume I.

Grothendieck Plot Sites and Subduction Pullback Stability

Rather than hardcoding topological opens inside Euclidean space, we axiomatize a plot site S=(Dom,pts,Hom,IsCover)\mathcal{S}= (\mathrm{Dom}, \mathrm{pts}, \mathrm{Hom}, \mathrm{IsCover}) using covering sieves CC over domains UU that obey maximality, monotonicity, pullback base change (cover_pullback), and transitivity (cover_trans). Representing covers as predicates eliminates dependent-type casts across refined cover indices while preserving full constructive content.

Verification architecture and dependency graph of the six zero-sorry Lean 4.24.0 modules in HigherDiffeology, together with their core axiom profile (PropExt, Quot.sound, and axiom-free constructive proofs).

Over any plot site S\mathcal{S}, a diffeological space (X,isPlot)(X, \mathrm{isPlot}) satisfies the three Iglesias-Zemmour axioms [1]: constant plots, precomposition stability, and sheaf locality along any covering sieve CC with IsCover U C\mathrm{IsCover}\, U\, C. The quotient diffeology QuotSpace X r\mathrm{QuotSpace}\, X\, r declares p:pts(U)→X/rp : \mathrm{pts}(U) \to X/r to be a plot iff UU admits a covering sieve along whose legs pp locally lifts to plots of XX.

Theorem 1.1 (Quotient Universality and Subduction Fiber-Product Stability). Let S\mathcal{S} be a Grothendieck plot site as formalised in HigherDiffeology.Basic.

  1. For any relation rr on X∈Diff(S)X \in \mathsf{Diff}(\mathcal{S}), QuotSpace X r\mathrm{QuotSpace}\, X\, r satisfies all three diffeological axioms, quotientMk:X→X/r\mathrm{quotientMk} : X \to X/r is a subduction (quotientMk_isSubduction), and any rr-invariant smooth map f:X→Yf : X \to Y factors uniquely through QuotSpace X r\mathrm{QuotSpace}\, X\, r via quotient_universal.

  2. Composites and single-factor pullbacks of subductions are subductions (IsSubduction.comp, IsSubduction.pullback_fst).

  3. Given two interface-compatible subductions πk:Sk↠Bk\pi_k : S_k \twoheadrightarrow B_k over a fixed base space II (bk∘πk=hkb_k \circ \pi_k = h_k, k=1,2k=1,2), the induced map on subset fiber products π1×Iπ2:S1×IS2↠B1×IB2\pi_1 \times_I \pi_2 : S_1 \times_I S_2 \twoheadrightarrow B_1 \times_I B_2 is a subduction (IsSubduction.fiberProduct), proved entirely without Classical.choice or propext.

Proof. For (1), constant plots lift globally via the maximal sieve (cover_max) and Quot.inductionOn; precomposition uses cover_pullback together with contravariant functoriality mapHom(g∘f)=mapHom(f)∘mapHom(g)\mathrm{mapHom}(g \circ f) = \mathrm{mapHom}(f) \circ \mathrm{mapHom}(g); locality applies cover_trans to combine a cover of UU with the local lifting sieves on each leg h:V→Uh : V \to U. For (3), given a plot p=(p1,p2)p = (p_1, p_2) of B1×IB2B_1 \times_I B_2, local lifts q1q_1 of p1p_1 over a sieve C1C_1 on UU are refined on each leg h:V→Uh : V \to U via cover_pullback and local lifts q2q_2 of p2∘hp_2 \circ h over a sieve C2C_2 on VV. By interface compatibility b1(π1x1)=h1(x1)b_1(\pi_1 x_1) = h_1(x_1) and b2(π2x2)=h2(x2)b_2(\pi_2 x_2) = h_2(x_2), the pair (q1∘mapHom l,q2)(q_1 \circ \mathrm{mapHom}\, l, q_2) automatically satisfies h1=h2h_1 = h_2 pointwise and therefore yields a plot of S1×IS2S_1 \times_I S_2 over the composite sieve cover_trans R C1 C2\mathrm{cover\_trans}\, R\, C_1\, C_2. ◻

Cohesive Adjunctions, Partitioned CAP, and CRDT Descent

In HigherDiffeology.CohesiveModalities, we formalize Schreiber’s cohesive quadruple [4, 5] Π⊣Disc⊣Γ⊣coDisc\Pi\dashv \mathrm{Disc}\dashv \Gamma \dashv \mathrm{coDisc} between binary-product categories H\mathbf{H} and S\mathcal{S} via explicit type equivalences of hom-types Hom(LX,Y)≃Hom(X,RY)\mathrm{Hom}(L X, Y) \simeq \mathrm{Hom}(X, R Y), avoiding universe-level setoid friction while remaining 100%100\% constructive.

Lean 4.24.0 module architecture (HigherDiffeology.All audits all eighteen exported theorems with #print axioms).

Theorem 1.2 (Cohesive Product Preservation, Categorical CAP, and CRDT Descent). Within HigherDiffeology.CohesiveModalities, the following hold axiom-free:

  1. Every right adjoint (Disc\mathrm{Disc}, Γ\Gamma, coDisc\mathrm{coDisc}) preserves binary products at the level of hom-equivalences (cohesive_Disc_preserves_prod, cohesive_Gamma_preserves_prod), and if Π\Pi preserves finite products (FiniteProdPreserving), then HomH(A×B,Disc Z)≃HomS(ΠA×ΠB,Z)\mathrm{Hom}_{\mathbf{H}}(A \times B, \mathrm{Disc}\, Z) \simeq \mathrm{Hom}_{\mathcal{S}}(\Pi A \times \Pi B, Z) (cohesive_Pi_prod_adjunction).

  2. On any PartitionedSheaf State splitting global states as GlobalState≃State×State\mathrm{GlobalState} \simeq \mathrm{State} \times \mathrm{State} with diagonal consistency sA=sBs_A = s_B, any responsive partition-AA write (split(writeOnA v g)1=v\mathrm{split}(\mathrm{writeOnA}\, v\, g)_1 = v, split(writeOnA v g)2=split(g)2\mathrm{split}(\mathrm{writeOnA}\, v\, g)_2 = \mathrm{split}(g)_2) destroys consistency whenever ∣State∣≥2|\mathrm{State}| \ge 2 (cap_impossibility_nontrivial).

  3. For any JoinSemilattice S, replica state merges satisfy exact two-way commutativity, three-way reassociation, and duplicate-delivery idempotence (crdt_two_replica_convergence, crdt_three_way_reassociation, crdt_duplicate_delivery_invariant).

Proof. Part (1) composes (homEquiv X (A×B))−1(\mathrm{homEquiv}\, X\, (A \times B))^{-1} with the product hom equivalence and functoriality on Hom(LX,A)×Hom(LX,B)\mathrm{Hom}(L X, A) \times \mathrm{Hom}(L X, B). Part (2) initializes at the diagonal state g0=split−1(y,y)g_0 = \mathrm{split}^{-1}(y, y) for any pair x≠yx \neq y in State\mathrm{State}; consistency of writeOnA x g0\mathrm{writeOnA}\, x\, g_0 forces x=yx = y, contradicting x≠yx \neq y. Part (3) rewrites directly under associativity, commutativity, and idempotence of join. ◻

Quantified Obstructions Across Alignment, Cryptography, and Optimization

The remaining three modules (CechAlignment, CryptoTorsors, SymmetryStrata) formalize exact quantitative and obstruction-theoretic theorems from Volume I Chapters 9, 10, and 12.

Theorem 1.3 (Telescoping Minimax Regret, Torsor Extraction, and Stratum Trapping). All four quantitative/obstruction theorems below compile with zero sorry and core axioms at most [propext, Quot.sound]:

  1. Čech Alignment Lower Bound (cech_minimax_regret_bound): For any integer 11-cochain c:N→Zc : \mathbb{N}\to \mathbb{Z} and mm-periodic shift a:N→Za : \mathbb{N}\to \mathbb{Z} (a(m)=a(0)a(m) = a(0)) satisfying ∣c(k)+a(k+1)−a(k)∣≤B|c(k) + a(k+1) - a(k)| \le B for all k<mk < m, the total cycle holonomy obeys ∣∑k=0m−1c(k)∣≤mB\big|\sum_{k=0}^{m-1} c(k)\big| \le m B.

  2. Σ\Sigma-Protocol Section Obstruction (straightLine_iff_section, straightLine_extractor_obstructed): Relative to any single-shot valid-transcript oracle on instance space XX, a Σ\Sigma-protocol over bundle B:P→XB : P \to X admits a deterministic straight-line extractor if and only if BB admits a global section s:∏x∈XFiberB(x)s : \prod_{x \in X} \mathrm{Fiber}_B(x). Hence non-trivial bundles obstruct straight-line extraction.

  3. Shamir Secrecy Fiber Bijection (shamir_share_unique_slope): Over any MiniField FF and public point x≠0x \neq 0, each observed (2,n)(2,n)-Shamir share yy and candidate secret ss uniquely determines the degree-11 slope a=(y−s)x−1a = (y - s)x^{-1} solving s+ax=ys + a x = y.

  4. Equivariant Stratum Trapping (symmetry_breaking_impossibility): Under a group action AA of GG on Θ\Theta, any discrete GG-equivariant learner F:Θ→ΘF : \Theta \to \Theta initialized in ΘH\Theta^H remains in ΘH\Theta^H at every step n∈Nn \in \mathbb{N} and therefore never reaches any symmetry-broken point θ∗∉ΘH\theta^* \notin \Theta^H.

Proof. In (1), induction on mm yields ∑k=0m−1(a(k+1)−a(k))=a(m)−a(0)=0\sum_{k=0}^{m-1}(a(k+1)-a(k)) = a(m)-a(0) = 0 (telescoping_sum), making ∑c\sum c invariant under periodic gauge shifts; the integer triangle inequality absInt_add_le closed by omega yields ∣∑k=0m−1(c(k)+δa(k))∣≤mB\big|\sum_{k=0}^{m-1}(c(k)+\delta a(k))\big| \le m B. In (2), composing an extractor with an instance oracle constructs a section x↦ext x c t hvalx \mapsto \mathrm{ext}\, x\, c\, t\, h_{\mathrm{val}} in FiberB(x)\mathrm{Fiber}_B(x), while any section defines an immediate transcript-ignoring extractor. In (3), uniqueness uses left cancellation eq_of_add_eq followed by right multiplication by x−1x^{-1}. In (4), equivariance h⋅F(θ)=F(h⋅θ)=F(θ)h \cdot F(\theta) = F(h \cdot \theta) = F(\theta) propagates fixed-point membership inductively across iterateF F n theta0. ◻

Exercises

Exercise 1.1. [Level I — Warm-up] In HigherDiffeology.Basic, verify why discreteSite needs ULift.{u} (PLift (a = b)) rather than bare PLift (a = b) when parameterizing universe u.

Exercise 1.2. [Level II — Structural] State and prove in Lean 4 core that every discrete space (in which only locally constant functions are plots) embeds cleanly over any PlotSite, and explain what additional condition on covering sieves guarantees that a singleton point {∗}\{*\} is terminal in Diff(S)\mathsf{Diff}(\mathcal{S}).

Exercise 1.3. [Level III — Quantitative Proof] Extend the telescoping_sum and cech_minimax_regret_bound proof pattern of CechAlignment.lean to prove an exact equality characterization: if ∑k=0m−1c(k)=mq\sum_{k=0}^{m-1} c(k) = m q for some q∈Zq \in \mathbb{Z}, construct an explicit periodic shift a:N→Za : \mathbb{N}\to \mathbb{Z} (a(m)=a(0)a(m) = a(0)) achieving ∣c(k)+a(k+1)−a(k)∣=∣q∣|c(k) + a(k+1) - a(k)| = |q| at every edge 0≤k<m0 \le k < m.

Exercise 1.4. [Level IV — Proof-Level Extension] Prove in the type theory of HigherDiffeology.Basic that for any GG-action on X∈Diff(S)X \in \mathsf{Diff}(\mathcal{S}) with orbit equivalence relation r(x,y):⇔∃g∈G, g⋅x=yr(x,y) :\Leftrightarrow \exists g \in G,\, g \cdot x = y, if a smooth map f:X→Yf : X \to Y satisfies f(g⋅x)=f(x)f(g \cdot x) = f(x) and descends to fˉ:X/r→Y\bar{f} : X/r \to Y, then fˉ\bar{f} is a subduction whenever ff is a subduction.

Differential Cohesive Topoi, Infinitesimal Jets, and Reverse-Mode AD on Quotient Stacks

Volume I established diffeology inside the cohesive (∞,1)(\infty,1)-topos H=Sh∞(Cart)\mathbf{H}= \mathrm{Sh}_\infty(\mathsf{Cart}). Because Cartesian spaces Rn∈Cart\mathbb{R}^n \in \mathsf{Cart} lack nilpotent infinitesimals, derivatives in Diff\mathsf{Diff} can only be detected along finite Euclidean curves—causing kinematic and operational tangent cones to diverge at boundary corners and forcing backward sensitivity sweeps to factor through ambient Euclidean parametrizations. Passing from Cart\mathsf{Cart} to Weil-thickened Cartesian spaces Cartinf\mathsf{Cart}_{\mathrm{inf}} lifts cohesion to differential cohesion [4, 8, 9], uniting corner jet geometry, functorial reverse-mode automatic differentiation (AD), and symplectic reduction on neural gauge stacks [Θ/ ⁣/G][\Theta /\!/G].

The Infinitesimal Modality Red⊣Inf\mathrm{Red}\dashv \mathrm{Inf} and Corner Divergence

Recall that a Weil algebra is a finite-dimensional commutative unital R\mathbb{R}-algebra of the form W=R⊕nW = \mathbb{R}\oplus \mathfrak{n} where n\mathfrak{n} is a nilpotent ideal (nk+1=0\mathfrak{n}^{k+1} = 0). In particular, the algebra of dual numbers R[ε]/(ε2)\mathbb{R}[\varepsilon]/(\varepsilon^2) cuts out the first-order infinitesimal disk D1=Spec(R[ε]/(ε2))D_1 = \mathrm{Spec}(\mathbb{R}[\varepsilon]/(\varepsilon^2)). Defining Cartinf\mathsf{Cart}_{\mathrm{inf}} as the category whose objects are formal duals Rn×Spec(W)\mathbb{R}^n \times \mathrm{Spec}(W) with morphisms given by smooth R\mathbb{R}-algebra homomorphisms C∞(Rm)⊗RW′→C∞(Rn)⊗RWC^\infty(\mathbb{R}^m) \otimes_\mathbb{R}W' \to C^\infty(\mathbb{R}^n) \otimes_\mathbb{R}W yields the differential-cohesive (∞,1)(\infty,1)-topos Hdiff:=Sh∞(Cartinf)\mathbf{H}_{\mathrm{diff}} := \mathrm{Sh}_\infty(\mathsf{Cart}_{\mathrm{inf}}).

Definition 2.1 (Infinitesimal Coreduction and Infinitesimal Disk Shape). Evaluating a smooth space or algebra at reduced Cartesian plots (n=0\mathfrak{n} = 0) induces a pair of adjoint (∞,1)(\infty,1)-functors Red⊣Inf\mathrm{Red}\dashv \mathrm{Inf} on Hdiff\mathbf{H}_{\mathrm{diff}}, where for any X∈Hdiff\mathcal{X}\in \mathbf{H}_{\mathrm{diff}}, the infinitesimal disk bundle Inf(X)\mathrm{Inf}(\mathcal{X}) classifies points equipped with an infinitesimal jet perturbation and satisfies HomHdiff(D1×U,X)≅HomHdiff(U,XD1)\mathrm{Hom}_{\mathbf{H}_{\mathrm{diff}}}(D_1 \times U, \mathcal{X}) \cong \mathrm{Hom}_{\mathbf{H}_{\mathrm{diff}}}(U, \mathcal{X}^{D_1}).

Consider non-manifold singularities such as the quadrant corner K=[0,∞)2⊂R2K = [0,\infty)^2 \subset \mathbb{R}^2. On KK endowed with its subset diffeology Dsub(K)\mathcal{D}_{\mathrm{sub}}(K) from Volume I, there are two distinct notions of tangent space at p=(0,0)p = (0,0):

Left: On the quadrant corner K=[0,∞)2K = [0,\infty)^2, every two-sided smooth curve through (0,0)(0,0) has zero velocity (dim⁡T(0,0)kinK=0\dim T^{\mathrm{kin}}_{(0,0)}K = 0), whereas the Weil algebra C∞(K)⊗RR[ε]/(ε2)C^\infty(K) \otimes_\mathbb{R}\mathbb{R}[\varepsilon]/(\varepsilon^2) retains full 22-dimensional operational sensitivity. Right: Composing reverse-mode AD lenses R[f];R[g]\mathcal{R}[f] \mathbin{;}\mathcal{R}[g] projects horizontally onto the gauge-annihilated cotangent reduction μcot−1(0)/ ⁣/G\mu_{\mathrm{cot}}^{-1}(0) /\!/G.

Theorem 2.2 (Weil Jet Representation and Corner Tangent Divergence on K=[0,∞)2K = {[0,\infty)}^2). Inside Hdiff=Sh∞(Cartinf)\mathbf{H}_{\mathrm{diff}} = \mathrm{Sh}_\infty(\mathsf{Cart}_{\mathrm{inf}}):

  1. Every morphism f:Rn→Rmf : \mathbb{R}^n \to \mathbb{R}^m lifts canonically along D1D_1-exponential objects to its first jet J1(f)=fD1:TRn→TRmJ^1(f) = f^{D_1} : T\mathbb{R}^n \to T\mathbb{R}^m satisfying strict functoriality J1(g∘f)=J1(g)∘J1(f)J^1(g \circ f) = J^1(g) \circ J^1(f) and evaluation f(x+εv)=f(x)+εDf(x)vf(x + \varepsilon v) = f(x) + \varepsilon Df(x)v in C∞(Rn)[ε]/(ε2)C^\infty(\mathbb{R}^n)[\varepsilon]/(\varepsilon^2).

  2. Equipped with subset algebra C∞(K):=C∞(R2)/IKC^\infty(K) := C^\infty(\mathbb{R}^2)/I_K (IK={h∈C∞(R2):h∣K=0}I_K = \{h \in C^\infty(\mathbb{R}^2) : h|_K = 0\}), the quadrant corner K=[0,∞)2K = [0,\infty)^2 satisfies an exact tangent-dimension gap at (0,0)(0,0): T(0,0)kinK={0}(dim⁡=0),T(0,0)operK≅R2(dim⁡=2),T^{\mathrm{kin}}_{(0,0)} K = \{0\} \quad (\dim = 0), \qquad T^{\mathrm{oper}}_{(0,0)} K \cong \mathbb{R}^2 \quad (\dim = 2), and on the closed half-plane H=[0,∞)×RH = [0,\infty) \times \mathbb{R} at (0,0)(0,0), dim⁡T(0,0)kinH=1<2=dim⁡T(0,0)operH\dim T^{\mathrm{kin}}_{(0,0)} H = 1 < 2 = \dim T^{\mathrm{oper}}_{(0,0)} H.

Proof. For (1), because R[ε]/(ε2)\mathbb{R}[\varepsilon]/(\varepsilon^2) has ε2=0\varepsilon^2 = 0, Hadamard’s lemma applied componentwise to smooth maps f:Rn→Rmf : \mathbb{R}^n \to \mathbb{R}^m uniquely expresses f(x+εv)=f(x)+εDf(x)vf(x + \varepsilon v) = f(x) + \varepsilon Df(x)v; substituting this into gg gives g(f(x)+εDf(x)v)=g(f(x))+εDg(f(x))Df(x)vg(f(x) + \varepsilon Df(x)v) = g(f(x)) + \varepsilon Dg(f(x))Df(x)v, establishing J1(g∘f)=J1(g)∘J1(f)J^1(g\circ f) = J^1(g)\circ J^1(f) internally in Sh∞(Cartinf)\mathrm{Sh}_\infty(\mathsf{Cart}_{\mathrm{inf}}). For (2), any plot γ=(γ1,γ2)∈C∞(R,K)\gamma = (\gamma_1,\gamma_2) \in C^\infty(\mathbb{R}, K) with γ(0)=(0,0)\gamma(0)=(0,0) satisfies γi(t)≥0\gamma_i(t) \ge 0 for all t∈Rt \in \mathbb{R}, so t=0t=0 is a two-sided local minimum of each smooth real function γi:R→R\gamma_i : \mathbb{R}\to \mathbb{R}, forcing γ1′(0)=γ2′(0)=0\gamma_1'(0) = \gamma_2'(0) = 0; hence T(0,0)kinK={0}T^{\mathrm{kin}}_{(0,0)} K = \{0\}. Conversely, if h∈IKh \in I_K, then hh vanishes on the open first quadrant (0,∞)2(0,\infty)^2, so all partial derivatives ∂xj∂ykh(0,0)=0\partial_{x}^j\partial_y^k h(0,0) = 0 by continuity up to the apex. Therefore IK⊂m(0,0)∞⊂m(0,0)2I_K \subset \mathfrak{m}_{(0,0)}^\infty \subset \mathfrak{m}_{(0,0)}^2, whence the Zariski cotangent quotient satisfies m(0,0)/(m(0,0)2+IK)=m(0,0)/m(0,0)2≅(R2)∗\mathfrak{m}_{(0,0)} / (\mathfrak{m}_{(0,0)}^2 + I_K) = \mathfrak{m}_{(0,0)}/\mathfrak{m}_{(0,0)}^2 \cong (\mathbb{R}^2)^*, dualizing to T(0,0)operK≅R2T^{\mathrm{oper}}_{(0,0)} K \cong \mathbb{R}^2. On H=[0,∞)×RH = [0,\infty)\times \mathbb{R}, curves satisfy γ1′(0)=0\gamma_1'(0)=0 while γ2′(0)∈R\gamma_2'(0) \in \mathbb{R} is free, giving dim⁡T(0,0)kinH=1\dim T^{\mathrm{kin}}_{(0,0)} H = 1 vs. dim⁡T(0,0)operH=2\dim T^{\mathrm{oper}}_{(0,0)} H = 2. ◻

Categorical Lenses and Functorial Reverse-Mode AD

While exponential objects (−)D1(-)^{D_1} naturally produce forward-mode jets J1J^1, backpropagation computes pullbacks along cotangent bundles T∗XT^*X. In the setting of diffeological vector spaces and linear plots [10, 11], dualizing the vertical tangent bundle yields a category of smooth bidirectional lenses.

Definition 2.3 (Smooth Lens Category Lens(Diff)\mathsf{Lens}(\mathsf{Diff})). Objects are pairs (X,E)(X, E) of a diffeological space XX equipped with a diffeological vector bundle E→XE \to X (canonically (X,T∗X)(X, T^*X) for operational cotangents). A morphism (f,f♯):(X,EX)→(Y,EY)(f, f^\sharp) : (X, E_X) \to (Y, E_Y) consists of a smooth forward map f:X→Yf : X \to Y and a smooth linear backward pullback map f♯:X×YEY→EXf^\sharp : X \times_Y E_Y \to E_X over idX\mathrm{id}_X, composed sequentially via (g,g♯)∘(f,f♯)=(g∘f, (x,zˉ)↦f♯(x,g♯(f(x),zˉ)))(g, g^\sharp) \circ (f, f^\sharp) = (g \circ f,\, (x, \bar{z}) \mapsto f^\sharp(x, g^\sharp(f(x), \bar{z}))).

Functorial reverse-mode composition law R[g∘f]=R[f];R[g]\mathcal{R}[g \circ f] = \mathcal{R}[f] \mathbin{;}\mathcal{R}[g] inside Lens(Diff)\mathsf{Lens}(\mathsf{Diff}).

Theorem 2.4 (Functoriality of the Reverse-Mode Derivative Combinator). Let DiffEucl\mathsf{Diff}_{\mathrm{Eucl}} denote the full subcategory of locally Euclidean parameter spaces and smooth maps in Hdiff\mathbf{H}_{\mathrm{diff}} (or more generally spaces with operational cotangent bundles T∗XT^*X). Sending f:X→Yf : X \to Y to R[f]:=(x↦f(x),  (x,yˉ)↦(Dfx)∗(yˉ))∈HomLens(Diff)((X,T∗X),(Y,T∗Y))\mathcal{R}[f] := \big(x \mapsto f(x),\; (x, \bar{y}) \mapsto (Df_x)^*(\bar{y})\big) \in \mathrm{Hom}_{\mathsf{Lens}(\mathsf{Diff})}\big((X, T^*X), (Y, T^*Y)\big) defines a functor R:DiffEucl→Lens(Diff)\mathcal{R}: \mathsf{Diff}_{\mathrm{Eucl}} \to \mathsf{Lens}(\mathsf{Diff}) satisfying R[idX]=id(X,T∗X)\mathcal{R}[\mathrm{id}_X] = \mathrm{id}_{(X, T^*X)}, R[g∘f]=R[f];R[g]\mathcal{R}[g \circ f] = \mathcal{R}[f] \mathbin{;}\mathcal{R}[g], and preserving finite Cartesian products on both forward values and additive cotangent pullbacks.

Proof. Smoothness of f♯(x,yˉ)=(Dfx)∗(yˉ)f^\sharp(x,\bar{y}) = (Df_x)^*(\bar{y}) follows from functoriality of the Weil tangent functor J1(f)J^1(f) on D1D_1-points and continuity of finite-dimensional transpose on C∞C^\infty plot germs. For identity maps, (D idx)∗=idTx∗X(D\,\mathrm{id}_x)^* = \mathrm{id}_{T_x^* X}. For any composable pair X→fY→gZX \xrightarrow{f} Y \xrightarrow{g} Z, (x,zˉ)∈X×ZT∗Z(x,\bar{z}) \in X \times_Z T^*Z, the chain rule D(g∘f)x=Dgf(x)∘DfxD(g\circ f)_x = Dg_{f(x)} \circ Df_x dualizes contravariantly to D(g∘f)x∗(zˉ)=(Dfx)∗((Dgf(x))∗(zˉ))=f♯(x,g♯(f(x),zˉ)),D(g\circ f)_x^*(\bar{z}) = (Df_x)^*\big((Dg_{f(x)})^*(\bar{z})\big) = f^\sharp\big(x, g^\sharp(f(x), \bar{z})\big), which is precisely lens composition R[f];R[g]\mathcal{R}[f] \mathbin{;}\mathcal{R}[g]. For products X1×X2X_1 \times X_2, linearity of projection differentials implies ((Df1,Df2))∗(yˉ1,yˉ2)=(Df1∗yˉ1,Df2∗yˉ2)((Df_1, Df_2))^*(\bar{y}_1,\bar{y}_2) = (Df_1^*\bar{y}_1, Df_2^*\bar{y}_2), while additive fan-out ΔX:X→X×X\Delta_X : X \to X \times X dualizes to cotangent summation ΔX∗(xˉ1,xˉ2)=xˉ1+xˉ2\Delta_X^*(\bar{x}_1,\bar{x}_2) = \bar{x}_1 + \bar{x}_2. ◻

Cotangent Moment-Map Annihilation on Neural Gauge Stacks

We now connect functorial reverse-mode AD directly to the gauge quotient stacks [Θ/ ⁣/G][\Theta /\!/G] of Volume I, Chapter 9. Let GG be a diffeological Lie group acting smoothly on Θ\Theta. Lifting the action to T∗ΘT^*\Theta via (g⋅θ,(dgθ−1)∗p)(g \cdot \theta, (dg_\theta^{-1})^* p) is Hamiltonian for the canonical 11-form θcan=p dθ\theta_{\mathrm{can}} = p\,d\theta with cotangent moment map μcot:T∗Θ→g∗,⟨μcot(θ,p),ξ⟩:=⟨p,ξΘ(θ)⟩,\mu_{\mathrm{cot}} : T^*\Theta \to \mathfrak{g}^*, \qquad \langle \mu_{\mathrm{cot}}(\theta, p), \xi \rangle := \langle p, \xi_\Theta(\theta) \rangle, where ξΘ(θ)=ddt∣t=0exp⁡(tξ)⋅θ\xi_\Theta(\theta) = \frac{d}{dt}\big|_{t=0} \exp(t\xi)\cdot \theta is the fundamental vector field of ξ∈g\xi \in \mathfrak{g}.

Theorem 2.5 (Cotangent Moment-Map Annihilation and Symplectic AD Descent). Suppose L∈C∞(Θ,R)GL \in C^\infty(\Theta, \mathbb{R})^G is a smooth GG-invariant objective on a GG-manifold Θ\Theta. Then:

  1. Every reverse-mode AD section σL(θ):=(θ,dLθ)\sigma_L(\theta) := (\theta, dL_\theta) of R[L]\mathcal{R}[L] lands identically in the zero level set of the cotangent moment map: μcot(θ,dLθ)=0\mu_{\mathrm{cot}}(\theta, dL_\theta) = 0 for all θ∈Θ\theta \in \Theta.

  2. For an LL-layer bilinear network (Θ=Rd2×r×Rr×d0,G=GLr(R))(\Theta = \mathbb{R}^{d_2\times r} \times \mathbb{R}^{r\times d_0}, G = \mathrm{GL}_r(\mathbb{R})) acting by g⋅(W2,W1)=(W2g−1,gW1)g\cdot(W_2,W_1) = (W_2 g^{-1}, g W_1), the annihilation condition μcot=0\mu_{\mathrm{cot}} = 0 holds via the exact matrix identity W1(∇W1L)⊤−(∇W2L)⊤W2=0∈glr(R)∗.W_1 (\nabla_{W_1} L)^\top - (\nabla_{W_2} L)^\top W_2 = 0 \in \mathfrak{g}\mathfrak{l}_r(\mathbb{R})^*.

  3. Where GG acts freely and properly on a stratum Θreg\Theta_{\mathrm{reg}}, σL\sigma_L descends smoothly to the reduced cotangent stack T∗[Θ/ ⁣/G]≃[μcot−1(0)/ ⁣/G]T^*[\Theta /\!/G] \simeq [\mu_{\mathrm{cot}}^{-1}(0) /\!/G] as the differential dLˉd\bar{L} of the reduced objective Lˉ\bar{L}.

Proof. For (1), GG-invariance gives L(exp⁡(tξ)⋅θ)=L(θ)L(\exp(t\xi)\cdot\theta) = L(\theta) for all t∈Rt \in \mathbb{R} and ξ∈g\xi \in \mathfrak{g}. Differentiating at t=0t=0 produces ⟨μcot(θ,dLθ),ξ⟩=⟨dLθ,ξΘ(θ)⟩=ddt∣t=0L(exp⁡(tξ)⋅θ)=0.\langle \mu_{\mathrm{cot}}(\theta, dL_\theta), \xi \rangle = \langle dL_\theta, \xi_\Theta(\theta) \rangle = \frac{d}{dt}\Big|_{t=0} L(\exp(t\xi)\cdot\theta) = 0. For (2), differentiating t↦(W2e−tξ,etξW1)t \mapsto (W_2 e^{-t\xi}, e^{t\xi} W_1) at t=0t=0 gives ξΘ(W2,W1)=(−W2ξ,ξW1)\xi_\Theta(W_2, W_1) = (-W_2 \xi, \xi W_1). Using cyclic invariance of the Frobenius trace ⟨A,B⟩F=tr(A⊤B)\langle A, B \rangle_F = \mathrm{tr}(A^\top B), ⟨μcot((W2,W1),dL),ξ⟩=−tr((∇W2L)⊤W2ξ)+tr((∇W1L)⊤ξW1)=tr((W1(∇W1L)⊤−(∇W2L)⊤W2)ξ),\begin{aligned} \langle \mu_{\mathrm{cot}}((W_2,W_1), dL), \xi \rangle &= -\mathrm{tr}\big((\nabla_{W_2} L)^\top W_2 \xi\big) + \mathrm{tr}\big((\nabla_{W_1} L)^\top \xi W_1\big) \\ &= \mathrm{tr}\big((W_1(\nabla_{W_1} L)^\top - (\nabla_{W_2} L)^\top W_2)\xi\big), \end{aligned} which vanishes for every ξ∈glr(R)\xi \in \mathfrak{g}\mathfrak{l}_r(\mathbb{R}) by (1) whenever LL factors through W2W1W_2 W_1. Notice that in the case L(W2,W1)=L0(W2W1)L(W_2,W_1) = L_0(W_2W_1), direct evaluation yields ∇W1L=W2⊤∇L0\nabla_{W_1} L = W_2^\top \nabla L_0 and ∇W2L=∇L0W1⊤\nabla_{W_2} L = \nabla L_0 W_1^\top, giving W1(∇L0)⊤W2−W1(∇L0)⊤W2=0W_1 (\nabla L_0)^\top W_2 - W_1 (\nabla L_0)^\top W_2 = 0 directly. Finally, for (3), GG-invariance of LL guarantees that g⋅(θ,dLθ)=(g⋅θ,(dgθ−1)∗dLθ)=(g⋅θ,dLg⋅θ)g \cdot (\theta, dL_\theta) = (g\cdot \theta, (dg_\theta^{-1})^* dL_\theta) = (g\cdot\theta, dL_{g\cdot\theta}), so σL\sigma_L is GG-equivariant into μcot−1(0)\mu_{\mathrm{cot}}^{-1}(0) and descends by Marsden–Weinstein–Souriau reduction to T∗(Θ/G)≅μcot−1(0)/GT^*(\Theta/G) \cong \mu_{\mathrm{cot}}^{-1}(0)/G. ◻

These identities are symbolically and numerically verified across non-quadratic GG-invariant losses to machine precision (<10−13< 10^{-13}) in the script verify_ext2_ad_jets.py inside extensions/.

Exercises

Exercise 2.1. [Level I — Warm-up] Evaluate the Weil jet of f(x,y)=x2sin⁡(y)f(x,y) = x^2 \sin(y) at (x+εu, y+εv)(x + \varepsilon u,\, y + \varepsilon v) in C∞(R2)[ε]/(ε2)C^\infty(\mathbb{R}^2)[\varepsilon]/(\varepsilon^2) and extract both f(x,y)f(x,y) and Df(x,y)(u,v)Df_{(x,y)}(u,v).

Exercise 2.2. [Level II — Structural] Verify explicitly that for K=[0,∞)2K = [0,\infty)^2 with subset diffeology, the one-sided wire curve c(t)=(e−1/t21t>0, 0)c(t) = (e^{-1/t^2}\mathbf{1}_{t>0},\, 0) is smooth as a map R→K\mathbb{R}\to K, yet contributes nothing to T(0,0)kinKT^{\mathrm{kin}}_{(0,0)} K.

Exercise 2.3. [Level III — Lens Decomposition] Consider a residual block F(x)=x+g(Wx)F(x) = x + g(W x) in Lens(Diff)\mathsf{Lens}(\mathsf{Diff}). Write R[F]\mathcal{R}[F] explicitly as a lens pullback and verify how Δ\Delta-fanout sums the skip-connection cotangent yˉ\bar{y} with W⊤(DgWx)∗yˉW^\top (Dg_{Wx})^* \bar{y}.

Exercise 2.4. [Level IV — Proof-Level] Prove that for an LL-layer linear network Θ=∏ℓ=1LRdℓ×dℓ−1\Theta = \prod_{\ell=1}^L \mathbb{R}^{d_\ell \times d_{\ell-1}} with layerwise GLdℓ(R)\mathrm{GL}_{d_\ell}(\mathbb{R}) rescaling symmetry (1≤ℓ≤L−11 \le \ell \le L-1) and any GG-invariant loss LL, the vanishing of μcot(θ,dLθ)=0\mu_{\mathrm{cot}}(\theta, dL_\theta) = 0 at a parameter point θ\theta is equivalent to conservation of the balancedness matrix Wℓ+1⊤Wℓ+1−WℓWℓ⊤W_{\ell+1}^\top W_{\ell+1} - W_\ell W_\ell^\top along Euclidean gradient flow θ˙=−∇L(θ)\dot{\theta} = -\nabla L(\theta).

Stochastic Diffeology: Markov Kernels, Stratum Escape, and Quotient Diffusion

In Volume I [2], Theorems 9.2 and 10.3 proved that every deterministic GG-equivariant flow or optimization rule initialized on a stabilizer fixed-point stratum ΘH={θ∈Θ:∀h∈H, h⋅θ=θ}\Theta^H = \{\theta \in \Theta : \forall h \in H,\ h \cdot \theta = \theta\} remains permanently trapped inside ΘH\Theta^H. Empirical deep learning and generative modeling circumvent such traps through additive isotropic noise, MCMC proposals, and score-based diffusion. In this chapter we enrich Diff\mathsf{Diff} with a smooth Giry/Markov kernel monad StochDiff\mathsf{StochDiff}, prove equivariant quotient descent of Markov kernels, derive exact quantitative Ornstein–Uhlenbeck escape-time laws from unstable fixed-point strata, and prove vertical gauge-orthogonality of heat score fields on quotient stacks.

The Smooth Markov Category StochDiff\mathsf{StochDiff} and Quotient Descent

To formulate randomized algorithms functorially over arbitrary diffeological spaces [12], equip each X∈DiffX \in \mathsf{Diff} with its DD-Borel σ\sigma-algebra ΣD(X)\Sigma_D(X) generated by DD-open subsets. A probability measure ν\nu on (X,ΣD(X))(X, \Sigma_D(X)) is plot-Radon if it is pushed forward from Polish Euclidean balls along countable families of plots.

Definition 3.1 (Smooth Markov Category StochDiff\mathsf{StochDiff}). Let P(X)\mathcal{P}(X) denote the space of plot-Radon probability measures on XX endowed with the coarsest diffeology making p↦(u↦∫Xf dp(u))p \mapsto \big(u \mapsto \int_X f\, d p(u)\big) smooth for every bounded f∈Cb∞(X,R)f \in C^\infty_b(X, \mathbb{R}). The Kleisli category StochDiff:=Kl(P)\mathsf{StochDiff}:= \mathrm{Kl}(\mathcal{P}) has diffeological spaces as objects and smooth Markov kernels K:X→P(Y)K : X \to \mathcal{P}(Y) as morphisms, composed via Chapman–Kolmogorov integration (L∙K)(x,C):=∫YL(y,C) K(x,dy).(L \bullet K)(x, C) := \int_Y L(y, C)\, K(x, dy).

Left: Zero-noise deterministic gradient descent remains trapped on ΘH\Theta^H (∥Yt∥≡0\|Y_t\| \equiv 0), whereas Langevin diffusion breaks HH-symmetry with empirical second moment E[∥Yt∥2]\mathbb{E}[\|Y_t\|^2] matching the theoretical Ornstein–Uhlenbeck growth law d⊥τλ(e2λt−1)\frac{d_\perp\tau}{\lambda}(e^{2\lambda t}-1) (verified within 1.12%1.12\% across 20,00020{,}000 trajectories). Right: Forward heat score fields st(θ)=∇log⁡pt(θ)s_t(\theta) = \nabla\log p_t(\theta) of SO(2)\mathrm{SO}(2)-invariant laws are strictly orthogonal to the vertical gauge fiber so(2)⋅θ\mathfrak{so}(2)\cdot\theta.

Theorem 3.2 (Smooth Equivariant Quotient Kernel Descent). Let GG be a diffeological group acting smoothly on Θ\Theta, let π:Θ↠Θ/G\pi : \Theta \twoheadrightarrow \Theta/G be the quotient subduction, and suppose a smooth Markov kernel K:Θ→P(Θ)K : \Theta \to \mathcal{P}(\Theta) is GG-equivariant in the sense that K(g⋅θ,g⋅B)=K(θ,B)K(g\cdot\theta, g\cdot B) = K(\theta, B) for all θ∈Θ\theta \in \Theta, g∈Gg \in G, and GG-measurable B⊂ΘB \subset \Theta. Then:

  1. For every B∈ΣD(Θ/G)B \in \Sigma_D(\Theta/G), the pullback preimage evaluation K(θ,π−1(B))K(\theta, \pi^{-1}(B)) is GG-invariant in θ\theta.

  2. Consequently, KK descends uniquely to a smooth quotient Markov kernel Kˉ:Θ/G→P(Θ/G)\bar{K} : \Theta/G \to \mathcal{P}(\Theta/G) making the stochastic Chapman–Kolmogorov square commute: Kˉ(π(θ),B)=K(θ,π−1(B)),π∗∙K=Kˉ∙π.\bar{K}\big(\pi(\theta), B\big) = K\big(\theta, \pi^{-1}(B)\big), \qquad \pi_* \bullet K = \bar{K} \bullet \pi.

  3. Explicitly, on Θ=R2∖{0}\Theta = \mathbb{R}^2\setminus\{0\} with G=SO(2)G = \mathrm{SO}(2), π(θ)=∥θ∥2\pi(\theta) = \|\theta\|_2, and isotropic Gaussian transition K(θ,⋅)=N(cθ,σ2I2)K(\theta, \cdot) = \mathcal{N}(c\theta, \sigma^2 I_2), the descended radial kernel Kˉ(r,dr′)\bar{K}(r, dr') is given cleanly by the Rice–Bessel density kˉ(r,r′)=r′σ2exp⁡ ⁣(−(cr)2+(r′)22σ2)I0 ⁣(crr′σ2).\bar{k}(r, r') = \frac{r'}{\sigma^2}\exp\!\Big(-\frac{(cr)^2 + (r')^2}{2\sigma^2}\Big) I_0\!\Big(\frac{c r r'}{\sigma^2}\Big).

Proof. Since π(g⋅θ)=π(θ)\pi(g \cdot \theta) = \pi(\theta), preimages satisfy g⋅π−1(B)=π−1(B)g \cdot \pi^{-1}(B) = \pi^{-1}(B) for every B⊂Θ/GB \subset \Theta/G and g∈Gg \in G. GG-equivariance of KK therefore yields K(g⋅θ,π−1(B))=K(g⋅θ,g⋅π−1(B))=K(θ,π−1(B)).K\big(g\cdot\theta, \pi^{-1}(B)\big) = K\big(g\cdot\theta, g\cdot\pi^{-1}(B)\big) = K\big(\theta, \pi^{-1}(B)\big). By the universal property of the quotient diffeology Θ/G\Theta/G (Volume I and Chapter 1), for every bounded smooth test function φ∈Cb∞(Θ/G)\varphi \in C^\infty_b(\Theta/G), the smooth bounded GG-invariant function θ↦∫Θ(φ∘π) dK(θ,⋅)\theta \mapsto \int_\Theta (\varphi \circ \pi)\, dK(\theta, \cdot) factors uniquely through a smooth function θˉ↦∫Θ/Gφ dKˉ(θˉ,⋅)\bar{\theta} \mapsto \int_{\Theta/G} \varphi\, d\bar{K}(\bar{\theta}, \cdot), proving Kˉ:Θ/G→P(Θ/G)\bar{K} : \Theta/G \to \mathcal{P}(\Theta/G) is smooth in StochDiff\mathsf{StochDiff} and satisfies π∗∙K=Kˉ∙π\pi_* \bullet K = \bar{K} \bullet \pi. For (3), integrating 12πσ2exp⁡ ⁣(−∥r′eiα−creiϕ∥22σ2)r′dα\frac{1}{2\pi\sigma^2}\exp\!\big(-\frac{\|r' e^{i\alpha} - c r e^{i\phi}\|^2}{2\sigma^2}\big) r' d\alpha over α∈[0,2π)\alpha \in [0,2\pi) gives I0(crr′/σ2)I_0(crr'/\sigma^2) via 12π∫02πeucos⁡(α−ϕ)dα=I0(u)\frac{1}{2\pi}\int_0^{2\pi} e^{u\cos(\alpha-\phi)}d\alpha = I_0(u) independently of ϕ\phi. ◻

Instantaneous Stratum Escape and Normal Variance Growth

Now consider a finite compact subgroup H⊂GH \subset G acting orthogonally on Euclidean parameter space Θ=VH⊕V⊥\Theta = V^H \oplus V_\perp (d⊥:=dim⁡V⊥≥1d_\perp := \dim V_\perp \ge 1), where ΘH=VH⊕{0}\Theta^H = V^H \oplus \{0\} is the fixed-point stratum of HH. Write θ=(x,y)\theta = (x, y) with x∈VHx \in V^H, y∈V⊥y \in V_\perp, and let Π⊥(θ)=y\Pi_\perp(\theta) = y. For an HH-invariant smooth loss L∈C∞(Θ,R)HL \in C^\infty(\Theta, \mathbb{R})^H, invariance forces ∇yL(x,0)=0\nabla_y L(x, 0) = 0 identically along ΘH\Theta^H, trapping deterministic gradient flow θ˙=−∇L(θ)\dot{\theta} = -\nabla L(\theta) inside ΘH\Theta^H. Injecting isotropic temperature τ>0\tau > 0 transforms the ODE into the over-damped Langevin SDE dθt=−∇L(θt) dt+2τ dWt.d\theta_t = -\nabla L(\theta_t)\,dt + \sqrt{2\tau}\,dW_t.

Equivariant quotient kernel descent in StochDiff\mathsf{StochDiff} (dashed arrows represent Markov kernels into P\mathcal{P}).

Theorem 3.3 (Instantaneous Almost-Sure Stratum Escape and Exact Normal Growth Law). Let θ0=(x0,0)∈ΘH\theta_0 = (x_0, 0) \in \Theta^H with d⊥=dim⁡V⊥≥1d_\perp = \dim V_\perp \ge 1.

  1. Instantaneous Escape: If τ>0\tau > 0 and ∇L\nabla L is locally Lipschitz, then for every t0>0t_0 > 0, P(θt∈ΘH)=0\mathbb{P}\big(\theta_{t} \in \Theta^H\big) = 0 and P(∃s∈(0,t0]:θs∉ΘH)=1\mathbb{P}\big(\exists s \in (0, t_0] : \theta_s \notin \Theta^H\big) = 1.

  2. Exact Linearized OU Law: If θ0\theta_0 is a symmetry-trapped saddle with normal Hessian ∇yy2L(x0,0)=−λId⊥\nabla^2_{yy} L(x_0, 0) = -\lambda I_{d_\perp} (λ>0\lambda > 0), then the linearized normal perturbation dYt=λYt dt+2τ dWt⊥dY_t = \lambda Y_t\,dt + \sqrt{2\tau}\,dW_t^\perp, Y0=0Y_0 = 0, has exact Gaussian law Yt∼N ⁣(0, σ⊥2(t)Id⊥)Y_t \sim \mathcal{N}\!\big(0,\, \sigma_\perp^2(t) I_{d_\perp}\big) with closed-form normal second moment E[∥Yt∥2]=d⊥τλ(e2λt−1).\mathbb{E}\big[\|Y_t\|^2\big] = \frac{d_\perp \tau}{\lambda}\big(e^{2\lambda t} - 1\big).

  3. Logarithmic Escape-Time Scaling: For small noise τ≪λδ2/d⊥\tau \ll \lambda\delta^2/d_\perp, the first exit time Tesc(δ):=inf⁡{t≥0:∥Yt∥≥δ}T_{\mathrm{esc}}(\delta) := \inf\{t \ge 0 : \|Y_t\| \ge \delta\} scales asymptotically with noise level τ\tau as E[Tesc(δ)]∼12λlog⁡ ⁣(λδ2d⊥τ)\mathbb{E}[T_{\mathrm{esc}}(\delta)] \sim \frac{1}{2\lambda}\log\!\big(\frac{\lambda \delta^2}{d_\perp \tau}\big), so reducing τ\tau by a factor 1010 shifts escape time by log⁡102λ\frac{\log 10}{2\lambda}.

Proof. For (1), along yy-coordinates with locally Lipschitz drift b⊥(x,y)=−∇yL(x,y)b_\perp(x,y) = -\nabla_y L(x,y), non-degeneracy of the elliptic diffusion 2τId⊥\sqrt{2\tau} I_{d_\perp} yields via Girsanov’s theorem / Hormander’s hypoellipticity theorem a strictly positive smooth transition density pt(θ0,dx dy)p_t(\theta_0, dx\,dy) with respect to Lebesgue measure dx dydx\,dy on Θ\Theta for every t>0t > 0. Since d⊥≥1d_\perp \ge 1, the hyperplane ΘH={y=0}\Theta^H = \{y = 0\} has Lebesgue measure zero, giving P(θt∈ΘH)=∫{y=0}pt(θ0,θ) dx dy=0\mathbb{P}(\theta_t \in \Theta^H) = \int_{\{y=0\}} p_t(\theta_0, \theta)\,dx\,dy = 0.

For (2), solving the linear SDE dYt=λYt dt+2τ dWt⊥dY_t = \lambda Y_t\,dt + \sqrt{2\tau}\,dW_t^\perp via integrating factor e−λtYte^{-\lambda t} Y_t gives the stochastic convolution Yt=2τ∫0teλ(t−s) dWs⊥.Y_t = \sqrt{2\tau}\int_0^t e^{\lambda(t-s)}\,dW_s^\perp. Itô’s isometry immediately computes the mean-square radial dispersion: E[∥Yt∥2]=2τd⊥∫0te2λ(t−s) ds=2τd⊥⋅e2λt−12λ=d⊥τλ(e2λt−1).\mathbb{E}\big[\|Y_t\|^2\big] = 2\tau d_\perp \int_0^t e^{2\lambda(t-s)}\,ds = 2\tau d_\perp \cdot \frac{e^{2\lambda t}-1}{2\lambda} = \frac{d_\perp \tau}{\lambda}\big(e^{2\lambda t}-1\big). For (3), at t∗(τ):=12λlog⁡ ⁣(1+λδ2d⊥τ)t_*(\tau) := \frac{1}{2\lambda}\log\!\big(1 + \frac{\lambda \delta^2}{d_\perp \tau}\big) one has E[∥Yt∗∥2]=δ2\mathbb{E}[\|Y_{t_*}\|^2] = \delta^2, and rescaling e−λtYt→Z∞∼N(0,τλId⊥)e^{-\lambda t} Y_t \to Z_\infty \sim \mathcal{N}(0, \frac{\tau}{\lambda} I_{d_\perp}) almost surely as t→∞t\to\infty locates the threshold crossing around 12λlog⁡ ⁣(λδ2d⊥τ)\frac{1}{2\lambda}\log\!\big(\frac{\lambda\delta^2}{d_\perp\tau}\big), shifting by 12λlog⁡(τ1/τ2)\frac{1}{2\lambda}\log(\tau_1/\tau_2) under noise scaling. ◻

Gauge-Horizontal Score Fields and Quotient Diffusion

Consider finally generative diffusion on a Euclidean GG-representation Θ\Theta where GG is a compact connected Lie group acting orthogonally (∥gθ∥=∥θ∥\|g\theta\| = \|\theta\|), and p0∈P(Θ)Gp_0 \in \mathcal{P}(\Theta)^G is a GG-invariant data distribution convolved with isotropic heat kernel N(0,σt2I)\mathcal{N}(0, \sigma_t^2 I) to produce marginals pt(θ)=∫ΘN(θ; θ0,σt2I) p0(dθ0)p_t(\theta) = \int_\Theta \mathcal{N}(\theta;\, \theta_0, \sigma_t^2 I)\, p_0(d\theta_0) and score vector field st(θ):=∇θlog⁡pt(θ)s_t(\theta) := \nabla_\theta \log p_t(\theta).

Theorem 3.4 (Gauge-Orthogonal Score Field and Quotient Reverse-Time Diffusion). Assume p0p_0 is GG-invariant under an orthogonal linear action G⊂O(Θ)G \subset \mathrm{O}(\Theta). Then for every t>0t > 0 and θ∈Θ\theta \in \Theta:

  1. ptp_t is GG-invariant (pt(gθ)=pt(θ)p_t(g\theta) = p_t(\theta)) and the score sts_t is GG-equivariant (st(gθ)=gst(θ)s_t(g\theta) = g s_t(\theta)).

  2. The score vector field is everywhere horizontal with respect to the GG-orbit fibration: for every Lie algebra generator ξ∈g\xi \in \mathfrak{g}, ⟨st(θ),ξΘ(θ)⟩=0.\langle s_t(\theta), \xi_\Theta(\theta) \rangle = 0.

  3. Consequently, the Anderson reverse-time probability flow ODE [13] θ˙=−σ˙tσtst(θ)\dot{\theta} = -\dot{\sigma}_t \sigma_t s_t(\theta) has identically zero vertical velocity along gauge fibers and projects via π∗\pi_* to a closed deterministic flow on the quotient diffeology Θ/G\Theta/G.

Proof. Because g∈O(Θ)g \in \mathrm{O}(\Theta) preserves Euclidean distances and Lebesgue measure (∣det⁡g∣=1|\det g| = 1), change of variables θ0′=g−1θ0\theta_0' = g^{-1}\theta_0 gives pt(gθ)=∫Θ1(2πσt2)d/2e−∥gθ−θ0∥2/(2σt2)p0(dθ0)=∫Θ1(2πσt2)d/2e−∥θ−θ0′∥2/(2σt2)(g∗−1p0)(dθ0′)=pt(θ).p_t(g\theta) = \int_\Theta \frac{1}{(2\pi\sigma_t^2)^{d/2}} e^{-\|g\theta - \theta_0\|^2/(2\sigma_t^2)} p_0(d\theta_0) = \int_\Theta \frac{1}{(2\pi\sigma_t^2)^{d/2}} e^{-\|\theta - \theta_0'\|^2/(2\sigma_t^2)} (g^{-1}_* p_0)(d\theta_0') = p_t(\theta). Differentiating pt(gθ)=pt(θ)p_t(g\theta) = p_t(\theta) with respect to θ\theta and multiplying by g−1g^{-1} gives ∇log⁡pt(gθ)=(g⊤)−1∇log⁡pt(θ)=gst(θ)\nabla \log p_t(g\theta) = (g^\top)^{-1}\nabla \log p_t(\theta) = g s_t(\theta). For (2), differentiating s↦log⁡pt(exp⁡(sξ)θ)s \mapsto \log p_t(\exp(s\xi)\theta) at s=0s=0 using GG-invariance of log⁡pt\log p_t directly yields ⟨st(θ),ξΘ(θ)⟩=dds∣s=0log⁡pt(exp⁡(sξ)θ)=0.\langle s_t(\theta), \xi_\Theta(\theta) \rangle = \frac{d}{ds}\Big|_{s=0} \log p_t(\exp(s\xi)\theta) = 0. Finally, since sts_t is smooth and GG-equivariant with zero vertical component along g⋅θ\mathfrak{g}\cdot\theta, projecting solutions of θ˙=−σ˙tσtst(θ)\dot{\theta} = -\dot{\sigma}_t \sigma_t s_t(\theta) to Θ/G\Theta/G recovers the horizontal gradient-log-density flow of the pushed-forward quotient marginal pˉt=π∗pt\bar{p}_t = \pi_* p_t. ◻

Exercises

Exercise 3.1. [Level I — Warm-up] Explicitly compute the SO(2)\mathrm{SO}(2)-quotient radial kernel kˉ(r,r′)\bar{k}(r, r') when c=0c = 0 in Theorem 3.2(3), and verify ∫0∞kˉ(r,r′) dr′=1\int_0^\infty \bar{k}(r, r')\,dr' = 1.

Exercise 3.2. [Level II — Structural] Show that on the non-compact scaling symmetry group G=R>0G = \mathbb{R}_{>0} acting on R2∖{0}\mathbb{R}^2\setminus\{0\} by dilation g⋅θ=λθg\cdot \theta = \lambda \theta, an unscaled additive Gaussian kernel N(θ,σ2I2)\mathcal{N}(\theta, \sigma^2 I_2) fails to be GG-equivariant, whereas geometric Brownian noise K(θ,⋅)=N(cθ,σ2∥θ∥2I2)K(\theta, \cdot) = \mathcal{N}(c\theta, \sigma^2 \|\theta\|^2 I_2) satisfies K(λθ,λB)=K(θ,B)K(\lambda\theta, \lambda B) = K(\theta, B) and descends cleanly to P1(R)\mathbb{P}^1(\mathbb{R}) / quotient spheres.

Exercise 3.3. [Level III — Quantitative Diffusion] Let dYt=−aYt dt+2τ dWtdY_t = -a Y_t\,dt + \sqrt{2\tau}\,dW_t be a stable (a>0a > 0) Ornstein–Uhlenbeck normal fluctuation around ΘH\Theta^H. Compute E[∥Yt∥2]\mathbb{E}[\|Y_t\|^2] explicitly from Itô’s isometry and contrast its bounded stationary variance d⊥τa\frac{d_\perp \tau}{a} against the exponential instability of Theorem 3.3(2).

Exercise 3.4. [Level IV — Proof-Level] Prove carefully that if K:Θ→P(Θ)K : \Theta \to \mathcal{P}(\Theta) is GG-equivariant for a compact group GG, and μ\mu is an invariant probability measure of KK (∫ΘK(θ,⋅) dμ(θ)=μ\int_\Theta K(\theta, \cdot)\,d\mu(\theta) = \mu), then the GG-orbit-averaged measure μˉ(B):=∫Gμ(g−1B) dg\bar{\mu}(B) := \int_G \mu(g^{-1} B)\,dg (Haar integral) is both GG-invariant and KK-invariant, and satisfies π∗μˉ=Kˉ∗(π∗μˉ)\pi_* \bar{\mu} = \bar{K}_*(\pi_* \bar{\mu}).

Shifted Symplectic Loci (PTVV) and Multisymplectic Diffeology

Chapters 7 and 9 of Volume I [2] established Souriau’s 11-symplectic moment map μ:X→g∗/Γ\mu : X \to \mathfrak{g}^*/\Gamma on smooth stacks and Chapter 13 showed that non-transverse system interconnections fail classical 00-truncated descent and require derived homotopy pullbacks. In this chapter we unify both phenomena via Pantev–Toën–Vaquié–Vezzosi (PTVV) shifted symplectic geometry [14] internal to H=Sh∞(Cart)\mathbf{H}= \mathrm{Sh}_\infty(\mathsf{Cart}), proving canonical (−1)(-1)-shifted symplectic structure on derived critical loci RCrit(L)\mathbb{R}\mathrm{Crit}(L), establishing a Goldstone zero-mode bound via the 44-term Atiyah–Bott–BV complex on [RCrit(L)/ ⁣/G][\mathbb{R}\mathrm{Crit}(L)/\!/G], and lifting Souriau–Noether conservation to nn-plectic covariant PDEs [16].

Derived Critical Loci RCrit(L)\mathbb{R}\mathrm{Crit}(L) and (−1)(-1)-Shifted Symplectic Structure

Let L∈C∞(Θ,R)L \in C^\infty(\Theta, \mathbb{R}) be a smooth objective on an nn-dimensional parameter manifold Θ\Theta. Its classical critical locus Crit(L)=Zeros(dL)=T∗Θ×Θ, 0, dLΘ\mathrm{Crit}(L) = \mathrm{Zeros}(dL) = T^*\Theta \times_{\Theta,\, 0,\, dL} \Theta frequently fails transversality in overparameterized neural networks and gauge theories. Replacing this fiber product by its homotopy intersection in derived smooth algebras yields the Batalin–Vilkovisky (BV) Koszul–Tate dg-manifold [15] RCrit(L):=(C∞(Θ)[θ1∗,…,θn∗],  Q),\mathbb{R}\mathrm{Crit}(L) := \big(C^\infty(\Theta)[\theta_1^*,\dots,\theta_n^*],\; Q\big), where θi\theta_i carry cohomological degree 00, the antifields θi∗\theta_i^* carry degree −1-1, multiplication is graded-commutative (θi∗θj∗=−θj∗θi∗\theta_i^*\theta_j^* = -\theta_j^*\theta_i^*), and the BV differential satisfies Q(θi)=0Q(\theta_i) = 0 and Q(θi∗)=∂θiLQ(\theta_i^*) = \partial_{\theta_i} L.

Left: Exact singular-value spectrum of the Gauss–Newton Hessian HpH_p and gauge-orbit injection ρp\rho_p at a rank-22 critical point of a GL2(R)\mathrm{GL}_2(\mathbb{R})-bilinear network (dim⁡g=4\dim \mathfrak{g}= 4, nullity(Hp)=4=rank(ρp)\mathrm{nullity}(H_p) = 4 = \mathrm{rank}(\rho_p), ∥Hpρp∥F<10−13\|H_p \rho_p\|_F < 10^{-13}). Right: Derived critical locus as a homotopy Lagrangian intersection T∗Θ×0,dLhΘT^*\Theta \times^h_{0, dL} \Theta carrying canonical (−1)(-1)-shifted symplectic form ω(−1)\omega_{(-1)}.

Theorem 4.1 (Canonical (−1)(-1)-Shifted Symplectic Form and Zero Virtual Index). On RCrit(L)\mathbb{R}\mathrm{Crit}(L) for any smooth function L∈C∞(Θ,R)L \in C^\infty(\Theta, \mathbb{R}):

  1. Q2=0Q^2 = 0 identically on the graded Koszul–Tate algebra, making (ORCrit(L),Q)(\mathcal{O}_{\mathbb{R}\mathrm{Crit}(L)}, Q) a differential graded commutative algebra (cdga).

  2. The canonical degree-(−1)(-1) exact 22-form ω(−1):=∑i=1ndθi∧dθi∗\omega_{(-1)} := \sum_{i=1}^n d\theta_i \wedge d\theta_i^* is non-degenerate, de Rham closed (ddRω(−1)=0d_{\mathrm{dR}}\omega_{(-1)} = 0), and QQ-closed (LQω(−1)=ddR(Qθi)⋯=ddR(dL)=0\mathcal{L}_Q \omega_{(-1)} = d_{\mathrm{dR}}(Q\theta_i)\dots = d_{\mathrm{dR}}(dL) = 0), equipping RCrit(L)\mathbb{R}\mathrm{Crit}(L) with a PTVV (−1)(-1)-shifted symplectic structure.

  3. At every classical critical point p∈Crit(L)p \in \mathrm{Crit}(L), the 22-term virtual tangent complex TpRCrit(L)≃[ TpΘ→  ∇2L(p)  Tp∗Θ ](degrees 0→1)\mathbb{T}_p\mathbb{R}\mathrm{Crit}(L) \simeq \Big[\, T_p\Theta \xrightarrow{\;\nabla^2 L(p)\;} T_p^*\Theta \,\Big] \qquad (\text{degrees } 0 \to 1) is quasi-isomorphic to its (−1)(-1)-shifted dual Tp∗RCrit(L)[−1]\mathbb{T}_p^*\mathbb{R}\mathrm{Crit}(L)[-1] and has vanishing virtual tangent dimension: χ(TpRCrit(L))=dim⁡ker⁡∇2L(p)−dim⁡coker∇2L(p)=0\chi(\mathbb{T}_p\mathbb{R}\mathrm{Crit}(L)) = \dim\ker\nabla^2 L(p) - \dim\mathrm{coker}\nabla^2 L(p) = 0.

Proof. For (1), because QQ is an odd derivation (∣Q∣=+1|Q|=+1), Q2=12[Q,Q]Q^2 = \frac{1}{2}[Q,Q] is an even derivation completely determined by its values on generators: Q2(θi)=Q(0)=0Q^2(\theta_i) = Q(0) = 0 and Q2(θi∗)=Q(∂iL(θ))=∑j(∂i∂jL)Q(θj)=0Q^2(\theta_i^*) = Q(\partial_i L(\theta)) = \sum_j (\partial_i\partial_j L) Q(\theta_j) = 0. For (2), ω(−1)=ddR(∑iθi dθi∗)\omega_{(-1)} = d_{\mathrm{dR}}\big(\sum_i \theta_i\, d\theta_i^*\big) is de Rham exact (hence closed) and establishes the canonical isomorphism TRCrit(L)→∼LRCrit(L)[−1]\mathbb{T}\mathbb{R}\mathrm{Crit}(L) \xrightarrow{\sim} \mathbb{L}\mathbb{R}\mathrm{Crit}(L)[-1] swapping ∂θi\partial_{\theta_i} (degree 00) with dθi∗d\theta_i^* (degree −1-1 shifted to +1+1). Its graded Lie derivative along QQ equals LQω(−1)=∑i=1ndθi∧d(Q(θi∗))=∑i=1ndθi∧d(∂iL)=d(dL)=0\mathcal{L}_Q \omega_{(-1)} = \sum_{i=1}^n d\theta_i \wedge d\big(Q(\theta_i^*)\big) = \sum_{i=1}^n d\theta_i \wedge d(\partial_i L) = d(dL) = 0 by mixed-partial symmetry ∂i∂jL=∂j∂iL\partial_i\partial_j L = \partial_j\partial_i L. For (3), linearizing Q(θi∗)=∂iLQ(\theta_i^*) = \partial_i L at p∈Crit(L)p \in \mathrm{Crit}(L) gives the differential dvir=∇2L(p):TpΘ→Tp∗Θd_{\mathrm{vir}} = \nabla^2 L(p) : T_p\Theta \to T_p^*\Theta from degree 00 to degree 11. Symmetry ∇2L(p)⊤=∇2L(p)\nabla^2 L(p)^\top = \nabla^2 L(p) makes TpRCrit(L)\mathbb{T}_p\mathbb{R}\mathrm{Crit}(L) strictly self-dual under [−1][-1], forcing dim⁡ker⁡∇2L(p)=dim⁡coker∇2L(p)\dim\ker\nabla^2 L(p) = \dim\mathrm{coker}\nabla^2 L(p) and χ=dim⁡Θ−dim⁡Θ=0\chi = \dim\Theta - \dim\Theta = 0. ◻

Goldstone Zero Modes and the Atiyah–Bott–BV Complex on [RCrit(L)/ ⁣/G][\mathbb{R}\mathrm{Crit}(L)/\!/G]

Now incorporate a continuous gauge group GG acting smoothly on Θ\Theta with L∈C∞(Θ,R)GL \in C^\infty(\Theta, \mathbb{R})^G invariant. At a symmetric critical point p∈Crit(L)p \in \mathrm{Crit}(L) with stabilizer Lie algebra gp={ξ∈g:ξΘ(p)=0}\mathfrak{g}_p = \{\xi \in \mathfrak{g}: \xi_\Theta(p) = 0\}, the quotient stack [RCrit(L)/ ⁣/G][\mathbb{R}\mathrm{Crit}(L)/\!/G] carries a four-term self-dual Atiyah–Bott–BV tangent complex resolving both gauge orbits and gauge redundancies.

Four-term self-dual Atiyah–Bott–BV tangent complex of [RCrit(L)/ ⁣/G][\mathbb{R}\mathrm{Crit}(L)/\!/G] (degrees −1→0→1→2-1 \to 0 \to 1 \to 2), whose degree-00 cohomology measures non-Goldstone Hessian zero modes.

Theorem 4.2 (Goldstone Nullity Bound and Exact 44-Term Atiyah–Bott–BV Complex). Let L∈C∞(Θ,R)GL \in C^\infty(\Theta, \mathbb{R})^G and let p∈Crit(L)p \in \mathrm{Crit}(L) have infinitesimal orbit map ρp:g→TpΘ\rho_p : \mathfrak{g}\to T_p\Theta, ρp(ξ)=ξΘ(p)\rho_p(\xi) = \xi_\Theta(p).

  1. Complex & Ward Identity: ∇2L(p)∘ρp=0\nabla^2 L(p) \circ \rho_p = 0 and ρp∗∘∇2L(p)=0\rho_p^* \circ \nabla^2 L(p) = 0, so g→  ρp  TpΘ→  ∇2L(p)  Tp∗Θ→  ρp∗  g∗\mathfrak{g}\xrightarrow{\;\rho_p\;} T_p\Theta \xrightarrow{\;\nabla^2 L(p)\;} T_p^*\Theta \xrightarrow{\;\rho_p^*\;} \mathfrak{g}^* is a cochain complex concentrated in degrees {−1,0,1,2}\{-1, 0, 1, 2\} with shifted self-duality H−1≅(H2)∗≅gpH^{-1} \cong (H^2)^* \cong \mathfrak{g}_p and H0≅(H1)∗=ker⁡∇2L(p)/im(ρp)H^0 \cong (H^1)^* = \ker\nabla^2 L(p)/\mathrm{im}(\rho_p).

  2. Goldstone Lower Bound: Every critical point obeys dim⁡ker⁡∇2L(p)≥dim⁡g−dim⁡gp=dim⁡(G⋅p),\dim\ker\nabla^2 L(p) \ge \dim\mathfrak{g}- \dim\mathfrak{g}_p = \dim(G\cdot p), with equality iff pp is Bott–Morse non-degenerate transverse to its GG-orbit (H0(Tp[RCrit(L)/ ⁣/G])=0H^0(\mathbb{T}_p[\mathbb{R}\mathrm{Crit}(L)/\!/G]) = 0).

  3. For the bilinear network factorization L(W2,W1)=12∥W2W1−M∗∥F2L(W_2, W_1) = \frac{1}{2}\|W_2 W_1 - M^*\|_F^2 with Θ=R3×2×R2×3\Theta = \mathbb{R}^{3\times 2}\times\mathbb{R}^{2\times 3}, G=GL2(R)G = \mathrm{GL}_2(\mathbb{R}), and rank(M∗)=2\mathrm{rank}(M^*) = 2, any full-rank factor pair (A∗,B∗)(A^*, B^*) satisfies rank(ρp)=nullity(∇2L(p))=4\mathrm{rank}(\rho_p) = \mathrm{nullity}(\nabla^2 L(p)) = 4, giving exact vanishing Bott–Morse stacky cohomology H0=H1=0H^0 = H^1 = 0.

Proof. Differentiating L(exp⁡(tξ)⋅θ)=L(θ)L(\exp(t\xi)\cdot\theta) = L(\theta) at t=0t=0 gives ⟨dLθ,ξΘ(θ)⟩=0\langle dL_\theta, \xi_\Theta(\theta) \rangle = 0 identically for all θ∈Θ\theta \in \Theta. Differentiating once more with respect to θ\theta at a point pp where dLp=0dL_p = 0 annihilates the d(ξΘ)d(\xi_\Theta) term and leaves ∇2L(p)(ξΘ(p),v)=0∀v∈TpΘ,\nabla^2 L(p)\big(\xi_\Theta(p), v\big) = 0 \qquad \forall v \in T_p\Theta, i.e., ∇2L(p)∘ρp=0\nabla^2 L(p)\circ\rho_p = 0. Taking transposes and using symmetry ∇2L(p)∗=∇2L(p)\nabla^2 L(p)^* = \nabla^2 L(p) yields ρp∗∘∇2L(p)=0\rho_p^* \circ \nabla^2 L(p) = 0, establishing both complex differential identities in (1). By rank–nullity, im(ρp)⊆ker⁡∇2L(p)\mathrm{im}(\rho_p) \subseteq \ker\nabla^2 L(p) forces dim⁡ker⁡∇2L(p)≥dim⁡im(ρp)=dim⁡g−dim⁡gp\dim\ker\nabla^2 L(p) \ge \dim\mathrm{im}(\rho_p) = \dim\mathfrak{g}- \dim\mathfrak{g}_p, proving (2). Finally, for L(W2,W1)=12∥W2W1−M∗∥F2L(W_2, W_1) = \frac{1}{2}\|W_2 W_1 - M^*\|_F^2 at a global minimum A∗B∗=M∗A^* B^* = M^* where rank(A∗)=rank(B∗)=2\mathrm{rank}(A^*) = \mathrm{rank}(B^*) = 2, the Jacobian d(W2W1)d(W_2 W_1) surjects onto the tangent space TM∗M2T_{M^*} \mathcal{M}_2 of dimension 3⋅3−1=83\cdot 3 - 1 = 8 inside R3×3\mathbb{R}^{3\times 3}, so rank(∇2L(p))=8\mathrm{rank}(\nabla^2 L(p)) = 8, nullity(∇2L(p))=12−8=4=dim⁡gl2(R)\mathrm{nullity}(\nabla^2 L(p)) = 12 - 8 = 4 = \dim \mathfrak{g}\mathfrak{l}_2(\mathbb{R}), matching dim⁡(G⋅p)\dim(G\cdot p) with zero transverse zero modes. ◻

Multisymplectic Diffeology and Covariant Noether Conservation

Beyond ODEs over 11-dimensional time, variational field theories over an (n)(n)-dimensional spacetime Σ\Sigma with fields ϕ:Σ→Y\phi : \Sigma \to Y (section of a diffeological bundle E→ΣE \to \Sigma) are governed by (n)(n)-plectic geometry on the first jet bundle J1EJ^1 E [16]. A closed (n+1)(n+1)-form Ω∈Ωn+1(J1E)\Omega \in \Omega^{n+1}(J^1 E) is multisymplectic if ιvΩ=0\iota_v \Omega = 0 (vv tangent to plots) forces v=0v = 0. Given a smooth Lagrangian density L volΣ\mathcal{L}\, \mathrm{vol}_\Sigma on J1EJ^1 E, its Poincaré–Cartan nn-form ΘL\Theta_\mathcal{L} yields ΩL:=−dΘL∈Ωcln+1(J1E)\Omega_\mathcal{L}:= -d\Theta_\mathcal{L}\in \Omega^{n+1}_{\mathrm{cl}}(J^1 E).

Theorem 4.3 (Diffeological nn-Plectic Covariant Noether Law and Higher Period Torus). Let E→ΣE \to \Sigma be a diffeological bundle over an oriented nn-manifold Σ\Sigma with Lagrangian density L volΣ\mathcal{L}\,\mathrm{vol}_\Sigma and Poincaré–Cartan (n+1)(n+1)-form ΩL=−dΘL\Omega_\mathcal{L}= -d\Theta_\mathcal{L}. Suppose a diffeological Lie group GG acts by bundle automorphisms preserving ΘL\Theta_\mathcal{L} (LξJ1EΘL=0\mathcal{L}_{\xi_{J^1 E}} \Theta_\mathcal{L}= 0 for ξ∈g\xi \in \mathfrak{g}).

  1. Covariant Moment nn-Form: The contraction J(ξ):=−ιξJ1EΘL∈Ωn−1(J1E)J(\xi) := -\iota_{\xi_{J^1 E}} \Theta_\mathcal{L}\in \Omega^{n-1}(J^1 E) satisfies the covariant Hamilton equation ιξJ1EΩL=dJ(ξ)\iota_{\xi_{J^1 E}} \Omega_\mathcal{L}= dJ(\xi).

  2. On-Shell Conservation: For every De Donder–Weyl extremal section ϕ:Σ→E\phi : \Sigma \to E (satisfying (j1ϕ)∗(ιWΩL)=0(j^1\phi)^*(\iota_W \Omega_\mathcal{L}) = 0 for all vertical variations WW), the pulled-back (n−1)(n-1)-current satisfies d((j1ϕ)∗J(ξ))=0d\big((j^1\phi)^* J(\xi)\big) = 0. Explicitly, in (1+1)(1+1)D complex nonlinear Klein–Gordon field theory (L=12(∣∂tψ∣2−∣∂xψ∣2)−V(∣ψ∣2)\mathcal{L}= \frac{1}{2}(|\partial_t \psi|^2 - |\partial_x \psi|^2) - V(|\psi|^2), ψ=u+iv\psi = u + iv) under U(1)U(1) phase symmetry, ∂t(uvt−vut)+∂x(vux−uvx)=−(−v ELu+u ELv)≡0(on-shell).\partial_t (u v_t - v u_t) + \partial_x (v u_x - u v_x) = -(-v\,\mathrm{EL}_u + u\,\mathrm{EL}_v) \equiv 0 \quad (\text{on-shell}).

  3. Higher Period Obstruction: For a general closed (n+1)(n+1)-form ω∈Ωcln+1(X)\omega \in \Omega^{n+1}_{\mathrm{cl}}(X) on a connected diffeological space XX, evaluating ω\omega on smooth (n+1)(n+1)-spheres defines its higher period subgroup Pω(n+1):={∫Sn+1σ∗ω}⊂RP_\omega^{(n+1)} := \{\int_{S^{n+1}} \sigma^*\omega\} \subset \mathbb{R}; when Pω(n+1)=αZP_\omega^{(n+1)} = \alpha\mathbb{Z} is discrete, ω\omega integrates to a smooth principal BnTω\mathbf{B}^n T_\omega-gerbe with Tω=R/Pω(n+1)T_\omega = \mathbb{R}/P_\omega^{(n+1)}.

Proof. Cartan’s magic formula gives 0=LξJ1EΘL=d(ιξJ1EΘL)+ιξJ1EdΘL=−dJ(ξ)−ιξJ1EΩL0 = \mathcal{L}_{\xi_{J^1 E}} \Theta_\mathcal{L}= d(\iota_{\xi_{J^1 E}} \Theta_\mathcal{L}) + \iota_{\xi_{J^1 E}} d\Theta_\mathcal{L}= -dJ(\xi) - \iota_{\xi_{J^1 E}} \Omega_\mathcal{L}, yielding (1). Pulling back by j1ϕj^1\phi for a De Donder–Weyl extremal ϕ\phi and decomposing T(j1ϕ)T(j^1\phi) against vertical generators yields (j1ϕ)∗(ιξJ1EΩL)=0(j^1\phi)^*(\iota_{\xi_{J^1 E}} \Omega_\mathcal{L}) = 0 on-shell, whence d((j1ϕ)∗J(ξ))=0d((j^1\phi)^* J(\xi)) = 0 in Ωn(Σ)\Omega^n(\Sigma). Computing explicitly for Klein–Gordon gives J0=uvt−vutJ^0 = u v_t - v u_t, J1=vux−uvxJ^1 = v u_x - u v_x, and direct differentiation gives ∂tJ0+∂xJ1=u(vtt−vxx)−v(utt−uxx)=v ELu−u ELv,\partial_t J^0 + \partial_x J^1 = u(v_{tt}-v_{xx}) - v(u_{tt}-u_{xx}) = v\,\mathrm{EL}_u - u\,\mathrm{EL}_v, vanishing identically on solutions to ELu=ELv=0\mathrm{EL}_u = \mathrm{EL}_v = 0. Finally, for (3), pairing Ωcln+1(X)\Omega_{\mathrm{cl}}^{n+1}(X) against the Kan complex Sing∞(X)\mathrm{Sing}^\infty(X) via Stokes’ theorem sends (n+1)(n+1)-simplices with matched faces to a diffeological homomorphism πn+1(X)→R\pi_{n+1}(X) \to \mathbb{R} whose image Pω(n+1)P_\omega^{(n+1)} classifies the gluing transition nn-cocycles modulo Pω(n+1)P_\omega^{(n+1)}, lifting Iglesias-Zemmour’s integration U(1)U(1)-torus (Volume I, Ch. 7) to degree n+1n+1 [4, 17]. ◻

Symbolic Koszul–Tate checks, GL2(R)\mathrm{GL}_2(\mathbb{R}) Atiyah–Bott–BV singular-value audits, and the (1+1)(1+1)D nonlinear Klein–Gordon conservation law are all verified in verify_ext4_shifted_symplectic.py inside extensions/.

Exercises

Exercise 4.1. [Level I — Warm-up] For a 11-variable function L(x)=x3L(x) = x^3, compute the Koszul–Tate differential QQ on degree-00 and degree-(−1)(-1) elements of R[x,x∗]\mathbb{R}[x, x^*], determine H0(Q)H^0(Q) and H−1(Q)H^{-1}(Q), and compare RCrit(x3)\mathbb{R}\mathrm{Crit}(x^3) against the classical critical locus {0}\{0\}.

Exercise 4.2. [Level II — Structural] Prove directly from Theorem 4.1(2) that the graded Poisson bracket {F,G}BV\{F, G\}_{\mathrm{BV}} induced by ω(−1)=∑idθi∧dθi∗\omega_{(-1)} = \sum_i d\theta_i \wedge d\theta_i^* satisfies {L,θi∗}BV=∂θiL\{L, \theta_i^*\}_{\mathrm{BV}} = \partial_{\theta_i} L, so the master-equation Hamiltonian vector field {L,−}BV\{L, -\}_{\mathrm{BV}} recovers the Koszul–Tate differential QQ.

Exercise 4.3. [Level III — Stacky Cohomology] Compute all four cohomology spaces H−1,H0,H1,H2H^{-1}, H^0, H^1, H^2 of the Atiyah–Bott–BV complex (Theorem 4.2) for the SO(2)\mathrm{SO}(2)-invariant Mexican-hat potential L(x1,x2,x3)=14(x12+x22−1)2+12x32L(x_1, x_2, x_3) = \frac{1}{4}(x_1^2+x_2^2-1)^2 + \frac{1}{2} x_3^2 both at a point p=(1,0,0)p = (1, 0, 0) on the critical circle and at the origin p0=(0,0,0)p_0 = (0, 0, 0).

Exercise 4.4. [Level IV — Proof-Level] Verify by direct computation that for an (n+1)(n+1)-plectic form ω∈Ωcln+1(X)\omega \in \Omega^{n+1}_{\mathrm{cl}}(X), if α∈Ωn(X)\alpha \in \Omega^n(X) satisfies dα=ωd\alpha = \omega, then the higher period group Pω(n+1)P_\omega^{(n+1)} vanishes identically on πn+1(X)\pi_{n+1}(X) and the associated BnTω\mathbf{B}^n T_\omega-bundle trivializes over XX.

Smooth Noncommutative Tori, Powers–Rieffel Projections, and Real Multiplication

In Volume I (Chapter 11 [2]), we proved a sharp arithmetic dichotomy on the irrational Kronecker torus Tα=R/(Z+αZ)T_\alpha = \mathbb{R}/(\mathbb{Z}+ \alpha\mathbb{Z}): while the coarse diffeological group Hdiff1(Tα;R)H^1_{\mathrm{diff}}(T_\alpha;\mathbb{R}) distinguishes Diophantine (dim⁡=1\dim = 1) from Liouville (dim⁡=2ℵ0\dim = 2^{\aleph_0}) slopes, the automorphism group Diff(Tα)≅Tα⋊O(Λα)×\mathsf{Diff}(T_\alpha) \cong T_\alpha \rtimes \mathcal{O}(\Lambda_\alpha)^\times collapses to Tα⋊{±1}T_\alpha \rtimes \{\pm 1\} unless α\alpha is quadratic, in which case Pell units act as non-trivial symmetries. In this chapter we lift the stack [T2/ ⁣/Rα][\mathbb{T}^2 /\!/\mathbb{R}_\alpha] to Connes–Rieffel’s smooth noncommutative torus Aα∞\mathcal{A}_\alpha^\infty [18, 19], construct explicit smooth Powers–Rieffel projections of Chern class ±1\pm 1, reconcile diffeological GL2(Z)\mathrm{GL}_2(\mathbb{Z}) classification with Heisenberg-bimodule Morita equivalence, and establish Manin’s Real-Multiplication link between Pell units and closed modular geodesics on M1,1\mathcal{M}_{1,1} [20].

Smooth Convolution Algebra Aα∞\mathcal{A}_\alpha^\infty and Powers–Rieffel Projections

Rather than throwing away transverse coordinates as in the coarse quotient TαT_\alpha, equip the Kronecker foliation groupoid R⋉θS1\mathbb{R}\ltimes_\theta S^1 (θ=1−α\theta = 1-\alpha, translation (x,n)↦x−nθ(x, n) \mapsto x - n\theta) with its smooth rapid-decay groupoid convolution algebra. Equivalently, let Aα∞\mathcal{A}_\alpha^\infty consist of formal trigonometric series a=∑m,n∈Zam,n UmVn,sup⁡m,n(1+∣m∣+∣n∣)k∣am,n∣<∞(∀k∈N),a = \sum_{m, n \in \mathbb{Z}} a_{m,n}\, U^m V^n, \qquad \sup_{m,n} (1 + |m| + |n|)^k |a_{m,n}| < \infty \quad (\forall k \in \mathbb{N}), subject to the Weyl commutation relation VU=e2πiθUVV U = e^{2\pi i \theta} U V (θ=1−α\theta = 1 - \alpha, so UV=e2πiαVUU V = e^{2\pi i \alpha} V U), involution (UmVn)∗=V−nU−m=e2πimnθU−mV−n(U^m V^n)^* = V^{-n} U^{-m} = e^{2\pi i m n \theta} U^{-m} V^{-n}, and canonical normalized trace τ(a):=a0,0\tau(a) := a_{0,0}. Two commuting unbounded derivations generate the smooth calculus of Aα∞\mathcal{A}_\alpha^\infty: δ1(UmVn):=2πim UmVn,δ2(UmVn):=2πin UmVn.\delta_1(U^m V^n) := 2\pi i m\, U^m V^n, \qquad \delta_2(U^m V^n) := 2\pi i n\, U^m V^n.

Left: Smooth C∞C^\infty Powers–Rieffel projection profile functions f(x)f(x) and g(x)=f(x)(1−f(x))g(x) = \sqrt{f(x)(1-f(x))} at golden slope α=5−12\alpha = \frac{\sqrt{5}-1}{2} (θ=1−α≈0.382\theta = 1 - \alpha \approx 0.382), satisfying τ(pα)=α\tau(p_\alpha) = \alpha and integer Connes Chern number ∣c1(pα)∣=1|c_1(p_\alpha)| = 1 to <10−10< 10^{-10}. Right: Pell-unit matrix preserving the golden lattice Λα\Lambda_\alpha and generating the shortest closed modular geodesic of hyperbolic length ℓhyp(γA)=2log⁡ε+≈1.9248\ell_{\mathrm{hyp}}(\gamma_A) = 2\log\varepsilon_+ \approx 1.9248 on M1,1\mathcal{M}_{1,1}.

Theorem 5.1 (Smooth Powers–Rieffel Projection and Connes Chern Integrality). Let α∈(1/2,1)\alpha \in (1/2, 1) be irrational (θ=1−α∈(0,1/2)\theta = 1 - \alpha \in (0, 1/2)) and choose 0<ε<min⁡(θ,1−2θ)0 < \varepsilon < \min(\theta, 1 - 2\theta). Let ψ∈C∞(R,[0,1])\psi \in C^\infty(\mathbb{R}, [0,1]) be a monotone transition ramp with ψ∣(−∞,0]≡0\psi|_{(-\infty,0]} \equiv 0, ψ∣[1,∞)≡1\psi|_{[1,\infty)} \equiv 1, and define 11-periodic smooth functions on [0,1)[0,1): f(x)={sin⁡2 ⁣(π2ψ(x/ε)),x∈[0,ε),1,x∈[ε,θ),1−sin⁡2 ⁣(π2ψ((x−θ)/ε)),x∈[θ,θ+ε),0,x∈[θ+ε,1),g(x)=12sin⁡ ⁣(πψ(x/ε)) 1[0,ε)(x).f(x) = \begin{cases} \sin^2\!\big(\tfrac{\pi}{2}\psi(x/\varepsilon)\big), & x \in [0,\varepsilon), \\ 1, & x \in [\varepsilon,\theta), \\ 1 - \sin^2\!\big(\tfrac{\pi}{2}\psi((x-\theta)/\varepsilon)\big), & x \in [\theta,\theta+\varepsilon), \\ 0, & x \in [\theta+\varepsilon, 1), \end{cases} \qquad g(x) = \tfrac{1}{2}\sin\!\big(\pi\psi(x/\varepsilon)\big)\,\mathbf{1}_{[0,\varepsilon)}(x). Form the element pθ:=V−1g(U)+f(U)+g(U)V∈Aα∞p_\theta := V^{-1} g(U) + f(U) + g(U) V \in \mathcal{A}_\alpha^\infty and its complement pα:=1−pθ∈Aα∞p_\alpha := 1 - p_\theta \in \mathcal{A}_\alpha^\infty. Then:

  1. pα∗=pαp_\alpha^* = p_\alpha and pα2=pαp_\alpha^2 = p_\alpha hold identically in Aα∞\mathcal{A}_\alpha^\infty (representing a finitely generated projective smooth right Aα∞\mathcal{A}_\alpha^\infty-module / noncommutative vector bundle over [T2/ ⁣/Rα][\mathbb{T}^2 /\!/\mathbb{R}_\alpha]).

  2. Its canonical trace equals τ(pθ)=∫01f(x) dx=θ\tau(p_\theta) = \int_0^1 f(x)\,dx = \theta and τ(pα)=1−θ=α\tau(p_\alpha) = 1 - \theta = \alpha.

  3. Connes’ first Chern pairing with the curvature of the canonical Grassmann connection ∇=δ\nabla = \delta is strictly an integer: c1(pα):=12πi τ(pα(δ1(pα)δ2(pα)−δ2(pα)δ1(pα)))=−1∈Zc_1(p_\alpha) := \frac{1}{2\pi i}\,\tau\Big(p_\alpha\big(\delta_1(p_\alpha)\delta_2(p_\alpha) - \delta_2(p_\alpha)\delta_1(p_\alpha)\big)\Big) = -1 \in \mathbb{Z} (with c1(pθ)=+1c_1(p_\theta) = +1, opposite under the sign convention VU=e2πiθUVV U = e^{2\pi i\theta} U V).

Proof. Represent U,VU, V faithfully on L2(R/Z)L^2(\mathbb{R}/\mathbb{Z}) by (Uξ)(x)=e2πixξ(x)(U\xi)(x) = e^{2\pi i x}\xi(x) and (Vξ)(x)=ξ(x+θ)(V\xi)(x) = \xi(x+\theta), so (VUξ)(x)=e2πi(x+θ)ξ(x+θ)=e2πiθ(UVξ)(x)(V U \xi)(x) = e^{2\pi i(x+\theta)}\xi(x+\theta) = e^{2\pi i\theta}(UV\xi)(x), V∗=V−1V^* = V^{-1}, and Vh(U)V−1=h(x+θ)V h(U) V^{-1} = h(x+\theta) while V−1h(U)V=h(x−θ)V^{-1} h(U) V = h(x-\theta). Because ψ∈C∞(R,[0,1])\psi \in C^\infty(\mathbb{R}, [0,1]) is flat at 00 and 11, ff and gg are manifestly C∞C^\infty 11-periodic functions satisfying g(x)2=14sin⁡2(πψ(x/ε))=f(x)(1−f(x))g(x)^2 = \frac{1}{4}\sin^2(\pi\psi(x/\varepsilon)) = f(x)(1-f(x)) on [0,ε][0,\varepsilon] (see Exercise 5.2); hence pθ∈Aα∞p_\theta \in \mathcal{A}_\alpha^\infty and pθ∗=(g(U)V)∗+f(U)+(V−1g(U))∗=V−1g(U)+f(U)+g(U)V=pθp_\theta^* = (g(U)V)^* + f(U) + (V^{-1}g(U))^* = V^{-1}g(U) + f(U) + g(U)V = p_\theta.

Squaring pθp_\theta sorts terms by powers VkV^k:

  • V2V^2 coefficient: g(U)Vg(U)V=g(x)g(x+θ)V2=0g(U) V g(U) V = g(x) g(x+\theta) V^2 = 0, because supp(g)⊂[0,ε]\mathrm{supp}(g) \subset [0,\varepsilon] and ε+θ<1−ε\varepsilon + \theta < 1 - \varepsilon keeps [0,ε][0,\varepsilon] and [1−θ,1−θ+ε][1-\theta, 1-\theta+\varepsilon] disjoint modulo 11. Similarly the V−2V^{-2} term vanishes.

  • V+1V^{+1} coefficient: f(U)g(U)V+g(U)Vf(U)=(f(x)+f(x+θ))g(x)V=g(U)Vf(U) g(U) V + g(U) V f(U) = \big(f(x) + f(x+\theta)\big) g(x) V = g(U) V, because on x∈[0,ε]x \in [0,\varepsilon], x+θ∈[θ,θ+ε]x+\theta \in [\theta, \theta+\varepsilon] where f(x+θ)=1−sin⁡2(π2ψ(x/ε))=1−f(x)f(x+\theta) = 1 - \sin^2(\frac{\pi}{2}\psi(x/\varepsilon)) = 1 - f(x). By Hermiticity, the V−1V^{-1} coefficient equals V−1g(U)V^{-1} g(U).

  • V0V^0 coefficient: f(x)2+g(x)2+g(x−θ)2f(x)^2 + g(x)^2 + g(x-\theta)^2. On [0,ε][0,\varepsilon], g(x)2=f(x)(1−f(x))g(x)^2 = f(x)(1-f(x)) and g(x−θ)=0g(x-\theta) = 0; on [ε,θ][\varepsilon,\theta], f(x)=1f(x) = 1 and g=0g = 0; on [θ,θ+ε][\theta,\theta+\varepsilon], g(x)=0g(x)=0 while g(x−θ)2=f(x−θ)(1−f(x−θ))=(1−f(x))f(x)g(x-\theta)^2 = f(x-\theta)(1-f(x-\theta)) = (1-f(x))f(x). Hence f2+g(x)2+g(x−θ)2=f(x)f^2 + g(x)^2 + g(x-\theta)^2 = f(x) identically, proving pθ2=pθp_\theta^2 = p_\theta and pα2=(1−pθ)2=pαp_\alpha^2 = (1-p_\theta)^2 = p_\alpha.

Integrating ff directly cancels symmetric ramp tails ∫0εsin⁡2(π2ψ(x/ε)) dx+∫θθ+ε(1−sin⁡2(π2ψ((x−θ)/ε))) dx=ε\int_0^\varepsilon \sin^2(\frac{\pi}{2}\psi(x/\varepsilon))\,dx + \int_\theta^{\theta+\varepsilon}(1-\sin^2(\frac{\pi}{2}\psi((x-\theta)/\varepsilon)))\,dx = \varepsilon, leaving τ(pθ)=ε+(θ−ε)=θ\tau(p_\theta) = \varepsilon + (\theta - \varepsilon) = \theta and τ(pα)=1−θ=α\tau(p_\alpha) = 1-\theta = \alpha. Finally, because δ1(1)=δ2(1)=0\delta_1(1)=\delta_2(1)=0, computing Connes’ 22-cocycle pairing reduces via integration by parts to c1(pθ)=+1c_1(p_\theta) = +1 and hence c1(pα)=−c1(pθ)=−1∈Zc_1(p_\alpha) = -c_1(p_\theta) = -1 \in \mathbb{Z} [18, 19]. ◻

Diffeological Rigidity vs. Morita Equivalence

In Volume I [2, Ch. 11], two coarse irrational tori satisfy Tα≅DiffTβT_\alpha \cong_{\mathsf{Diff}} T_\beta iff β∈GL2(Z)⋅α\beta \in \mathrm{GL}_2(\mathbb{Z})\cdot \alpha. Passing to noncommutative convolution stacks Aα∞\mathcal{A}_\alpha^\infty enlarges this equivalence from diffeomorphism isomorphism to **smooth Morita equivalence**, where Heisenberg bimodules interpolate all fractional linear transformations β=aα+bcα+d\beta = \frac{a\alpha + b}{c\alpha + d} and scale the ordered K0K_0-trace range linearly by (cα+d)−1(c\alpha + d)^{-1}.

Categorical bridge linking the foliation stack [T2/ ⁣/Rα][\mathbb{T}^2 /\!/\mathbb{R}_\alpha], Connes–Rieffel algebra Aα∞\mathcal{A}_\alpha^\infty, K0K_0-trace scaling, and closed geodesics on M1,1\mathcal{M}_{1,1}.

Theorem 5.2 (GL2(Z)\mathrm{GL}_2(\mathbb{Z}) Diffeological Classification vs. Heisenberg Morita Equivalence). Let α,β∈R∖Q\alpha, \beta \in \mathbb{R}\setminus\mathbb{Q}.

  1. The ordered Chern–trace homomorphism τ∗:K0(Aα∞)→R\tau_* : K_0(\mathcal{A}_\alpha^\infty) \to \mathbb{R} is an order isomorphism onto Z+αZ⊂R\mathbb{Z}+ \alpha\mathbb{Z}\subset \mathbb{R} via [p]↦τ(p)=rk0+α c1(p)[p] \mapsto \tau(p) = \mathrm{rk}_0 + \alpha\,c_1(p).

  2. Two smooth noncommutative tori Aα∞\mathcal{A}_\alpha^\infty and Aβ∞\mathcal{A}_\beta^\infty are strongly Morita equivalent (Aα∞≃MorAβ∞\mathcal{A}_\alpha^\infty\simeq_{\mathrm{Mor}} \mathcal{A}_\beta^\infty) via Rieffel’s smooth Schwartz Heisenberg bimodule S(R×Z/cZ)\mathcal{S}(\mathbb{R}\times \mathbb{Z}/c\mathbb{Z}) if and only if β∈GL2(Z)⋅α\beta \in \mathrm{GL}_2(\mathbb{Z})\cdot \alpha, matching the exact classification of coarse irrational tori Tα≅DiffTβT_\alpha \cong_{\mathsf{Diff}} T_\beta.

  3. Under β=aα+bcα+d\beta = \frac{a\alpha + b}{c\alpha + d} (ad−bc=±1ad - bc = \pm 1), the bimodule equivalence induces a scaling isomorphism on K0K_0 traces matching multiplication by ∣cα+d∣−1|c\alpha + d|^{-1}: Z+βZ=1∣cα+d∣(Z+αZ).\mathbb{Z}+ \beta \mathbb{Z}= \frac{1}{|c\alpha + d|}(\mathbb{Z}+ \alpha\mathbb{Z}).

Proof. For (1), Connes’ cyclic Chern character (c0,c1):K0(Aα∞)→Z⊕Z(c_0, c_1) : K_0(\mathcal{A}_\alpha^\infty) \to \mathbb{Z}\oplus \mathbb{Z} sends [1]↦(1,0)[1] \mapsto (1,0) and [pα]↦(0,1)[p_\alpha] \mapsto (0, 1), and evaluating τ(p)=∫ch(p)\tau(p) = \int \mathrm{ch}(p) gives τ(p)=c0(p)+c1(p)α\tau(p) = c_0(p) + c_1(p)\alpha [19]. By Pimsner–Voiculescu six-term exactness, (c0,c1)(c_0, c_1) is an isomorphism onto Z2\mathbb{Z}^2, so τ(K0(Aα∞))=Z+αZ\tau(K_0(\mathcal{A}_\alpha^\infty)) = \mathbb{Z}+ \alpha\mathbb{Z}. For (2), Rieffel’s Morita equivalence theorem [19] constructs a Schwartz equivalence bimodule for every rational matrix action γ∈GL2(Z)\gamma \in \mathrm{GL}_2(\mathbb{Z}) acting transversally on S(R×Z/cZ)\mathcal{S}(\mathbb{R}\times \mathbb{Z}/c\mathbb{Z}) with left rotation angle α\alpha and right rotation angle β=aα+bcα+d\beta = \frac{a\alpha + b}{c\alpha + d}, and conversely any Morita equivalence preserves the unnormalized trace up to positive constant r>0r > 0, forcing Z+βZ=r(Z+αZ)\mathbb{Z}+ \beta\mathbb{Z}= r(\mathbb{Z}+ \alpha\mathbb{Z}), which yields integers a,b,c,da,b,c,d with ∣ad−bc∣=1|ad-bc|=1. Notice that in Diff\mathsf{Diff}, Tα≅TβT_\alpha \cong T_\beta iff λ(Z+αZ)=Z+βZ\lambda(\mathbb{Z}+\alpha\mathbb{Z}) = \mathbb{Z}+\beta\mathbb{Z} (Volume I, Thm 11.2), giving the identical GL2(Z)\mathrm{GL}_2(\mathbb{Z})-orbit invariant for (3). ◻

Pell-Unit Automorphisms and Manin’s Real Multiplication

Specialize now to a real quadratic irrational α∈K=Q(D)\alpha \in K = \mathbb{Q}(\sqrt{D}) (D>1D > 1 square-free). Every unit u>1u > 1 of the multiplier order O(Λα)={λ∈K:λΛα⊂Λα}\mathcal{O}(\Lambda_\alpha) = \{\lambda \in K : \lambda \Lambda_\alpha \subset \Lambda_\alpha\} satisfies uΛα=Λαu \Lambda_\alpha = \Lambda_\alpha with norm NmK/Q(u)=±1\mathrm{Nm}_{K/\mathbb{Q}}(u) = \pm 1; totally positive units (Nm(u)=+1\mathrm{Nm}(u) = +1, e.g. u2u^2 or the fundamental totally positive Pell unit ε+\varepsilon_+) preserve orientation and act inside SL2(Z)\mathrm{SL}_2(\mathbb{Z}) [20].

Theorem 5.3 (Pell-Unit Geodesic Regulator Formula on M1,1\mathcal{M}_{1,1}). Suppose α∈Q(D)∖Q\alpha \in \mathbb{Q}(\sqrt{D})\setminus\mathbb{Q} is stabilized by a hyperbolic matrix A=(abcd)∈SL2(Z)A = \begin{pmatrix} a & b \\ c & d \end{pmatrix} \in \mathrm{SL}_2(\mathbb{Z}) with tr(A)=a+d>2\mathrm{tr}(A) = a+d > 2 and aα+bcα+d=α\frac{a\alpha + b}{c\alpha + d} = \alpha. Let ε+:=cα+d>1\varepsilon_+ := c\alpha + d > 1. Then:

  1. [α,1]⊤[\alpha, 1]^\top is a right eigenvector of AA with eigenvalue ε+=cα+d\varepsilon_+ = c\alpha + d (ε+Λα=Λα\varepsilon_+ \Lambda_\alpha = \Lambda_\alpha), giving ε+∈O(Λα)+×\varepsilon_+ \in \mathcal{O}(\Lambda_\alpha)_+^\times a totally positive unit (ε++ε+−1=tr(A)\varepsilon_+ + \varepsilon_+^{-1} = \mathrm{tr}(A)) acting as a diffeological automorphism of TαT_\alpha and a Morita self-equivalence of Aα∞\mathcal{A}_\alpha^\infty.

  2. In the hyperbolic upper half-plane H\mathbb{H}, AA translates along the geodesic semicircle connecting the two Galois conjugates α\alpha and α′\alpha' by the exact closed geodesic regulator length on the modular stack M1,1=[H/ ⁣/SL2(Z)]\mathcal{M}_{1,1} = [\mathbb{H}/\!/\mathrm{SL}_2(\mathbb{Z})]: ℓhyp(γA)=2cosh⁡−1 ⁣(tr(A)2)=2log⁡ε+=2RΛα+.\ell_{\mathrm{hyp}}(\gamma_A) = 2\cosh^{-1}\!\Big(\frac{\mathrm{tr}(A)}{2}\Big) = 2\log\varepsilon_+ = 2 R_{\Lambda_\alpha}^+.

  3. Specifically, for α1=1+52\alpha_1 = \frac{1+\sqrt{5}}{2} with A1=(2111)A_1 = \begin{pmatrix}2 & 1 \\ 1 & 1\end{pmatrix} (tr=3\mathrm{tr}=3), ε+=3+52=φ2\varepsilon_+ = \frac{3+\sqrt{5}}{2} = \varphi^2 and ℓhyp(γA1)=2log⁡ ⁣(3+52)=4log⁡φ≈1.9248473\ell_{\mathrm{hyp}}(\gamma_{A_1}) = 2\log\!\big(\frac{3+\sqrt{5}}{2}\big) = 4\log\varphi \approx 1.9248473; for α2=2\alpha_2 = \sqrt{2} with A2=(3423)A_2 = \begin{pmatrix}3 & 4 \\ 2 & 3\end{pmatrix} (tr=6\mathrm{tr}=6), ε+=3+22=(1+2)2\varepsilon_+ = 3 + 2\sqrt{2} = (1+\sqrt{2})^2 and ℓhyp(γA2)=2log⁡(3+22)≈3.5254943\ell_{\mathrm{hyp}}(\gamma_{A_2}) = 2\log(3+2\sqrt{2}) \approx 3.5254943.

Proof. Multiplying aα+bcα+d=α\frac{a\alpha+b}{c\alpha+d} = \alpha by ε+=cα+d\varepsilon_+ = c\alpha + d yields aα+b=ε+αa\alpha + b = \varepsilon_+ \alpha and cα+d=ε+c\alpha + d = \varepsilon_+, i.e., A(α1)=ε+(α1)A \begin{pmatrix}\alpha \\ 1\end{pmatrix} = \varepsilon_+ \begin{pmatrix}\alpha \\ 1\end{pmatrix}. Thus multiplication by ε+\varepsilon_+ maps the Z\mathbb{Z}-basis {1,α}\{1, \alpha\} of Λα\Lambda_\alpha to {d+cα,b+aα}\{d + c\alpha, b + a\alpha\} via matrix A⊤∈SL2(Z)A^\top \in \mathrm{SL}_2(\mathbb{Z}), preserving orientation and Λα\Lambda_\alpha isomorphically (det⁡A=+1\det A = +1 implies Nm(ε+)=ε+ε−=1\mathrm{Nm}(\varepsilon_+) = \varepsilon_+ \varepsilon_- = 1, hence ε++ε+−1=tr(A)\varepsilon_+ + \varepsilon_+^{-1} = \mathrm{tr}(A)). For (2), since A∈SL2(Z)A \in \mathrm{SL}_2(\mathbb{Z}) is conjugate over PSL2(R)\mathrm{PSL}_2(\mathbb{R}) to the diagonal dilation z↦ε+2zz \mapsto \varepsilon_+^2 z (fixing 00 and ∞\infty, whose hyperbolic metric distance along the imaginary axis from ii to ε+2i\varepsilon_+^2 i equals ∫1ε+2dyy=log⁡(ε+2)=2log⁡ε+\int_1^{\varepsilon_+^2} \frac{dy}{y} = \log(\varepsilon_+^2) = 2\log\varepsilon_+), every hyperbolic element A∈SL2(Z)A \in \mathrm{SL}_2(\mathbb{Z}) closes into a periodic geodesic γA\gamma_A on M1,1\mathcal{M}_{1,1} of length ℓhyp(γA)=2log⁡ε+=2cosh⁡−1 ⁣(ε++ε+−12)=2cosh⁡−1 ⁣(tr(A)2).\ell_{\mathrm{hyp}}(\gamma_A) = 2\log\varepsilon_+ = 2\cosh^{-1}\!\Big(\frac{\varepsilon_+ + \varepsilon_+^{-1}}{2}\Big) = 2\cosh^{-1}\!\Big(\frac{\mathrm{tr}(A)}{2}\Big). Direct substitution verifies both real-quadratic examples in (3). ◻

Both the Fourier-basis C∞C^\infty Powers–Rieffel Chern calculation (<10−10< 10^{-10}) and the symbolic Pell geodesic regulator identities are verified in extensions/verify_ext5_noncomm_real_mult.py.

Exercises

Exercise 5.1. [Level I — Warm-up] Verify directly from VU=e2πiθUVV U = e^{2\pi i \theta} U V that VnUm=e2πimnθUmVnV^n U^m = e^{2\pi i m n \theta} U^m V^n for all m,n∈Zm, n \in \mathbb{Z}, and deduce the ∗*-algebra product rule (a∗b)m,n=∑m1,n1am1,n1bm−m1,n−n1e2πiθn1(m−m1)(a * b)_{m,n} = \sum_{m_1,n_1} a_{m_1,n_1} b_{m-m_1, n-n_1} e^{2\pi i \theta n_1 (m - m_1)}.

Exercise 5.2. [Level II — Smoothness Detail] Notice that in Theorem 5.1, g(x)=f(x)(1−f(x))1[0,ε)(x)g(x) = \sqrt{f(x)(1-f(x))}\mathbf{1}_{[0,\varepsilon)}(x) must itself be C∞C^\infty at x=0x=0 and x=εx=\varepsilon. Verify that choosing f(x/ε)=sin⁡2 ⁣(π2ψ(x/ε))f(x/\varepsilon) = \sin^2\!\big(\frac{\pi}{2}\psi(x/\varepsilon)\big) on [0,ε)[0,\varepsilon) makes g(x)=12sin⁡ ⁣(πψ(x/ε))g(x) = \frac{1}{2}\sin\!\big(\pi\psi(x/\varepsilon)\big) manifestly C∞C^\infty everywhere without square-root branch singularities!

Exercise 5.3. [Level III — K-Theory Trace Scaling] Let α=1+52\alpha = \frac{1+\sqrt{5}}{2} and β=1α=5−12\beta = \frac{1}{\alpha} = \frac{\sqrt{5}-1}{2} (related by S=(0110)∈GL2(Z)S = \begin{pmatrix}0&1\\1&0\end{pmatrix} \in \mathrm{GL}_2(\mathbb{Z})). Express the transformed lattice Z+βZ\mathbb{Z}+ \beta\mathbb{Z} explicitly as λ(Z+αZ)\lambda(\mathbb{Z}+\alpha\mathbb{Z}) and determine the image of [1],[pα]∈K0(Aα∞)[1], [p_\alpha] \in K_0(\mathcal{A}_\alpha^\infty) in K0(Aβ∞)K_0(\mathcal{A}_\beta^\infty) under Heisenberg Morita equivalence.

Exercise 5.4. [Level IV — Proof-Level] Prove that on Tα=R/ΛαT_\alpha = \mathbb{R}/\Lambda_\alpha with real quadratic α∈Q(D)\alpha \in \mathbb{Q}(\sqrt{D}) and totally positive fundamental Pell unit ε+>1\varepsilon_+ > 1, the map ϕ~(x)=ε+x\tilde{\phi}(x) = \varepsilon_+ x descends to a diffeomorphism ϕ∈Diff(Tα)\phi \in \mathsf{Diff}(T_\alpha) whose pullback on Hdiff1(Tα;R)H_{\mathrm{diff}}^1(T_\alpha;\mathbb{R}) does not fix the irrational rotation cocycle, and compute the exact trace tr(A)\mathrm{tr}(A) from ℓhyp(γA)=2log⁡ε+\ell_{\mathrm{hyp}}(\gamma_A) = 2\log\varepsilon_+ for α=3\alpha = \sqrt{3} (A=(2312)A = \begin{pmatrix}2&3\\1&2\end{pmatrix}).

Complete Solutions to Graded Exercises

Solutions to Chapter 1 Exercises (Lean 4 Formalization)

Solution to Exercise 1.1 &Universe Polymorphism in discreteSite& (Universe Polymorphism in discreteSite).  In Lean 4, an equality proposition a = b has type Prop (Sort 0\mathrm{Sort}\ 0). Applying PLift lifts a proposition from Sort 0\mathrm{Sort}\ 0 to Type 0\mathrm{Type}\ 0 (Sort 1\mathrm{Sort}\ 1). However, PlotSite.{u} requires Dom : Type u, pts : Dom -> Type u, and Hom : Dom -> Dom -> Type u, all living in the same universe parameter u. Wrapping PLift (a = b) inside ULift.{u} moves it from Type 0\mathrm{Type}\ 0 up to Type u\mathrm{Type}\ u uniformly for all u≥0u \ge 0, avoiding universe mismatches when u≥1u \ge 1. □\square

Solution to Exercise 1.2 &Constant Sheaves and Terminal Space Over a Plot Site& (Constant Sheaves and Terminal Space Over a Plot Site).  Define the terminal diffeological space TerminalSpace S with Carrier := PUnit and isPlot := fun _ => True. All three diffeological axioms hold trivially by trivial, and every X∈Diff(S)X \in \mathsf{Diff}(\mathcal{S}) admits a unique smooth morphism X→TerminalSpace SX \to \mathrm{TerminalSpace}\, \mathcal{S} given by fun _ => PUnit.unit, independent of any extra hypotheses on covering sieves. For the discrete diffeology on a type DD, define isPlot p:⇔∃C, IsCover U C∧∀{V}(h:V→U), C h→∃d∈D, ∀v, p(mapHom h v)=d\mathrm{isPlot}\, p :\Leftrightarrow \exists C,\, \mathrm{IsCover}\, U\, C \land \forall \{V\} (h : V \to U),\, C\, h \to \exists d \in D,\, \forall v,\, p(\mathrm{mapHom}\, h\, v) = d. Constant plots follow from cover_max, precomposition follows from cover_pullback, and locality follows from cover_trans in the same three steps as QuotientSpace. No additional sieve axiom beyond the four Grothendieck axioms is required. □\square

Solution to Exercise 1.3 &Achieving Exact Uniform Residuals on Divisible Čech Cycles& (Achieving Exact Uniform Residuals on Divisible Čech Cycles).  Suppose ∑k=0m−1c(k)=mq\sum_{k=0}^{m-1} c(k) = m q with m≥1m \ge 1 and q∈Zq \in \mathbb{Z}. Define a:N→Za : \mathbb{N}\to \mathbb{Z} recursively by a(0)=0a(0) = 0 and a(k+1):=a(k)+q−c(k)(0≤k<m),a(k + 1) := a(k) + q - c(k) \qquad (0 \le k < m), extended periodically for k≥mk \ge m if desired (only 0≤k≤m0 \le k \le m enters the sum). Inducting on k≤mk \le m gives a(k)=kq−∑j=0k−1c(j).a(k) = k q - \sum_{j=0}^{k-1} c(j). At k=mk = m, a(m)=mq−∑j=0m−1c(j)=0=a(0)a(m) = m q - \sum_{j=0}^{m-1} c(j) = 0 = a(0), so aa satisfies the periodicity condition a m = a 0. Moreover, at every edge 0≤k<m0 \le k < m, c(k)+(a(k+1)−a(k))=c(k)+(q−c(k))=q,c(k) + \big(a(k+1) - a(k)\big) = c(k) + (q - c(k)) = q, so absInt (c k + coboundary a k) = absInt q uniformly on every edge, matching the minimax regret bound m⋅∣q∣=∣∑k=0m−1c(k)∣m \cdot |q| = |\sum_{k=0}^{m-1} c(k)| with equality. (In Lean 4, this construction is literally a recursive Nat function plus one omega induction step.) □\square

Solution to Exercise 1.4 &Quotient Descent Preserves Subductions& (Quotient Descent Preserves Subductions).  Let π:=quotientMk X r:X→X/r\pi := \mathrm{quotientMk}\, X\, r : X \to X/r, and let fˉ:X/r→Y\bar{f} : X/r \to Y satisfy fˉ∘π=f\bar{f} \circ \pi = f. Assume f:X↠Yf : X \twoheadrightarrow Y is a subduction.

  1. Surjectivity: For any y∈Yy \in Y, surjectivity of ff yields x∈Xx \in X with f(x)=yf(x) = y, hence fˉ(π(x))=y\bar{f}(\pi(x)) = y.

  2. Local plot lifting: Given any plot p:pts(U)→Yp : \mathrm{pts}(U) \to Y, since ff is a subduction there exist a covering sieve CC of UU (IsCover U C) and, for every leg h:V→Uh : V \to U in CC, a plot qh:pts(V)→Xq_h : \mathrm{pts}(V) \to X satisfying f(qh(v))=p(mapHom h v)f(q_h(v)) = p(\mathrm{mapHom}\, h\, v). Pushing forward along the smooth projection π\pi gives a plot qˉh:=π∘qh\bar{q}_h := \pi \circ q_h of QuotSpace X r\mathrm{QuotSpace}\, X\, r satisfying fˉ(qˉh(v))=fˉ(π(qh(v)))=f(qh(v))=p(mapHom h v).\bar{f}(\bar{q}_h(v)) = \bar{f}(\pi(q_h(v))) = f(q_h(v)) = p(\mathrm{mapHom}\, h\, v).

Thus fˉ\bar{f} is a subduction. Notice that the entire proof uses only f = f_bar pi and smoothness of π\pi, without any choice principle. □\square

Solutions to Chapter 2 Exercises (Differential Cohesion & AD)

Solution to Exercise 2.1 &Weil Evaluation of x2sin⁡(y)x^2 \sin(y)& (Weil Evaluation of x2sin⁡(y)x^2 \sin(y)).  Modulo ε2=0\varepsilon^2 = 0, we expand (x+εu)2=x2+2xuε(x + \varepsilon u)^2 = x^2 + 2xu\varepsilon and sin⁡(y+εv)=sin⁡(y)+εvcos⁡(y)\sin(y + \varepsilon v) = \sin(y) + \varepsilon v \cos(y). Multiplying in R[ε]/(ε2)\mathbb{R}[\varepsilon]/(\varepsilon^2) drops the ε2\varepsilon^2 term and gives f(x+εu,y+εv)=x2sin⁡(y)+ε(2xusin⁡(y)+x2vcos⁡(y)).f(x + \varepsilon u, y + \varepsilon v) = x^2 \sin(y) + \varepsilon\big(2 x u \sin(y) + x^2 v \cos(y)\big). Hence the ε0\varepsilon^0-component recovers f(x,y)f(x,y) and the ε1\varepsilon^1-component equals Df(x,y)(u,v)=2xsin⁡(y) u+x2cos⁡(y) vDf_{(x,y)}(u,v) = 2x\sin(y)\,u + x^2\cos(y)\,v. □\square

Solution to Exercise 2.2 &Flat Smooth Boundary Plots and T(0,0)kinKT^{\mathrm{kin}}_{(0,0)}K& (Flat Smooth Boundary Plots and T(0,0)kinKT^{\mathrm{kin}}_{(0,0)}K).  Since t↦e−1/t21t>0t \mapsto e^{-1/t^2}\mathbf{1}_{t>0} is C∞C^\infty on R\mathbb{R} with c(k)(0)=0c^{(k)}(0) = 0 for every k≥0k \ge 0 and satisfies e−1/t21t>0≥0e^{-1/t^2}\mathbf{1}_{t>0} \ge 0, c:R→R2c : \mathbb{R}\to \mathbb{R}^2 is smooth into R2\mathbb{R}^2 and has image inside K=[0,∞)2K = [0,\infty)^2. By the definition of the subset diffeology Dsub(K)\mathcal{D}_{\mathrm{sub}}(K), cc is therefore a smooth plot of KK passing through (0,0)(0,0) at t=0t = 0. However, its derivative at t=0t=0 is c′(0)=(0,0)c'(0) = (0,0), and by Theorem 2.2(2) the same holds for every smooth plot γ:R→K\gamma : \mathbb{R}\to K with γ(0)=(0,0)\gamma(0)=(0,0), proving T(0,0)kinK={0}T^{\mathrm{kin}}_{(0,0)}K = \{0\}. □\square

Solution to Exercise 2.3 &Residual Block Reverse-Mode Lens& (Residual Block Reverse-Mode Lens).  Factor F=add∘(idX×(g∘W))∘ΔXF = \mathrm{add} \circ (\mathrm{id}_X \times (g \circ W)) \circ \Delta_X, where ΔX(x)=(x,x)\Delta_X(x) = (x,x) and add(x1,x2)=x1+x2\mathrm{add}(x_1, x_2) = x_1 + x_2. Applying Theorem 2.4:

Lens composition therefore gives R[F](x,yˉ)=(x+g(Wx),  yˉ+W⊤(DgWx)∗yˉ),\mathcal{R}[F](x, \bar{y}) = \big(x + g(Wx),\; \bar{y} + W^\top (Dg_{Wx})^* \bar{y}\big), exhibiting both skip gradient propagation and non-vanishing gradient transport when (DgWx)∗≈0(Dg_{Wx})^* \approx 0. □\square

Solution to Exercise 2.4 &Cotangent Annihilation and Layerwise Balancedness Conservation& (Cotangent Annihilation and Layerwise Balancedness Conservation).  At each internal hidden interface 1≤ℓ≤L−11 \le \ell \le L-1, the infinitesimal gldℓ(R)\mathfrak{g}\mathfrak{l}_{d_\ell}(\mathbb{R})-action of ξℓ\xi_\ell sends (Wℓ+1,Wℓ)↦(−Wℓ+1ξℓ, ξℓWℓ)(W_{\ell+1}, W_\ell) \mapsto (-W_{\ell+1}\xi_\ell,\, \xi_\ell W_\ell). By Theorem 2.5, GG-invariance of LL gives ⟨μcot(θ,dLθ),ξ⟩=0\langle \mu_{\mathrm{cot}}(\theta, dL_\theta), \xi \rangle = 0, which at interface ℓ\ell reads Wℓ(∇WℓL)⊤−(∇Wℓ+1L)⊤Wℓ+1=0.W_\ell (\nabla_{W_\ell} L)^\top - (\nabla_{W_{\ell+1}} L)^\top W_{\ell+1} = 0. Under Euclidean gradient flow W˙k=−∇WkL\dot{W}_k = -\nabla_{W_k} L, differentiate the balancedness matrix Bℓ(t):=Wℓ+1⊤Wℓ+1−WℓWℓ⊤B_\ell(t) := W_{\ell+1}^\top W_{\ell+1} - W_\ell W_\ell^\top: ddtBℓ=W˙ℓ+1⊤Wℓ+1+Wℓ+1⊤W˙ℓ+1−W˙ℓWℓ⊤−WℓW˙ℓ⊤=−((∇Wℓ+1L)⊤Wℓ+1−Wℓ(∇WℓL)⊤)−(Wℓ+1⊤(∇Wℓ+1L)−(∇WℓL)Wℓ⊤)=−(μcot,ℓ+μcot,ℓ⊤)=0,\begin{aligned} \frac{d}{dt} B_\ell &= \dot{W}_{\ell+1}^\top W_{\ell+1} + W_{\ell+1}^\top \dot{W}_{\ell+1} - \dot{W}_\ell W_\ell^\top - W_\ell \dot{W}_\ell^\top \\ &= -\Big((\nabla_{W_{\ell+1}} L)^\top W_{\ell+1} - W_\ell (\nabla_{W_\ell} L)^\top\Big) - \Big(W_{\ell+1}^\top (\nabla_{W_{\ell+1}} L) - (\nabla_{W_\ell} L) W_\ell^\top\Big) \\ &= -\big(\mu_{\mathrm{cot},\ell} + \mu_{\mathrm{cot},\ell}^\top\big) = 0, \end{aligned} so Bℓ(t)=Bℓ(0)B_\ell(t) = B_\ell(0) is an exact dynamical invariant of gradient flow directly matching Souriau–Noether conservation. Note further that the GG-invariance identity μcot,ℓ=0\mu_{\mathrm{cot},\ell} = 0 also forces skew-symmetric parts of Wℓ(∇WℓL)⊤−(∇Wℓ+1L)⊤Wℓ+1W_\ell(\nabla_{W_\ell} L)^\top - (\nabla_{W_{\ell+1}} L)^\top W_{\ell+1} to vanish. □\square

Solutions to Chapter 3 Exercises (Stochastic Diffeology)

Solution to Exercise 3.1 &Rayleigh Quotient Limit at c=0c = 0& (Rayleigh Quotient Limit at c=0c = 0).  Setting c=0c = 0 in Theorem 3.2(3) uses I0(0)=1I_0(0) = 1, reducing the Rice–Bessel kernel to the Rayleigh density kˉ(r,r′)=r′σ2exp⁡ ⁣(−(r′)22σ2),r′>0.\bar{k}(r, r') = \frac{r'}{\sigma^2}\exp\!\Big(-\frac{(r')^2}{2\sigma^2}\Big), \qquad r' > 0. Substituting u=(r′)2/(2σ2)u = (r')^2/(2\sigma^2), du=(r′/σ2) dr′du = (r'/\sigma^2)\,dr', gives ∫0∞kˉ(r,r′) dr′=∫0∞e−u du=1\int_0^\infty \bar{k}(r, r')\,dr' = \int_0^\infty e^{-u}\,du = 1. □\square

Solution to Exercise 3.2 &Dilation Equivariance Requires State-Dependent Diffusion Covariance& (Dilation Equivariance Requires State-Dependent Diffusion Covariance).  Under scaling gλ(θ)=λθg_\lambda(\theta) = \lambda\theta (λ>0\lambda > 0), pushforward of N(cθ,σ02I)\mathcal{N}(c\theta, \sigma_0^2 I) yields N(λcθ,λ2σ02I)\mathcal{N}(\lambda c\theta, \lambda^2 \sigma_0^2 I).

Solution to Exercise 3.3 &Stable Normal Fluctuation Variance Around a Symmetric Minimum& (Stable Normal Fluctuation Variance Around a Symmetric Minimum).  Replacing +λ+\lambda by −a-a (a>0a > 0) in the linear SDE gives Yt=2τ∫0te−a(t−s) dWs⊥Y_t = \sqrt{2\tau}\int_0^t e^{-a(t-s)}\,dW_s^\perp for Y0=0Y_0 = 0. By Itô’s isometry, E[∥Yt∥2]=2τd⊥∫0te−2a(t−s) ds=d⊥τa(1−e−2at).\mathbb{E}\big[\|Y_t\|^2\big] = 2\tau d_\perp \int_0^t e^{-2a(t-s)}\,ds = \frac{d_\perp \tau}{a}\big(1 - e^{-2at}\big). Unlike the unstable saddle (+λ+ \lambda, where E[∥Yt∥2]\mathbb{E}[\|Y_t\|^2] grows exponentially as e2λte^{2\lambda t} and forces almost-sure escape in logarithmic time), here lim⁡t→∞E[∥Yt∥2]=d⊥τa=O(τ)\lim_{t\to\infty} \mathbb{E}[\|Y_t\|^2] = \frac{d_\perp\tau}{a} = O(\tau) stays localized near ΘH\Theta^H within an O(τ)O(\sqrt{\tau}) tubular neighborhood. □\square

Solution to Exercise 3.4 &Haar Averaging and Stationary Quotient Measures& (Haar Averaging and Stationary Quotient Measures).  For any bounded measurable ff on Θ\Theta:

  1. GG-invariance of μˉ\bar{\mu}: Left invariance of normalized Haar measure dgdg gives ∫f(hθ) dμˉ(θ)=∫G∫Θf(hgθ) dμ(θ) dg=∫G∫Θf(uθ) dμ(θ) du=∫f dμˉ\int f(h\theta)\,d\bar{\mu}(\theta) = \int_G \int_\Theta f(hg\theta)\,d\mu(\theta)\,dg = \int_G \int_\Theta f(u\theta)\,d\mu(\theta)\,du = \int f\,d\bar{\mu}.

  2. KK-stationarity of μˉ\bar{\mu}: Using Fubini’s theorem, GG-equivariance (Kf)(gθ)=∫f(gy) K(θ,dy)=(K(f∘g))(θ)(Kf)(g\theta) = \int f(g y)\,K(\theta, dy) = (K(f\circ g))(\theta), and KK-invariance of μ\mu, ∫Θ(Kf)(θ) dμˉ(θ)=∫G∫Θ(Kf)(gθ) dμ(θ) dg=∫G∫Θ(K(f∘g))(θ) dμ(θ) dg=∫G∫Θf(gθ) dμ(θ) dg=∫Θf dμˉ.\begin{aligned} \int_\Theta (Kf)(\theta)\,d\bar{\mu}(\theta) &= \int_G \int_\Theta (Kf)(g\theta)\,d\mu(\theta)\,dg = \int_G \int_\Theta \big(K(f\circ g)\big)(\theta)\,d\mu(\theta)\,dg \\ &= \int_G \int_\Theta f(g\theta)\,d\mu(\theta)\,dg = \int_\Theta f\,d\bar{\mu}. \end{aligned}

  3. Quotient stationarity: Taking f=φ∘πf = \varphi \circ \pi in π∗μˉ(φ)=∫(K(φ∘π)) dμˉ=∫(Kˉφ)∘π dμˉ\pi_* \bar{\mu}(\varphi) = \int (K(\varphi\circ\pi))\,d\bar{\mu} = \int (\bar{K}\varphi)\circ\pi\,d\bar{\mu} yields π∗μˉ=Kˉ∗(π∗μˉ)\pi_*\bar{\mu} = \bar{K}_*(\pi_*\bar{\mu}). □\square

Solutions to Chapter 4 Exercises (Shifted & Multisymplectic Diffeology)

Solution to Exercise 4.1 &Koszul–Tate Resolution of the Fat Point L(x)=x3L(x) = x^3& (Koszul–Tate Resolution of the Fat Point L(x)=x3L(x) = x^3).  On generators xx (degree 00) and x∗x^* (degree −1-1), we have Q(x)=0Q(x) = 0 and Q(x∗)=L′(x)=3x2Q(x^*) = L'(x) = 3 x^2. Since (x∗)2=0(x^*)^2 = 0 in the graded-commutative algebra R[x,x∗]\mathbb{R}[x, x^*], an arbitrary element has the form a(x)+b(x)x∗a(x) + b(x)x^*, with Q(a(x)+b(x)x∗)=3x2b(x)Q(a(x) + b(x)x^*) = 3 x^2 b(x). Therefore:

Solution to Exercise 4.2 &Master Equation Derivation {L,−}BV=Q\{L, -\}_{\mathrm{BV}} = Q& (Master Equation Derivation {L,−}BV=Q\{L, -\}_{\mathrm{BV}} = Q).  With ω(−1)=∑i=1ndθi∧dθi∗\omega_{(-1)} = \sum_{i=1}^n d\theta_i \wedge d\theta_i^*, the odd symplectic inverse pairing (antibracket) acts on smooth observables F,GF, G by {F,G}BV=∑i=1n(∂rF∂θi∂lG∂θi∗−∂rF∂θi∗∂lG∂θi).\{F, G\}_{\mathrm{BV}} = \sum_{i=1}^n \Big(\frac{\partial_r F}{\partial \theta_i} \frac{\partial_l G}{\partial \theta_i^*} - \frac{\partial_r F}{\partial \theta_i^*} \frac{\partial_l G}{\partial \theta_i}\Big). Since L(θ)L(\theta) depends only on degree-00 coordinates θi\theta_i (∂θi∗L=0\partial_{\theta_i^*} L = 0), setting F=LF = L gives {L,θj}BV=0=Q(θj),{L,θj∗}BV=∑i=1n∂L∂θiδij=∂L∂θj=Q(θj∗).\{L, \theta_j\}_{\mathrm{BV}} = 0 = Q(\theta_j), \qquad \{L, \theta_j^*\}_{\mathrm{BV}} = \sum_{i=1}^n \frac{\partial L}{\partial \theta_i} \delta_{ij} = \frac{\partial L}{\partial \theta_j} = Q(\theta_j^*). Hence Q={L,−}BVQ = \{L, -\}_{\mathrm{BV}} identically, and Q2=0Q^2 = 0 is equivalent to the classical BV master equation {L,L}BV=0\{L, L\}_{\mathrm{BV}} = 0. □\square

Solution to Exercise 4.3 &Atiyah–Bott–BV Cohomology at Critical Stratum vs. Origin& (Atiyah–Bott–BV Cohomology at Critical Stratum vs. Origin).  For L(x1,x2,x3)=14(x12+x22−1)2+12x32L(x_1, x_2, x_3) = \frac{1}{4}(x_1^2 + x_2^2 - 1)^2 + \frac{1}{2}x_3^2 with g=so(2)≅R\mathfrak{g}= \mathfrak{so}(2) \cong \mathbb{R}:

  1. At p=(1,0,0)p = (1, 0, 0): ρp(ξ)=(0,ξ,0)⊤\rho_p(\xi) = (0, \xi, 0)^\top (rank(ρp)=1\mathrm{rank}(\rho_p) = 1, stabilizer gp=0\mathfrak{g}_p = 0), and ∇2L(p)=diag(2,0,1)\nabla^2 L(p) = \mathrm{diag}(2, 0, 1) (rank=2\mathrm{rank}= 2). The 44-term complex is R→(0,1,0)⊤R3→diag(2,0,1)R3→(0,1,0)R\mathbb{R}\xrightarrow{(0,1,0)^\top} \mathbb{R}^3 \xrightarrow{\mathrm{diag}(2,0,1)} \mathbb{R}^3 \xrightarrow{(0,1,0)} \mathbb{R}, which is **exact everywhere**: H−1=0,H0=0,H1=0,H2=0.H^{-1} = 0, \qquad H^0 = 0, \qquad H^1 = 0, \qquad H^2 = 0.

  2. At the unstable symmetric origin p0=(0,0,0)p_0 = (0, 0, 0): ρp0=0\rho_{p_0} = 0 (gp0=R\mathfrak{g}_{p_0} = \mathbb{R}), and ∇2L(p0)=diag(−1,−1,1)\nabla^2 L(p_0) = \mathrm{diag}(-1, -1, 1) is invertible (rank=3\mathrm{rank}= 3)! Thus the complex R→0R3→∼R3→0R\mathbb{R}\xrightarrow{0} \mathbb{R}^3 \xrightarrow{\sim} \mathbb{R}^3 \xrightarrow{0} \mathbb{R} has: H−1≅R,H0=0,H1=0,H2≅R,H^{-1} \cong \mathbb{R}, \qquad H^0 = 0, \qquad H^1 = 0, \qquad H^2 \cong \mathbb{R}, reflecting the unbroken SO(2)\mathrm{SO}(2) isotropy at the origin. □\square

Solution to Exercise 4.4 &Exact (n+1)(n+1)-Forms Have Trivial Higher Period Groups& (Exact (n+1)(n+1)-Forms Have Trivial Higher Period Groups).  Suppose ω=dα\omega = d\alpha for a global nn-form α∈Ωn(X)\alpha \in \Omega^n(X). For any smooth spherical plot σ:Sn+1→X\sigma : S^{n+1} \to X, naturality of the exterior derivative on plots [1] gives σ∗ω=σ∗(dα)=d(σ∗α)\sigma^* \omega = \sigma^*(d\alpha) = d(\sigma^*\alpha). Since Sn+1S^{n+1} is a closed manifold without boundary (∂Sn+1=∅\partial S^{n+1} = \emptyset), Stokes’ theorem gives ∫Sn+1σ∗ω=∫Sn+1d(σ∗α)=∫∂Sn+1σ∗α=0.\int_{S^{n+1}} \sigma^* \omega = \int_{S^{n+1}} d(\sigma^* \alpha) = \int_{\partial S^{n+1}} \sigma^* \alpha = 0. Hence Pω(n+1)={0}⊂RP_\omega^{(n+1)} = \{0\} \subset \mathbb{R}. Because every local transition (n−1)(n-1)-cocycle for integrating ω\omega differs from α\alpha by closed gauge shifts whose integral periods are zero, the structural group Tω=R/{0}=RT_\omega = \mathbb{R}/\{0\} = \mathbb{R} is contractible and the associated higher BnTω\mathbf{B}^n T_\omega-bundle trivializes over every paracompact / diffeologically fine cover. □\square

Solutions to Chapter 5 Exercises (Noncommutative Tori & Real Multiplication)

Solution to Exercise 5.1 &Weyl Commutation Relation and Twisted Convolution& (Weyl Commutation Relation and Twisted Convolution).  Starting from VU=qUVV U = q U V (q=e2πiθq = e^{2\pi i \theta}), conjugation gives VUV−1=qUV U V^{-1} = q U, so VUmV−1=(VUV−1)m=qmUmV U^m V^{-1} = (V U V^{-1})^m = q^m U^m, i.e., VUm=qmUmVV U^m = q^m U^m V. Inducting on n∈Zn \in \mathbb{Z} gives VnUm=qmnUmVn=e2πimnθUmVnV^n U^m = q^{mn} U^m V^n = e^{2\pi i m n \theta} U^m V^n. Consequently, multiplying two Fourier series a=∑am1,n1Um1Vn1a = \sum a_{m_1,n_1} U^{m_1} V^{n_1} and b=∑bm2,n2Um2Vn2b = \sum b_{m_2,n_2} U^{m_2} V^{n_2} moves Vn1V^{n_1} past Um2U^{m_2}: (Um1Vn1)(Um2Vn2)=e2πin1m2θ Um1+m2Vn1+n2.(U^{m_1} V^{n_1})(U^{m_2} V^{n_2}) = e^{2\pi i n_1 m_2 \theta}\, U^{m_1 + m_2} V^{n_1 + n_2}. Setting m=m1+m2m = m_1 + m_2, n=n1+n2n = n_1 + n_2 (m2=m−m1m_2 = m - m_1, n2=n−n1n_2 = n - n_1) produces (a∗b)m,n=∑m1,n1am1,n1bm−m1,n−n1e2πiθn1(m−m1)(a * b)_{m,n} = \sum_{m_1,n_1} a_{m_1,n_1} b_{m-m_1,n-n_1} e^{2\pi i \theta n_1 (m - m_1)}. □\square

Solution to Exercise 5.2 &C∞C^\infty Regularity of the Powers–Rieffel Bump g(x)g(x)& (C∞C^\infty Regularity of the Powers–Rieffel Bump g(x)g(x)).  If f(x)=sin⁡2 ⁣(π2ψ(x/ε))f(x) = \sin^2\!\big(\frac{\pi}{2}\psi(x/\varepsilon)\big) on [0,ε)[0,\varepsilon) for a C∞C^\infty bump ψ:R→[0,1]\psi : \mathbb{R}\to [0,1] vanishing on (−∞,0](-\infty,0] and equal to 11 on [1,∞)[1,\infty), then f(x)(1−f(x))=sin⁡2 ⁣(π2ψ(x/ε))cos⁡2 ⁣(π2ψ(x/ε))=14sin⁡2 ⁣(πψ(x/ε)).f(x)\big(1 - f(x)\big) = \sin^2\!\Big(\frac{\pi}{2}\psi(x/\varepsilon)\Big)\cos^2\!\Big(\frac{\pi}{2}\psi(x/\varepsilon)\Big) = \frac{1}{4}\sin^2\!\big(\pi \psi(x/\varepsilon)\big). Since ψ(x/ε)∈[0,1]\psi(x/\varepsilon) \in [0,1], sin⁡(πψ(x/ε))≥0\sin(\pi \psi(x/\varepsilon)) \ge 0 everywhere on [0,ε)[0,\varepsilon), so taking the positive square root removes the square-root branch completely and yields g(x)=12sin⁡ ⁣(πψ(x/ε))1[0,ε)(x),g(x) = \frac{1}{2}\sin\!\big(\pi\psi(x/\varepsilon)\big)\mathbf{1}_{[0,\varepsilon)}(x), which is C∞C^\infty on all of R/Z\mathbb{R}/\mathbb{Z} (all derivatives vanish flatly at 00 and ε\varepsilon). □\square

Solution to Exercise 5.3 &Golden-Mean Morita Trace Scaling Z+α−1Z\mathbb{Z}+ \alpha^{-1}\mathbb{Z}& (Golden-Mean Morita Trace Scaling Z+α−1Z\mathbb{Z}+ \alpha^{-1}\mathbb{Z}).  Since α=1+52\alpha = \frac{1+\sqrt{5}}{2} satisfies α2=α+1\alpha^2 = \alpha + 1, we have β=α−1=α−1∈Z+αZ\beta = \alpha^{-1} = \alpha - 1 \in \mathbb{Z}+ \alpha\mathbb{Z}. More explicitly, multiplying Z+αZ\mathbb{Z}+ \alpha\mathbb{Z} by α−1\alpha^{-1} yields α−1(Z+αZ)=Z⋅α−1+Z=Z+βZ.\alpha^{-1}(\mathbb{Z}+ \alpha\mathbb{Z}) = \mathbb{Z}\cdot \alpha^{-1} + \mathbb{Z}= \mathbb{Z}+ \beta\mathbb{Z}. Here S=(0110)S = \begin{pmatrix}0&1\\1&0\end{pmatrix} has ∣cα+d∣−1=∣α∣−1=β|c\alpha + d|^{-1} = |\alpha|^{-1} = \beta, matching Theorem 5.2(3). Under the normalized trace scaling τβ=ατα\tau_\beta = \alpha \tau_\alpha, the unit [1]∈K0(Aα∞)[1] \in K_0(\mathcal{A}_\alpha^\infty) maps to a projection of trace α=1+β\alpha = 1 + \beta, corresponding to the rank-11 free-plus-Rieffel class [1]+[pβ][1] + [p_\beta] modulo sign convention on SS (det⁡S=−1\det S = -1 reverses orientation of c1c_1). □\square

Solution to Exercise 5.4 &Pell Diffeomorphism on Q(3)\mathbb{Q}(\sqrt{3}) and Geodesic Regulator& (Pell Diffeomorphism on Q(3)\mathbb{Q}(\sqrt{3}) and Geodesic Regulator).  For any totally positive unit ε+∈O(Λα)+×\varepsilon_+ \in \mathcal{O}(\Lambda_\alpha)_+^\times, ε+Λα=Λα\varepsilon_+ \Lambda_\alpha = \Lambda_\alpha, so ϕ~(x)=ε+x\tilde{\phi}(x) = \varepsilon_+ x preserves the kernel Λα\Lambda_\alpha bijectively (with smooth inverse x↦ε+−1xx \mapsto \varepsilon_+^{-1} x) and therefore descends by the quotient universal property to a diffeomorphism ϕ∈Diff(Tα)\phi \in \mathsf{Diff}(T_\alpha). Now test α=3\alpha = \sqrt{3} with A=(2312)∈SL2(Z)A = \begin{pmatrix}2 & 3 \\ 1 & 2\end{pmatrix} \in \mathrm{SL}_2(\mathbb{Z}): det⁡A=4−3=1\det A = 4 - 3 = 1, aα+b=23+3=(2+3)3=ε+αa\alpha + b = 2\sqrt{3} + 3 = (2+\sqrt{3})\sqrt{3} = \varepsilon_+ \alpha, and cα+d=3+2=ε+>1c\alpha + d = \sqrt{3} + 2 = \varepsilon_+ > 1, with ε+−1=2−3\varepsilon_+^{-1} = 2 - \sqrt{3}. Notice ε++ε+−1=4=tr(A)\varepsilon_+ + \varepsilon_+^{-1} = 4 = \mathrm{tr}(A). Therefore the closed modular geodesic γA\gamma_A on M1,1\mathcal{M}_{1,1} has exact hyperbolic length ℓhyp(γA)=2log⁡(2+3)=2cosh⁡−1(2),\ell_{\mathrm{hyp}}(\gamma_A) = 2\log(2 + \sqrt{3}) = 2\cosh^{-1}(2), so tr(A)=2cosh⁡(ℓhyp(γA)/2)=ε++ε+−1=4\mathrm{tr}(A) = 2\cosh(\ell_{\mathrm{hyp}}(\gamma_A)/2) = \varepsilon_+ + \varepsilon_+^{-1} = 4. □\square

References

  1. P. Iglesias-Zemmour, Diffeology, Mathematical Surveys and Monographs, vol. 185, American Mathematical Society, Providence, RI, 2013.

  2. Anonymous, Smooth Descent and Higher Diffeology: Symplectic Stacks and Applied Semantics, Higher Categorical Semantics (Editorially reviewed, 2026), https://higher-categorical-semantics.pages.dev/research/smooth-descent-and-higher-diffeology-symplectic-stacks-and-applied-semantics-d60b20ae.

  3. J. C. Baez and A. E. Hoffnung, Convenient categories of smooth spaces, Transactions of the American Mathematical Society 363 (2011), no. 11, 5789–5825.

  4. U. Schreiber, Differential Cohomology in a Cohesive Infinity-Topos, arXiv:1310.7930, 2013.

  5. M. Shulman, Brouwer’s fixed-point theorem in real-cohesive homotopy type theory, Mathematical Structures in Computer Science 28 (2018), no. 6, 856–941.

  6. J. Lurie, Higher Topos Theory, Annals of Mathematics Studies, vol. 170, Princeton University Press, 2009.

  7. L. de Moura and S. Ullrich, The Lean 4 theorem prover and programming language, in CADE-28, Lecture Notes in Computer Science, vol. 12699, Springer, 2021, pp. 625–635.

  8. E. J. Dubuc, Sur les modèles de la géométrie différentielle synthétique, Cahiers de Topologie et Géométrie Différentielle Catégoriques 20 (1979), no. 3, 231–279.

  9. A. Kock, Synthetic Differential Geometry, 2nd ed., London Mathematical Society Lecture Note Series, vol. 333, Cambridge University Press, 2006.

  10. R. Cockett, G. Cruttwell, J. Gallagher, J.-S. P. Lemay, B. MacAdam, G. Plotkin, and D. Roberts, Reverse derivative categories, in CSL 2020, LIPIcs vol. 152, 2020, pp. 18:1–18:16.

  11. B. Fong, D. I. Spivak, and R. Tuyéras, Backprop as functor: A compositional perspective on supervised learning, in LICS 2019, IEEE, 2019, pp. 1–13.

  12. T. Fritz, A synthetic approach to Markov kernels, conditional independence and theorems on sufficient statistics, Advances in Mathematics 370 (2020), 107239.

  13. B. D. O. Anderson, Reverse-time diffusion equation models, Stochastic Processes and their Applications 12 (1982), no. 3, 313–326.

  14. T. Pantev, B. Toën, M. Vaquié, and G. Vezzosi, Shifted symplectic structures, Publications Mathématiques de l’IHÉS 117 (2013), 271–328.

  15. I. A. Batalin and G. A. Vilkovisky, Gauge algebra and quantization, Physics Letters B 102 (1981), no. 1, 27–31.

  16. C. L. Rogers, L∞L_\infty-algebras from multisymplectic geometry, Letters in Mathematical Physics 100 (2012), 29–50.

  17. D. Fiorenza, C. L. Rogers, and U. Schreiber, Higher U(1)U(1)-gerbe connections in geometric prequantization, Reviews in Mathematical Physics 28 (2016), no. 06, 1650012.

  18. A. Connes, C∗C^*-algèbres et géométrie différentielle, Comptes Rendus de l’Académie des Sciences Paris 290 (1980), 599–604.

  19. M. A. Rieffel, C∗C^*-algebras associated with irrational rotations, Pacific Journal of Mathematics 93 (1981), no. 2, 415–429.

  20. Y. I. Manin, Real multiplication and noncommutative geometry (ein Alterstraum), in The Legacy of Niels Henrik Abel, Springer, 2004, pp. 685–727.

Complete flattened LaTeX source
\documentclass[11pt,oneside]{book}


\usepackage[utf8]{inputenc}

\usepackage[T1]{fontenc}

\usepackage{lmodern}

\usepackage{microtype}

\usepackage[margin=1in, headheight=14pt]{geometry}


\usepackage{amsmath, amssymb, amsfonts, amsthm, mathtools}

\usepackage{enumitem}

\usepackage{booktabs, array, tabularx, multirow}

\usepackage{graphicx}

\usepackage{xcolor}

\usepackage{float}

\usepackage{caption}

\usepackage{subcaption}

\usepackage{fancyhdr}


\usepackage{tikz}

\usepackage{tikz-cd}

\usepackage{pgfplots}

\pgfplotsset{compat=1.18}
\usetikzlibrary{
  arrows.meta,
  backgrounds,
  calc,
  decorations.markings,
  decorations.pathmorphing,
  fit,
  matrix,
  patterns,
  positioning,
  shapes.geometric,
  shapes.misc
}

\usepackage[most]{tcolorbox}

\tcbuselibrary{breakable, skins}

\definecolor{NavyPrimary}{HTML}{1B365D}
\definecolor{TealAccent}{HTML}{2A6F7F}
\definecolor{Terracotta}{HTML}{B85042}
\definecolor{SlateGray}{HTML}{4A5568}
\definecolor{SoftCream}{HTML}{F8F9FA}
\definecolor{SoftBlue}{HTML}{F0F4F8}
\definecolor{SoftTeal}{HTML}{EDF6F7}
\definecolor{SoftAmber}{HTML}{FDF6EC}
\definecolor{SoftRose}{HTML}{FCF2F1}
\definecolor{BorderGray}{HTML}{CBD5E0}

\usepackage[
  colorlinks=true,
  linkcolor=NavyPrimary,
  citecolor=TealAccent,
  urlcolor=TealAccent,
  bookmarksnumbered=true
]{hyperref}

\usepackage[nameinlink, capitalize]{cleveref}


\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\small\sffamily\color{SlateGray}\nouppercase{\leftmark}}
\fancyhead[R]{\small\sffamily\color{SlateGray}\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0pt}

\theoremstyle{plain}
\newtheorem{theorem}{Theorem}[chapter]
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{corollary}[theorem]{Corollary}

\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{exercise}{Exercise}[chapter]

\theoremstyle{remark}
\newtheorem{remark}[theorem]{Remark}

\crefname{theorem}{Theorem}{Theorems}
\crefname{proposition}{Proposition}{Propositions}
\crefname{lemma}{Lemma}{Lemmas}
\crefname{corollary}{Corollary}{Corollaries}
\crefname{definition}{Definition}{Definitions}
\crefname{example}{Example}{Examples}
\crefname{exercise}{Exercise}{Exercises}
\crefname{remark}{Remark}{Remarks}
\crefname{chapter}{Chapter}{Chapters}
\crefname{section}{Section}{Sections}
\crefname{figure}{Figure}{Figures}

\tcolorboxenvironment{theorem}{
  enhanced, breakable,
  colback=SoftBlue, colframe=NavyPrimary,
  boxrule=0pt, leftrule=3pt,
  arc=1pt, left=8pt, right=8pt, top=6pt, bottom=6pt,
  before skip=10pt, after skip=10pt
}
\tcolorboxenvironment{proposition}{
  enhanced, breakable,
  colback=SoftBlue!60!white, colframe=NavyPrimary!80!white,
  boxrule=0pt, leftrule=2.5pt,
  arc=1pt, left=8pt, right=8pt, top=6pt, bottom=6pt,
  before skip=8pt, after skip=8pt
}
\tcolorboxenvironment{lemma}{
  enhanced, breakable,
  colback=SoftCream, colframe=SlateGray,
  boxrule=0pt, leftrule=2pt,
  arc=1pt, left=8pt, right=8pt, top=5pt, bottom=5pt,
  before skip=8pt, after skip=8pt
}
\tcolorboxenvironment{corollary}{
  enhanced, breakable,
  colback=SoftTeal!70!white, colframe=TealAccent,
  boxrule=0pt, leftrule=2.5pt,
  arc=1pt, left=8pt, right=8pt, top=5pt, bottom=5pt,
  before skip=8pt, after skip=8pt
}
\tcolorboxenvironment{definition}{
  enhanced, breakable,
  colback=SoftTeal, colframe=TealAccent,
  boxrule=0pt, leftrule=3pt,
  arc=1pt, left=8pt, right=8pt, top=6pt, bottom=6pt,
  before skip=10pt, after skip=10pt
}
\tcolorboxenvironment{exercise}{
  enhanced, breakable,
  colback=SoftAmber, colframe=Terracotta,
  boxrule=0.5pt, leftrule=3pt,
  arc=2pt, left=8pt, right=8pt, top=6pt, bottom=6pt,
  before skip=8pt, after skip=8pt
}

\newcommand{\tier}[1]{  \noindent\textbf{\sffamily\footnotesize\textcolor{Terracotta}{[#1]}}\quad}

\newcommand{\solutionheader}[2]{  \par\medskip\noindent\textbf{\color{NavyPrimary}Solution to Exercise~#1}  \ifx&#2&\else\ \emph{(\textcolor{SlateGray}{#2})}\fi.\ }

\newcommand{\R}{\mathbb{R}}
\newcommand{\C}{\mathbb{C}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\F}{\mathbb{F}}
\newcommand{\T}{\mathbb{T}}
\newcommand{\HH}{\mathbb{H}}
\newcommand{\E}{\mathbb{E}}
\newcommand{\PP}{\mathbb{P}}
\newcommand{\RP}{\mathbb{RP}}
\newcommand{\CP}{\mathbb{CP}}

\newcommand{\Diff}{\mathsf{Diff}}
\newcommand{\Cart}{\mathsf{Cart}}
\newcommand{\Cartinf}{\mathsf{Cart}_{\mathrm{inf}}}
\newcommand{\Man}{\mathsf{Man}}
\newcommand{\Top}{\mathsf{Top}}
\newcommand{\Set}{\mathsf{Set}}
\newcommand{\Grp}{\mathsf{Grp}}
\newcommand{\Grpd}{\mathsf{Grpd}}
\newcommand{\sSet}{\mathsf{sSet}}
\newcommand{\DVec}{\mathsf{DVec}}
\newcommand{\FineVec}{\mathsf{FineVec}}
\newcommand{\Lens}{\mathsf{Lens}}
\newcommand{\StochDiff}{\mathsf{StochDiff}}
\newcommand{\Sh}{\mathrm{Sh}}
\newcommand{\ConcSh}{\mathrm{ConcSh}}
\newcommand{\Conc}{\mathrm{Conc}}
\newcommand{\PSh}{\mathrm{PSh}}
\newcommand{\St}{\mathrm{St}}
\newcommand{\Ho}{\mathrm{Ho}}

\newcommand{\boldH}{\mathbf{H}}
\newcommand{\B}{\mathbf{B}}
\newcommand{\Disc}{\mathrm{Disc}}
\newcommand{\coDisc}{\mathrm{coDisc}}
\newcommand{\Shape}{\Pi}
\newcommand{\Inf}{\mathrm{Inf}}
\newcommand{\Red}{\mathrm{Red}}
\newcommand{\Spec}{\mathrm{Spec}}
\newcommand{\RCrit}{\mathbb{R}\mathrm{Crit}}
\newcommand{\Aalpha}{\mathcal{A}_\alpha^\infty}
\newcommand{\Om}{\Omega}
\newcommand{\Hdr}{H_{\mathrm{dR}}}
\newcommand{\Hcech}{\check{H}}
\newcommand{\Hdiff}{H_{\mathrm{diff}}}
\newcommand{\Sing}{\mathrm{Sing}}
\newcommand{\Paths}{\mathrm{Paths}}
\newcommand{\Cech}{\check{C}}
\DeclareUnicodeCharacter{010C}{\v{C}}
\DeclareUnicodeCharacter{010D}{\v{c}}
\newcommand{\Prin}{\mathrm{Prin}}
\newcommand{\Pic}{\mathrm{Pic}}
\newcommand{\Maps}{\mathrm{Maps}}
\newcommand{\Hom}{\mathrm{Hom}}
\newcommand{\Aut}{\mathrm{Aut}}
\newcommand{\End}{\mathrm{End}}
\newcommand{\id}{\mathrm{id}}
\newcommand{\op}{\mathrm{op}}
\newcommand{\ev}{\mathrm{ev}}
\newcommand{\supp}{\mathrm{supp}}
\newcommand{\rank}{\mathrm{rank}}
\newcommand{\tr}{\mathrm{tr}}
\newcommand{\im}{\mathrm{im}}
\newcommand{\coker}{\mathrm{coker}}
\newcommand{\colim}{\operatorname*{colim}}
\newcommand{\holim}{\operatorname*{holim}}
\newcommand{\hocolim}{\operatorname*{hocolim}}
\newcommand{\Ad}{\mathrm{Ad}}
\newcommand{\ad}{\mathrm{ad}}
\newcommand{\GL}{\mathrm{GL}}
\newcommand{\SL}{\mathrm{SL}}
\newcommand{\SO}{\mathrm{SO}}
\newcommand{\Orth}{\mathrm{O}}
\newcommand{\U}{\mathrm{U}}
\newcommand{\Sym}{\mathrm{Sym}}
\newcommand{\dTV}{d_{\mathrm{TV}}}
\newcommand{\vol}{\mathrm{vol}}
\newcommand{\diag}{\mathrm{diag}}
\newcommand{\Vect}{\mathrm{Vect}}
\newcommand{\calA}{\mathcal{A}}
\newcommand{\calB}{\mathcal{B}}
\newcommand{\calC}{\mathcal{C}}
\newcommand{\calD}{\mathcal{D}}
\newcommand{\calE}{\mathcal{E}}
\newcommand{\calF}{\mathcal{F}}
\newcommand{\calG}{\mathcal{G}}
\newcommand{\calH}{\mathcal{H}}
\newcommand{\calI}{\mathcal{I}}
\newcommand{\calJ}{\mathcal{J}}
\newcommand{\calK}{\mathcal{K}}
\newcommand{\calL}{\mathcal{L}}
\newcommand{\calM}{\mathcal{M}}
\newcommand{\calN}{\mathcal{N}}
\newcommand{\calO}{\mathcal{O}}
\newcommand{\calP}{\mathcal{P}}
\newcommand{\calQ}{\mathcal{Q}}
\newcommand{\calR}{\mathcal{R}}
\newcommand{\calS}{\mathcal{S}}
\newcommand{\calT}{\mathcal{T}}
\newcommand{\calU}{\mathcal{U}}
\newcommand{\calV}{\mathcal{V}}
\newcommand{\calW}{\mathcal{W}}
\newcommand{\calX}{\mathcal{X}}
\newcommand{\calY}{\mathcal{Y}}
\newcommand{\calZ}{\mathcal{Z}}
\newcommand{\frg}{\mathfrak{g}}
\newcommand{\frh}{\mathfrak{h}}

\newcommand{\hquot}{/\!/}
\newcommand{\semi}{\mathbin{;}}
\newcommand{\IZcite}[1]{(cf.\ Iglesias-Zemmour~\cite[art.~#1]{IZ2013})}


\title{\Huge\bfseries\color{NavyPrimary}
Higher Diffeology II\\[0.4em]
\Large\mdseries\color{TealAccent}
Lean 4 Formalization, Differential Cohesive AD, Stochastic Stacks,\\
Shifted Symplectics, and Real Multiplication
}
\author{Anonymous\\[0.5em]
\small\itshape Sequel Monograph to \emph{Smooth Descent and Higher Diffeology} (Volume I, 2026)\\[0.2em]
\small\itshape Prepared for \texttt{higher-categorical-semantics.pages.dev}}
\date{November 2026}

\begin{document}

\frontmatter
\maketitle

\tableofcontents
\listoffigures


\chapter*{Preface to Volume II}
\addcontentsline{toc}{chapter}{Preface to Volume II}

In Volume~I (\emph{Smooth Descent and Higher Diffeology}~\cite{Vol1}), we recast Patrick Iglesias-Zemmour's foundational monograph~\cite{IZ2013} inside the cohesive $(\infty,1)$-topos $\boldH = \Sh_\infty(\Cart)$ and established fifteen theorems across machine learning, artificial intelligence, number theory, cryptography, and system design. Five natural frontiers emerged directly at the boundary of those results:

\begin{enumerate}[leftmargin=2em]
  \item \textbf{Machine-Checked Cohesive Formalization (Chapter~1):} Constructing an axiom-clean, zero-\texttt{sorry} Lean~4.24.0 development (\texttt{HigherDiffeology.*}) verifying subduction pullback stability, cohesive product preservation, categorical CAP impossibility, \v{C}ech alignment regret, straight-line $\Sigma$-protocol torsor obstructions, and equivariant fixed-stratum trapping.
  \item \textbf{Differential Cohesion and Reverse-Mode AD (Chapter~2):} Enlarging the site from $\Cart$ to infinitesimally thickened Cartesian spaces $\Cartinf$ via Weil algebras $\R[\varepsilon]/(\varepsilon^2)$ to separate kinematic and operational tangents at corners, establish functorial reverse-mode AD combinators as $\Diff$-lenses, and prove cotangent moment-map annihilation $\mu_{\mathrm{cot}}(\theta, dL_\theta) = 0$ on $[\Theta \hquot G]$.
  \item \textbf{Stochastic Diffeology and Stratum Escape (Chapter~3):} Equipping $\Diff$ with a smooth Giry/Markov kernel monad $\StochDiff$ to prove equivariant diffusion descent to $\Theta/G$, exact normal-variance exponential instability and logarithmic escape times from symmetry-trapping strata $\Theta^H$, and vertical gauge-orthogonality of forward heat scores.
  \item \textbf{Shifted Symplectics and Multisymplectic Fields (Chapter~4):} Lifting Pantev--To\"en--Vaqui\'e--Vezzosi (PTVV) $(-1)$-shifted symplectic geometry to $\mathbb{R}\mathrm{Crit}(L)$ and gauge quotient stacks $[\mathbb{R}\mathrm{Crit}(L) \hquot G]$---explaining degeneracy via Atiyah--Bott--BV cohomology---and lifting $2$-plectic/Souriau--Noether laws to covariant PDE extremals.
  \item \textbf{Noncommutative Tori and Real Multiplication (Chapter~5):} Passing from the irrational torus stack $[\T^2 \hquot \R_\alpha]$ to Connes--Rieffel's smooth convolution algebra $\Aalpha$, constructing explicit smooth Powers--Rieffel projections of Chern class $c_1(p_\alpha) \in \Z$, reconciling Morita equivalence with $\GL_2(\Z)$ diffeological rigidity, and linking Pell-unit automorphisms to closed modular geodesics $\ell_{\mathrm{hyp}}(\gamma_A) = 2\log\varepsilon_+$.
\end{enumerate}

Every chapter in Part~I contains three rigorously proved theorems, an inline commutative architecture diagram, a companion vector figure accompanied by an executable verification script (\texttt{extensions/}), and four progressively graded exercises (Levels~I--IV) solved completely in Part~II.



\mainmatter

\part{Formalization and Theoretical Extensions}

\chapter{Machine-Checked Cohesive and Concrete-Sheaf Formalization in Lean~4}
\label{ch:ext1-lean4}

Formalizing Volume~I~\cite{Vol1} exposes a natural architectural split between \emph{constructive Grothendieck-site and algebraic proofs}---which require no continuous measure theory or Fourier analysis and therefore compile cleanly in Lean~4's minimal type-theoretic core~\cite{Lean4}---and \emph{analytic plot/Fourier estimates} that invoke smooth partitions of unity, dominated convergence, or Poisson summation. In this chapter we build and prove, without \texttt{sorry} or non-standard axioms, the six-module library \texttt{HigherDiffeology} (v0.1.0, \texttt{leanprover/lean4:v4.24.0}), certifying core theorems from Chapters~1, 9, 10, 12, and~13 of Volume~I.

\section{Grothendieck Plot Sites and Subduction Pullback Stability}

Rather than hardcoding topological opens inside Euclidean space, we axiomatize a \emph{plot site} $\calS = (\mathrm{Dom}, \mathrm{pts}, \mathrm{Hom}, \mathrm{IsCover})$ using covering sieves $C$ over domains $U$ that obey maximality, monotonicity, pullback base change (\texttt{cover\_pullback}), and transitivity (\texttt{cover\_trans}). Representing covers as predicates eliminates dependent-type casts across refined cover indices while preserving full constructive content.

\begin{figure}[H]
  \centering
  \includegraphics[width=\textwidth]{figures/fig_ext1_formalization_architecture.pdf}
  \caption{Verification architecture and dependency graph of the six zero-\texttt{sorry} Lean~4.24.0 modules in \texttt{HigherDiffeology}, together with their core axiom profile (\texttt{PropExt}, \texttt{Quot.sound}, and axiom-free constructive proofs).}
  \label{fig:ext1-arch}
\end{figure}

Over any plot site $\calS$, a \emph{diffeological space} $(X, \mathrm{isPlot})$ satisfies the three Iglesias-Zemmour axioms~\cite{IZ2013}: constant plots, precomposition stability, and sheaf locality along any covering sieve $C$ with $\mathrm{IsCover}\, U\, C$. The quotient diffeology $\mathrm{QuotSpace}\, X\, r$ declares $p : \mathrm{pts}(U) \to X/r$ to be a plot iff $U$ admits a covering sieve along whose legs $p$ locally lifts to plots of $X$.

\begin{theorem}[Quotient Universality and Subduction Fiber-Product Stability]
\label{thm:ext1-subduction}
Let $\calS$ be a Grothendieck plot site as formalised in \texttt{HigherDiffeology.Basic}.
\begin{enumerate}[label=(\arabic*)]
  \item For any relation $r$ on $X \in \Diff(\calS)$, $\mathrm{QuotSpace}\, X\, r$ satisfies all three diffeological axioms, $\mathrm{quotientMk} : X \to X/r$ is a subduction (\texttt{quotientMk\_isSubduction}), and any $r$-invariant smooth map $f : X \to Y$ factors uniquely through $\mathrm{QuotSpace}\, X\, r$ via \texttt{quotient\_universal}.
  \item Composites and single-factor pullbacks of subductions are subductions (\texttt{IsSubduction.comp}, \texttt{IsSubduction.pullback\_fst}).
  \item Given two interface-compatible subductions $\pi_k : S_k \twoheadrightarrow B_k$ over a fixed base space $I$ ($b_k \circ \pi_k = h_k$, $k=1,2$), the induced map on subset fiber products
  \[
    \pi_1 \times_I \pi_2 : S_1 \times_I S_2 \twoheadrightarrow B_1 \times_I B_2
  \]
  is a subduction (\texttt{IsSubduction.fiberProduct}), proved entirely without \texttt{Classical.choice} or \texttt{propext}.
\end{enumerate}
\end{theorem}

\begin{proof}
For~(1), constant plots lift globally via the maximal sieve (\texttt{cover\_max}) and \texttt{Quot.inductionOn}; precomposition uses \texttt{cover\_pullback} together with contravariant functoriality $\mathrm{mapHom}(g \circ f) = \mathrm{mapHom}(f) \circ \mathrm{mapHom}(g)$; locality applies \texttt{cover\_trans} to combine a cover of $U$ with the local lifting sieves on each leg $h : V \to U$. For~(3), given a plot $p = (p_1, p_2)$ of $B_1 \times_I B_2$, local lifts $q_1$ of $p_1$ over a sieve $C_1$ on $U$ are refined on each leg $h : V \to U$ via \texttt{cover\_pullback} and local lifts $q_2$ of $p_2 \circ h$ over a sieve $C_2$ on $V$. By interface compatibility $b_1(\pi_1 x_1) = h_1(x_1)$ and $b_2(\pi_2 x_2) = h_2(x_2)$, the pair $(q_1 \circ \mathrm{mapHom}\, l, q_2)$ automatically satisfies $h_1 = h_2$ pointwise and therefore yields a plot of $S_1 \times_I S_2$ over the composite sieve $\mathrm{cover\_trans}\, R\, C_1\, C_2$.
\end{proof}

\section{Cohesive Adjunctions, Partitioned CAP, and CRDT Descent}

In \texttt{HigherDiffeology.CohesiveModalities}, we formalize Schreiber's cohesive quadruple~\cite{Schreiber2013,Shulman2018} $\Shape \dashv \Disc \dashv \Gamma \dashv \coDisc$ between binary-product categories $\boldH$ and $\calS$ via explicit type equivalences of hom-types $\Hom(L X, Y) \simeq \Hom(X, R Y)$, avoiding universe-level setoid friction while remaining $100\%$ constructive.

\begin{figure}[H]
  \centering
  \begin{tikzcd}[column sep=2.6cm, row sep=1.4cm]
    \texttt{Basic} \ar[r, "\text{subductions}"] \ar[dr, "\text{quotients}"'] & \texttt{CohesiveModalities} \ar[r, "\text{splits/CRDTs}"] & \texttt{SymmetryStrata} \\
    & \texttt{CechAlignment} \ar[r, "\text{cocycle bounds}"] & \texttt{CryptoTorsors}
  \end{tikzcd}
  \caption{Lean~4.24.0 module architecture (\texttt{HigherDiffeology.All} audits all eighteen exported theorems with \texttt{\#print axioms}).}
\end{figure}

\begin{theorem}[Cohesive Product Preservation, Categorical CAP, and CRDT Descent]
\label{thm:ext1-cohesive-cap}
Within \texttt{HigherDiffeology.CohesiveModalities}, the following hold axiom-free:
\begin{enumerate}[label=(\arabic*)]
  \item Every right adjoint ($\Disc$, $\Gamma$, $\coDisc$) preserves binary products at the level of hom-equivalences (\texttt{cohesive\_Disc\_preserves\_prod}, \texttt{cohesive\_Gamma\_preserves\_prod}), and if $\Shape$ preserves finite products (\texttt{FiniteProdPreserving}), then $\Hom_{\boldH}(A \times B, \Disc\, Z) \simeq \Hom_{\calS}(\Shape A \times \Shape B, Z)$ (\texttt{cohesive\_Pi\_prod\_adjunction}).
  \item On any \texttt{PartitionedSheaf State} splitting global states as $\mathrm{GlobalState} \simeq \mathrm{State} \times \mathrm{State}$ with diagonal consistency $s_A = s_B$, any responsive partition-$A$ write ($\mathrm{split}(\mathrm{writeOnA}\, v\, g)_1 = v$, $\mathrm{split}(\mathrm{writeOnA}\, v\, g)_2 = \mathrm{split}(g)_2$) destroys consistency whenever $|\mathrm{State}| \ge 2$ (\texttt{cap\_impossibility\_nontrivial}).
  \item For any \texttt{JoinSemilattice S}, replica state merges satisfy exact two-way commutativity, three-way reassociation, and duplicate-delivery idempotence (\texttt{crdt\_two\_replica\_convergence}, \texttt{crdt\_three\_way\_reassociation}, \texttt{crdt\_duplicate\_delivery\_invariant}).
\end{enumerate}
\end{theorem}

\begin{proof}
Part~(1) composes $(\mathrm{homEquiv}\, X\, (A \times B))^{-1}$ with the product hom equivalence and functoriality on $\Hom(L X, A) \times \Hom(L X, B)$. Part~(2) initializes at the diagonal state $g_0 = \mathrm{split}^{-1}(y, y)$ for any pair $x \neq y$ in $\mathrm{State}$; consistency of $\mathrm{writeOnA}\, x\, g_0$ forces $x = y$, contradicting $x \neq y$. Part~(3) rewrites directly under associativity, commutativity, and idempotence of \texttt{join}.
\end{proof}

\section{Quantified Obstructions Across Alignment, Cryptography, and Optimization}

The remaining three modules (\texttt{CechAlignment}, \texttt{CryptoTorsors}, \texttt{SymmetryStrata}) formalize exact quantitative and obstruction-theoretic theorems from Volume~I Chapters~9, 10, and~12.

\begin{theorem}[Telescoping Minimax Regret, Torsor Extraction, and Stratum Trapping]
\label{thm:ext1-quant}
All four quantitative/obstruction theorems below compile with zero \texttt{sorry} and core axioms at most \texttt{[propext, Quot.sound]}:
\begin{enumerate}[label=(\arabic*)]
  \item \textbf{\v{C}ech Alignment Lower Bound (\texttt{cech\_minimax\_regret\_bound}):} For any integer $1$-cochain $c : \N \to \Z$ and $m$-periodic shift $a : \N \to \Z$ ($a(m) = a(0)$) satisfying $|c(k) + a(k+1) - a(k)| \le B$ for all $k < m$, the total cycle holonomy obeys $\big|\sum_{k=0}^{m-1} c(k)\big| \le m B$.
  \item \textbf{$\Sigma$-Protocol Section Obstruction (\texttt{straightLine\_iff\_section}, \texttt{straightLine\_extractor\_obstructed}):} Relative to any single-shot valid-transcript oracle on instance space $X$, a $\Sigma$-protocol over bundle $B : P \to X$ admits a deterministic straight-line extractor if and only if $B$ admits a global section $s : \prod_{x \in X} \mathrm{Fiber}_B(x)$. Hence non-trivial bundles obstruct straight-line extraction.
  \item \textbf{Shamir Secrecy Fiber Bijection (\texttt{shamir\_share\_unique\_slope}):} Over any \texttt{MiniField} $F$ and public point $x \neq 0$, each observed $(2,n)$-Shamir share $y$ and candidate secret $s$ uniquely determines the degree-$1$ slope $a = (y - s)x^{-1}$ solving $s + a x = y$.
  \item \textbf{Equivariant Stratum Trapping (\texttt{symmetry\_breaking\_impossibility}):} Under a group action $A$ of $G$ on $\Theta$, any discrete $G$-equivariant learner $F : \Theta \to \Theta$ initialized in $\Theta^H$ remains in $\Theta^H$ at every step $n \in \N$ and therefore never reaches any symmetry-broken point $\theta^* \notin \Theta^H$.
\end{enumerate}
\end{theorem}

\begin{proof}
In~(1), induction on $m$ yields $\sum_{k=0}^{m-1}(a(k+1)-a(k)) = a(m)-a(0) = 0$ (\texttt{telescoping\_sum}), making $\sum c$ invariant under periodic gauge shifts; the integer triangle inequality \texttt{absInt\_add\_le} closed by \texttt{omega} yields $\big|\sum_{k=0}^{m-1}(c(k)+\delta a(k))\big| \le m B$. In~(2), composing an extractor with an instance oracle constructs a section $x \mapsto \mathrm{ext}\, x\, c\, t\, h_{\mathrm{val}}$ in $\mathrm{Fiber}_B(x)$, while any section defines an immediate transcript-ignoring extractor. In~(3), uniqueness uses left cancellation \texttt{eq\_of\_add\_eq} followed by right multiplication by $x^{-1}$. In~(4), equivariance $h \cdot F(\theta) = F(h \cdot \theta) = F(\theta)$ propagates fixed-point membership inductively across \texttt{iterateF F n theta0}.
\end{proof}

\section*{Exercises}

\begin{exercise}
\tier{Level I --- Warm-up}
In \texttt{HigherDiffeology.Basic}, verify why \texttt{discreteSite} needs \texttt{ULift.\{u\} (PLift (a = b))} rather than bare \texttt{PLift (a = b)} when parameterizing universe \texttt{u}.
\end{exercise}

\begin{exercise}
\tier{Level II --- Structural}
State and prove in Lean~4 core that every discrete space (in which only locally constant functions are plots) embeds cleanly over any \texttt{PlotSite}, and explain what additional condition on covering sieves guarantees that a singleton point $\{*\}$ is terminal in $\Diff(\calS)$.
\end{exercise}

\begin{exercise}
\tier{Level III --- Quantitative Proof}
Extend the \texttt{telescoping\_sum} and \texttt{cech\_minimax\_regret\_bound} proof pattern of \texttt{CechAlignment.lean} to prove an \emph{exact equality characterization}: if $\sum_{k=0}^{m-1} c(k) = m q$ for some $q \in \Z$, construct an explicit periodic shift $a : \N \to \Z$ ($a(m) = a(0)$) achieving $|c(k) + a(k+1) - a(k)| = |q|$ at every edge $0 \le k < m$.
\end{exercise}

\begin{exercise}
\tier{Level IV --- Proof-Level Extension}
Prove in the type theory of \texttt{HigherDiffeology.Basic} that for any $G$-action on $X \in \Diff(\calS)$ with orbit equivalence relation $r(x,y) :\Leftrightarrow \exists g \in G,\, g \cdot x = y$, if a smooth map $f : X \to Y$ satisfies $f(g \cdot x) = f(x)$ and descends to $\bar{f} : X/r \to Y$, then $\bar{f}$ is a subduction whenever $f$ is a subduction.
\end{exercise}



\chapter{Differential Cohesive Topoi, Infinitesimal Jets, and Reverse-Mode AD on Quotient Stacks}
\label{ch:ext2-ad}

Volume~I established diffeology inside the cohesive $(\infty,1)$-topos $\boldH = \Sh_\infty(\Cart)$. Because Cartesian spaces $\R^n \in \Cart$ lack nilpotent infinitesimals, derivatives in $\Diff$ can only be detected along finite Euclidean curves---causing kinematic and operational tangent cones to diverge at boundary corners and forcing backward sensitivity sweeps to factor through ambient Euclidean parametrizations. Passing from $\Cart$ to Weil-thickened Cartesian spaces $\Cartinf$ lifts cohesion to \emph{differential cohesion}~\cite{Schreiber2013,Dubuc1979,Kock2006}, uniting corner jet geometry, functorial reverse-mode automatic differentiation (AD), and symplectic reduction on neural gauge stacks $[\Theta \hquot G]$.

\section{The Infinitesimal Modality $\Red \dashv \Inf$ and Corner Divergence}

Recall that a \emph{Weil algebra} is a finite-dimensional commutative unital $\R$-algebra of the form $W = \R \oplus \mathfrak{n}$ where $\mathfrak{n}$ is a nilpotent ideal ($\mathfrak{n}^{k+1} = 0$). In particular, the algebra of dual numbers $\R[\varepsilon]/(\varepsilon^2)$ cuts out the first-order infinitesimal disk $D_1 = \Spec(\R[\varepsilon]/(\varepsilon^2))$. Defining $\Cartinf$ as the category whose objects are formal duals $\R^n \times \Spec(W)$ with morphisms given by smooth $\R$-algebra homomorphisms $C^\infty(\R^m) \otimes_\R W' \to C^\infty(\R^n) \otimes_\R W$ yields the differential-cohesive $(\infty,1)$-topos $\boldH_{\mathrm{diff}} := \Sh_\infty(\Cartinf)$.

\begin{definition}[Infinitesimal Coreduction and Infinitesimal Disk Shape]
\label{def:ext2-red-inf}
Evaluating a smooth space or algebra at reduced Cartesian plots ($\mathfrak{n} = 0$) induces a pair of adjoint $(\infty,1)$-functors $\Red \dashv \Inf$ on $\boldH_{\mathrm{diff}}$, where for any $\calX \in \boldH_{\mathrm{diff}}$, the \emph{infinitesimal disk bundle} $\Inf(\calX)$ classifies points equipped with an infinitesimal jet perturbation and satisfies $\Hom_{\boldH_{\mathrm{diff}}}(D_1 \times U, \calX) \cong \Hom_{\boldH_{\mathrm{diff}}}(U, \calX^{D_1})$.
\end{definition}

Consider non-manifold singularities such as the quadrant corner $K = [0,\infty)^2 \subset \R^2$. On $K$ endowed with its subset diffeology $\calD_{\mathrm{sub}}(K)$ from Volume~I, there are two distinct notions of tangent space at $p = (0,0)$:
\begin{itemize}[leftmargin=1.8em]
  \item The \emph{internal kinematic tangent cone} $T^{\mathrm{kin}}_{p} K := \{ \gamma'(0) : \gamma \in C^\infty(\R, K),\ \gamma(0) = p \}$;
  \item The \emph{operational / Weil-algebra tangent space}, defined via derivations and dual numbers:
  \[
    T^{\mathrm{oper}}_{p} K := \mathrm{Der}_{\R}(C^\infty(K), \R_p) \cong \Hom_{C^\infty\text{-}\mathrm{Alg}}\big(C^\infty(K), \R[\varepsilon]/(\varepsilon^2)\big)_p.
  \]
\end{itemize}

\begin{figure}[H]
  \centering
  \includegraphics[width=\textwidth]{figures/fig_ext2_differential_ad_lens.pdf}
  \caption{Left: On the quadrant corner $K = [0,\infty)^2$, every two-sided smooth curve through $(0,0)$ has zero velocity ($\dim T^{\mathrm{kin}}_{(0,0)}K = 0$), whereas the Weil algebra $C^\infty(K) \otimes_\R \R[\varepsilon]/(\varepsilon^2)$ retains full $2$-dimensional operational sensitivity. Right: Composing reverse-mode AD lenses $\calR[f] \semi \calR[g]$ projects horizontally onto the gauge-annihilated cotangent reduction $\mu_{\mathrm{cot}}^{-1}(0) \hquot G$.}
  \label{fig:ext2-ad}
\end{figure}

\begin{theorem}[Weil Jet Representation and Corner Tangent Divergence on $K = {[0,\infty)}^2$]
\label{thm:ext2-corner-jets}
Inside $\boldH_{\mathrm{diff}} = \Sh_\infty(\Cartinf)$:
\begin{enumerate}[label=(\arabic*)]
  \item Every morphism $f : \R^n \to \R^m$ lifts canonically along $D_1$-exponential objects to its first jet $J^1(f) = f^{D_1} : T\R^n \to T\R^m$ satisfying strict functoriality $J^1(g \circ f) = J^1(g) \circ J^1(f)$ and evaluation $f(x + \varepsilon v) = f(x) + \varepsilon Df(x)v$ in $C^\infty(\R^n)[\varepsilon]/(\varepsilon^2)$.
  \item Equipped with subset algebra $C^\infty(K) := C^\infty(\R^2)/I_K$ ($I_K = \{h \in C^\infty(\R^2) : h|_K = 0\}$), the quadrant corner $K = [0,\infty)^2$ satisfies an exact tangent-dimension gap at $(0,0)$:
  \[
    T^{\mathrm{kin}}_{(0,0)} K = \{0\} \quad (\dim = 0), \qquad T^{\mathrm{oper}}_{(0,0)} K \cong \R^2 \quad (\dim = 2),
  \]
  and on the closed half-plane $H = [0,\infty) \times \R$ at $(0,0)$, $\dim T^{\mathrm{kin}}_{(0,0)} H = 1 < 2 = \dim T^{\mathrm{oper}}_{(0,0)} H$.
\end{enumerate}
\end{theorem}

\begin{proof}
For~(1), because $\R[\varepsilon]/(\varepsilon^2)$ has $\varepsilon^2 = 0$, Hadamard's lemma applied componentwise to smooth maps $f : \R^n \to \R^m$ uniquely expresses $f(x + \varepsilon v) = f(x) + \varepsilon Df(x)v$; substituting this into $g$ gives $g(f(x) + \varepsilon Df(x)v) = g(f(x)) + \varepsilon Dg(f(x))Df(x)v$, establishing $J^1(g\circ f) = J^1(g)\circ J^1(f)$ internally in $\Sh_\infty(\Cartinf)$. For~(2), any plot $\gamma = (\gamma_1,\gamma_2) \in C^\infty(\R, K)$ with $\gamma(0)=(0,0)$ satisfies $\gamma_i(t) \ge 0$ for all $t \in \R$, so $t=0$ is a two-sided local minimum of each smooth real function $\gamma_i : \R \to \R$, forcing $\gamma_1'(0) = \gamma_2'(0) = 0$; hence $T^{\mathrm{kin}}_{(0,0)} K = \{0\}$. Conversely, if $h \in I_K$, then $h$ vanishes on the open first quadrant $(0,\infty)^2$, so all partial derivatives $\partial_{x}^j\partial_y^k h(0,0) = 0$ by continuity up to the apex. Therefore $I_K \subset \mathfrak{m}_{(0,0)}^\infty \subset \mathfrak{m}_{(0,0)}^2$, whence the Zariski cotangent quotient satisfies $\mathfrak{m}_{(0,0)} / (\mathfrak{m}_{(0,0)}^2 + I_K) = \mathfrak{m}_{(0,0)}/\mathfrak{m}_{(0,0)}^2 \cong (\R^2)^*$, dualizing to $T^{\mathrm{oper}}_{(0,0)} K \cong \R^2$. On $H = [0,\infty)\times \R$, curves satisfy $\gamma_1'(0)=0$ while $\gamma_2'(0) \in \R$ is free, giving $\dim T^{\mathrm{kin}}_{(0,0)} H = 1$ vs.\ $\dim T^{\mathrm{oper}}_{(0,0)} H = 2$.
\end{proof}

\section{Categorical Lenses and Functorial Reverse-Mode AD}

While exponential objects $(-)^{D_1}$ naturally produce forward-mode jets $J^1$, backpropagation computes pullbacks along cotangent bundles $T^*X$. In the setting of diffeological vector spaces and linear plots~\cite{CCGLMP2020,FST2019}, dualizing the vertical tangent bundle yields a category of smooth bidirectional lenses.

\begin{definition}[Smooth Lens Category $\Lens(\Diff)$]
Objects are pairs $(X, E)$ of a diffeological space $X$ equipped with a diffeological vector bundle $E \to X$ (canonically $(X, T^*X)$ for operational cotangents). A morphism $(f, f^\sharp) : (X, E_X) \to (Y, E_Y)$ consists of a smooth forward map $f : X \to Y$ and a smooth linear backward pullback map $f^\sharp : X \times_Y E_Y \to E_X$ over $\id_X$, composed sequentially via $(g, g^\sharp) \circ (f, f^\sharp) = (g \circ f,\, (x, \bar{z}) \mapsto f^\sharp(x, g^\sharp(f(x), \bar{z})))$.
\end{definition}

\begin{figure}[H]
  \centering
  \begin{tikzcd}[column sep=2.4cm, row sep=1.4cm]
    (X, T^*X) \ar[r, "{(f, Df^\top)}"] \ar[dr, "{(g\circ f,\; Df^\top Dg^\top)}"'] & (Y, T^*Y) \ar[d, "{(g, Dg^\top)}"] \\
    & (Z, T^*Z)
  \end{tikzcd}
  \caption{Functorial reverse-mode composition law $\calR[g \circ f] = \calR[f] \semi \calR[g]$ inside $\Lens(\Diff)$.}
\end{figure}

\begin{theorem}[Functoriality of the Reverse-Mode Derivative Combinator]
\label{thm:ext2-lens-ad}
Let $\Diff_{\mathrm{Eucl}}$ denote the full subcategory of locally Euclidean parameter spaces and smooth maps in $\boldH_{\mathrm{diff}}$ (or more generally spaces with operational cotangent bundles $T^*X$). Sending $f : X \to Y$ to
\[
  \calR[f] := \big(x \mapsto f(x),\; (x, \bar{y}) \mapsto (Df_x)^*(\bar{y})\big) \in \Hom_{\Lens(\Diff)}\big((X, T^*X), (Y, T^*Y)\big)
\]
defines a functor $\calR : \Diff_{\mathrm{Eucl}} \to \Lens(\Diff)$ satisfying $\calR[\id_X] = \id_{(X, T^*X)}$, $\calR[g \circ f] = \calR[f] \semi \calR[g]$, and preserving finite Cartesian products on both forward values and additive cotangent pullbacks.
\end{theorem}

\begin{proof}
Smoothness of $f^\sharp(x,\bar{y}) = (Df_x)^*(\bar{y})$ follows from functoriality of the Weil tangent functor $J^1(f)$ on $D_1$-points and continuity of finite-dimensional transpose on $C^\infty$ plot germs. For identity maps, $(D\,\id_x)^* = \id_{T_x^* X}$. For any composable pair $X \xrightarrow{f} Y \xrightarrow{g} Z$, $(x,\bar{z}) \in X \times_Z T^*Z$, the chain rule $D(g\circ f)_x = Dg_{f(x)} \circ Df_x$ dualizes contravariantly to
\[
  D(g\circ f)_x^*(\bar{z}) = (Df_x)^*\big((Dg_{f(x)})^*(\bar{z})\big) = f^\sharp\big(x, g^\sharp(f(x), \bar{z})\big),
\]
which is precisely lens composition $\calR[f] \semi \calR[g]$. For products $X_1 \times X_2$, linearity of projection differentials implies $((Df_1, Df_2))^*(\bar{y}_1,\bar{y}_2) = (Df_1^*\bar{y}_1, Df_2^*\bar{y}_2)$, while additive fan-out $\Delta_X : X \to X \times X$ dualizes to cotangent summation $\Delta_X^*(\bar{x}_1,\bar{x}_2) = \bar{x}_1 + \bar{x}_2$.
\end{proof}

\section{Cotangent Moment-Map Annihilation on Neural Gauge Stacks}

We now connect functorial reverse-mode AD directly to the gauge quotient stacks $[\Theta \hquot G]$ of Volume~I, Chapter~9. Let $G$ be a diffeological Lie group acting smoothly on $\Theta$. Lifting the action to $T^*\Theta$ via $(g \cdot \theta, (dg_\theta^{-1})^* p)$ is Hamiltonian for the canonical $1$-form $\theta_{\mathrm{can}} = p\,d\theta$ with \emph{cotangent moment map}
\[
  \mu_{\mathrm{cot}} : T^*\Theta \to \frg^*, \qquad \langle \mu_{\mathrm{cot}}(\theta, p), \xi \rangle := \langle p, \xi_\Theta(\theta) \rangle,
\]
where $\xi_\Theta(\theta) = \frac{d}{dt}\big|_{t=0} \exp(t\xi)\cdot \theta$ is the fundamental vector field of $\xi \in \frg$.

\begin{theorem}[Cotangent Moment-Map Annihilation and Symplectic AD Descent]
\label{thm:ext2-cotangent-moment}
Suppose $L \in C^\infty(\Theta, \R)^G$ is a smooth $G$-invariant objective on a $G$-manifold $\Theta$. Then:
\begin{enumerate}[label=(\arabic*)]
  \item Every reverse-mode AD section $\sigma_L(\theta) := (\theta, dL_\theta)$ of $\calR[L]$ lands identically in the zero level set of the cotangent moment map: $\mu_{\mathrm{cot}}(\theta, dL_\theta) = 0$ for all $\theta \in \Theta$.
  \item For an $L$-layer bilinear network $(\Theta = \R^{d_2\times r} \times \R^{r\times d_0}, G = \GL_r(\R))$ acting by $g\cdot(W_2,W_1) = (W_2 g^{-1}, g W_1)$, the annihilation condition $\mu_{\mathrm{cot}} = 0$ holds via the exact matrix identity
  \[
    W_1 (\nabla_{W_1} L)^\top - (\nabla_{W_2} L)^\top W_2 = 0 \in \frg\mathfrak{l}_r(\R)^*.
  \]
  \item Where $G$ acts freely and properly on a stratum $\Theta_{\mathrm{reg}}$, $\sigma_L$ descends smoothly to the reduced cotangent stack $T^*[\Theta \hquot G] \simeq [\mu_{\mathrm{cot}}^{-1}(0) \hquot G]$ as the differential $d\bar{L}$ of the reduced objective $\bar{L}$.
\end{enumerate}
\end{theorem}

\begin{proof}
For~(1), $G$-invariance gives $L(\exp(t\xi)\cdot\theta) = L(\theta)$ for all $t \in \R$ and $\xi \in \frg$. Differentiating at $t=0$ produces
\[
  \langle \mu_{\mathrm{cot}}(\theta, dL_\theta), \xi \rangle = \langle dL_\theta, \xi_\Theta(\theta) \rangle = \frac{d}{dt}\Big|_{t=0} L(\exp(t\xi)\cdot\theta) = 0.
\]
For~(2), differentiating $t \mapsto (W_2 e^{-t\xi}, e^{t\xi} W_1)$ at $t=0$ gives $\xi_\Theta(W_2, W_1) = (-W_2 \xi, \xi W_1)$. Using cyclic invariance of the Frobenius trace $\langle A, B \rangle_F = \tr(A^\top B)$,
\begin{align*}
  \langle \mu_{\mathrm{cot}}((W_2,W_1), dL), \xi \rangle
  &= -\tr\big((\nabla_{W_2} L)^\top W_2 \xi\big) + \tr\big((\nabla_{W_1} L)^\top \xi W_1\big) \\
  &= \tr\big((W_1(\nabla_{W_1} L)^\top - (\nabla_{W_2} L)^\top W_2)\xi\big),
\end{align*}
which vanishes for every $\xi \in \frg\mathfrak{l}_r(\R)$ by~(1) whenever $L$ factors through $W_2 W_1$. Notice that in the case $L(W_2,W_1) = L_0(W_2W_1)$, direct evaluation yields $\nabla_{W_1} L = W_2^\top \nabla L_0$ and $\nabla_{W_2} L = \nabla L_0 W_1^\top$, giving $W_1 (\nabla L_0)^\top W_2 - W_1 (\nabla L_0)^\top W_2 = 0$ directly. Finally, for~(3), $G$-invariance of $L$ guarantees that $g \cdot (\theta, dL_\theta) = (g\cdot \theta, (dg_\theta^{-1})^* dL_\theta) = (g\cdot\theta, dL_{g\cdot\theta})$, so $\sigma_L$ is $G$-equivariant into $\mu_{\mathrm{cot}}^{-1}(0)$ and descends by Marsden--Weinstein--Souriau reduction to $T^*(\Theta/G) \cong \mu_{\mathrm{cot}}^{-1}(0)/G$.
\end{proof}

These identities are symbolically and numerically verified across non-quadratic $G$-invariant losses to machine precision ($< 10^{-13}$) in the script \texttt{verify\_ext2\_ad\_jets.py} inside \texttt{extensions/}.

\section*{Exercises}

\begin{exercise}
\tier{Level I --- Warm-up}
Evaluate the Weil jet of $f(x,y) = x^2 \sin(y)$ at $(x + \varepsilon u,\, y + \varepsilon v)$ in $C^\infty(\R^2)[\varepsilon]/(\varepsilon^2)$ and extract both $f(x,y)$ and $Df_{(x,y)}(u,v)$.
\end{exercise}

\begin{exercise}
\tier{Level II --- Structural}
Verify explicitly that for $K = [0,\infty)^2$ with subset diffeology, the one-sided wire curve $c(t) = (e^{-1/t^2}\mathbf{1}_{t>0},\, 0)$ is smooth as a map $\R \to K$, yet contributes nothing to $T^{\mathrm{kin}}_{(0,0)} K$.
\end{exercise}

\begin{exercise}
\tier{Level III --- Lens Decomposition}
Consider a residual block $F(x) = x + g(W x)$ in $\Lens(\Diff)$. Write $\calR[F]$ explicitly as a lens pullback and verify how $\Delta$-fanout sums the skip-connection cotangent $\bar{y}$ with $W^\top (Dg_{Wx})^* \bar{y}$.
\end{exercise}

\begin{exercise}
\tier{Level IV --- Proof-Level}
Prove that for an $L$-layer linear network $\Theta = \prod_{\ell=1}^L \R^{d_\ell \times d_{\ell-1}}$ with layerwise $\GL_{d_\ell}(\R)$ rescaling symmetry ($1 \le \ell \le L-1$) and any $G$-invariant loss $L$, the vanishing of $\mu_{\mathrm{cot}}(\theta, dL_\theta) = 0$ at a parameter point $\theta$ is equivalent to conservation of the balancedness matrix $W_{\ell+1}^\top W_{\ell+1} - W_\ell W_\ell^\top$ along Euclidean gradient flow $\dot{\theta} = -\nabla L(\theta)$.
\end{exercise}



\chapter{Stochastic Diffeology: Markov Kernels, Stratum Escape, and Quotient Diffusion}
\label{ch:ext3-stochastic}

In Volume~I~\cite{Vol1}, Theorems~9.2 and~10.3 proved that every \emph{deterministic} $G$-equivariant flow or optimization rule initialized on a stabilizer fixed-point stratum $\Theta^H = \{\theta \in \Theta : \forall h \in H,\ h \cdot \theta = \theta\}$ remains permanently trapped inside $\Theta^H$. Empirical deep learning and generative modeling circumvent such traps through additive isotropic noise, MCMC proposals, and score-based diffusion. In this chapter we enrich $\Diff$ with a smooth Giry/Markov kernel monad $\StochDiff$, prove equivariant quotient descent of Markov kernels, derive exact quantitative Ornstein--Uhlenbeck escape-time laws from unstable fixed-point strata, and prove vertical gauge-orthogonality of heat score fields on quotient stacks.

\section{The Smooth Markov Category $\StochDiff$ and Quotient Descent}

To formulate randomized algorithms functorially over arbitrary diffeological spaces~\cite{Fritz2020}, equip each $X \in \Diff$ with its $D$-Borel $\sigma$-algebra $\Sigma_D(X)$ generated by $D$-open subsets. A probability measure $\nu$ on $(X, \Sigma_D(X))$ is \emph{plot-Radon} if it is pushed forward from Polish Euclidean balls along countable families of plots.

\begin{definition}[Smooth Markov Category $\StochDiff$]
Let $\calP(X)$ denote the space of plot-Radon probability measures on $X$ endowed with the coarsest diffeology making $p \mapsto \big(u \mapsto \int_X f\, d p(u)\big)$ smooth for every bounded $f \in C^\infty_b(X, \R)$. The Kleisli category $\StochDiff := \mathrm{Kl}(\calP)$ has diffeological spaces as objects and smooth Markov kernels $K : X \to \calP(Y)$ as morphisms, composed via Chapman--Kolmogorov integration
\[
  (L \bullet K)(x, C) := \int_Y L(y, C)\, K(x, dy).
\]
\end{definition}

\begin{figure}[H]
  \centering
  \includegraphics[width=\textwidth]{figures/fig_ext3_stochastic_escape.pdf}
  \caption{Left: Zero-noise deterministic gradient descent remains trapped on $\Theta^H$ ($\|Y_t\| \equiv 0$), whereas Langevin diffusion breaks $H$-symmetry with empirical second moment $\E[\|Y_t\|^2]$ matching the theoretical Ornstein--Uhlenbeck growth law $\frac{d_\perp\tau}{\lambda}(e^{2\lambda t}-1)$ (verified within $1.12\%$ across $20{,}000$ trajectories). Right: Forward heat score fields $s_t(\theta) = \nabla\log p_t(\theta)$ of $\SO(2)$-invariant laws are strictly orthogonal to the vertical gauge fiber $\mathfrak{so}(2)\cdot\theta$.}
  \label{fig:ext3-stochastic}
\end{figure}

\begin{theorem}[Smooth Equivariant Quotient Kernel Descent]
\label{thm:ext3-quotient-kernel}
Let $G$ be a diffeological group acting smoothly on $\Theta$, let $\pi : \Theta \twoheadrightarrow \Theta/G$ be the quotient subduction, and suppose a smooth Markov kernel $K : \Theta \to \calP(\Theta)$ is $G$-equivariant in the sense that $K(g\cdot\theta, g\cdot B) = K(\theta, B)$ for all $\theta \in \Theta$, $g \in G$, and $G$-measurable $B \subset \Theta$. Then:
\begin{enumerate}[label=(\arabic*)]
  \item For every $B \in \Sigma_D(\Theta/G)$, the pullback preimage evaluation $K(\theta, \pi^{-1}(B))$ is $G$-invariant in $\theta$.
  \item Consequently, $K$ descends uniquely to a smooth quotient Markov kernel $\bar{K} : \Theta/G \to \calP(\Theta/G)$ making the stochastic Chapman--Kolmogorov square commute:
  \[
    \bar{K}\big(\pi(\theta), B\big) = K\big(\theta, \pi^{-1}(B)\big), \qquad \pi_* \bullet K = \bar{K} \bullet \pi.
  \]
  \item Explicitly, on $\Theta = \R^2\setminus\{0\}$ with $G = \SO(2)$, $\pi(\theta) = \|\theta\|_2$, and isotropic Gaussian transition $K(\theta, \cdot) = \calN(c\theta, \sigma^2 I_2)$, the descended radial kernel $\bar{K}(r, dr')$ is given cleanly by the Rice--Bessel density
  \[
    \bar{k}(r, r') = \frac{r'}{\sigma^2}\exp\!\Big(-\frac{(cr)^2 + (r')^2}{2\sigma^2}\Big) I_0\!\Big(\frac{c r r'}{\sigma^2}\Big).
  \]
\end{enumerate}
\end{theorem}

\begin{proof}
Since $\pi(g \cdot \theta) = \pi(\theta)$, preimages satisfy $g \cdot \pi^{-1}(B) = \pi^{-1}(B)$ for every $B \subset \Theta/G$ and $g \in G$. $G$-equivariance of $K$ therefore yields
\[
  K\big(g\cdot\theta, \pi^{-1}(B)\big) = K\big(g\cdot\theta, g\cdot\pi^{-1}(B)\big) = K\big(\theta, \pi^{-1}(B)\big).
\]
By the universal property of the quotient diffeology $\Theta/G$ (Volume~I and Chapter~\ref{ch:ext1-lean4}), for every bounded smooth test function $\varphi \in C^\infty_b(\Theta/G)$, the smooth bounded $G$-invariant function $\theta \mapsto \int_\Theta (\varphi \circ \pi)\, dK(\theta, \cdot)$ factors uniquely through a smooth function $\bar{\theta} \mapsto \int_{\Theta/G} \varphi\, d\bar{K}(\bar{\theta}, \cdot)$, proving $\bar{K} : \Theta/G \to \calP(\Theta/G)$ is smooth in $\StochDiff$ and satisfies $\pi_* \bullet K = \bar{K} \bullet \pi$. For~(3), integrating $\frac{1}{2\pi\sigma^2}\exp\!\big(-\frac{\|r' e^{i\alpha} - c r e^{i\phi}\|^2}{2\sigma^2}\big) r' d\alpha$ over $\alpha \in [0,2\pi)$ gives $I_0(crr'/\sigma^2)$ via $\frac{1}{2\pi}\int_0^{2\pi} e^{u\cos(\alpha-\phi)}d\alpha = I_0(u)$ independently of $\phi$.
\end{proof}

\section{Instantaneous Stratum Escape and Normal Variance Growth}

Now consider a finite compact subgroup $H \subset G$ acting orthogonally on Euclidean parameter space $\Theta = V^H \oplus V_\perp$ ($d_\perp := \dim V_\perp \ge 1$), where $\Theta^H = V^H \oplus \{0\}$ is the fixed-point stratum of $H$. Write $\theta = (x, y)$ with $x \in V^H$, $y \in V_\perp$, and let $\Pi_\perp(\theta) = y$. For an $H$-invariant smooth loss $L \in C^\infty(\Theta, \R)^H$, invariance forces $\nabla_y L(x, 0) = 0$ identically along $\Theta^H$, trapping deterministic gradient flow $\dot{\theta} = -\nabla L(\theta)$ inside $\Theta^H$. Injecting isotropic temperature $\tau > 0$ transforms the ODE into the over-damped Langevin SDE
\[
  d\theta_t = -\nabla L(\theta_t)\,dt + \sqrt{2\tau}\,dW_t.
\]

\begin{figure}[H]
  \centering
  \begin{tikzcd}[column sep=2.5cm, row sep=1.4cm]
    \Theta \ar[r, "K", dashed] \ar[d, "\pi"', two heads] & \Theta \ar[d, "\pi", two heads] \\
    \Theta/G \ar[r, "\bar{K}", dashed] & \Theta/G
  \end{tikzcd}
  \caption{Equivariant quotient kernel descent in $\StochDiff$ (dashed arrows represent Markov kernels into $\calP$).}
\end{figure}

\begin{theorem}[Instantaneous Almost-Sure Stratum Escape and Exact Normal Growth Law]
\label{thm:ext3-escape}
Let $\theta_0 = (x_0, 0) \in \Theta^H$ with $d_\perp = \dim V_\perp \ge 1$.
\begin{enumerate}[label=(\arabic*)]
  \item \textbf{Instantaneous Escape:} If $\tau > 0$ and $\nabla L$ is locally Lipschitz, then for every $t_0 > 0$, $\PP\big(\theta_{t} \in \Theta^H\big) = 0$ and $\PP\big(\exists s \in (0, t_0] : \theta_s \notin \Theta^H\big) = 1$.
  \item \textbf{Exact Linearized OU Law:} If $\theta_0$ is a symmetry-trapped saddle with normal Hessian $\nabla^2_{yy} L(x_0, 0) = -\lambda I_{d_\perp}$ ($\lambda > 0$), then the linearized normal perturbation $dY_t = \lambda Y_t\,dt + \sqrt{2\tau}\,dW_t^\perp$, $Y_0 = 0$, has exact Gaussian law $Y_t \sim \calN\!\big(0,\, \sigma_\perp^2(t) I_{d_\perp}\big)$ with closed-form normal second moment
  \[
    \E\big[\|Y_t\|^2\big] = \frac{d_\perp \tau}{\lambda}\big(e^{2\lambda t} - 1\big).
  \]
  \item \textbf{Logarithmic Escape-Time Scaling:} For small noise $\tau \ll \lambda\delta^2/d_\perp$, the first exit time $T_{\mathrm{esc}}(\delta) := \inf\{t \ge 0 : \|Y_t\| \ge \delta\}$ scales asymptotically with noise level $\tau$ as $\E[T_{\mathrm{esc}}(\delta)] \sim \frac{1}{2\lambda}\log\!\big(\frac{\lambda \delta^2}{d_\perp \tau}\big)$, so reducing $\tau$ by a factor $10$ shifts escape time by $\frac{\log 10}{2\lambda}$.
\end{enumerate}
\end{theorem}

\begin{proof}
For~(1), along $y$-coordinates with locally Lipschitz drift $b_\perp(x,y) = -\nabla_y L(x,y)$, non-degeneracy of the elliptic diffusion $\sqrt{2\tau} I_{d_\perp}$ yields via Girsanov's theorem / Hormander's hypoellipticity theorem a strictly positive smooth transition density $p_t(\theta_0, dx\,dy)$ with respect to Lebesgue measure $dx\,dy$ on $\Theta$ for every $t > 0$. Since $d_\perp \ge 1$, the hyperplane $\Theta^H = \{y = 0\}$ has Lebesgue measure zero, giving $\PP(\theta_t \in \Theta^H) = \int_{\{y=0\}} p_t(\theta_0, \theta)\,dx\,dy = 0$.

For~(2), solving the linear SDE $dY_t = \lambda Y_t\,dt + \sqrt{2\tau}\,dW_t^\perp$ via integrating factor $e^{-\lambda t} Y_t$ gives the stochastic convolution
\[
  Y_t = \sqrt{2\tau}\int_0^t e^{\lambda(t-s)}\,dW_s^\perp.
\]
It\^o's isometry immediately computes the mean-square radial dispersion:
\[
  \E\big[\|Y_t\|^2\big] = 2\tau d_\perp \int_0^t e^{2\lambda(t-s)}\,ds = 2\tau d_\perp \cdot \frac{e^{2\lambda t}-1}{2\lambda} = \frac{d_\perp \tau}{\lambda}\big(e^{2\lambda t}-1\big).
\]
For~(3), at $t_*(\tau) := \frac{1}{2\lambda}\log\!\big(1 + \frac{\lambda \delta^2}{d_\perp \tau}\big)$ one has $\E[\|Y_{t_*}\|^2] = \delta^2$, and rescaling $e^{-\lambda t} Y_t \to Z_\infty \sim \calN(0, \frac{\tau}{\lambda} I_{d_\perp})$ almost surely as $t\to\infty$ locates the threshold crossing around $\frac{1}{2\lambda}\log\!\big(\frac{\lambda\delta^2}{d_\perp\tau}\big)$, shifting by $\frac{1}{2\lambda}\log(\tau_1/\tau_2)$ under noise scaling.
\end{proof}

\section{Gauge-Horizontal Score Fields and Quotient Diffusion}

Consider finally generative diffusion on a Euclidean $G$-representation $\Theta$ where $G$ is a compact connected Lie group acting orthogonally ($\|g\theta\| = \|\theta\|$), and $p_0 \in \calP(\Theta)^G$ is a $G$-invariant data distribution convolved with isotropic heat kernel $\calN(0, \sigma_t^2 I)$ to produce marginals $p_t(\theta) = \int_\Theta \calN(\theta;\, \theta_0, \sigma_t^2 I)\, p_0(d\theta_0)$ and score vector field $s_t(\theta) := \nabla_\theta \log p_t(\theta)$.

\begin{theorem}[Gauge-Orthogonal Score Field and Quotient Reverse-Time Diffusion]
\label{thm:ext3-horizontal-score}
Assume $p_0$ is $G$-invariant under an orthogonal linear action $G \subset \Orth(\Theta)$. Then for every $t > 0$ and $\theta \in \Theta$:
\begin{enumerate}[label=(\arabic*)]
  \item $p_t$ is $G$-invariant ($p_t(g\theta) = p_t(\theta)$) and the score $s_t$ is $G$-equivariant ($s_t(g\theta) = g s_t(\theta)$).
  \item The score vector field is everywhere horizontal with respect to the $G$-orbit fibration: for every Lie algebra generator $\xi \in \frg$,
  \[
    \langle s_t(\theta), \xi_\Theta(\theta) \rangle = 0.
  \]
  \item Consequently, the Anderson reverse-time probability flow ODE~\cite{Anderson1982} $\dot{\theta} = -\dot{\sigma}_t \sigma_t s_t(\theta)$ has identically zero vertical velocity along gauge fibers and projects via $\pi_*$ to a closed deterministic flow on the quotient diffeology $\Theta/G$.
\end{enumerate}
\end{theorem}

\begin{proof}
Because $g \in \Orth(\Theta)$ preserves Euclidean distances and Lebesgue measure ($|\det g| = 1$), change of variables $\theta_0' = g^{-1}\theta_0$ gives
\[
  p_t(g\theta) = \int_\Theta \frac{1}{(2\pi\sigma_t^2)^{d/2}} e^{-\|g\theta - \theta_0\|^2/(2\sigma_t^2)} p_0(d\theta_0)
  = \int_\Theta \frac{1}{(2\pi\sigma_t^2)^{d/2}} e^{-\|\theta - \theta_0'\|^2/(2\sigma_t^2)} (g^{-1}_* p_0)(d\theta_0') = p_t(\theta).
\]
Differentiating $p_t(g\theta) = p_t(\theta)$ with respect to $\theta$ and multiplying by $g^{-1}$ gives $\nabla \log p_t(g\theta) = (g^\top)^{-1}\nabla \log p_t(\theta) = g s_t(\theta)$. For~(2), differentiating $s \mapsto \log p_t(\exp(s\xi)\theta)$ at $s=0$ using $G$-invariance of $\log p_t$ directly yields
\[
  \langle s_t(\theta), \xi_\Theta(\theta) \rangle = \frac{d}{ds}\Big|_{s=0} \log p_t(\exp(s\xi)\theta) = 0.
\]
Finally, since $s_t$ is smooth and $G$-equivariant with zero vertical component along $\frg\cdot\theta$, projecting solutions of $\dot{\theta} = -\dot{\sigma}_t \sigma_t s_t(\theta)$ to $\Theta/G$ recovers the horizontal gradient-log-density flow of the pushed-forward quotient marginal $\bar{p}_t = \pi_* p_t$.
\end{proof}

\section*{Exercises}

\begin{exercise}
\tier{Level I --- Warm-up}
Explicitly compute the $\SO(2)$-quotient radial kernel $\bar{k}(r, r')$ when $c = 0$ in Theorem~\ref{thm:ext3-quotient-kernel}(3), and verify $\int_0^\infty \bar{k}(r, r')\,dr' = 1$.
\end{exercise}

\begin{exercise}
\tier{Level II --- Structural}
Show that on the non-compact scaling symmetry group $G = \R_{>0}$ acting on $\R^2\setminus\{0\}$ by dilation $g\cdot \theta = \lambda \theta$, an \emph{unscaled} additive Gaussian kernel $\calN(\theta, \sigma^2 I_2)$ fails to be $G$-equivariant, whereas geometric Brownian noise $K(\theta, \cdot) = \calN(c\theta, \sigma^2 \|\theta\|^2 I_2)$ satisfies $K(\lambda\theta, \lambda B) = K(\theta, B)$ and descends cleanly to $\PP^1(\R)$ / quotient spheres.
\end{exercise}

\begin{exercise}
\tier{Level III --- Quantitative Diffusion}
Let $dY_t = -a Y_t\,dt + \sqrt{2\tau}\,dW_t$ be a \emph{stable} ($a > 0$) Ornstein--Uhlenbeck normal fluctuation around $\Theta^H$. Compute $\E[\|Y_t\|^2]$ explicitly from It\^o's isometry and contrast its bounded stationary variance $\frac{d_\perp \tau}{a}$ against the exponential instability of Theorem~\ref{thm:ext3-escape}(2).
\end{exercise}

\begin{exercise}
\tier{Level IV --- Proof-Level}
Prove carefully that if $K : \Theta \to \calP(\Theta)$ is $G$-equivariant for a compact group $G$, and $\mu$ is an invariant probability measure of $K$ ($\int_\Theta K(\theta, \cdot)\,d\mu(\theta) = \mu$), then the $G$-orbit-averaged measure $\bar{\mu}(B) := \int_G \mu(g^{-1} B)\,dg$ (Haar integral) is both $G$-invariant and $K$-invariant, and satisfies $\pi_* \bar{\mu} = \bar{K}_*(\pi_* \bar{\mu})$.
\end{exercise}



\chapter{Shifted Symplectic Loci (PTVV) and Multisymplectic Diffeology}
\label{ch:ext4-shifted}

Chapters~7 and~9 of Volume~I~\cite{Vol1} established Souriau's $1$-symplectic moment map $\mu : X \to \frg^*/\Gamma$ on smooth stacks and Chapter~13 showed that non-transverse system interconnections fail classical $0$-truncated descent and require derived homotopy pullbacks. In this chapter we unify both phenomena via Pantev--To\"en--Vaqui\'e--Vezzosi (PTVV) shifted symplectic geometry~\cite{PTVV2013} internal to $\boldH = \Sh_\infty(\Cart)$, proving canonical $(-1)$-shifted symplectic structure on derived critical loci $\RCrit(L)$, establishing a Goldstone zero-mode bound via the $4$-term Atiyah--Bott--BV complex on $[\RCrit(L)\hquot G]$, and lifting Souriau--Noether conservation to $n$-plectic covariant PDEs~\cite{Rogers2012}.

\section{Derived Critical Loci $\RCrit(L)$ and $(-1)$-Shifted Symplectic Structure}

Let $L \in C^\infty(\Theta, \R)$ be a smooth objective on an $n$-dimensional parameter manifold $\Theta$. Its classical critical locus $\mathrm{Crit}(L) = \mathrm{Zeros}(dL) = T^*\Theta \times_{\Theta,\, 0,\, dL} \Theta$ frequently fails transversality in overparameterized neural networks and gauge theories. Replacing this fiber product by its homotopy intersection in derived smooth algebras yields the Batalin--Vilkovisky (BV) Koszul--Tate dg-manifold~\cite{BV1981}
\[
  \RCrit(L) := \big(C^\infty(\Theta)[\theta_1^*,\dots,\theta_n^*],\; Q\big),
\]
where $\theta_i$ carry cohomological degree $0$, the antifields $\theta_i^*$ carry degree $-1$, multiplication is graded-commutative ($\theta_i^*\theta_j^* = -\theta_j^*\theta_i^*$), and the BV differential satisfies $Q(\theta_i) = 0$ and $Q(\theta_i^*) = \partial_{\theta_i} L$.

\begin{figure}[H]
  \centering
  \includegraphics[width=\textwidth]{figures/fig_ext4_shifted_symplectic_bv.pdf}
  \caption{Left: Exact singular-value spectrum of the Gauss--Newton Hessian $H_p$ and gauge-orbit injection $\rho_p$ at a rank-$2$ critical point of a $\GL_2(\R)$-bilinear network ($\dim \frg = 4$, $\mathrm{nullity}(H_p) = 4 = \mathrm{rank}(\rho_p)$, $\|H_p \rho_p\|_F < 10^{-13}$). Right: Derived critical locus as a homotopy Lagrangian intersection $T^*\Theta \times^h_{0, dL} \Theta$ carrying canonical $(-1)$-shifted symplectic form $\omega_{(-1)}$.}
  \label{fig:ext4-shifted}
\end{figure}

\begin{theorem}[Canonical $(-1)$-Shifted Symplectic Form and Zero Virtual Index]
\label{thm:ext4-ptvv-crit}
On $\RCrit(L)$ for any smooth function $L \in C^\infty(\Theta, \R)$:
\begin{enumerate}[label=(\arabic*)]
  \item $Q^2 = 0$ identically on the graded Koszul--Tate algebra, making $(\calO_{\RCrit(L)}, Q)$ a differential graded commutative algebra (cdga).
  \item The canonical degree-$(-1)$ exact $2$-form
  \[
    \omega_{(-1)} := \sum_{i=1}^n d\theta_i \wedge d\theta_i^*
  \]
  is non-degenerate, de~Rham closed ($d_{\mathrm{dR}}\omega_{(-1)} = 0$), and $Q$-closed ($\calL_Q \omega_{(-1)} = d_{\mathrm{dR}}(Q\theta_i)\dots = d_{\mathrm{dR}}(dL) = 0$), equipping $\RCrit(L)$ with a PTVV $(-1)$-shifted symplectic structure.
  \item At every classical critical point $p \in \mathrm{Crit}(L)$, the $2$-term virtual tangent complex
  \[
    \mathbb{T}_p\RCrit(L) \simeq \Big[\, T_p\Theta \xrightarrow{\;\nabla^2 L(p)\;} T_p^*\Theta \,\Big] \qquad (\text{degrees } 0 \to 1)
  \]
  is quasi-isomorphic to its $(-1)$-shifted dual $\mathbb{T}_p^*\RCrit(L)[-1]$ and has vanishing virtual tangent dimension: $\chi(\mathbb{T}_p\RCrit(L)) = \dim\ker\nabla^2 L(p) - \dim\coker\nabla^2 L(p) = 0$.
\end{enumerate}
\end{theorem}

\begin{proof}
For~(1), because $Q$ is an odd derivation ($|Q|=+1$), $Q^2 = \frac{1}{2}[Q,Q]$ is an even derivation completely determined by its values on generators: $Q^2(\theta_i) = Q(0) = 0$ and $Q^2(\theta_i^*) = Q(\partial_i L(\theta)) = \sum_j (\partial_i\partial_j L) Q(\theta_j) = 0$. For~(2), $\omega_{(-1)} = d_{\mathrm{dR}}\big(\sum_i \theta_i\, d\theta_i^*\big)$ is de~Rham exact (hence closed) and establishes the canonical isomorphism $\mathbb{T}\RCrit(L) \xrightarrow{\sim} \mathbb{L}\RCrit(L)[-1]$ swapping $\partial_{\theta_i}$ (degree $0$) with $d\theta_i^*$ (degree $-1$ shifted to $+1$). Its graded Lie derivative along $Q$ equals
\[
  \calL_Q \omega_{(-1)} = \sum_{i=1}^n d\theta_i \wedge d\big(Q(\theta_i^*)\big) = \sum_{i=1}^n d\theta_i \wedge d(\partial_i L) = d(dL) = 0
\]
by mixed-partial symmetry $\partial_i\partial_j L = \partial_j\partial_i L$. For~(3), linearizing $Q(\theta_i^*) = \partial_i L$ at $p \in \mathrm{Crit}(L)$ gives the differential $d_{\mathrm{vir}} = \nabla^2 L(p) : T_p\Theta \to T_p^*\Theta$ from degree $0$ to degree $1$. Symmetry $\nabla^2 L(p)^\top = \nabla^2 L(p)$ makes $\mathbb{T}_p\RCrit(L)$ strictly self-dual under $[-1]$, forcing $\dim\ker\nabla^2 L(p) = \dim\coker\nabla^2 L(p)$ and $\chi = \dim\Theta - \dim\Theta = 0$.
\end{proof}

\section{Goldstone Zero Modes and the Atiyah--Bott--BV Complex on $[\RCrit(L)\hquot G]$}

Now incorporate a continuous gauge group $G$ acting smoothly on $\Theta$ with $L \in C^\infty(\Theta, \R)^G$ invariant. At a symmetric critical point $p \in \mathrm{Crit}(L)$ with stabilizer Lie algebra $\frg_p = \{\xi \in \frg : \xi_\Theta(p) = 0\}$, the quotient stack $[\RCrit(L)\hquot G]$ carries a four-term self-dual Atiyah--Bott--BV tangent complex resolving both gauge orbits and gauge redundancies.

\begin{figure}[H]
  \centering
  \begin{tikzcd}[column sep=2.2cm, row sep=1.2cm]
    \frg \ar[r, "\rho_p"] & T_p\Theta \ar[r, "\nabla^2 L(p)"] & T_p^*\Theta \ar[r, "\rho_p^*"] & \frg^*
  \end{tikzcd}
  \caption{Four-term self-dual Atiyah--Bott--BV tangent complex of $[\RCrit(L)\hquot G]$ (degrees $-1 \to 0 \to 1 \to 2$), whose degree-$0$ cohomology measures non-Goldstone Hessian zero modes.}
\end{figure}

\begin{theorem}[Goldstone Nullity Bound and Exact $4$-Term Atiyah--Bott--BV Complex]
\label{thm:ext4-abbv}
Let $L \in C^\infty(\Theta, \R)^G$ and let $p \in \mathrm{Crit}(L)$ have infinitesimal orbit map $\rho_p : \frg \to T_p\Theta$, $\rho_p(\xi) = \xi_\Theta(p)$.
\begin{enumerate}[label=(\arabic*)]
  \item \textbf{Complex \& Ward Identity:} $\nabla^2 L(p) \circ \rho_p = 0$ and $\rho_p^* \circ \nabla^2 L(p) = 0$, so
  \[
    \frg \xrightarrow{\;\rho_p\;} T_p\Theta \xrightarrow{\;\nabla^2 L(p)\;} T_p^*\Theta \xrightarrow{\;\rho_p^*\;} \frg^*
  \]
  is a cochain complex concentrated in degrees $\{-1, 0, 1, 2\}$ with shifted self-duality $H^{-1} \cong (H^2)^* \cong \frg_p$ and $H^0 \cong (H^1)^* = \ker\nabla^2 L(p)/\im(\rho_p)$.
  \item \textbf{Goldstone Lower Bound:} Every critical point obeys
  \[
    \dim\ker\nabla^2 L(p) \ge \dim\frg - \dim\frg_p = \dim(G\cdot p),
  \]
  with equality iff $p$ is Bott--Morse non-degenerate transverse to its $G$-orbit ($H^0(\mathbb{T}_p[\RCrit(L)\hquot G]) = 0$).
  \item For the bilinear network factorization $L(W_2, W_1) = \frac{1}{2}\|W_2 W_1 - M^*\|_F^2$ with $\Theta = \R^{3\times 2}\times\R^{2\times 3}$, $G = \GL_2(\R)$, and $\rank(M^*) = 2$, any full-rank factor pair $(A^*, B^*)$ satisfies $\rank(\rho_p) = \mathrm{nullity}(\nabla^2 L(p)) = 4$, giving exact vanishing Bott--Morse stacky cohomology $H^0 = H^1 = 0$.
\end{enumerate}
\end{theorem}

\begin{proof}
Differentiating $L(\exp(t\xi)\cdot\theta) = L(\theta)$ at $t=0$ gives $\langle dL_\theta, \xi_\Theta(\theta) \rangle = 0$ identically for all $\theta \in \Theta$. Differentiating once more with respect to $\theta$ at a point $p$ where $dL_p = 0$ annihilates the $d(\xi_\Theta)$ term and leaves
\[
  \nabla^2 L(p)\big(\xi_\Theta(p), v\big) = 0 \qquad \forall v \in T_p\Theta,
\]
i.e., $\nabla^2 L(p)\circ\rho_p = 0$. Taking transposes and using symmetry $\nabla^2 L(p)^* = \nabla^2 L(p)$ yields $\rho_p^* \circ \nabla^2 L(p) = 0$, establishing both complex differential identities in~(1). By rank--nullity, $\im(\rho_p) \subseteq \ker\nabla^2 L(p)$ forces $\dim\ker\nabla^2 L(p) \ge \dim\im(\rho_p) = \dim\frg - \dim\frg_p$, proving~(2). Finally, for $L(W_2, W_1) = \frac{1}{2}\|W_2 W_1 - M^*\|_F^2$ at a global minimum $A^* B^* = M^*$ where $\rank(A^*) = \rank(B^*) = 2$, the Jacobian $d(W_2 W_1)$ surjects onto the tangent space $T_{M^*} \calM_2$ of dimension $3\cdot 3 - 1 = 8$ inside $\R^{3\times 3}$, so $\rank(\nabla^2 L(p)) = 8$, $\mathrm{nullity}(\nabla^2 L(p)) = 12 - 8 = 4 = \dim \frg\mathfrak{l}_2(\R)$, matching $\dim(G\cdot p)$ with zero transverse zero modes.
\end{proof}

\section{Multisymplectic Diffeology and Covariant Noether Conservation}

Beyond ODEs over $1$-dimensional time, variational field theories over an $(n)$-dimensional spacetime $\Sigma$ with fields $\phi : \Sigma \to Y$ (section of a diffeological bundle $E \to \Sigma$) are governed by $(n)$-plectic geometry on the first jet bundle $J^1 E$~\cite{Rogers2012}. A closed $(n+1)$-form $\Omega \in \Omega^{n+1}(J^1 E)$ is \emph{multisymplectic} if $\iota_v \Omega = 0$ ($v$ tangent to plots) forces $v = 0$. Given a smooth Lagrangian density $\calL\, \vol_\Sigma$ on $J^1 E$, its Poincaré--Cartan $n$-form $\Theta_\calL$ yields $\Omega_\calL := -d\Theta_\calL \in \Omega^{n+1}_{\mathrm{cl}}(J^1 E)$.

\begin{theorem}[Diffeological $n$-Plectic Covariant Noether Law and Higher Period Torus]
\label{thm:ext4-nplectic}
Let $E \to \Sigma$ be a diffeological bundle over an oriented $n$-manifold $\Sigma$ with Lagrangian density $\calL\,\vol_\Sigma$ and Poincaré--Cartan $(n+1)$-form $\Omega_\calL = -d\Theta_\calL$. Suppose a diffeological Lie group $G$ acts by bundle automorphisms preserving $\Theta_\calL$ ($\calL_{\xi_{J^1 E}} \Theta_\calL = 0$ for $\xi \in \frg$).
\begin{enumerate}[label=(\arabic*)]
  \item \textbf{Covariant Moment $n$-Form:} The contraction $J(\xi) := -\iota_{\xi_{J^1 E}} \Theta_\calL \in \Omega^{n-1}(J^1 E)$ satisfies the covariant Hamilton equation $\iota_{\xi_{J^1 E}} \Omega_\calL = dJ(\xi)$.
  \item \textbf{On-Shell Conservation:} For every De~Donder--Weyl extremal section $\phi : \Sigma \to E$ (satisfying $(j^1\phi)^*(\iota_W \Omega_\calL) = 0$ for all vertical variations $W$), the pulled-back $(n-1)$-current satisfies $d\big((j^1\phi)^* J(\xi)\big) = 0$. Explicitly, in $(1+1)$D complex nonlinear Klein--Gordon field theory ($\calL = \frac{1}{2}(|\partial_t \psi|^2 - |\partial_x \psi|^2) - V(|\psi|^2)$, $\psi = u + iv$) under $U(1)$ phase symmetry,
  \[
    \partial_t (u v_t - v u_t) + \partial_x (v u_x - u v_x) = -(-v\,\mathrm{EL}_u + u\,\mathrm{EL}_v) \equiv 0 \quad (\text{on-shell}).
  \]
  \item \textbf{Higher Period Obstruction:} For a general closed $(n+1)$-form $\omega \in \Omega^{n+1}_{\mathrm{cl}}(X)$ on a connected diffeological space $X$, evaluating $\omega$ on smooth $(n+1)$-spheres defines its higher period subgroup $P_\omega^{(n+1)} := \{\int_{S^{n+1}} \sigma^*\omega\} \subset \R$; when $P_\omega^{(n+1)} = \alpha\Z$ is discrete, $\omega$ integrates to a smooth principal $\B^n T_\omega$-gerbe with $T_\omega = \R/P_\omega^{(n+1)}$.
\end{enumerate}
\end{theorem}

\begin{proof}
Cartan's magic formula gives $0 = \calL_{\xi_{J^1 E}} \Theta_\calL = d(\iota_{\xi_{J^1 E}} \Theta_\calL) + \iota_{\xi_{J^1 E}} d\Theta_\calL = -dJ(\xi) - \iota_{\xi_{J^1 E}} \Omega_\calL$, yielding~(1). Pulling back by $j^1\phi$ for a De~Donder--Weyl extremal $\phi$ and decomposing $T(j^1\phi)$ against vertical generators yields $(j^1\phi)^*(\iota_{\xi_{J^1 E}} \Omega_\calL) = 0$ on-shell, whence $d((j^1\phi)^* J(\xi)) = 0$ in $\Omega^n(\Sigma)$. Computing explicitly for Klein--Gordon gives $J^0 = u v_t - v u_t$, $J^1 = v u_x - u v_x$, and direct differentiation gives
\[
  \partial_t J^0 + \partial_x J^1 = u(v_{tt}-v_{xx}) - v(u_{tt}-u_{xx}) = v\,\mathrm{EL}_u - u\,\mathrm{EL}_v,
\]
vanishing identically on solutions to $\mathrm{EL}_u = \mathrm{EL}_v = 0$. Finally, for~(3), pairing $\Omega_{\mathrm{cl}}^{n+1}(X)$ against the Kan complex $\Sing^\infty(X)$ via Stokes' theorem sends $(n+1)$-simplices with matched faces to a diffeological homomorphism $\pi_{n+1}(X) \to \R$ whose image $P_\omega^{(n+1)}$ classifies the gluing transition $n$-cocycles modulo $P_\omega^{(n+1)}$, lifting Iglesias-Zemmour's integration $U(1)$-torus (Volume~I, Ch.~7) to degree $n+1$~\cite{Schreiber2013,FRS2016}.
\end{proof}

Symbolic Koszul--Tate checks, $\GL_2(\R)$ Atiyah--Bott--BV singular-value audits, and the $(1+1)$D nonlinear Klein--Gordon conservation law are all verified in \texttt{verify\_\-ext4\_\-shifted\_\-symplectic.py} inside \texttt{extensions/}.

\section*{Exercises}

\begin{exercise}
\tier{Level I --- Warm-up}
For a $1$-variable function $L(x) = x^3$, compute the Koszul--Tate differential $Q$ on degree-$0$ and degree-$(-1)$ elements of $\R[x, x^*]$, determine $H^0(Q)$ and $H^{-1}(Q)$, and compare $\RCrit(x^3)$ against the classical critical locus $\{0\}$.
\end{exercise}

\begin{exercise}
\tier{Level II --- Structural}
Prove directly from Theorem~\ref{thm:ext4-ptvv-crit}(2) that the graded Poisson bracket $\{F, G\}_{\mathrm{BV}}$ induced by $\omega_{(-1)} = \sum_i d\theta_i \wedge d\theta_i^*$ satisfies $\{L, \theta_i^*\}_{\mathrm{BV}} = \partial_{\theta_i} L$, so the master-equation Hamiltonian vector field $\{L, -\}_{\mathrm{BV}}$ recovers the Koszul--Tate differential $Q$.
\end{exercise}

\begin{exercise}
\tier{Level III --- Stacky Cohomology}
Compute all four cohomology spaces $H^{-1}, H^0, H^1, H^2$ of the Atiyah--Bott--BV complex (Theorem~\ref{thm:ext4-abbv}) for the $\SO(2)$-invariant Mexican-hat potential $L(x_1, x_2, x_3) = \frac{1}{4}(x_1^2+x_2^2-1)^2 + \frac{1}{2} x_3^2$ both at a point $p = (1, 0, 0)$ on the critical circle and at the origin $p_0 = (0, 0, 0)$.
\end{exercise}

\begin{exercise}
\tier{Level IV --- Proof-Level}
Verify by direct computation that for an $(n+1)$-plectic form $\omega \in \Omega^{n+1}_{\mathrm{cl}}(X)$, if $\alpha \in \Omega^n(X)$ satisfies $d\alpha = \omega$, then the higher period group $P_\omega^{(n+1)}$ vanishes identically on $\pi_{n+1}(X)$ and the associated $\B^n T_\omega$-bundle trivializes over $X$.
\end{exercise}



\chapter{Smooth Noncommutative Tori, Powers--Rieffel Projections, and Real Multiplication}
\label{ch:ext5-noncomm}

In Volume~I (Chapter~11~\cite{Vol1}), we proved a sharp arithmetic dichotomy on the irrational Kronecker torus $T_\alpha = \R/(\Z + \alpha\Z)$: while the coarse diffeological group $H^1_{\mathrm{diff}}(T_\alpha;\R)$ distinguishes Diophantine ($\dim = 1$) from Liouville ($\dim = 2^{\aleph_0}$) slopes, the automorphism group $\Diff(T_\alpha) \cong T_\alpha \rtimes \calO(\Lambda_\alpha)^\times$ collapses to $T_\alpha \rtimes \{\pm 1\}$ unless $\alpha$ is quadratic, in which case Pell units act as non-trivial symmetries. In this chapter we lift the stack $[\T^2 \hquot \R_\alpha]$ to Connes--Rieffel's smooth noncommutative torus $\Aalpha$~\cite{Connes1980,Rieffel1981}, construct explicit smooth Powers--Rieffel projections of Chern class $\pm 1$, reconcile diffeological $\GL_2(\Z)$ classification with Heisenberg-bimodule Morita equivalence, and establish Manin's Real-Multiplication link between Pell units and closed modular geodesics on $\calM_{1,1}$~\cite{Manin2004}.

\section{Smooth Convolution Algebra $\Aalpha$ and Powers--Rieffel Projections}

Rather than throwing away transverse coordinates as in the coarse quotient $T_\alpha$, equip the Kronecker foliation groupoid $\R \ltimes_\theta S^1$ ($\theta = 1-\alpha$, translation $(x, n) \mapsto x - n\theta$) with its smooth rapid-decay groupoid convolution algebra. Equivalently, let $\Aalpha$ consist of formal trigonometric series
\[
  a = \sum_{m, n \in \Z} a_{m,n}\, U^m V^n, \qquad \sup_{m,n} (1 + |m| + |n|)^k |a_{m,n}| < \infty \quad (\forall k \in \N),
\]
subject to the Weyl commutation relation $V U = e^{2\pi i \theta} U V$ ($\theta = 1 - \alpha$, so $U V = e^{2\pi i \alpha} V U$), involution $(U^m V^n)^* = V^{-n} U^{-m} = e^{2\pi i m n \theta} U^{-m} V^{-n}$, and canonical normalized trace $\tau(a) := a_{0,0}$. Two commuting unbounded derivations generate the smooth calculus of $\Aalpha$:
\[
  \delta_1(U^m V^n) := 2\pi i m\, U^m V^n, \qquad \delta_2(U^m V^n) := 2\pi i n\, U^m V^n.
\]

\begin{figure}[H]
  \centering
  \includegraphics[width=\textwidth]{figures/fig_ext5_noncomm_torus_pell.pdf}
  \caption{Left: Smooth $C^\infty$ Powers--Rieffel projection profile functions $f(x)$ and $g(x) = \sqrt{f(x)(1-f(x))}$ at golden slope $\alpha = \frac{\sqrt{5}-1}{2}$ ($\theta = 1 - \alpha \approx 0.382$), satisfying $\tau(p_\alpha) = \alpha$ and integer Connes Chern number $|c_1(p_\alpha)| = 1$ to $< 10^{-10}$. Right: Pell-unit matrix $A = \begin{psmallmatrix}2 & 1 \\ 1 & 1\end{psmallmatrix} \in \SL_2(\Z)$ preserving the golden lattice $\Lambda_\alpha$ and generating the shortest closed modular geodesic of hyperbolic length $\ell_{\mathrm{hyp}}(\gamma_A) = 2\log\varepsilon_+ \approx 1.9248$ on $\calM_{1,1}$.}
  \label{fig:ext5-noncomm}
\end{figure}

\begin{theorem}[Smooth Powers--Rieffel Projection and Connes Chern Integrality]
\label{thm:ext5-rieffel}
Let $\alpha \in (1/2, 1)$ be irrational ($\theta = 1 - \alpha \in (0, 1/2)$) and choose $0 < \varepsilon < \min(\theta, 1 - 2\theta)$. Let $\psi \in C^\infty(\R, [0,1])$ be a monotone transition ramp with $\psi|_{(-\infty,0]} \equiv 0$, $\psi|_{[1,\infty)} \equiv 1$, and define $1$-periodic smooth functions on $[0,1)$:
\[
  f(x) =
  \begin{cases}
    \sin^2\!\big(\tfrac{\pi}{2}\psi(x/\varepsilon)\big), & x \in [0,\varepsilon), \\
    1, & x \in [\varepsilon,\theta), \\
    1 - \sin^2\!\big(\tfrac{\pi}{2}\psi((x-\theta)/\varepsilon)\big), & x \in [\theta,\theta+\varepsilon), \\
    0, & x \in [\theta+\varepsilon, 1),
  \end{cases}
  \qquad
  g(x) = \tfrac{1}{2}\sin\!\big(\pi\psi(x/\varepsilon)\big)\,\mathbf{1}_{[0,\varepsilon)}(x).
\]
Form the element $p_\theta := V^{-1} g(U) + f(U) + g(U) V \in \Aalpha$ and its complement $p_\alpha := 1 - p_\theta \in \Aalpha$. Then:
\begin{enumerate}[label=(\arabic*)]
  \item $p_\alpha^* = p_\alpha$ and $p_\alpha^2 = p_\alpha$ hold identically in $\Aalpha$ (representing a finitely generated projective smooth right $\Aalpha$-module / noncommutative vector bundle over $[\T^2 \hquot \R_\alpha]$).
  \item Its canonical trace equals $\tau(p_\theta) = \int_0^1 f(x)\,dx = \theta$ and $\tau(p_\alpha) = 1 - \theta = \alpha$.
  \item Connes' first Chern pairing with the curvature of the canonical Grassmann connection $\nabla = \delta$ is strictly an integer:
  \[
    c_1(p_\alpha) := \frac{1}{2\pi i}\,\tau\Big(p_\alpha\big(\delta_1(p_\alpha)\delta_2(p_\alpha) - \delta_2(p_\alpha)\delta_1(p_\alpha)\big)\Big) = -1 \in \Z
  \]
  (with $c_1(p_\theta) = +1$, opposite under the sign convention $V U = e^{2\pi i\theta} U V$).
\end{enumerate}
\end{theorem}

\begin{proof}
Represent $U, V$ faithfully on $L^2(\R/\Z)$ by $(U\xi)(x) = e^{2\pi i x}\xi(x)$ and $(V\xi)(x) = \xi(x+\theta)$, so $(V U \xi)(x) = e^{2\pi i(x+\theta)}\xi(x+\theta) = e^{2\pi i\theta}(UV\xi)(x)$, $V^* = V^{-1}$, and $V h(U) V^{-1} = h(x+\theta)$ while $V^{-1} h(U) V = h(x-\theta)$. Because $\psi \in C^\infty(\R, [0,1])$ is flat at $0$ and $1$, $f$ and $g$ are manifestly $C^\infty$ $1$-periodic functions satisfying $g(x)^2 = \frac{1}{4}\sin^2(\pi\psi(x/\varepsilon)) = f(x)(1-f(x))$ on $[0,\varepsilon]$ (see Exercise~5.2); hence $p_\theta \in \Aalpha$ and $p_\theta^* = (g(U)V)^* + f(U) + (V^{-1}g(U))^* = V^{-1}g(U) + f(U) + g(U)V = p_\theta$.

Squaring $p_\theta$ sorts terms by powers $V^k$:
\begin{itemize}[leftmargin=1.8em]
  \item $V^2$ coefficient: $g(U) V g(U) V = g(x) g(x+\theta) V^2 = 0$, because $\supp(g) \subset [0,\varepsilon]$ and $\varepsilon + \theta < 1 - \varepsilon$ keeps $[0,\varepsilon]$ and $[1-\theta, 1-\theta+\varepsilon]$ disjoint modulo~$1$. Similarly the $V^{-2}$ term vanishes.
  \item $V^{+1}$ coefficient: $f(U) g(U) V + g(U) V f(U) = \big(f(x) + f(x+\theta)\big) g(x) V = g(U) V$, because on $x \in [0,\varepsilon]$, $x+\theta \in [\theta, \theta+\varepsilon]$ where $f(x+\theta) = 1 - \sin^2(\frac{\pi}{2}\psi(x/\varepsilon)) = 1 - f(x)$. By Hermiticity, the $V^{-1}$ coefficient equals $V^{-1} g(U)$.
  \item $V^0$ coefficient: $f(x)^2 + g(x)^2 + g(x-\theta)^2$. On $[0,\varepsilon]$, $g(x)^2 = f(x)(1-f(x))$ and $g(x-\theta) = 0$; on $[\varepsilon,\theta]$, $f(x) = 1$ and $g = 0$; on $[\theta,\theta+\varepsilon]$, $g(x)=0$ while $g(x-\theta)^2 = f(x-\theta)(1-f(x-\theta)) = (1-f(x))f(x)$. Hence $f^2 + g(x)^2 + g(x-\theta)^2 = f(x)$ identically, proving $p_\theta^2 = p_\theta$ and $p_\alpha^2 = (1-p_\theta)^2 = p_\alpha$.
\end{itemize}
Integrating $f$ directly cancels symmetric ramp tails $\int_0^\varepsilon \sin^2(\frac{\pi}{2}\psi(x/\varepsilon))\,dx + \int_\theta^{\theta+\varepsilon}(1-\sin^2(\frac{\pi}{2}\psi((x-\theta)/\varepsilon)))\,dx = \varepsilon$, leaving $\tau(p_\theta) = \varepsilon + (\theta - \varepsilon) = \theta$ and $\tau(p_\alpha) = 1-\theta = \alpha$. Finally, because $\delta_1(1)=\delta_2(1)=0$, computing Connes' $2$-cocycle pairing reduces via integration by parts to $c_1(p_\theta) = +1$ and hence $c_1(p_\alpha) = -c_1(p_\theta) = -1 \in \Z$~\cite{Connes1980,Rieffel1981}.
\end{proof}

\section{Diffeological Rigidity vs.\ Morita Equivalence}

In Volume~I~\cite[Ch.~11]{Vol1}, two coarse irrational tori satisfy $T_\alpha \cong_{\Diff} T_\beta$ iff $\beta \in \GL_2(\Z)\cdot \alpha$. Passing to noncommutative convolution stacks $\Aalpha$ enlarges this equivalence from diffeomorphism isomorphism to **smooth Morita equivalence**, where Heisenberg bimodules interpolate all fractional linear transformations $\beta = \frac{a\alpha + b}{c\alpha + d}$ and scale the ordered $K_0$-trace range linearly by $(c\alpha + d)^{-1}$.

\begin{figure}[H]
  \centering
  \begin{tikzcd}[column sep=2.2cm, row sep=1.4cm]
    {[\T^2 \hquot \R_\alpha]} \ar[r, "\text{convolution}", "\text{smooth}"'] \ar[d, "\text{coarse}"'] & \Aalpha \ar[r, "c_1"] \ar[d, "\tau_*", "\text{Heisenberg}"'] & \Z \oplus \Z\alpha \subset \R \\
    T_\alpha \ar[r, "\calO(\Lambda_\alpha)^\times"'] & \SL_2(\Z) \cdot \alpha \ar[ur, "\text{Pell geodesic}"']
  \end{tikzcd}
  \caption{Categorical bridge linking the foliation stack $[\T^2 \hquot \R_\alpha]$, Connes--Rieffel algebra $\Aalpha$, $K_0$-trace scaling, and closed geodesics on $\calM_{1,1}$.}
\end{figure}

\begin{theorem}[$\GL_2(\Z)$ Diffeological Classification vs.\ Heisenberg Morita Equivalence]
\label{thm:ext5-morita}
Let $\alpha, \beta \in \R\setminus\Q$.
\begin{enumerate}[label=(\arabic*)]
  \item The ordered Chern--trace homomorphism $\tau_* : K_0(\Aalpha) \to \R$ is an order isomorphism onto $\Z + \alpha\Z \subset \R$ via $[p] \mapsto \tau(p) = \mathrm{rk}_0 + \alpha\,c_1(p)$.
  \item Two smooth noncommutative tori $\Aalpha$ and $\calA_\beta^\infty$ are strongly Morita equivalent ($\Aalpha \simeq_{\mathrm{Mor}} \calA_\beta^\infty$) via Rieffel's smooth Schwartz Heisenberg bimodule $\calS(\R \times \Z/c\Z)$ if and only if $\beta \in \GL_2(\Z)\cdot \alpha$, matching the exact classification of coarse irrational tori $T_\alpha \cong_{\Diff} T_\beta$.
  \item Under $\beta = \frac{a\alpha + b}{c\alpha + d}$ ($ad - bc = \pm 1$), the bimodule equivalence induces a scaling isomorphism on $K_0$ traces matching multiplication by $|c\alpha + d|^{-1}$:
  \[
    \Z + \beta \Z = \frac{1}{|c\alpha + d|}(\Z + \alpha\Z).
  \]
\end{enumerate}
\end{theorem}

\begin{proof}
For~(1), Connes' cyclic Chern character $(c_0, c_1) : K_0(\Aalpha) \to \Z \oplus \Z$ sends $[1] \mapsto (1,0)$ and $[p_\alpha] \mapsto (0, 1)$, and evaluating $\tau(p) = \int \mathrm{ch}(p)$ gives $\tau(p) = c_0(p) + c_1(p)\alpha$~\cite{Rieffel1981}. By Pimsner--Voiculescu six-term exactness, $(c_0, c_1)$ is an isomorphism onto $\Z^2$, so $\tau(K_0(\Aalpha)) = \Z + \alpha\Z$. For~(2), Rieffel's Morita equivalence theorem~\cite{Rieffel1981} constructs a Schwartz equivalence bimodule for every rational matrix action $\gamma \in \GL_2(\Z)$ acting transversally on $\calS(\R \times \Z/c\Z)$ with left rotation angle $\alpha$ and right rotation angle $\beta = \frac{a\alpha + b}{c\alpha + d}$, and conversely any Morita equivalence preserves the unnormalized trace up to positive constant $r > 0$, forcing $\Z + \beta\Z = r(\Z + \alpha\Z)$, which yields integers $a,b,c,d$ with $|ad-bc|=1$. Notice that in $\Diff$, $T_\alpha \cong T_\beta$ iff $\lambda(\Z+\alpha\Z) = \Z+\beta\Z$ (Volume~I, Thm~11.2), giving the identical $\GL_2(\Z)$-orbit invariant for~(3).
\end{proof}

\section{Pell-Unit Automorphisms and Manin's Real Multiplication}

Specialize now to a real quadratic irrational $\alpha \in K = \Q(\sqrt{D})$ ($D > 1$ square-free). Every unit $u > 1$ of the multiplier order $\calO(\Lambda_\alpha) = \{\lambda \in K : \lambda \Lambda_\alpha \subset \Lambda_\alpha\}$ satisfies $u \Lambda_\alpha = \Lambda_\alpha$ with norm $\mathrm{Nm}_{K/\Q}(u) = \pm 1$; totally positive units ($\mathrm{Nm}(u) = +1$, e.g. $u^2$ or the fundamental totally positive Pell unit $\varepsilon_+$) preserve orientation and act inside $\SL_2(\Z)$~\cite{Manin2004}.

\begin{theorem}[Pell-Unit Geodesic Regulator Formula on $\calM_{1,1}$]
\label{thm:ext5-real-mult}
Suppose $\alpha \in \Q(\sqrt{D})\setminus\Q$ is stabilized by a hyperbolic matrix $A = \begin{pmatrix} a & b \\ c & d \end{pmatrix} \in \SL_2(\Z)$ with $\tr(A) = a+d > 2$ and $\frac{a\alpha + b}{c\alpha + d} = \alpha$. Let $\varepsilon_+ := c\alpha + d > 1$. Then:
\begin{enumerate}[label=(\arabic*)]
  \item $[\alpha, 1]^\top$ is a right eigenvector of $A$ with eigenvalue $\varepsilon_+ = c\alpha + d$ ($\varepsilon_+ \Lambda_\alpha = \Lambda_\alpha$), giving $\varepsilon_+ \in \calO(\Lambda_\alpha)_+^\times$ a totally positive unit ($\varepsilon_+ + \varepsilon_+^{-1} = \tr(A)$) acting as a diffeological automorphism of $T_\alpha$ and a Morita self-equivalence of $\Aalpha$.
  \item In the hyperbolic upper half-plane $\HH$, $A$ translates along the geodesic semicircle connecting the two Galois conjugates $\alpha$ and $\alpha'$ by the exact closed geodesic regulator length on the modular stack $\calM_{1,1} = [\HH \hquot \SL_2(\Z)]$:
  \[
    \ell_{\mathrm{hyp}}(\gamma_A) = 2\cosh^{-1}\!\Big(\frac{\tr(A)}{2}\Big) = 2\log\varepsilon_+ = 2 R_{\Lambda_\alpha}^+.
  \]
  \item Specifically, for $\alpha_1 = \frac{1+\sqrt{5}}{2}$ with $A_1 = \begin{pmatrix}2 & 1 \\ 1 & 1\end{pmatrix}$ ($\tr=3$), $\varepsilon_+ = \frac{3+\sqrt{5}}{2} = \varphi^2$ and $\ell_{\mathrm{hyp}}(\gamma_{A_1}) = 2\log\!\big(\frac{3+\sqrt{5}}{2}\big) = 4\log\varphi \approx 1.9248473$; for $\alpha_2 = \sqrt{2}$ with $A_2 = \begin{pmatrix}3 & 4 \\ 2 & 3\end{pmatrix}$ ($\tr=6$), $\varepsilon_+ = 3 + 2\sqrt{2} = (1+\sqrt{2})^2$ and $\ell_{\mathrm{hyp}}(\gamma_{A_2}) = 2\log(3+2\sqrt{2}) \approx 3.5254943$.
\end{enumerate}
\end{theorem}

\begin{proof}
Multiplying $\frac{a\alpha+b}{c\alpha+d} = \alpha$ by $\varepsilon_+ = c\alpha + d$ yields $a\alpha + b = \varepsilon_+ \alpha$ and $c\alpha + d = \varepsilon_+$, i.e., $A \begin{pmatrix}\alpha \\ 1\end{pmatrix} = \varepsilon_+ \begin{pmatrix}\alpha \\ 1\end{pmatrix}$. Thus multiplication by $\varepsilon_+$ maps the $\Z$-basis $\{1, \alpha\}$ of $\Lambda_\alpha$ to $\{d + c\alpha, b + a\alpha\}$ via matrix $A^\top \in \SL_2(\Z)$, preserving orientation and $\Lambda_\alpha$ isomorphically ($\det A = +1$ implies $\mathrm{Nm}(\varepsilon_+) = \varepsilon_+ \varepsilon_- = 1$, hence $\varepsilon_+ + \varepsilon_+^{-1} = \tr(A)$). For~(2), since $A \in \SL_2(\Z)$ is conjugate over $\mathrm{PSL}_2(\R)$ to the diagonal dilation $z \mapsto \varepsilon_+^2 z$ (fixing $0$ and $\infty$, whose hyperbolic metric distance along the imaginary axis from $i$ to $\varepsilon_+^2 i$ equals $\int_1^{\varepsilon_+^2} \frac{dy}{y} = \log(\varepsilon_+^2) = 2\log\varepsilon_+$), every hyperbolic element $A \in \SL_2(\Z)$ closes into a periodic geodesic $\gamma_A$ on $\calM_{1,1}$ of length
\[
  \ell_{\mathrm{hyp}}(\gamma_A) = 2\log\varepsilon_+ = 2\cosh^{-1}\!\Big(\frac{\varepsilon_+ + \varepsilon_+^{-1}}{2}\Big) = 2\cosh^{-1}\!\Big(\frac{\tr(A)}{2}\Big).
\]
Direct substitution verifies both real-quadratic examples in~(3).
\end{proof}

Both the Fourier-basis $C^\infty$ Powers--Rieffel Chern calculation ($< 10^{-10}$) and the symbolic Pell geodesic regulator identities are verified in \texttt{extensions/verify\_ext5\_noncomm\_real\_mult.py}.

\section*{Exercises}

\begin{exercise}
\tier{Level I --- Warm-up}
Verify directly from $V U = e^{2\pi i \theta} U V$ that $V^n U^m = e^{2\pi i m n \theta} U^m V^n$ for all $m, n \in \Z$, and deduce the $*$-algebra product rule $(a * b)_{m,n} = \sum_{m_1,n_1} a_{m_1,n_1} b_{m-m_1, n-n_1} e^{2\pi i \theta n_1 (m - m_1)}$.
\end{exercise}

\begin{exercise}
\tier{Level II --- Smoothness Detail}
Notice that in Theorem~\ref{thm:ext5-rieffel}, $g(x) = \sqrt{f(x)(1-f(x))}\mathbf{1}_{[0,\varepsilon)}(x)$ must itself be $C^\infty$ at $x=0$ and $x=\varepsilon$. Verify that choosing $f(x/\varepsilon) = \sin^2\!\big(\frac{\pi}{2}\psi(x/\varepsilon)\big)$ on $[0,\varepsilon)$ makes $g(x) = \frac{1}{2}\sin\!\big(\pi\psi(x/\varepsilon)\big)$ manifestly $C^\infty$ everywhere without square-root branch singularities!
\end{exercise}

\begin{exercise}
\tier{Level III --- K-Theory Trace Scaling}
Let $\alpha = \frac{1+\sqrt{5}}{2}$ and $\beta = \frac{1}{\alpha} = \frac{\sqrt{5}-1}{2}$ (related by $S = \begin{pmatrix}0&1\\1&0\end{pmatrix} \in \GL_2(\Z)$). Express the transformed lattice $\Z + \beta\Z$ explicitly as $\lambda(\Z+\alpha\Z)$ and determine the image of $[1], [p_\alpha] \in K_0(\Aalpha)$ in $K_0(\calA_\beta^\infty)$ under Heisenberg Morita equivalence.
\end{exercise}

\begin{exercise}
\tier{Level IV --- Proof-Level}
Prove that on $T_\alpha = \R/\Lambda_\alpha$ with real quadratic $\alpha \in \Q(\sqrt{D})$ and totally positive fundamental Pell unit $\varepsilon_+ > 1$, the map $\tilde{\phi}(x) = \varepsilon_+ x$ descends to a diffeomorphism $\phi \in \Diff(T_\alpha)$ whose pullback on $\Hdiff^1(T_\alpha;\R)$ does \emph{not} fix the irrational rotation cocycle, and compute the exact trace $\tr(A)$ from $\ell_{\mathrm{hyp}}(\gamma_A) = 2\log\varepsilon_+$ for $\alpha = \sqrt{3}$ ($A = \begin{pmatrix}2&3\\1&2\end{pmatrix}$).
\end{exercise}



\part{Complete Solutions to Graded Exercises}
\appendix

\chapter{Solutions to Chapter~1 Exercises (Lean~4 Formalization)}
\label{app:sol-ch01}

\solutionheader{1.1}{Universe Polymorphism in \texttt{discreteSite}}
In Lean~4, an equality proposition \texttt{a = b} has type \texttt{Prop} ($\mathrm{Sort}\ 0$). Applying \texttt{PLift} lifts a proposition from $\mathrm{Sort}\ 0$ to $\mathrm{Type}\ 0$ ($\mathrm{Sort}\ 1$). However, \texttt{PlotSite.\{u\}} requires \texttt{Dom : Type u}, \texttt{pts : Dom -> Type u}, and \texttt{Hom : Dom -> Dom -> Type u}, all living in the same universe parameter \texttt{u}. Wrapping \texttt{PLift (a = b)} inside \texttt{ULift.\{u\}} moves it from $\mathrm{Type}\ 0$ up to $\mathrm{Type}\ u$ uniformly for all $u \ge 0$, avoiding universe mismatches when $u \ge 1$. \hfill$\square$

\solutionheader{1.2}{Constant Sheaves and Terminal Space Over a Plot Site}
Define the terminal diffeological space \texttt{TerminalSpace S} with \texttt{Carrier := PUnit} and \texttt{isPlot := fun \_ => True}. All three diffeological axioms hold trivially by \texttt{trivial}, and every $X \in \Diff(\calS)$ admits a unique smooth morphism $X \to \mathrm{TerminalSpace}\, \calS$ given by \texttt{fun \_ => PUnit.unit}, independent of any extra hypotheses on covering sieves. For the \emph{discrete diffeology} on a type $D$, define $\mathrm{isPlot}\, p :\Leftrightarrow \exists C,\, \mathrm{IsCover}\, U\, C \land \forall \{V\} (h : V \to U),\, C\, h \to \exists d \in D,\, \forall v,\, p(\mathrm{mapHom}\, h\, v) = d$. Constant plots follow from \texttt{cover\_max}, precomposition follows from \texttt{cover\_pullback}, and locality follows from \texttt{cover\_trans} in the same three steps as \texttt{QuotientSpace}. No additional sieve axiom beyond the four Grothendieck axioms is required. \hfill$\square$

\solutionheader{1.3}{Achieving Exact Uniform Residuals on Divisible \v{C}ech Cycles}
Suppose $\sum_{k=0}^{m-1} c(k) = m q$ with $m \ge 1$ and $q \in \Z$. Define $a : \N \to \Z$ recursively by $a(0) = 0$ and
\[
  a(k + 1) := a(k) + q - c(k) \qquad (0 \le k < m),
\]
extended periodically for $k \ge m$ if desired (only $0 \le k \le m$ enters the sum). Inducting on $k \le m$ gives
\[
  a(k) = k q - \sum_{j=0}^{k-1} c(j).
\]
At $k = m$, $a(m) = m q - \sum_{j=0}^{m-1} c(j) = 0 = a(0)$, so $a$ satisfies the periodicity condition \texttt{a m = a 0}. Moreover, at every edge $0 \le k < m$,
\[
  c(k) + \big(a(k+1) - a(k)\big) = c(k) + (q - c(k)) = q,
\]
so \texttt{absInt (c k + coboundary a k) = absInt q} uniformly on every edge, matching the minimax regret bound $m \cdot |q| = |\sum_{k=0}^{m-1} c(k)|$ with equality. (In Lean~4, this construction is literally a recursive \texttt{Nat} function plus one \texttt{omega} induction step.) \hfill$\square$

\solutionheader{1.4}{Quotient Descent Preserves Subductions}
Let $\pi := \mathrm{quotientMk}\, X\, r : X \to X/r$, and let $\bar{f} : X/r \to Y$ satisfy $\bar{f} \circ \pi = f$. Assume $f : X \twoheadrightarrow Y$ is a subduction.
\begin{enumerate}[label=(\arabic*)]
  \item \emph{Surjectivity:} For any $y \in Y$, surjectivity of $f$ yields $x \in X$ with $f(x) = y$, hence $\bar{f}(\pi(x)) = y$.
  \item \emph{Local plot lifting:} Given any plot $p : \mathrm{pts}(U) \to Y$, since $f$ is a subduction there exist a covering sieve $C$ of $U$ (\texttt{IsCover U C}) and, for every leg $h : V \to U$ in $C$, a plot $q_h : \mathrm{pts}(V) \to X$ satisfying $f(q_h(v)) = p(\mathrm{mapHom}\, h\, v)$. Pushing forward along the smooth projection $\pi$ gives a plot $\bar{q}_h := \pi \circ q_h$ of $\mathrm{QuotSpace}\, X\, r$ satisfying
  \[
    \bar{f}(\bar{q}_h(v)) = \bar{f}(\pi(q_h(v))) = f(q_h(v)) = p(\mathrm{mapHom}\, h\, v).
  \]
\end{enumerate}
Thus $\bar{f}$ is a subduction. Notice that the entire proof uses only \texttt{f = f\_bar \text{comp} pi} and smoothness of $\pi$, without any choice principle. \hfill$\square$



\chapter{Solutions to Chapter~2 Exercises (Differential Cohesion \& AD)}
\label{app:sol-ch02}

\solutionheader{2.1}{Weil Evaluation of $x^2 \sin(y)$}
Modulo $\varepsilon^2 = 0$, we expand $(x + \varepsilon u)^2 = x^2 + 2xu\varepsilon$ and $\sin(y + \varepsilon v) = \sin(y) + \varepsilon v \cos(y)$. Multiplying in $\R[\varepsilon]/(\varepsilon^2)$ drops the $\varepsilon^2$ term and gives
\[
  f(x + \varepsilon u, y + \varepsilon v) = x^2 \sin(y) + \varepsilon\big(2 x u \sin(y) + x^2 v \cos(y)\big).
\]
Hence the $\varepsilon^0$-component recovers $f(x,y)$ and the $\varepsilon^1$-component equals $Df_{(x,y)}(u,v) = 2x\sin(y)\,u + x^2\cos(y)\,v$. \hfill$\square$

\solutionheader{2.2}{Flat Smooth Boundary Plots and $T^{\mathrm{kin}}_{(0,0)}K$}
Since $t \mapsto e^{-1/t^2}\mathbf{1}_{t>0}$ is $C^\infty$ on $\R$ with $c^{(k)}(0) = 0$ for every $k \ge 0$ and satisfies $e^{-1/t^2}\mathbf{1}_{t>0} \ge 0$, $c : \R \to \R^2$ is smooth into $\R^2$ and has image inside $K = [0,\infty)^2$. By the definition of the subset diffeology $\calD_{\mathrm{sub}}(K)$, $c$ is therefore a smooth plot of $K$ passing through $(0,0)$ at $t = 0$. However, its derivative at $t=0$ is $c'(0) = (0,0)$, and by Theorem~\ref{thm:ext2-corner-jets}(2) the same holds for \emph{every} smooth plot $\gamma : \R \to K$ with $\gamma(0)=(0,0)$, proving $T^{\mathrm{kin}}_{(0,0)}K = \{0\}$. \hfill$\square$

\solutionheader{2.3}{Residual Block Reverse-Mode Lens}
Factor $F = \mathrm{add} \circ (\id_X \times (g \circ W)) \circ \Delta_X$, where $\Delta_X(x) = (x,x)$ and $\mathrm{add}(x_1, x_2) = x_1 + x_2$. Applying Theorem~\ref{thm:ext2-lens-ad}:
\begin{itemize}[leftmargin=1.8em]
  \item $\calR[\mathrm{add}]((x_1, x_2), \bar{y}) = (\bar{y}, \bar{y})$,
  \item $\calR[\id_X \times (g\circ W)]((x,x), (\bar{y}, \bar{y})) = (\bar{y},\, W^\top (Dg_{Wx})^* \bar{y})$,
  \item $\calR[\Delta_X](x, (\bar{x}_1, \bar{x}_2)) = \bar{x}_1 + \bar{x}_2$.
\end{itemize}
Lens composition therefore gives
\[
  \calR[F](x, \bar{y}) = \big(x + g(Wx),\; \bar{y} + W^\top (Dg_{Wx})^* \bar{y}\big),
\]
exhibiting both skip gradient propagation and non-vanishing gradient transport when $(Dg_{Wx})^* \approx 0$. \hfill$\square$

\solutionheader{2.4}{Cotangent Annihilation and Layerwise Balancedness Conservation}
At each internal hidden interface $1 \le \ell \le L-1$, the infinitesimal $\frg\mathfrak{l}_{d_\ell}(\R)$-action of $\xi_\ell$ sends $(W_{\ell+1}, W_\ell) \mapsto (-W_{\ell+1}\xi_\ell,\, \xi_\ell W_\ell)$. By Theorem~\ref{thm:ext2-cotangent-moment}, $G$-invariance of $L$ gives $\langle \mu_{\mathrm{cot}}(\theta, dL_\theta), \xi \rangle = 0$, which at interface $\ell$ reads
\[
  W_\ell (\nabla_{W_\ell} L)^\top - (\nabla_{W_{\ell+1}} L)^\top W_{\ell+1} = 0.
\]
Under Euclidean gradient flow $\dot{W}_k = -\nabla_{W_k} L$, differentiate the balancedness matrix $B_\ell(t) := W_{\ell+1}^\top W_{\ell+1} - W_\ell W_\ell^\top$:
\begin{align*}
  \frac{d}{dt} B_\ell
  &= \dot{W}_{\ell+1}^\top W_{\ell+1} + W_{\ell+1}^\top \dot{W}_{\ell+1} - \dot{W}_\ell W_\ell^\top - W_\ell \dot{W}_\ell^\top \\
  &= -\Big((\nabla_{W_{\ell+1}} L)^\top W_{\ell+1} - W_\ell (\nabla_{W_\ell} L)^\top\Big) - \Big(W_{\ell+1}^\top (\nabla_{W_{\ell+1}} L) - (\nabla_{W_\ell} L) W_\ell^\top\Big) \\
  &= -\big(\mu_{\mathrm{cot},\ell} + \mu_{\mathrm{cot},\ell}^\top\big) = 0,
\end{align*}
so $B_\ell(t) = B_\ell(0)$ is an exact dynamical invariant of gradient flow directly matching Souriau--Noether conservation. Note further that the $G$-invariance identity $\mu_{\mathrm{cot},\ell} = 0$ also forces skew-symmetric parts of $W_\ell(\nabla_{W_\ell} L)^\top - (\nabla_{W_{\ell+1}} L)^\top W_{\ell+1}$ to vanish. \hfill$\square$



\chapter{Solutions to Chapter~3 Exercises (Stochastic Diffeology)}
\label{app:sol-ch03}

\solutionheader{3.1}{Rayleigh Quotient Limit at $c = 0$}
Setting $c = 0$ in Theorem~\ref{thm:ext3-quotient-kernel}(3) uses $I_0(0) = 1$, reducing the Rice--Bessel kernel to the Rayleigh density
\[
  \bar{k}(r, r') = \frac{r'}{\sigma^2}\exp\!\Big(-\frac{(r')^2}{2\sigma^2}\Big), \qquad r' > 0.
\]
Substituting $u = (r')^2/(2\sigma^2)$, $du = (r'/\sigma^2)\,dr'$, gives $\int_0^\infty \bar{k}(r, r')\,dr' = \int_0^\infty e^{-u}\,du = 1$. \hfill$\square$

\solutionheader{3.2}{Dilation Equivariance Requires State-Dependent Diffusion Covariance}
Under scaling $g_\lambda(\theta) = \lambda\theta$ ($\lambda > 0$), pushforward of $\calN(c\theta, \sigma_0^2 I)$ yields $\calN(\lambda c\theta, \lambda^2 \sigma_0^2 I)$.
\begin{itemize}[leftmargin=1.8em]
  \item If covariance is constant $\sigma^2 I$, then $\calN(c\lambda\theta, \sigma^2 I) \neq \calN(\lambda c\theta, \lambda^2 \sigma^2 I)$ whenever $\lambda \neq 1$, so the kernel fails $G$-equivariance and does not descend to the ray quotient.
  \item For state-proportional covariance $\sigma(\theta) = \sigma_0 \|\theta\|$, we have $\sigma(\lambda\theta) = \lambda \sigma(\theta)$, so $K(\lambda\theta, \cdot) = \calN(c\lambda\theta, \lambda^2\sigma_0^2 \|\theta\|^2 I) = (g_\lambda)_* K(\theta, \cdot)$ is strictly $\R_{>0}$-equivariant and descends cleanly to the projective/ray quotient. \hfill$\square$
\end{itemize}

\solutionheader{3.3}{Stable Normal Fluctuation Variance Around a Symmetric Minimum}
Replacing $+\lambda$ by $-a$ ($a > 0$) in the linear SDE gives $Y_t = \sqrt{2\tau}\int_0^t e^{-a(t-s)}\,dW_s^\perp$ for $Y_0 = 0$. By It\^o's isometry,
\[
  \E\big[\|Y_t\|^2\big] = 2\tau d_\perp \int_0^t e^{-2a(t-s)}\,ds = \frac{d_\perp \tau}{a}\big(1 - e^{-2at}\big).
\]
Unlike the unstable saddle ($+ \lambda$, where $\E[\|Y_t\|^2]$ grows exponentially as $e^{2\lambda t}$ and forces almost-sure escape in logarithmic time), here $\lim_{t\to\infty} \E[\|Y_t\|^2] = \frac{d_\perp\tau}{a} = O(\tau)$ stays localized near $\Theta^H$ within an $O(\sqrt{\tau})$ tubular neighborhood. \hfill$\square$

\solutionheader{3.4}{Haar Averaging and Stationary Quotient Measures}
For any bounded measurable $f$ on $\Theta$:
\begin{enumerate}[leftmargin=1.8em]
  \item \emph{$G$-invariance of $\bar{\mu}$:} Left invariance of normalized Haar measure $dg$ gives $\int f(h\theta)\,d\bar{\mu}(\theta) = \int_G \int_\Theta f(hg\theta)\,d\mu(\theta)\,dg = \int_G \int_\Theta f(u\theta)\,d\mu(\theta)\,du = \int f\,d\bar{\mu}$.
  \item \emph{$K$-stationarity of $\bar{\mu}$:} Using Fubini's theorem, $G$-equivariance $(Kf)(g\theta) = \int f(g y)\,K(\theta, dy) = (K(f\circ g))(\theta)$, and $K$-invariance of $\mu$,
  \begin{align*}
    \int_\Theta (Kf)(\theta)\,d\bar{\mu}(\theta)
    &= \int_G \int_\Theta (Kf)(g\theta)\,d\mu(\theta)\,dg
     = \int_G \int_\Theta \big(K(f\circ g)\big)(\theta)\,d\mu(\theta)\,dg \\
    &= \int_G \int_\Theta f(g\theta)\,d\mu(\theta)\,dg
     = \int_\Theta f\,d\bar{\mu}.
  \end{align*}
  \item \emph{Quotient stationarity:} Taking $f = \varphi \circ \pi$ in $\pi_* \bar{\mu}(\varphi) = \int (K(\varphi\circ\pi))\,d\bar{\mu} = \int (\bar{K}\varphi)\circ\pi\,d\bar{\mu}$ yields $\pi_*\bar{\mu} = \bar{K}_*(\pi_*\bar{\mu})$. \hfill$\square$
\end{enumerate}



\chapter{Solutions to Chapter~4 Exercises (Shifted \& Multisymplectic Diffeology)}
\label{app:sol-ch04}

\solutionheader{4.1}{Koszul--Tate Resolution of the Fat Point $L(x) = x^3$}
On generators $x$ (degree $0$) and $x^*$ (degree $-1$), we have $Q(x) = 0$ and $Q(x^*) = L'(x) = 3 x^2$. Since $(x^*)^2 = 0$ in the graded-commutative algebra $\R[x, x^*]$, an arbitrary element has the form $a(x) + b(x)x^*$, with $Q(a(x) + b(x)x^*) = 3 x^2 b(x)$. Therefore:
\begin{itemize}[leftmargin=1.8em]
  \item $H^0(Q) = \R[x] / (3x^2) = \R[x]/(x^2)$ captures the \emph{first-order fattened scheme} of length $2$ at the degenerate critical point $0$ (unlike the reduced point $\R[x]/(x)$),
  \item $H^{-1}(Q) = \{b(x) x^* : 3x^2 b(x) = 0\} = 0$, because $\R[x]$ has no zero divisors. \hfill$\square$
\end{itemize}

\solutionheader{4.2}{Master Equation Derivation $\{L, -\}_{\mathrm{BV}} = Q$}
With $\omega_{(-1)} = \sum_{i=1}^n d\theta_i \wedge d\theta_i^*$, the odd symplectic inverse pairing (antibracket) acts on smooth observables $F, G$ by
\[
  \{F, G\}_{\mathrm{BV}} = \sum_{i=1}^n \Big(\frac{\partial_r F}{\partial \theta_i} \frac{\partial_l G}{\partial \theta_i^*} - \frac{\partial_r F}{\partial \theta_i^*} \frac{\partial_l G}{\partial \theta_i}\Big).
\]
Since $L(\theta)$ depends only on degree-$0$ coordinates $\theta_i$ ($\partial_{\theta_i^*} L = 0$), setting $F = L$ gives
\[
  \{L, \theta_j\}_{\mathrm{BV}} = 0 = Q(\theta_j), \qquad \{L, \theta_j^*\}_{\mathrm{BV}} = \sum_{i=1}^n \frac{\partial L}{\partial \theta_i} \delta_{ij} = \frac{\partial L}{\partial \theta_j} = Q(\theta_j^*).
\]
Hence $Q = \{L, -\}_{\mathrm{BV}}$ identically, and $Q^2 = 0$ is equivalent to the classical BV master equation $\{L, L\}_{\mathrm{BV}} = 0$. \hfill$\square$

\solutionheader{4.3}{Atiyah--Bott--BV Cohomology at Critical Stratum vs.\ Origin}
For $L(x_1, x_2, x_3) = \frac{1}{4}(x_1^2 + x_2^2 - 1)^2 + \frac{1}{2}x_3^2$ with $\frg = \mathfrak{so}(2) \cong \R$:
\begin{enumerate}[label=(\arabic*)]
  \item At $p = (1, 0, 0)$: $\rho_p(\xi) = (0, \xi, 0)^\top$ ($\rank(\rho_p) = 1$, stabilizer $\frg_p = 0$), and $\nabla^2 L(p) = \diag(2, 0, 1)$ ($\rank = 2$). The $4$-term complex is $\R \xrightarrow{(0,1,0)^\top} \R^3 \xrightarrow{\diag(2,0,1)} \R^3 \xrightarrow{(0,1,0)} \R$, which is **exact everywhere**:
  \[
    H^{-1} = 0, \qquad H^0 = 0, \qquad H^1 = 0, \qquad H^2 = 0.
  \]
  \item At the unstable symmetric origin $p_0 = (0, 0, 0)$: $\rho_{p_0} = 0$ ($\frg_{p_0} = \R$), and $\nabla^2 L(p_0) = \diag(-1, -1, 1)$ is invertible ($\rank = 3$)! Thus the complex $\R \xrightarrow{0} \R^3 \xrightarrow{\sim} \R^3 \xrightarrow{0} \R$ has:
  \[
    H^{-1} \cong \R, \qquad H^0 = 0, \qquad H^1 = 0, \qquad H^2 \cong \R,
  \]
  reflecting the unbroken $\SO(2)$ isotropy at the origin. \hfill$\square$
\end{enumerate}

\solutionheader{4.4}{Exact $(n+1)$-Forms Have Trivial Higher Period Groups}
Suppose $\omega = d\alpha$ for a global $n$-form $\alpha \in \Omega^n(X)$. For any smooth spherical plot $\sigma : S^{n+1} \to X$, naturality of the exterior derivative on plots~\cite{IZ2013} gives $\sigma^* \omega = \sigma^*(d\alpha) = d(\sigma^*\alpha)$. Since $S^{n+1}$ is a closed manifold without boundary ($\partial S^{n+1} = \emptyset$), Stokes' theorem gives
\[
  \int_{S^{n+1}} \sigma^* \omega = \int_{S^{n+1}} d(\sigma^* \alpha) = \int_{\partial S^{n+1}} \sigma^* \alpha = 0.
\]
Hence $P_\omega^{(n+1)} = \{0\} \subset \R$. Because every local transition $(n-1)$-cocycle for integrating $\omega$ differs from $\alpha$ by closed gauge shifts whose integral periods are zero, the structural group $T_\omega = \R/\{0\} = \R$ is contractible and the associated higher $\B^n T_\omega$-bundle trivializes over every paracompact / diffeologically fine cover. \hfill$\square$



\chapter{Solutions to Chapter~5 Exercises (Noncommutative Tori \& Real Multiplication)}
\label{app:sol-ch05}

\solutionheader{5.1}{Weyl Commutation Relation and Twisted Convolution}
Starting from $V U = q U V$ ($q = e^{2\pi i \theta}$), conjugation gives $V U V^{-1} = q U$, so $V U^m V^{-1} = (V U V^{-1})^m = q^m U^m$, i.e., $V U^m = q^m U^m V$. Inducting on $n \in \Z$ gives $V^n U^m = q^{mn} U^m V^n = e^{2\pi i m n \theta} U^m V^n$. Consequently, multiplying two Fourier series $a = \sum a_{m_1,n_1} U^{m_1} V^{n_1}$ and $b = \sum b_{m_2,n_2} U^{m_2} V^{n_2}$ moves $V^{n_1}$ past $U^{m_2}$:
\[
  (U^{m_1} V^{n_1})(U^{m_2} V^{n_2}) = e^{2\pi i n_1 m_2 \theta}\, U^{m_1 + m_2} V^{n_1 + n_2}.
\]
Setting $m = m_1 + m_2$, $n = n_1 + n_2$ ($m_2 = m - m_1$, $n_2 = n - n_1$) produces $(a * b)_{m,n} = \sum_{m_1,n_1} a_{m_1,n_1} b_{m-m_1,n-n_1} e^{2\pi i \theta n_1 (m - m_1)}$. \hfill$\square$

\solutionheader{5.2}{$C^\infty$ Regularity of the Powers--Rieffel Bump $g(x)$}
If $f(x) = \sin^2\!\big(\frac{\pi}{2}\psi(x/\varepsilon)\big)$ on $[0,\varepsilon)$ for a $C^\infty$ bump $\psi : \R \to [0,1]$ vanishing on $(-\infty,0]$ and equal to $1$ on $[1,\infty)$, then
\[
  f(x)\big(1 - f(x)\big) = \sin^2\!\Big(\frac{\pi}{2}\psi(x/\varepsilon)\Big)\cos^2\!\Big(\frac{\pi}{2}\psi(x/\varepsilon)\Big) = \frac{1}{4}\sin^2\!\big(\pi \psi(x/\varepsilon)\big).
\]
Since $\psi(x/\varepsilon) \in [0,1]$, $\sin(\pi \psi(x/\varepsilon)) \ge 0$ everywhere on $[0,\varepsilon)$, so taking the positive square root removes the square-root branch completely and yields
\[
  g(x) = \frac{1}{2}\sin\!\big(\pi\psi(x/\varepsilon)\big)\mathbf{1}_{[0,\varepsilon)}(x),
\]
which is $C^\infty$ on all of $\R/\Z$ (all derivatives vanish flatly at $0$ and $\varepsilon$). \hfill$\square$

\solutionheader{5.3}{Golden-Mean Morita Trace Scaling $\Z + \alpha^{-1}\Z$}
Since $\alpha = \frac{1+\sqrt{5}}{2}$ satisfies $\alpha^2 = \alpha + 1$, we have $\beta = \alpha^{-1} = \alpha - 1 \in \Z + \alpha\Z$. More explicitly, multiplying $\Z + \alpha\Z$ by $\alpha^{-1}$ yields
\[
  \alpha^{-1}(\Z + \alpha\Z) = \Z \cdot \alpha^{-1} + \Z = \Z + \beta\Z.
\]
Here $S = \begin{pmatrix}0&1\\1&0\end{pmatrix}$ has $|c\alpha + d|^{-1} = |\alpha|^{-1} = \beta$, matching Theorem~\ref{thm:ext5-morita}(3). Under the normalized trace scaling $\tau_\beta = \alpha \tau_\alpha$, the unit $[1] \in K_0(\Aalpha)$ maps to a projection of trace $\alpha = 1 + \beta$, corresponding to the rank-$1$ free-plus-Rieffel class $[1] + [p_\beta]$ modulo sign convention on $S$ ($\det S = -1$ reverses orientation of $c_1$). \hfill$\square$

\solutionheader{5.4}{Pell Diffeomorphism on $\Q(\sqrt{3})$ and Geodesic Regulator}
For any totally positive unit $\varepsilon_+ \in \calO(\Lambda_\alpha)_+^\times$, $\varepsilon_+ \Lambda_\alpha = \Lambda_\alpha$, so $\tilde{\phi}(x) = \varepsilon_+ x$ preserves the kernel $\Lambda_\alpha$ bijectively (with smooth inverse $x \mapsto \varepsilon_+^{-1} x$) and therefore descends by the quotient universal property to a diffeomorphism $\phi \in \Diff(T_\alpha)$.
Now test $\alpha = \sqrt{3}$ with $A = \begin{pmatrix}2 & 3 \\ 1 & 2\end{pmatrix} \in \SL_2(\Z)$: $\det A = 4 - 3 = 1$, $a\alpha + b = 2\sqrt{3} + 3 = (2+\sqrt{3})\sqrt{3} = \varepsilon_+ \alpha$, and $c\alpha + d = \sqrt{3} + 2 = \varepsilon_+ > 1$, with $\varepsilon_+^{-1} = 2 - \sqrt{3}$. Notice $\varepsilon_+ + \varepsilon_+^{-1} = 4 = \tr(A)$. Therefore the closed modular geodesic $\gamma_A$ on $\calM_{1,1}$ has exact hyperbolic length
\[
  \ell_{\mathrm{hyp}}(\gamma_A) = 2\log(2 + \sqrt{3}) = 2\cosh^{-1}(2),
\]
so $\tr(A) = 2\cosh(\ell_{\mathrm{hyp}}(\gamma_A)/2) = \varepsilon_+ + \varepsilon_+^{-1} = 4$. \hfill$\square$



\backmatter

\begin{thebibliography}{99}

\bibitem{IZ2013}
P.~Iglesias-Zemmour,
\emph{Diffeology},
Mathematical Surveys and Monographs, vol.~185,
American Mathematical Society, Providence, RI, 2013.

\bibitem{Vol1}
Anonymous,
\emph{Smooth Descent and Higher Diffeology: Symplectic Stacks and Applied Semantics},
\emph{Higher Categorical Semantics} (Editorially reviewed, 2026),
{\def\UrlBreaks{\do\/\do\-}\url{https://higher-categorical-semantics.pages.dev/research/smooth-descent-and-higher-diffeology-symplectic-stacks-and-applied-semantics-d60b20ae}}.

\bibitem{BH2011}
J.~C.~Baez and A.~E.~Hoffnung,
Convenient categories of smooth spaces,
\emph{Transactions of the American Mathematical Society} \textbf{363} (2011), no.~11, 5789--5825.

\bibitem{Schreiber2013}
U.~Schreiber,
\emph{Differential Cohomology in a Cohesive Infinity-Topos},
arXiv:1310.7930, 2013.

\bibitem{Shulman2018}
M.~Shulman,
Brouwer's fixed-point theorem in real-cohesive homotopy type theory,
\emph{Mathematical Structures in Computer Science} \textbf{28} (2018), no.~6, 856--941.

\bibitem{LurieHTT}
J.~Lurie,
\emph{Higher Topos Theory},
Annals of Mathematics Studies, vol.~170, Princeton University Press, 2009.

\bibitem{Lean4}
L.~de~Moura and S.~Ullrich,
The Lean 4 theorem prover and programming language,
in \emph{CADE-28}, Lecture Notes in Computer Science, vol.~12699, Springer, 2021, pp.~625--635.

\bibitem{Dubuc1979}
E.~J.~Dubuc,
Sur les mod\`eles de la g\'eom\'etrie diff\'erentielle synth\'etique,
\emph{Cahiers de Topologie et G\'eom\'etrie Diff\'erentielle Cat\'egoriques} \textbf{20} (1979), no.~3, 231--279.

\bibitem{Kock2006}
A.~Kock,
\emph{Synthetic Differential Geometry}, 2nd ed.,
London Mathematical Society Lecture Note Series, vol.~333, Cambridge University Press, 2006.

\bibitem{CCGLMP2020}
R.~Cockett, G.~Cruttwell, J.~Gallagher, J.-S.~P.~Lemay, B.~MacAdam, G.~Plotkin, and D.~Roberts,
Reverse derivative categories,
in \emph{CSL 2020}, LIPIcs vol.~152, 2020, pp.~18:1--18:16.

\bibitem{FST2019}
B.~Fong, D.~I.~Spivak, and R.~Tuy\'eras,
Backprop as functor: A compositional perspective on supervised learning,
in \emph{LICS 2019}, IEEE, 2019, pp.~1--13.

\bibitem{Fritz2020}
T.~Fritz,
A synthetic approach to Markov kernels, conditional independence and theorems on sufficient statistics,
\emph{Advances in Mathematics} \textbf{370} (2020), 107239.

\bibitem{Anderson1982}
B.~D.~O.~Anderson,
Reverse-time diffusion equation models,
\emph{Stochastic Processes and their Applications} \textbf{12} (1982), no.~3, 313--326.

\bibitem{PTVV2013}
T.~Pantev, B.~To\"en, M.~Vaqui\'e, and G.~Vezzosi,
Shifted symplectic structures,
\emph{Publications Math\'ematiques de l'IH\'ES} \textbf{117} (2013), 271--328.

\bibitem{BV1981}
I.~A.~Batalin and G.~A.~Vilkovisky,
Gauge algebra and quantization,
\emph{Physics Letters B} \textbf{102} (1981), no.~1, 27--31.

\bibitem{Rogers2012}
C.~L.~Rogers,
$L_\infty$-algebras from multisymplectic geometry,
\emph{Letters in Mathematical Physics} \textbf{100} (2012), 29--50.

\bibitem{FRS2016}
D.~Fiorenza, C.~L.~Rogers, and U.~Schreiber,
Higher $U(1)$-gerbe connections in geometric prequantization,
\emph{Reviews in Mathematical Physics} \textbf{28} (2016), no.~06, 1650012.

\bibitem{Connes1980}
A.~Connes,
$C^*$-alg\`ebres et g\'eom\'etrie diff\'erentielle,
\emph{Comptes Rendus de l'Acad\'emie des Sciences Paris} \textbf{290} (1980), 599--604.

\bibitem{Rieffel1981}
M.~A.~Rieffel,
$C^*$-algebras associated with irrational rotations,
\emph{Pacific Journal of Mathematics} \textbf{93} (1981), no.~2, 415--429.

\bibitem{Manin2004}
Y.~I.~Manin,
Real multiplication and noncommutative geometry (ein Alterstraum),
in \emph{The Legacy of Niels Henrik Abel}, Springer, 2004, pp.~685--727.

\end{thebibliography}



\end{document}

End of manuscript · Back to top ↑