What the Lean code literally says, in plain math · glm-5.3 (independent auditor subagent)
{'text': '{\n "readback": "Theorem M09_trajectory_equivalence. Fix arbitrary natural numbers d and m, and write W=mathbbRd and V=mathbbRm for the corresponding Euclidean spaces. Fix an arbitrary type iota (an index type for \"occurrences\"; it may be finite, infinite, or empty), assumed to carry decidable equality. The theorem asserts, for every choice of:\n\n- a frame schedule xi=(xik)kinmathbbN, where each frame xik is a quadruple big(hk,,fk,,alphak,,Ikbig) consisting of an arbitrary map hk:WtoV (the shared computation; no regularity is part of the data), per-occurrence loss maps fk,i:WtimesVtomathbbR, coefficients alphak:iotatomathbbR, and a finite occurrence set Iksubseteqiota;\n- a tile-partition schedule mathfrakB=(mathfrakBk)kinmathbbN, each mathfrakBk being a finite list of finite subsets (\"tiles\") of iota;\n- the hypothesis hmathrmpart: for every k, the tiles of mathfrakBk are pairwise disjoint and their union is exactly Ik (so every tile is a subset of Ik; tiles may be empty, and the empty list is permitted only in that its union is varnothing, which forces Ik=varnothing);\n- the hypothesis Dmathrmof: for every step index kinmathbbN and every training state S, a derivative-certificate bundle for the frame xik at the point S.w (its contents are listed in full below);\n- a finite set Tsubseteq0,dots,d−1 of \"trainable\" coordinates;\n- a real number c (no sign hypothesis);\n- an arbitrary deterministic optimizer U:textStatetoWtotextState;\n- an initial state S0 and a step count ninmathbbN;\n\nthat\n\n
operatornamerunFrom(texttiled,,n,,S0);=;operatornamerunFrom(textmono,,n,,S0),
\n\nan equality of complete training states, where \"tiled\" and \"mono\" are the two transition systems defined below. Both sides use the same xi, T, c, U, S0 and n; only the tiled side additionally depends on mathfrakB and Dmathrmof.\n\nTraining states. A state SintextState is a quadruple (w,mu1,mu2,t) with w,mu1,mu2inmathbbRd (logical parameters, first-moment slots, second-moment slots) and a step counter tinmathbbN. The asserted equality is equality of the entire state after n steps — parameters, both moment vectors, and the counter — not just of the parameters.\n\nWhat operatornamerunFrom(textstep,n,S0) asserts. For a transition operatornamestep:textStatetomathbbNtotextState,\n\n
operatornamerunFrom(operatornamestep,0,S)=S,qquadoperatornamerunFrom(operatornamestep,n+1,S)=operatornamerunFrom(operatornamestep,n,,operatornamestep(S,n)).
\n\nUnrolling, n transitions are applied, consuming the schedule index n−1 first and index 0 last: operatornamerunFrom(operatornamestep,n,S0)=operatornamestep(cdotsoperatornamestep(operatornamestep(S0,,n−1),,n−2)cdots,,0). Only the frames, partitions, and certificates at indices 0,dots,n−1 are ever read; the hypotheses hmathrmpart and Dmathrmof are nonetheless demanded at every index kinmathbbN, including indices no n-step run reaches. At n=0 both sides of the theorem are literally S0, so the statement includes the degenerate case n=0 in which it reduces to S0=S0.\n\nThe two transitions. Both take a current state S and a schedule index k, compute a gradient vector ginmathbbRd, and return Ubig(S,,operatornameclipc(PT,g)big) — the optimizer U is applied exactly once per step, to the pre-update state S. Here PT is the coordinate mask (PT,g)j=gj if jinT and 0 otherwise, and\n\n
\\\\operatorname{clip}_c(g) = \\\\begin{cases} g & \\\\text{if } \\\\|g\\\\| \\\\le c, \\\\\\\\\\\\\\\\ \\\\dfrac{c}{\\\\|g\\\\|}\\\\, g & \\\\text{otherwise}, \\\\end{cases}
\n\ntaken verbatim as a total function: no sign is assumed on c, and division is total, so both branches are defined for every g (including g=0). The two transitions differ only in how g is produced:\n\n- Monolithic gradient. g=gkmathrmmono(S) is the vector representing the derivative of the logical objective\n
Lk(w);=;sumiinIkalphak(i)cdotfk,ibig(w,,hk(w)big)
\nat S.w — literally, the image of 1inmathbbR under the adjoint of the Fréchet derivative DLk(S.w), i.e. its Riesz vector. The derivative operator is total: at a point where Lk fails to be differentiable it is defined to be the zero map, so gkmathrmmono(S)=0 there; the monolithic transition is thus defined for completely arbitrary frames, with no differentiability assumed.\n\n- Tiled gradient. g = g^{\\\\mathrm{tile}}_k(S) = A + (h\'_k)^{*}(C), where h\'_k is the continuous linear map supplied by the certificate bundle Dmathrmof(k,S), (h\'_k)^{*} : V \\\\to W is its adjoint, and\n$$A \\;=\\; \\sum_{B \\in \\mathfrak{B}k}\\, \\sum{i \\in B} \\alpha_k(i)\\, \\mathbf{a}i \\;\\in\\; W, \\qquad C \\;=\\; \\sum{B \\in \\mathfrak{B}k}\\, \\sum{i \\in B} \\alpha_k(i)\\, \\mathbf{c}i \\;\\in\\; V,n\\mathbf{a}and\\mathbf{c}beingthedirect/sharedtablesofD{\\mathrm{of}}(k, S);thisiscomputedbyfoldingthetilelistleft−to−rightfromazeroaccumulator,eachtileBadding\\sum_{i \\in B} \\alpha_k(i)\\,\\mathbf{a}itothedirectslotand\\sum{i \\in B} \\alpha_k(i)\\,\\mathbf{c}itothesharedslot.(Thefoldalsomaintainsarunningloss\\sum \\alpha_k(i)\\,\\mathrm{val}(i),whichthetiledgradientdiscards:thevaluetable—andhenceitscertificate—doesnotenterg^{\\mathrm{tile}}k.)nn∗∗ThecertificatebundleD{\\mathrm{of}}(k, S)(atw_0 = S.w,fortheframe\\xi_k).∗∗Thehypothesissuppliesallofthefollowing:nn−acontinuouslinearmaph'k : W \\to V,certifiedtobetheFreˊchetderivativeofh_katw_0;n−avaluetable\\mathrm{val} : \\iota \\to \\mathbb{R},certifiedby:\\mathrm{val}(i) = f{k,i}\\big(w_0,\\, h_k(w_0)\\big)foreveryoccurrencei \\in I_k;n−adirecttable\\mathbf{a} : \\iota \\to W,certifiedby:\\mathbf{a}(i)isthegradientatw_0ofthemapw \\mapsto f{k,i}\\big(w,\\, h_k(w_0)\\big)(sharedslotfrozenatitspre−updatevalue)foreveryi \\in I_k;n−asharedtable\\mathbf{c} : \\iota \\to V,certifiedby:\\mathbf{c}(i)isthegradientath_k(w_0)ofthemapv \\mapsto f_{k,i}(w_0, v)foreveryi \\in I_k;n−differentiabilityoff_{k,i}atthepoint\\big(w_0, h_k(w_0)\\big)foreveryi \\in I_k.nn(Gradientofareal−valuedfunctiononEuclideanspace=thevectorrepresentingitsderivative.)Allper−occurrencecertificatesaredemandedonlyfori \\in I_k;ifI_k = \\varnothingtheyarevacuous.Thederivativecertificateforh_katw_0,however,isdemandedunconditionally.nn∗∗Fineprintonthequantifiersanddegeneratecases.∗∗nn−D_{\\mathrm{of}}rangesover∗∗all∗∗statesS,notonlystatesreachablefromS_0;sinceeveryw \\in \\mathbb{R}^disS.wforsomestate,thehypothesisineffectrequireseachh_ktoadmitaFreˊchetderivativeat∗∗every∗∗pointof\\mathbb{R}^d,andtheoccurrence−wisevalue/gradient/differentiabilitydatatoexistateveryw_0(atthepoints(w_0, h_k(w_0))).Aschedulecontainingaframewhoseh_kisnoteverywheredifferentiablemakesthehypothesisunsatisfiable,andthetheoremisvacuousforthatschedule.n−nrangesoverallof\\mathbb{N}includingn = 0(bothsidesthenequalS_0).n−Tmaybeempty:thenP_Tsendseverygradientto0,andbothtransitionsreducetothesamemapS \\mapsto U\\big(S, \\operatorname{clip}c(0)\\big),identicalonthetwosidesregardlessof\\xi,\\mathfrak{B},D{\\mathrm{of}}.(Likewised = 0forcesT = \\varnothing,\\mathbb{R}^dbeingthetrivialspace.)n−IfI_k = \\varnothingforsomek(inparticularif\\iotaisempty),thenA = 0andC = 0whileL_k \\equiv 0,sobothgradientformulasyield0ateverystateforthatindex.n−cisanarbitraryreal;forc < 0thebranch\\|g\\| \\le cnever applies and the second branch, with its negative scalar, is used.\\n"\n}', 'details': {'resolvedPath': '/home/ajax/.omp/agent/sessions/-math/2026-09-22T19-31-08-510Z_01a0ca99-be5e-7000-93c6-dac7c74cc004/RB2-M09.md', 'contentType': 'text/markdown', 'totalLines': 3, 'displayContent': {'text': '{\n "readback": "**Theorem `M09_trajectory_equivalence`.** Fix arbitrary natural numbersdandm,andwriteW = \\mathbb{R}^dandV = \\mathbb{R}^mforthecorrespondingEuclideanspaces.Fixanarbitrarytype\\iota(anindextypefor"occurrences";itmaybefinite,infinite,orempty),assumedtocarrydecidableequality.Thetheoremasserts,for∗∗every∗∗choiceof:nn−a∗∗frameschedule∗∗\\xi = (\\xi_k){k \\in \\mathbb{N}},whereeachframe\\xi_kisaquadruple\\big(h_k,\\, f_k,\\, \\alpha_k,\\, I_k\\big)consistingofanarbitrarymaph_k : W \\to V(thesharedcomputation;noregularityispartofthedata),per−occurrencelossmapsf{k,i} : W \\times V \\to \\mathbb{R},coefficients\\alpha_k : \\iota \\to \\mathbb{R},andafiniteoccurrencesetI_k \\subseteq \\iota;n−a∗∗tile−partitionschedule∗∗\\mathfrak{B} = (\\mathfrak{B}k){k \\in \\mathbb{N}},each\\mathfrak{B}kbeingafinitelistoffinitesubsets("tiles")of\\iota;n−thehypothesish{\\mathrm{part}}:for∗∗every∗∗k,thetilesof\\mathfrak{B}karepairwisedisjointandtheirunionisexactlyI_k(soeverytileisasubsetofI_k;tilesmaybeempty,andtheemptylistispermittedonlyinthatitsunionis\\varnothing,whichforcesI_k = \\varnothing);n−thehypothesisD{\\mathrm{of}}:for∗∗every∗∗stepindexk \\in \\mathbb{N}and∗∗every∗∗trainingstateS,aderivative−certificatebundlefortheframe\\xi_katthepointS.w(itscontentsarelistedinfullbelow);n−afinitesetT \\subseteq \\{0, \\dots, d-1\\}of"trainable"coordinates;n−arealnumberc(nosignhypothesis);n−anarbitrarydeterministicoptimizerU : \\text{State} \\to W \\to \\text{State};n−aninitialstateS_0andastepcountn \\in \\mathbb{N}$;\n\nthat\n\n
operatornamerunFrom(texttiled,,n,,S0);=;operatornamerunFrom(textmono,,n,,S0),
\n\nan equality of complete training states, where \"tiled\" and \"mono\" are the two transition systems defined below. Both sides use the same xi, T, c, U, S0 and n; only the tiled side additionally depends on mathfrakB and Dmathrmof.\n\nTraining states. A state SintextState is a quadruple (w,mu1,mu2,t) with w,mu1,mu2inmathbbRd (logical parameters, first-moment slots, second-moment slots) and a step counter tinmathbbN. The asserted equality is equality of the entire state after n steps — parameters, both moment vectors, and the counter — not just of the parameters.\n\nWhat operatornamerunFrom(textstep,n,S0) asserts. For a transition operatornamestep:textStatetomathbbNtotextState,\n\n
operatornamerunFrom(operatornamestep,0,S)=S,qquadoperatornamerunFrom(operatornamestep,n+1,S)=operatornamerunFrom(operatornamestep,n,,operatornamestep(S,n)).
\n\nUnrolling, n transitions are applied, consuming the schedule index n−1 first and index 0 last: operatornamerunFrom(operatornamestep,n,S0)=operatornamestep(cdotsoperatornamestep(operatornamestep(S0,,n−1),,n−2)cdots,,0). Only the frames, partitions, and certificates at indices 0,dots,n−1 are ever read; the hypotheses hmathrmpart and Dmathrmof are nonetheless demanded at every index kinmathbbN, including indices no n-step run reaches. At n=0 both sides of the theorem are literally S0, so the statement includes the degenerate case n=0 in which it reduces to S0=S0.\n\nThe two transitions. Both take a current state S and a schedule index k, compute a gradient vector ginmathbbRd, and return Ubig(S,,operatornameclipc(PT,g)big) — the optimizer U is applied exactly once per step, to the pre-update state S. Here PT is the coordinate mask (PT,g)j=gj if jinT and 0 otherwise, and\n\n
\\\\operatorname{clip}_c(g) = \\\\begin{cases} g & \\\\text{if } \\\\|g\\\\| \\\\le c, \\\\\\\\\\\\\\\\ \\\\dfrac{c}{\\\\|g\\\\|}\\\\, g & \\\\text{otherwise}, \\\\end{cases}
\n\ntaken verbatim as a total function: no sign is assumed on c, and division is total, so both branches are defined for every g (including g=0). The two transitions differ only in how g is produced:\n\n- Monolithic gradient. g=gkmathrmmono(S) is the vector representing the derivative of the logical objective\n
Lk(w);=;sumiinIkalphak(i)cdotfk,ibig(w,,hk(w)big)
\nat S.w — literally, the image of 1inmathbbR under the adjoint of the Fréchet derivative DLk(S.w), i.e. its Riesz vector. The derivative operator is total: at a point where Lk fails to be differentiable it is defined to be the zero map, so gkmathrmmono(S)=0 there; the monolithic transition is thus defined for completely arbitrary frames, with no differentiability assumed.\n\n- Tiled gradient. g = g^{\\\\mathrm{tile}}_k(S) = A + (h\'_k)^{*}(C), where h\'_k is the continuous linear map supplied by the certificate bundle Dmathrmof(k,S), (h\'_k)^{*} : V \\\\to W is its adjoint, and\n$$A \\;=\\; \\sum_{B \\in \\mathfrak{B}k}\\, \\sum{i \\in B} \\alpha_k(i)\\, \\mathbf{a}i \\;\\in\\; W, \\qquad C \\;=\\; \\sum{B \\in \\mathfrak{B}k}\\, \\sum{i \\in B} \\alpha_k(i)\\, \\mathbf{c}i \\;\\in\\; V,n\\mathbf{a}and\\mathbf{c}beingthedirect/sharedtablesofD{\\mathrm{of}}(k, S);thisiscomputedbyfoldingthetilelistleft−to−rightfromazeroaccumulator,eachtileBadding\\sum_{i \\in B} \\alpha_k(i)\\,\\mathbf{a}itothedirectslotand\\sum{i \\in B} \\alpha_k(i)\\,\\mathbf{c}itothesharedslot.(Thefoldalsomaintainsarunningloss\\sum \\alpha_k(i)\\,\\mathrm{val}(i),whichthetiledgradientdiscards:thevaluetable—andhenceitscertificate—doesnotenterg^{\\mathrm{tile}}k.)nn∗∗ThecertificatebundleD{\\mathrm{of}}(k, S)(atw_0 = S.w,fortheframe\\xi_k).∗∗Thehypothesissuppliesallofthefollowing:nn−acontinuouslinearmaph'k : W \\to V,certifiedtobetheFreˊchetderivativeofh_katw_0;n−avaluetable\\mathrm{val} : \\iota \\to \\mathbb{R},certifiedby:\\mathrm{val}(i) = f{k,i}\\big(w_0,\\, h_k(w_0)\\big)foreveryoccurrencei \\in I_k;n−adirecttable\\mathbf{a} : \\iota \\to W,certifiedby:\\mathbf{a}(i)isthegradientatw_0ofthemapw \\mapsto f{k,i}\\big(w,\\, h_k(w_0)\\big)(sharedslotfrozenatitspre−updatevalue)foreveryi \\in I_k;n−asharedtable\\mathbf{c} : \\iota \\to V,certifiedby:\\mathbf{c}(i)isthegradientath_k(w_0)ofthemapv \\mapsto f_{k,i}(w_0, v)foreveryi \\in I_k;n−differentiabilityoff_{k,i}atthepoint\\big(w_0, h_k(w_0)\\big)foreveryi \\in I_k.nn(Gradientofareal−valuedfunctiononEuclideanspace=thevectorrepresentingitsderivative.)Allper−occurrencecertificatesaredemandedonlyfori \\in I_k;ifI_k = \\varnothingtheyarevacuous.Thederivativecertificateforh_katw_0,however,isdemandedunconditionally.nn∗∗Fineprintonthequantifiersanddegeneratecases.∗∗nn−D_{\\mathrm{of}}rangesover∗∗all∗∗statesS,notonlystatesreachablefromS_0;sinceeveryw \\in \\mathbb{R}^disS.wforsomestate,thehypothesisineffectrequireseachh_ktoadmitaFreˊchetderivativeat∗∗every∗∗pointof\\mathbb{R}^d,andtheoccurrence−wisevalue/gradient/differentiabilitydatatoexistateveryw_0(atthepoints(w_0, h_k(w_0))).Aschedulecontainingaframewhoseh_kisnoteverywheredifferentiablemakesthehypothesisunsatisfiable,andthetheoremisvacuousforthatschedule.n−nrangesoverallof\\mathbb{N}includingn = 0(bothsidesthenequalS_0).n−Tmaybeempty:thenP_Tsendseverygradientto0,andbothtransitionsreducetothesamemapS \\mapsto U\\big(S, \\operatorname{clip}c(0)\\big),identicalonthetwosidesregardlessof\\xi,\\mathfrak{B},D{\\mathrm{of}}.(Likewised = 0forcesT = \\varnothing,\\mathbb{R}^dbeingthetrivialspace.)n−IfI_k = \\varnothingforsomek(inparticularif\\iotaisempty),thenA = 0andC = 0whileL_k \\equiv 0,sobothgradientformulasyield0ateverystateforthatindex.n−cisanarbitraryreal;forc < 0thebranch\\|g\\| \\le c$ never applies and the second branch, with its negative scalar, is used.\n"\n}', 'startLine': 1, 'lineNumbers': [1, 2, 3]}, 'meta': {'source': {'type': 'internal', 'value': 'agent://RB2-M09'}}}}
Confirmed by the mission captain (proposal self-audit).