Stage 9: actual finite-data OGM-G execution #
This module implements the literal deterministic recursion from TeX Lemma
lem:ogmg. It contains no convergence conclusion and no algebraic
certificate: its only job is to expose the actual queried data, the complete
ordered-pair interpolation checks, and the final descent query.
The phase-B trace deliberately omits u₀ = U, which is reused from Phase A,
and contains exactly the newly queried points u₁, …, uₙ, vₙ.
Data fixed before running the finite OGM-G phase. The coefficient function is kept explicit here so the execution algebra can also be reused by the coefficient auditor; the source run below instantiates it by the frozen backward theta sequence.
- horizon : ℕ
The number of iterations in the OGM-G execution.
- oracle : PairOracle d
The value-gradient oracle queried by the execution.
- M : ℝ
The smoothness estimate used to scale the gradient steps.
- U : Vec d
The starting point of the OGM-G execution.
The momentum coefficient sequence supplied to the execution.
Instances For
The source-exact configuration: no theta sequence is supplied by the
caller; it is the frozen special-zero/backward-tail sequence for horizon n.
Equations
- O3.stage9ExecutionConfig n oracle M U = { horizon := n, oracle := oracle, M := M, U := U, theta := O3.stage9Theta n }
Instances For
At the beginning of iteration i, current is u_i and previousV is
v_(i-1). Thus the initial previous point is literally v_(-1)=U.
- current : Vec d
The current query point
u_iat the beginning of an iteration. - previousV : Vec d
The previous gradient-step point
v_(i-1), initialized at the starting point.
Instances For
One literal source step.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Primitive-recursive actual execution, beginning from
u_0=U, v_(-1)=U.
Equations
- O3.ogmgState cfg 0 = { current := cfg.U, previousV := cfg.U }
- O3.ogmgState cfg i.succ = O3.ogmgExecutionStep cfg i (O3.ogmgState cfg i)
Instances For
The actual observation at u_i.
Equations
- O3.ogmgObservation cfg i = cfg.oracle.observe (O3.ogmgState cfg i).current
Instances For
The actual queried gradient g_i.
Equations
- O3.ogmgGradient cfg i = (O3.ogmgObservation cfg i).gradient
Instances For
The literal gradient point v_i=u_i-g_i/M.
Equations
- O3.ogmgV cfg i = (O3.ogmgState cfg i).current - cfg.M⁻¹ • O3.ogmgGradient cfg i
Instances For
The actual source recurrence with its coefficients unchanged.
The recurrence specialized to the non-user-supplied, source-exact theta coefficients.
The actual iterate recursion produces the precise velocity identity used
by the frozen quadratic telescoping proof. This is proved for every natural
index, hence in particular at the terminal endpoint i=n; no extrapolated
iterate hypothesis is introduced.
Source-exact specialization of the velocity identity.
For every positive index the stored predecessor is the actual preceding gradient point.
The n new iterate queries u_1,…,u_n, indexed without a phantom query.
Equations
- O3.ogmgNewIterates cfg i = (O3.ogmgState cfg (↑i + 1)).current
Instances For
The final extra query is at exactly v_n.
Instances For
Phase-B calls only: u_1,…,u_n,v_n.
Equations
- O3.ogmgExecutionTrace cfg = O3.finiteDataOGMGTrace cfg.oracle (O3.ogmgNewIterates cfg) (O3.ogmgV cfg cfg.horizon)
Instances For
The additional terminal point v_n is genuinely queried.
For a nonzero horizon, u_n is one of the newly queried iterates.
The reused point u₀=U and every subsequently queried u_i, including
u_n, as an actual oracle observation.
Equations
- O3.ogmgDataObservation cfg i = O3.ogmgObservation cfg ↑i
Instances For
Scalar/vector projections of the actual finite data, ready for the algebraic certificate. These are definitions, not freely supplied arrays.
Equations
- O3.ogmgFunctionValue cfg i = (O3.ogmgObservation cfg i).value
Instances For
The squared Euclidean norm of the gradient at an execution query.
Equations
- O3.ogmgGradientSq cfg i = O3.lpNorm 2 (O3.ogmgGradient cfg i) ^ 2
Instances For
The gradient at query j paired with the difference of gradient-step points i and j.
Equations
- O3.ogmgPairTerm cfg i j = O3.pairing (O3.ogmgGradient cfg j) (O3.ogmgV cfg i - O3.ogmgV cfg j)
Instances For
The observable ordered interpolation check for (i,j).
Equations
- One or more equations did not get rendered due to their size.
Instances For
A concrete list containing all (n+1)^2 ordered interpolation checks.
Equations
- One or more equations did not get rendered due to their size.
Instances For
All ordered-pair finite-data interpolation guards pass.
Equations
Instances For
The source terminal guard is the actual upper-model check at the extra
query v_n.
Equations
- One or more equations did not get rendered due to their size.
Instances For
With M>0, the actual queried upper-model check at v_n=u_n-g_n/M
is exactly the terminal descent inequality printed in the source.
All Stage-9 observable guards, without any algebraic certificate field.