Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Vathek training frame, derivative certificates, state, and runs

Definition
VathekState

by ajax · Sep 22, 2026 · Mathlib 0df444a (Lean v4.33.1)

formal-verificationmachine-learning

The training-state vocabulary. A frame bundles the shared differentiable computation h:W→Vh : W \to Vh:W→V, the per-occurrence loss maps fi:W×V→Rf_i : W \times V \to \mathbb{R}fi​:W×V→R, the fixed reduction coefficients αi\alpha_iαi​, and the finite occurrence set III; all discrete choices are fixed during one logical update. A derivative-certificate package at a pre-update point w0w_0w0​ supplies the shared derivative h′h'h′ with the certificate that it really is the derivative of hhh, and for each occurrence the value, direct gradient, and shared cotangent — each certified as the genuine mathematical derivative of the stated map (no uninterpreted gradient oracle). A training state carries the parameters, both optimizer moment slots, and the step counter; a structural snapshot is the real-valued coordinate-list encoding of exactly that state, with a total decoder (restore). The monolithic gradient monoGrad is the Riesz representation of the derivative of the whole logical objective. The tiled run and monolithic run schedule one masked, clipped optimizer application per logical step, and runFrom iterates a step function over step indices.

Definition code
import Definitions.Def_VathekFrame

/-!
# VathekProof — training frame, derivative certificates, state, and runs (§4.2–4.5, §5)
-/

namespace VathekProof

/-- §4.2–4.3: one *training frame* — the shared differentiable computation `h`, the
per-occurrence loss maps `f`, the fixed reduction coefficients `α`, and the finite
occurrence set `I`.  All discrete choices of the frame are fixed during one logical
update. -/
structure Frame (d m : ℕ) (ι : Type*) where
  /-- shared computation: source encoding, all-slot interaction, shared projections -/
  h : EuclideanSpace ℝ (Fin d) → EuclideanSpace ℝ (Fin m)
  /-- per-occurrence loss maps `fᵢ : W × V → ℝ` -/
  f : ι → EuclideanSpace ℝ (Fin d) × EuclideanSpace ℝ (Fin m) → ℝ
  /-- fixed reduction coefficients (`αᵢ ≥ 0` in the product objective) -/
  α : ι → ℝ
  /-- finite occurrence set of this frame -/
  I : Finset ι

/-- §4.4: derivative certificates for one frame at the pre-update point `w₀` — the
shared derivative, and for each occurrence the value, direct partial gradient, and
shared partial cotangent, each certified as the genuine mathematical value or
derivative of the stated map (no uninterpreted `gradient` oracle). -/
structure FrameDeriv (d m : ℕ) (ι : Type*) (ξ : Frame d m ι)
    (w₀ : EuclideanSpace ℝ (Fin d)) where
  /-- the derivative of the shared map at `w₀` -/
  h' : EuclideanSpace ℝ (Fin d) →L[ℝ] EuclideanSpace ℝ (Fin m)
  /-- certificate: `h'` really is the derivative of `ξ.h` at `w₀` -/
  hh : HasFDerivAt ξ.h h' w₀
  /-- per-occurrence values `fᵢ (w₀, h (w₀))` -/
  val : ι → ℝ
  /-- certificate: `val i` really is the value `fᵢ (w₀, h (w₀))` -/
  hval : ∀ i ∈ ξ.I, val i = ξ.f i (w₀, ξ.h w₀)
  /-- per-occurrence direct parameter gradients `∇₁ fᵢ (w₀, h₀)` -/
  direct : ι → EuclideanSpace ℝ (Fin d)
  /-- per-occurrence shared-state cotangents `∇₂ fᵢ (w₀, h₀)` -/
  shared : ι → EuclideanSpace ℝ (Fin m)
  /-- certificate: `direct i` is the gradient of `w ↦ fᵢ (w, h (w₀))` at `w₀` -/
  hdirect : ∀ i ∈ ξ.I, HasGradientAt (fun w => ξ.f i (w, ξ.h w₀)) (direct i) w₀
  /-- certificate: `shared i` is the gradient of `v ↦ fᵢ (w₀, v)` at `h (w₀)` -/
  hshared : ∀ i ∈ ξ.I, HasGradientAt (fun v => ξ.f i (w₀, v)) (shared i) (ξ.h w₀)
  /-- certificate: `fᵢ` is differentiable at the point used `(w₀, h (w₀))` -/
  hdiff : ∀ i ∈ ξ.I, DifferentiableAt ℝ (ξ.f i) (w₀, ξ.h w₀)

/-- §4.5: a *training state* — logical parameters, the two optimizer moment slots, and
the step counter.  (`TrainState` is the minimal transition-relevant state of the
mission; a production state carries more slots with the same discipline.) -/
structure TrainState (d : ℕ) where
  /-- logical parameters `w` -/
  w : EuclideanSpace ℝ (Fin d)
  /-- first-moment slots -/
  mom1 : EuclideanSpace ℝ (Fin d)
  /-- second-moment slots -/
  mom2 : EuclideanSpace ℝ (Fin d)
  /-- step counter `t` -/
  t : ℕ

/-- §5 (checkpoint): the structural snapshot of a `TrainState` — real-valued slots as
coordinate lists plus the counter.  This is a *real-valued mathematical* snapshot; a
finite-byte codec is a separate refinement (§9.4, §12.2). -/
structure TrainSnap (d : ℕ) where
  /-- serialized parameters -/
  w : List ℝ
  /-- serialized first moments -/
  mom1 : List ℝ
  /-- serialized second moments -/
  mom2 : List ℝ
  /-- step counter -/
  t : ℕ

/-- Encode a real vector as its coordinate list (length `d`). -/
def listOfVec {d : ℕ} (x : EuclideanSpace ℝ (Fin d)) : List ℝ :=
  List.ofFn (fun j => x j)

/-- Decode a coordinate list back to a real vector (total: missing coordinates
default to `0`; a round trip never has them). -/
def vecOfList {d : ℕ} (l : List ℝ) : EuclideanSpace ℝ (Fin d) :=
  WithLp.toLp 2 (fun j => l.getD j.val 0)

/-- §5: the structural snapshot of a complete training state. -/
def snap {d : ℕ} (S : TrainState d) : TrainSnap d where
  w := listOfVec S.w
  mom1 := listOfVec S.mom1
  mom2 := listOfVec S.mom2
  t := S.t

/-- §5: reconstruction of a training state from its snapshot. -/
def restore {d : ℕ} (P : TrainSnap d) : TrainState d where
  w := vecOfList P.w
  mom1 := vecOfList P.mom1
  mom2 := vecOfList P.mom2
  t := P.t

/-- The monolithic evaluator's gradient vector at `w₀`: the Riesz representation of
the derivative of the whole logical objective.  Well defined wherever the objective is
differentiable; under the frame's certificates it is the mathematical gradient. -/
noncomputable def monoGrad {d m : ℕ} {ι : Type*} (ξ : Frame d m ι) (w₀ : EuclideanSpace ℝ (Fin d)) :
    EuclideanSpace ℝ (Fin d) :=
  (fderiv ℝ (frameLoss ξ.h ξ.f ξ.α ξ.I) w₀).adjoint 1

/-- §5: the tiled evaluator's run — at logical step `k`, every tile of the partition
`𝔅 k` reads the same pre-update parameters `S.w` (through the certificates `Dof k S`),
the full gradient is accumulated, projected, clipped, and the optimizer `U` runs once. -/
noncomputable def tiledRun (d m : ℕ) (ι : Type*) [DecidableEq ι] (ξ : ℕ → Frame d m ι)
    (𝔅 : ℕ → List (Finset ι))
    (Dof : ∀ (k : ℕ) (S : TrainState d), FrameDeriv d m ι (ξ k) S.w)
    (T : Finset (Fin d)) (c : ℝ)
    (U : TrainState d → EuclideanSpace ℝ (Fin d) → TrainState d) :
    TrainState d → ℕ → TrainState d :=
  fun S k => U S (clipVec c (coordMask T
    (tiledGrad (ξ k).α (Dof k S).val (Dof k S).direct (Dof k S).shared (Dof k S).h' (𝔅 k))))

/-- §5: the monolithic evaluator's run — one full loss and one full derivative per
logical step, then the same projection, clipping, and single optimizer application. -/
noncomputable def monoRun (d m : ℕ) (ι : Type*) (ξ : ℕ → Frame d m ι) (T : Finset (Fin d)) (c : ℝ)
    (U : TrainState d → EuclideanSpace ℝ (Fin d) → TrainState d) :
    TrainState d → ℕ → TrainState d :=
  fun S k => U S (clipVec c (coordMask T (monoGrad (ξ k) S.w)))

/-- §5: run the first `n` logical steps of a schedule. -/
def runFrom {σ : Type*} (step : σ → ℕ → σ) : ℕ → σ → σ
  | 0, S => S
  | n + 1, S => runFrom step n (step S n)

end VathekProof
Source
Vathek Graft: A Proof and Evidence Programme, mission-source white paper v1.0, 22 September 2026 (Thomas Davis). Sections 4.2-4.5 and Section 5 (Eq. 4-6).
Read-back

What the Lean code literally says, in plain math · glm-5.3 (independent auditor subagent)

{'text': '{\n "type": "result",\n "data": "Throughout, mathbbRd\\\\mathbb{R}^dmathbbRd denotes ddd-dimensional real coordinate space with the standard Euclidean inner product langlecdot,cdotrangle\\\\langle\\\\cdot,\\\\cdot\\\\ranglelanglecdot,cdotrangle and norm lVertcdotrVert\\\\lVert\\\\cdot\\\\rVertlVertcdotrVert; a vector xinmathbbRdx \\\\in \\\\mathbb{R}^dxinmathbbRd is viewed as its coordinate function jmapstoxjj \\\\mapsto x_jjmapstoxj​ on jin0,dots,d−1j \\\\in \\\\{0,\\\\dots,d-1\\\\}jin0,dots,d−1. A derivative is always a Fréchet derivative: LLL is the derivative of hhh at xxx means h(x+u)=h(x)+L(u)+o(lVerturVert)h(x+u) = h(x) + L(u) + o(\\\\lVert u\\\\rVert)h(x+u)=h(x)+L(u)+o(lVerturVert) with LLL a continuous linear map. For real-valued varphi:mathbbRdtomathbbR\\\\varphi : \\\\mathbb{R}^d \\\\to \\\\mathbb{R}varphi:mathbbRdtomathbbR, \"ginmathbbRdg \\\\in \\\\mathbb{R}^dginmathbbRd is the gradient of varphi\\\\varphivarphi at xxx\" means varphi(x+u)=varphi(x)+langleg,urangle+o(lVerturVert)\\\\varphi(x+u) = \\\\varphi(x) + \\\\langle g, u\\\\rangle + o(\\\\lVert u\\\\rVert)varphi(x+u)=varphi(x)+langleg,urangle+o(lVerturVert).\n\n**Frame.** For arbitrary natural numbers d,md, md,m and an arbitrary type iota\\\\iotaiota (a type of occurrence labels; no assumption of any kind is placed on iota\\\\iotaiota), a frame is a record with four data fields:\n\n- a map h:mathbbRdtomathbbRmh : \\\\mathbb{R}^d \\\\to \\\\mathbb{R}^mh:mathbbRdtomathbbRm;\n- an iota\\\\iotaiota-indexed family of loss maps fi:mathbbRdtimesmathbbRmtomathbbRf_i : \\\\mathbb{R}^d \\\\times \\\\mathbb{R}^m \\\\to \\\\mathbb{R}fi​:mathbbRdtimesmathbbRmtomathbbR, one for each iiniotai \\\\in \\\\iotaiiniota;\n- an iota\\\\iotaiota-indexed family of real coefficients alphaiinmathbbR\\\\alpha_i \\\\in \\\\mathbb{R}alphai​inmathbbR — no sign or other condition is imposed (negative and zero coefficients are permitted);\n- a finite occurrence set IsubseteqiotaI \\\\subseteq \\\\iotaIsubseteqiota.\n\nNo regularity (continuity, differentiability) is required of hhh or of any fif_ifi​. The quantification silently includes the degenerate cases d=0d = 0d=0 or m=0m = 0m=0 (the corresponding space is a single point), I=emptysetI = \\\\emptysetI=emptyset, and iota\\\\iotaiota infinite (only III is required finite).\n\n**FrameDeriv.** For arbitrary d,minmathbbNd, m \\\\in \\\\mathbb{N}d,minmathbbN, an arbitrary type iota\\\\iotaiota, a frame xi=(h,f,alpha,I)\\\\xi = (h, f, \\\\alpha, I)xi=(h,f,alpha,I) as above, and a point w0inmathbbRdw_0 \\\\in \\\\mathbb{R}^dw0​inmathbbRd, a frame-derivative certificate at w0w_0w0​ is a record with the following data fields and proof fields (all must be supplied to give an element):\n\n- data: a continuous linear map h\' : \\\\mathbb{R}^d \\\\to \\\\mathbb{R}^m;\n- certificate hh (unconditional): h\' is the derivative of hhh at w0w_0w0​;\n- data: a function mathrmval:iotatomathbbR\\\\mathrm{val} : \\\\iota \\\\to \\\\mathbb{R}mathrmval:iotatomathbbR;\n- certificate hval: for every iinIi \\\\in IiinI, mathrmval(i)=fibig(w0,,h(w0)big)\\\\mathrm{val}(i) = f_i\\\\big(w_0,\\\\, h(w_0)\\\\big)mathrmval(i)=fi​big(w0​,,h(w0​)big);\n- data: a function mathrmdirect:iotatomathbbRd\\\\mathrm{direct} : \\\\iota \\\\to \\\\mathbb{R}^dmathrmdirect:iotatomathbbRd;\n- data: a function mathrmshared:iotatomathbbRm\\\\mathrm{shared} : \\\\iota \\\\to \\\\mathbb{R}^mmathrmshared:iotatomathbbRm;\n- certificate hdirect: for every iinIi \\\\in IiinI, mathrmdirect(i)\\\\mathrm{direct}(i)mathrmdirect(i) is the gradient at w0w_0w0​ of the partially applied map wmapstofibig(w,,h(w0)big)w \\\\mapsto f_i\\\\big(w,\\\\, h(w_0)\\\\big)wmapstofi​big(w,,h(w0​)big) (second argument frozen at the pre-update shared state h(w0)h(w_0)h(w0​));\n- certificate hshared: for every iinIi \\\\in IiinI, mathrmshared(i)\\\\mathrm{shared}(i)mathrmshared(i) is the gradient at h(w0)h(w_0)h(w0​) of the map vmapstofi(w0,v)v \\\\mapsto f_i(w_0, v)vmapstofi​(w0​,v) (first argument frozen at w0w_0w0​);\n- certificate hdiff: for every iinIi \\\\in IiinI, fif_ifi​ is differentiable (as a map on the product mathbbRdtimesmathbbRm\\\\mathbb{R}^d \\\\times \\\\mathbb{R}^mmathbbRdtimesmathbbRm) at the single point big(w0,h(w0)big)\\\\big(w_0, h(w_0)\\\\big)big(w0​,h(w0​)big).\n\nAll certificates except hh quantify only over iinIi \\\\in IiinI: outside III the functions mathrmval\\\\mathrm{val}mathrmval, mathrmdirect\\\\mathrm{direct}mathrmdirect, mathrmshared\\\\mathrm{shared}mathrmshared are unconstrained arbitrary data. If I=emptysetI = \\\\emptysetI=emptyset these four conditions are vacuous, and the only substantive requirement is that hhh be differentiable at w0w_0w0​ (so the existence of such a record always forces differentiability of hhh at w0w_0w0​, but forces nothing about the fif_ifi​ when I=emptysetI = \\\\emptysetI=emptyset).\n\n**TrainState.** For every dinmathbbNd \\\\in \\\\mathbb{N}dinmathbbN, a training state is a record of four data fields: three vectors w,mathrmmom1,mathrmmom2inmathbbRdw, \\\\mathrm{mom1}, \\\\mathrm{mom2} \\\\in \\\\mathbb{R}^dw,mathrmmom1,mathrmmom2inmathbbRd and a step counter tinmathbbNt \\\\in \\\\mathbb{N}tinmathbbN. No conditions are imposed on any field.\n\n**TrainSnap.** For every dinmathbbNd \\\\in \\\\mathbb{N}dinmathbbN, a training snapshot is a record of four data fields: three lists of reals w,mathrmmom1,mathrmmom2w, \\\\mathrm{mom1}, \\\\mathrm{mom2}w,mathrmmom1,mathrmmom2 and a step counter tinmathbbNt \\\\in \\\\mathbb{N}tinmathbbN. The lengths of the lists are in no way tied to ddd; snapshots with empty, short, or long lists are all legitimate elements.\n\n**listOfVec.** For every ddd (implicit) and every xinmathbbRdx \\\\in \\\\mathbb{R}^dxinmathbbRd, this is the list of reals of length exactly ddd whose jjj-th entry is the coordinate xjx_jxj​, for j=0,dots,d−1j = 0, \\\\dots, d-1j=0,dots,d−1. For d=0d = 0d=0 it is the empty list.\n\n**vecOfList.** For every ddd (implicit) and every list lll of reals, this is the vector in mathbbRd\\\\mathbb{R}^dmathbbRd whose jjj-th coordinate is the jjj-th entry of lll if the list has an entry at position jjj, and 000 otherwise. The function is total: a list shorter than ddd is padded with zeros in the missing coordinates, and entries at positions ged\\\\ge dged are ignored.\n\n**snap.** For every ddd (implicit), this maps a training state SSS to its snapshot: each of the three vectors S.w,S.mathrmmom1,S.mathrmmom2S.w, S.\\\\mathrm{mom1}, S.\\\\mathrm{mom2}S.w,S.mathrmmom1,S.mathrmmom2 is encoded by listOfVec (so each list has length exactly ddd), and the counter S.tS.tS.t is copied unchanged.\n\n**restore.** For every ddd (implicit), this maps a snapshot PPP back to a training state: each of the three lists is decoded by vecOfList (with the zero-padding / entry-ignoring behavior above when a list's length differs from ddd), and P.tP.tP.t is copied unchanged.\n\n**monoGrad.** For all d,minmathbbNd, m \\\\in \\\\mathbb{N}d,minmathbbN, all types iota\\\\iotaiota (implicit), every frame xi=(h,f,alpha,I)\\\\xi = (h, f, \\\\alpha, I)xi=(h,f,alpha,I), and every w0inmathbbRdw_0 \\\\in \\\\mathbb{R}^dw0​inmathbbRd, this defines a vector in mathbbRd\\\\mathbb{R}^dmathbbRd. Write the monolithic objective\n

L_\\\\xi(w) \\\\;=\\\\; \\\\sum_{i \\\\in I} \\\\alpha_i \\\\, f_i\\\\big(w, h(w)\\\\big).

\nThen mathrmmonoGrad(xi,w0)\\\\mathrm{monoGrad}(\\\\xi, w_0)mathrmmonoGrad(xi,w0​) is obtained by taking the Fréchet derivative of L_\\\\xi at w0w_0w0​ — read through the total derivative operator, which returns the zero map at any point where L_\\\\xi fails to be differentiable — and applying its adjoint (Riesz representation) to the scalar 111. Equivalently, \\\\mathrm{monoGrad}(\\\\xi, w_0) = \\\\big(DL_\\\\xi(w_0)\\\\big)^{T} \\\\cdot 1: it is the gradient \\\\nabla L_\\\\xi(w_0) wherever L_\\\\xi is differentiable at w0w_0w0​, and the zero vector at every point where it is not. The definition itself assumes no differentiability; it is total for every frame, including frames with non-differentiable hhh or fif_ifi​.\n\n**tiledRun.** For all d,minmathbbNd, m \\\\in \\\\mathbb{N}d,minmathbbN and every type iota\\\\iotaiota carrying decidable equality, given\n\n- a frame schedule xi=(xik)kinmathbbN\\\\xi = (\\\\xi_k)_{k \\\\in \\\\mathbb{N}}xi=(xik​)kinmathbbN​, one frame xik=(hk,fk,alphak,Ik)\\\\xi_k = (h_k, f_k, \\\\alpha_k, I_k)xik​=(hk​,fk​,alphak​,Ik​) per logical step kkk;\n- a tiling schedule mathfrakB=(mathfrakBk)kinmathbbN\\\\mathfrak{B} = (\\\\mathfrak{B}_k)_{k \\\\in \\\\mathbb{N}}mathfrakB=(mathfrakBk​)kinmathbbN​, each mathfrakBk\\\\mathfrak{B}_kmathfrakBk​ a finite list of finite subsets (\"tiles\") of iota\\\\iotaiota;\n- a certificate oracle assigning to every step kkk and every training state SSS a full frame-derivative certificate for the frame xik\\\\xi_kxik​ at the point S.wS.wS.w;\n- a finite set Tsubseteq0,dots,d−1T \\\\subseteq \\\\{0,\\\\dots,d-1\\\\}Tsubseteq0,dots,d−1 of trainable coordinates;\n- a real clipping radius ccc;\n- an optimizer map UUU from states and vectors to states,\n\nthis defines a one-step transition on (state, step index): the state SSS at logical step kkk is sent to Ubig(S,;mathrmclipc,(PT,g)big)U\\\\big(S,\\\\; \\\\mathrm{clip}_c\\\\,(P_T\\\\, g)\\\\big)Ubig(S,;mathrmclipc​,(PT​,g)big), where the gradient ginmathbbRdg \\\\in \\\\mathbb{R}^dginmathbbRd is computed as follows. Unfolding the tiled gradient: with \\\\mathrm{val}, \\\\mathrm{direct}, \\\\mathrm{shared}, h\' the data fields of the certificate at (k,S)(k, S)(k,S), an accumulator (A,C)inmathbbRdtimesmathbbRm(A, C) \\\\in \\\\mathbb{R}^d \\\\times \\\\mathbb{R}^m(A,C)inmathbbRdtimesmathbbRm is built by traversing the tile list mathfrakBk\\\\mathfrak{B}_kmathfrakBk​ from left to right starting from (0,0)(0,0)(0,0), each tile BBB adding\n

A;mathrel+=;sumiinBalphai(k),mathrmdirect(i),qquadC;mathrel+=;sumiinBalphai(k),mathrmshared(i)A \\\\;\\\\mathrel{+}=\\\\; \\\\sum_{i \\\\in B} \\\\alpha^{(k)}_i \\\\,\\\\mathrm{direct}(i), \\\\qquad C \\\\;\\\\mathrel{+}=\\\\; \\\\sum_{i \\\\in B} \\\\alpha^{(k)}_i \\\\,\\\\mathrm{shared}(i)A;mathrel+=;sumiinB​alphai(k)​,mathrmdirect(i),qquadC;mathrel+=;sumiinB​alphai(k)​,mathrmshared(i)

\n(the same fold also maintains a running scalar loss sumiinBalphai(k),mathrmval(i)\\\\sum_{i\\\\in B}\\\\alpha^{(k)}_i\\\\,\\\\mathrm{val}(i)sumiinB​alphai(k)​,mathrmval(i) per tile, which the gradient does not read), and then\n

g;=;A;+;(h)ˊTC,g \\\\;=\\\\; A \\\\;+\\\\; (h\')^{T} C,g;=;A;+;(h)ˊ​TC,

\n(h)ˊT(h\')^{T}(h)ˊ​T denoting the adjoint of the shared-derivative certificate h\'. Next, PTP_TPT​ is the coordinate projection keeping gjg_jgj​ for jinTj \\\\in TjinT and zeroing gjg_jgj​ for jnotinTj \\\\notin TjnotinT; finally mathrmclipc\\\\mathrm{clip}_cmathrmclipc​ is\n

\\\\mathrm{clip}_c(g) = \\\\begin{cases} g, & \\\\lVert g\\\\rVert \\\\le c,\\\\\\\\[2pt] \\\\dfrac{c}{\\\\lVert g\\\\rVert}\\\\, g, & \\\\lVert g\\\\rVert > c.\\\\end{cases}

\nThe optimizer UUU is applied exactly once, to the pre-update state SSS and the processed gradient; a single certificate, at the point S.wS.wS.w, supplies every tile's data. The definition imposes no relation between the tile lists mathfrakBk\\\\mathfrak{B}_kmathfrakBk​ and the frame's occurrence set IkI_kIk​: tiles may be empty, overlap, repeat (a repeated tile contributes twice), or contain indices outside IkI_kIk​, and the certificate data are only certified on IkI_kIk​ while the sums run over the tiles as given; an empty tile list yields g=0g = 0g=0. The clipping is total for every real ccc (real division satisfies x/0=0x/0 = 0x/0=0); note c=0c = 0c=0 sends every ggg to 000, and negative ccc makes the branch condition fail for every ggg, producing (c/lVertgrVert),g(c/\\\\lVert g\\\\rVert)\\\\,g(c/lVertgrVert),g — a vector of norm ∣c∣|c|∣c∣ pointing opposite to ggg (and 000 when g=0g = 0g=0). Note also that supplying the certificate oracle at all states SSS entails, through the unconditional hh field, differentiability of each hkh_khk​ at every parameter vector winmathbbRdw \\\\in \\\\mathbb{R}^dwinmathbbRd.\n\n**monoRun.** For all d,minmathbbNd, m \\\\in \\\\mathbb{N}d,minmathbbN and every type iota\\\\iotaiota (no decidable-equality assumption here), given a frame schedule xi=(xik)k\\\\xi = (\\\\xi_k)_kxi=(xik​)k​, a finite trainable-coordinate set Tsubseteq0,dots,d−1T \\\\subseteq \\\\{0,\\\\dots,d-1\\\\}Tsubseteq0,dots,d−1, a real clipping radius ccc, and an optimizer UUU, this defines the one-step transition sending the state SSS at logical step kkk to\n

UBig(S,;mathrmclipcbig(PT,(mathrmmonoGrad(xik,S.w))big)Big),U\\\\Big(S,\\\\; \\\\mathrm{clip}_c\\\\big(P_T\\\\,(\\\\mathrm{monoGrad}(\\\\xi_k, S.w))\\\\big)\\\\Big),UBig(S,;mathrmclipc​big(PT​,(mathrmmonoGrad(xik​,S.w))big)Big),

\nthat is: the monolithic gradient of LxikL_{\\\\xi_k}Lxik​​ at the current parameters S.wS.wS.w (zero by convention wherever LxikL_{\\\\xi_k}Lxik​​ is not differentiable there), followed by the same coordinate projection PTP_TPT​ and the same clipping mathrmclipc\\\\mathrm{clip}_cmathrmclipc​ as in tiledRun, then a single application of UUU. No certificates, tiles, or differentiability hypotheses are involved; the definition is total for every schedule.\n\n**runFrom.** For an arbitrary type sigma\\\\sigmasigma (implicit) and an arbitrary step function mathrmstep:sigmatomathbbNtosigma\\\\mathrm{step} : \\\\sigma \\\\to \\\\mathbb{N} \\\\to \\\\sigmamathrmstep:sigmatomathbbNtosigma (a map taking a state and a natural step index to a new state), this defines a function mathbbNtosigmatosigma\\\\mathbb{N} \\\\to \\\\sigma \\\\to \\\\sigmamathbbNtosigmatosigma by recursion on the number of steps:\n\n- mathrmrunFrom;mathrmstep;0;S=S\\\\mathrm{runFrom}\\\\; \\\\mathrm{step}\\\\; 0\\\\; S = SmathrmrunFrom;mathrmstep;0;S=S;\n- mathrmrunFrom;mathrmstep;(n+1);S=mathrmrunFrom;mathrmstep;n;big(mathrmstep;S;nbig)\\\\mathrm{runFrom}\\\\; \\\\mathrm{step}\\\\; (n+1)\\\\; S = \\\\mathrm{runFrom}\\\\; \\\\mathrm{step}\\\\; n\\\\; \\\\big(\\\\mathrm{step}\\\\; S\\\\; n\\\\big)mathrmrunFrom;mathrmstep;(n+1);S=mathrmrunFrom;mathrmstep;n;big(mathrmstep;S;nbig).\n\nThus mathrmrunFrom;mathrmstep;n;S\\\\mathrm{runFrom}\\\\; \\\\mathrm{step}\\\\; n\\\\; SmathrmrunFrom;mathrmstep;n;S applies mathrmstep\\\\mathrm{step}mathrmstep exactly nnn times, the applications receiving the step indices n−1,n−2,dots,1,0n-1, n-2, \\\\dots, 1, 0n−1,n−2,dots,1,0 in that order:\n

mathrmrunFrom;mathrmstep;n;S;=;mathrmstepbig(dotsmathrmstepbig(mathrmstep(S,,n−1),,n−2big)dots,,0big).\\\\mathrm{runFrom}\\\\; \\\\mathrm{step}\\\\; n\\\\; S \\\\;=\\\\; \\\\mathrm{step}\\\\big(\\\\dots \\\\mathrm{step}\\\\big(\\\\mathrm{step}(S,\\\\, n-1),\\\\, n-2\\\\big) \\\\dots,\\\\, 0\\\\big).mathrmrunFrom;mathrmstep;n;S;=;mathrmstepbig(dotsmathrmstepbig(mathrmstep(S,,n−1),,n−2big)dots,,0big).

\nAt n=0n = 0n=0 the state is returned unchanged. The definition is generic in sigma\\\\sigmasigma; it is not tied to training states, frames, or any particular step function."\n}', 'details': {'resolvedPath': '/home/ajax/.omp/agent/sessions/-math/2026-09-22T19-31-08-510Z_01a0ca99-be5e-7000-93c6-dac7c74cc004/RB2-VathekState.md', 'contentType': 'text/markdown', 'totalLines': 4, 'displayContent': {'text': '{\n "type": "result",\n "data": "Throughout, mathbbRd\\\\mathbb{R}^dmathbbRd denotes ddd-dimensional real coordinate space with the standard Euclidean inner product langlecdot,cdotrangle\\\\langle\\\\cdot,\\\\cdot\\\\ranglelanglecdot,cdotrangle and norm lVertcdotrVert\\\\lVert\\\\cdot\\\\rVertlVertcdotrVert; a vector xinmathbbRdx \\\\in \\\\mathbb{R}^dxinmathbbRd is viewed as its coordinate function jmapstoxjj \\\\mapsto x_jjmapstoxj​ on jin0,dots,d−1j \\\\in \\\\{0,\\\\dots,d-1\\\\}jin0,dots,d−1. A derivative is always a Fréchet derivative: LLL is the derivative of hhh at xxx means h(x+u)=h(x)+L(u)+o(lVerturVert)h(x+u) = h(x) + L(u) + o(\\\\lVert u\\\\rVert)h(x+u)=h(x)+L(u)+o(lVerturVert) with LLL a continuous linear map. For real-valued varphi:mathbbRdtomathbbR\\\\varphi : \\\\mathbb{R}^d \\\\to \\\\mathbb{R}varphi:mathbbRdtomathbbR, \"ginmathbbRdg \\\\in \\\\mathbb{R}^dginmathbbRd is the gradient of varphi\\\\varphivarphi at xxx\" means varphi(x+u)=varphi(x)+langleg,urangle+o(lVerturVert)\\\\varphi(x+u) = \\\\varphi(x) + \\\\langle g, u\\\\rangle + o(\\\\lVert u\\\\rVert)varphi(x+u)=varphi(x)+langleg,urangle+o(lVerturVert).\n\n**Frame.** For arbitrary natural numbers d,md, md,m and an arbitrary type iota\\\\iotaiota (a type of occurrence labels; no assumption of any kind is placed on iota\\\\iotaiota), a frame is a record with four data fields:\n\n- a map h:mathbbRdtomathbbRmh : \\\\mathbb{R}^d \\\\to \\\\mathbb{R}^mh:mathbbRdtomathbbRm;\n- an iota\\\\iotaiota-indexed family of loss maps fi:mathbbRdtimesmathbbRmtomathbbRf_i : \\\\mathbb{R}^d \\\\times \\\\mathbb{R}^m \\\\to \\\\mathbb{R}fi​:mathbbRdtimesmathbbRmtomathbbR, one for each iiniotai \\\\in \\\\iotaiiniota;\n- an iota\\\\iotaiota-indexed family of real coefficients alphaiinmathbbR\\\\alpha_i \\\\in \\\\mathbb{R}alphai​inmathbbR — no sign or other condition is imposed (negative and zero coefficients are permitted);\n- a finite occurrence set IsubseteqiotaI \\\\subseteq \\\\iotaIsubseteqiota.\n\nNo regularity (continuity, differentiability) is required of hhh or of any fif_ifi​. The quantification silently includes the degenerate cases d=0d = 0d=0 or m=0m = 0m=0 (the corresponding space is a single point), I=emptysetI = \\\\emptysetI=emptyset, and iota\\\\iotaiota infinite (only III is required finite).\n\n**FrameDeriv.** For arbitrary d,minmathbbNd, m \\\\in \\\\mathbb{N}d,minmathbbN, an arbitrary type iota\\\\iotaiota, a frame xi=(h,f,alpha,I)\\\\xi = (h, f, \\\\alpha, I)xi=(h,f,alpha,I) as above, and a point w0inmathbbRdw_0 \\\\in \\\\mathbb{R}^dw0​inmathbbRd, a frame-derivative certificate at w0w_0w0​ is a record with the following data fields and proof fields (all must be supplied to give an element):\n\n- data: a continuous linear map h\' : \\\\mathbb{R}^d \\\\to \\\\mathbb{R}^m;\n- certificate hh (unconditional): h\' is the derivative of hhh at w0w_0w0​;\n- data: a function mathrmval:iotatomathbbR\\\\mathrm{val} : \\\\iota \\\\to \\\\mathbb{R}mathrmval:iotatomathbbR;\n- certificate hval: for every iinIi \\\\in IiinI, mathrmval(i)=fibig(w0,,h(w0)big)\\\\mathrm{val}(i) = f_i\\\\big(w_0,\\\\, h(w_0)\\\\big)mathrmval(i)=fi​big(w0​,,h(w0​)big);\n- data: a function mathrmdirect:iotatomathbbRd\\\\mathrm{direct} : \\\\iota \\\\to \\\\mathbb{R}^dmathrmdirect:iotatomathbbRd;\n- data: a function mathrmshared:iotatomathbbRm\\\\mathrm{shared} : \\\\iota \\\\to \\\\mathbb{R}^mmathrmshared:iotatomathbbRm;\n- certificate hdirect: for every iinIi \\\\in IiinI, mathrmdirect(i)\\\\mathrm{direct}(i)mathrmdirect(i) is the gradient at w0w_0w0​ of the partially applied map wmapstofibig(w,,h(w0)big)w \\\\mapsto f_i\\\\big(w,\\\\, h(w_0)\\\\big)wmapstofi​big(w,,h(w0​)big) (second argument frozen at the pre-update shared state h(w0)h(w_0)h(w0​));\n- certificate hshared: for every iinIi \\\\in IiinI, mathrmshared(i)\\\\mathrm{shared}(i)mathrmshared(i) is the gradient at h(w0)h(w_0)h(w0​) of the map vmapstofi(w0,v)v \\\\mapsto f_i(w_0, v)vmapstofi​(w0​,v) (first argument frozen at w0w_0w0​);\n- certificate hdiff: for every iinIi \\\\in IiinI, fif_ifi​ is differentiable (as a map on the product mathbbRdtimesmathbbRm\\\\mathbb{R}^d \\\\times \\\\mathbb{R}^mmathbbRdtimesmathbbRm) at the single point big(w0,h(w0)big)\\\\big(w_0, h(w_0)\\\\big)big(w0​,h(w0​)big).\n\nAll certificates except hh quantify only over iinIi \\\\in IiinI: outside III the functions mathrmval\\\\mathrm{val}mathrmval, mathrmdirect\\\\mathrm{direct}mathrmdirect, mathrmshared\\\\mathrm{shared}mathrmshared are unconstrained arbitrary data. If I=emptysetI = \\\\emptysetI=emptyset these four conditions are vacuous, and the only substantive requirement is that hhh be differentiable at w0w_0w0​ (so the existence of such a record always forces differentiability of hhh at w0w_0w0​, but forces nothing about the fif_ifi​ when I=emptysetI = \\\\emptysetI=emptyset).\n\n**TrainState.** For every dinmathbbNd \\\\in \\\\mathbb{N}dinmathbbN, a training state is a record of four data fields: three vectors w,mathrmmom1,mathrmmom2inmathbbRdw, \\\\mathrm{mom1}, \\\\mathrm{mom2} \\\\in \\\\mathbb{R}^dw,mathrmmom1,mathrmmom2inmathbbRd and a step counter tinmathbbNt \\\\in \\\\mathbb{N}tinmathbbN. No conditions are imposed on any field.\n\n**TrainSnap.** For every dinmathbbNd \\\\in \\\\mathbb{N}dinmathbbN, a training snapshot is a record of four data fields: three lists of reals w,mathrmmom1,mathrmmom2w, \\\\mathrm{mom1}, \\\\mathrm{mom2}w,mathrmmom1,mathrmmom2 and a step counter tinmathbbNt \\\\in \\\\mathbb{N}tinmathbbN. The lengths of the lists are in no way tied to ddd; snapshots with empty, short, or long lists are all legitimate elements.\n\n**listOfVec.** For every ddd (implicit) and every xinmathbbRdx \\\\in \\\\mathbb{R}^dxinmathbbRd, this is the list of reals of length exactly ddd whose jjj-th entry is the coordinate xjx_jxj​, for j=0,dots,d−1j = 0, \\\\dots, d-1j=0,dots,d−1. For d=0d = 0d=0 it is the empty list.\n\n**vecOfList.** For every ddd (implicit) and every list lll of reals, this is the vector in mathbbRd\\\\mathbb{R}^dmathbbRd whose jjj-th coordinate is the jjj-th entry of lll if the list has an entry at position jjj, and 000 otherwise. The function is total: a list shorter than ddd is padded with zeros in the missing coordinates, and entries at positions ged\\\\ge dged are ignored.\n\n**snap.** For every ddd (implicit), this maps a training state SSS to its snapshot: each of the three vectors S.w,S.mathrmmom1,S.mathrmmom2S.w, S.\\\\mathrm{mom1}, S.\\\\mathrm{mom2}S.w,S.mathrmmom1,S.mathrmmom2 is encoded by listOfVec (so each list has length exactly ddd), and the counter S.tS.tS.t is copied unchanged.\n\n**restore.** For every ddd (implicit), this maps a snapshot PPP back to a training state: each of the three lists is decoded by vecOfList (with the zero-padding / entry-ignoring behavior above when a list's length differs from ddd), and P.tP.tP.t is copied unchanged.\n\n**monoGrad.** For all d,minmathbbNd, m \\\\in \\\\mathbb{N}d,minmathbbN, all types iota\\\\iotaiota (implicit), every frame xi=(h,f,alpha,I)\\\\xi = (h, f, \\\\alpha, I)xi=(h,f,alpha,I), and every w0inmathbbRdw_0 \\\\in \\\\mathbb{R}^dw0​inmathbbRd, this defines a vector in mathbbRd\\\\mathbb{R}^dmathbbRd. Write the monolithic objective\n

L_\\\\xi(w) \\\\;=\\\\; \\\\sum_{i \\\\in I} \\\\alpha_i \\\\, f_i\\\\big(w, h(w)\\\\big).

\nThen mathrmmonoGrad(xi,w0)\\\\mathrm{monoGrad}(\\\\xi, w_0)mathrmmonoGrad(xi,w0​) is obtained by taking the Fréchet derivative of L_\\\\xi at w0w_0w0​ — read through the total derivative operator, which returns the zero map at any point where L_\\\\xi fails to be differentiable — and applying its adjoint (Riesz representation) to the scalar 111. Equivalently, \\\\mathrm{monoGrad}(\\\\xi, w_0) = \\\\big(DL_\\\\xi(w_0)\\\\big)^{T} \\\\cdot 1: it is the gradient \\\\nabla L_\\\\xi(w_0) wherever L_\\\\xi is differentiable at w0w_0w0​, and the zero vector at every point where it is not. The definition itself assumes no differentiability; it is total for every frame, including frames with non-differentiable hhh or fif_ifi​.\n\n**tiledRun.** For all d,minmathbbNd, m \\\\in \\\\mathbb{N}d,minmathbbN and every type iota\\\\iotaiota carrying decidable equality, given\n\n- a frame schedule xi=(xik)kinmathbbN\\\\xi = (\\\\xi_k)_{k \\\\in \\\\mathbb{N}}xi=(xik​)kinmathbbN​, one frame xik=(hk,fk,alphak,Ik)\\\\xi_k = (h_k, f_k, \\\\alpha_k, I_k)xik​=(hk​,fk​,alphak​,Ik​) per logical step kkk;\n- a tiling schedule mathfrakB=(mathfrakBk)kinmathbbN\\\\mathfrak{B} = (\\\\mathfrak{B}_k)_{k \\\\in \\\\mathbb{N}}mathfrakB=(mathfrakBk​)kinmathbbN​, each mathfrakBk\\\\mathfrak{B}_kmathfrakBk​ a finite list of finite subsets (\"tiles\") of iota\\\\iotaiota;\n- a certificate oracle assigning to every step kkk and every training state SSS a full frame-derivative certificate for the frame xik\\\\xi_kxik​ at the point S.wS.wS.w;\n- a finite set Tsubseteq0,dots,d−1T \\\\subseteq \\\\{0,\\\\dots,d-1\\\\}Tsubseteq0,dots,d−1 of trainable coordinates;\n- a real clipping radius ccc;\n- an optimizer map UUU from states and vectors to states,\n\nthis defines a one-step transition on (state, step index): the state SSS at logical step kkk is sent to Ubig(S,;mathrmclipc,(PT,g)big)U\\\\big(S,\\\\; \\\\mathrm{clip}_c\\\\,(P_T\\\\, g)\\\\big)Ubig(S,;mathrmclipc​,(PT​,g)big), where the gradient ginmathbbRdg \\\\in \\\\mathbb{R}^dginmathbbRd is computed as follows. Unfolding the tiled gradient: with \\\\mathrm{val}, \\\\mathrm{direct}, \\\\mathrm{shared}, h\' the data fields of the certificate at (k,S)(k, S)(k,S), an accumulator (A,C)inmathbbRdtimesmathbbRm(A, C) \\\\in \\\\mathbb{R}^d \\\\times \\\\mathbb{R}^m(A,C)inmathbbRdtimesmathbbRm is built by traversing the tile list mathfrakBk\\\\mathfrak{B}_kmathfrakBk​ from left to right starting from (0,0)(0,0)(0,0), each tile BBB adding\n

A;mathrel+=;sumiinBalphai(k),mathrmdirect(i),qquadC;mathrel+=;sumiinBalphai(k),mathrmshared(i)A \\\\;\\\\mathrel{+}=\\\\; \\\\sum_{i \\\\in B} \\\\alpha^{(k)}_i \\\\,\\\\mathrm{direct}(i), \\\\qquad C \\\\;\\\\mathrel{+}=\\\\; \\\\sum_{i \\\\in B} \\\\alpha^{(k)}_i \\\\,\\\\mathrm{shared}(i)A;mathrel+=;sumiinB​alphai(k)​,mathrmdirect(i),qquadC;mathrel+=;sumiinB​alphai(k)​,mathrmshared(i)

\n(the same fold also maintains a running scalar loss sumiinBalphai(k),mathrmval(i)\\\\sum_{i\\\\in B}\\\\alpha^{(k)}_i\\\\,\\\\mathrm{val}(i)sumiinB​alphai(k)​,mathrmval(i) per tile, which the gradient does not read), and then\n

g;=;A;+;(h)ˊTC,g \\\\;=\\\\; A \\\\;+\\\\; (h\')^{T} C,g;=;A;+;(h)ˊ​TC,

\n(h)ˊT(h\')^{T}(h)ˊ​T denoting the adjoint of the shared-derivative certificate h\'. Next, PTP_TPT​ is the coordinate projection keeping gjg_jgj​ for jinTj \\\\in TjinT and zeroing gjg_jgj​ for jnotinTj \\\\notin TjnotinT; finally mathrmclipc\\\\mathrm{clip}_cmathrmclipc​ is\n

\\\\mathrm{clip}_c(g) = \\\\begin{cases} g, & \\\\lVert g\\\\rVert \\\\le c,\\\\\\\\[2pt] \\\\dfrac{c}{\\\\lVert g\\\\rVert}\\\\, g, & \\\\lVert g\\\\rVert > c.\\\\end{cases}

\nThe optimizer UUU is applied exactly once, to the pre-update state SSS and the processed gradient; a single certificate, at the point S.wS.wS.w, supplies every tile's data. The definition imposes no relation between the tile lists mathfrakBk\\\\mathfrak{B}_kmathfrakBk​ and the frame's occurrence set IkI_kIk​: tiles may be empty, overlap, repeat (a repeated tile contributes twice), or contain indices outside IkI_kIk​, and the certificate data are only certified on IkI_kIk​ while the sums run over the tiles as given; an empty tile list yields g=0g = 0g=0. The clipping is total for every real ccc (real division satisfies x/0=0x/0 = 0x/0=0); note c=0c = 0c=0 sends every ggg to 000, and negative ccc makes the branch condition fail for every ggg, producing (c/lVertgrVert),g(c/\\\\lVert g\\\\rVert)\\\\,g(c/lVertgrVert),g — a vector of norm ∣c∣|c|∣c∣ pointing opposite to ggg (and 000 when g=0g = 0g=0). Note also that supplying the certificate oracle at all states SSS entails, through the unconditional hh field, differentiability of each hkh_khk​ at every parameter vector winmathbbRdw \\\\in \\\\mathbb{R}^dwinmathbbRd.\n\n**monoRun.** For all d,minmathbbNd, m \\\\in \\\\mathbb{N}d,minmathbbN and every type iota\\\\iotaiota (no decidable-equality assumption here), given a frame schedule xi=(xik)k\\\\xi = (\\\\xi_k)_kxi=(xik​)k​, a finite trainable-coordinate set Tsubseteq0,dots,d−1T \\\\subseteq \\\\{0,\\\\dots,d-1\\\\}Tsubseteq0,dots,d−1, a real clipping radius ccc, and an optimizer UUU, this defines the one-step transition sending the state SSS at logical step kkk to\n

UBig(S,;mathrmclipcbig(PT,(mathrmmonoGrad(xik,S.w))big)Big),U\\\\Big(S,\\\\; \\\\mathrm{clip}_c\\\\big(P_T\\\\,(\\\\mathrm{monoGrad}(\\\\xi_k, S.w))\\\\big)\\\\Big),UBig(S,;mathrmclipc​big(PT​,(mathrmmonoGrad(xik​,S.w))big)Big),

\nthat is: the monolithic gradient of LxikL_{\\\\xi_k}Lxik​​ at the current parameters S.wS.wS.w (zero by convention wherever LxikL_{\\\\xi_k}Lxik​​ is not differentiable there), followed by the same coordinate projection PTP_TPT​ and the same clipping mathrmclipc\\\\mathrm{clip}_cmathrmclipc​ as in tiledRun, then a single application of UUU. No certificates, tiles, or differentiability hypotheses are involved; the definition is total for every schedule.\n\n**runFrom.** For an arbitrary type sigma\\\\sigmasigma (implicit) and an arbitrary step function mathrmstep:sigmatomathbbNtosigma\\\\mathrm{step} : \\\\sigma \\\\to \\\\mathbb{N} \\\\to \\\\sigmamathrmstep:sigmatomathbbNtosigma (a map taking a state and a natural step index to a new state), this defines a function mathbbNtosigmatosigma\\\\mathbb{N} \\\\to \\\\sigma \\\\to \\\\sigmamathbbNtosigmatosigma by recursion on the number of steps:\n\n- mathrmrunFrom;mathrmstep;0;S=S\\\\mathrm{runFrom}\\\\; \\\\mathrm{step}\\\\; 0\\\\; S = SmathrmrunFrom;mathrmstep;0;S=S;\n- mathrmrunFrom;mathrmstep;(n+1);S=mathrmrunFrom;mathrmstep;n;big(mathrmstep;S;nbig)\\\\mathrm{runFrom}\\\\; \\\\mathrm{step}\\\\; (n+1)\\\\; S = \\\\mathrm{runFrom}\\\\; \\\\mathrm{step}\\\\; n\\\\; \\\\big(\\\\mathrm{step}\\\\; S\\\\; n\\\\big)mathrmrunFrom;mathrmstep;(n+1);S=mathrmrunFrom;mathrmstep;n;big(mathrmstep;S;nbig).\n\nThus mathrmrunFrom;mathrmstep;n;S\\\\mathrm{runFrom}\\\\; \\\\mathrm{step}\\\\; n\\\\; SmathrmrunFrom;mathrmstep;n;S applies mathrmstep\\\\mathrm{step}mathrmstep exactly nnn times, the applications receiving the step indices n−1,n−2,dots,1,0n-1, n-2, \\\\dots, 1, 0n−1,n−2,dots,1,0 in that order:\n

mathrmrunFrom;mathrmstep;n;S;=;mathrmstepbig(dotsmathrmstepbig(mathrmstep(S,,n−1),,n−2big)dots,,0big).\\\\mathrm{runFrom}\\\\; \\\\mathrm{step}\\\\; n\\\\; S \\\\;=\\\\; \\\\mathrm{step}\\\\big(\\\\dots \\\\mathrm{step}\\\\big(\\\\mathrm{step}(S,\\\\, n-1),\\\\, n-2\\\\big) \\\\dots,\\\\, 0\\\\big).mathrmrunFrom;mathrmstep;n;S;=;mathrmstepbig(dotsmathrmstepbig(mathrmstep(S,,n−1),,n−2big)dots,,0big).

\nAt n=0n = 0n=0 the state is returned unchanged. The definition is generic in sigma\\\\sigmasigma; it is not tied to training states, frames, or any particular step function."\n}', 'startLine': 1, 'lineNumbers': [1, 2, 3, 4]}, 'meta': {'source': {'type': 'internal', 'value': 'agent://RB2-VathekState'}}}}

Human review
  • Endorsed by Shuze Chen · Sep 25, 2026

  • Endorsed by ajax · Sep 25, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me