Existence of a common extremizer attaining the portfolio value
ProvedFullFormalization.exists_extremizerrational-momentum-nag
For every and every predetermined finite query list there is a unit vector , the hidden direction of Lemma 24.1, such that the five-algorithm portfolio loss on the common extremal function equals exactly:
Here is the lifted Huber function of (25.3) built from , the normalised loss is with and , the five output points are supplied by the portfolio's output map, and is the source's target constant. Combined with the universal upper bound of (22.1), this yields .
Preamble
-- Generated from F:/20261008/FullFormalization\FullFormalization\CommonExtremizer.lean (Phase 3): skeleton subtraction, proof cut at
-- valStart (Stage 2), docstring stripped, declaration hoisted to top
-- level with its fully dotted name; body is `:= by sorry`.
/-
FullFormalization.CommonExtremizer
Source: `auditable_full_proof_nag_and_five_algorithm_cn.md`, sections 27-31:
the common extremizer that gives the lower bound of Theorem B.
The setting is section 23: `L = 1`, `R = 1`, `x_init = 0`, and the ambient
space is `EuclideanSpace ℝ (Fin D)` with `D = 2N+1`. Section 24 produces the
unit *hidden direction* `u` (first `N` coordinates zero, orthogonal to every
predetermined random-search query), and sections 25-26 build the extremal
function
f_N(z) = H_c(⟪u,z⟫ - 1) + (1/2)‖z - ⟪u,z⟫ u‖², c = 1/(2 d_N + 1),
which is convex, differentiable, globally 1-smooth, with unique minimiser `u`
and `f_N(u) = 0` (`LiftedHuber.lean`). This file runs the five strategies on
that one function:
* (27) the rational-NAG iterates are `x_k = d_k c u` for `k ≤ N`, all in the
Huber linear region `⟪u,x_k⟫ = d_k c ≤ d_N c < 1 - c`, and
`q_{NAG,N}(f_N) = 1/(2(2 d_N+1)) = tau_N` — the *upper* bound is attained;
* (28) GD with step `1/L = 1` outputs `N c u`, and
`q_{GD,N} - tau_N = (d_N - N)/(2 d_N+1)² ≥ 0`; half-GD outputs `(Nc/2) u`
with `q_{halfGD,N} - tau_N = (d_N - N/2)/(2 d_N+1)² ≥ 0`;
* (29) every fixed-seed query lies in `u^⊥`, so `f_N(q_i) = B_N + ½‖q_i‖² ≥ B_N`;
the output is one of the queries, so `q_{rand,N} ≥ B_N > tau_N`;
* (30) every grid-then-refine query touches only the first `N` coordinates,
hence lies in `u^⊥`; `f_N(z) = B_N + ½‖z‖²` there, so the origin stays the
incumbent through both phases — the decision logic is *proved*, not assumed —
and `q_{grid,N} = B_N > tau_N`;
* (31) the minimum of the five losses is therefore exactly `tau_N`: the
portfolio value coincides with the NAG value on this single function.
Everything is proved for an arbitrary unit `u` with vanishing first `N`
coordinates and an arbitrary orthogonal query list, so the construction is
uniform in `u`; `exists_extremizer` then produces such a `u` from
`HiddenDirection.exists_unit_hidden_direction`, and `theoremB_sup_eq_tau`
turns the result into the `sup = tau_N` statement given the universal upper
bound of section 22 as a hypothesis.
Nothing is postulated: no `sorry`, `admit`, `axiom` or `unsafe`.
-/
import Mathlib
import Mathlib.Analysis.Calculus.Deriv.MeanValue
import Mathlib.Analysis.Convex.Deriv
import Mathlib.Analysis.InnerProductSpace.Dual
import Definitions.Def_Certificate
import Definitions.Def_Coefficients
import Definitions.Def_CommonExtremizer
import Definitions.Def_FunctionClass
import Definitions.Def_GradientStrategies
import Definitions.Def_GridRefine
import Definitions.Def_HiddenDirection
import Definitions.Def_LiftedHuber
import Definitions.Def_PortfolioDefinitions
import Definitions.Def_RandomSearch
import Definitions.Def_RationalNAG
import Theorems.Thm_FullFormalization_BN_sub_tau
import Theorems.Thm_FullFormalization_BN_sub_tau_pos
import Theorems.Thm_FullFormalization_GD_out_eq
import Theorems.Thm_FullFormalization_GD_point_succ
import Theorems.Thm_FullFormalization_GD_point_zero
import Theorems.Thm_FullFormalization_GD_step_eq
import Theorems.Thm_FullFormalization_Hc_of_abs_le
import Theorems.Thm_FullFormalization_Hc_of_le_abs
import Theorems.Thm_FullFormalization_Hc_zero
import Theorems.Thm_FullFormalization_RandomSearch_ofFn_eq_nil_iff
import Theorems.Thm_FullFormalization_RandomSearch_out_eq_of_run
import Theorems.Thm_FullFormalization_RandomSearch_out_mem
import Theorems.Thm_FullFormalization_RandomSearch_run_eq_none_iff
import Theorems.Thm_FullFormalization_RandomSearch_run_eq_some_of_pos
import Theorems.Thm_FullFormalization_SNOf_le
import Theorems.Thm_FullFormalization_SN_le
import Theorems.Thm_FullFormalization_axisVecOf_apply
import Theorems.Thm_FullFormalization_axisVecOf_apply_eq_zero
import Theorems.Thm_FullFormalization_axisVecOf_of_lt
import Theorems.Thm_FullFormalization_axisVec_apply
import Theorems.Thm_FullFormalization_bestOf_cons
import Theorems.Thm_FullFormalization_bestOf_eq_none_iff
import Theorems.Thm_FullFormalization_bestOf_mem
import Theorems.Thm_FullFormalization_clip_eq_max
import Theorems.Thm_FullFormalization_clip_le_left
import Theorems.Thm_FullFormalization_clip_neg
import Theorems.Thm_FullFormalization_clip_pos
import Theorems.Thm_FullFormalization_clip_self
import Theorems.Thm_FullFormalization_d_mono
import Theorems.Thm_FullFormalization_d_mul_c_le
import Theorems.Thm_FullFormalization_d_nonneg
import Theorems.Thm_FullFormalization_d_one
import Theorems.Thm_FullFormalization_d_sub_half_nat
import Theorems.Thm_FullFormalization_d_sub_nat
import Theorems.Thm_FullFormalization_d_succ_eq_nagE
import Theorems.Thm_FullFormalization_d_succ_sub
import Theorems.Thm_FullFormalization_d_zero
import Theorems.Thm_FullFormalization_descentPoint_succ
import Theorems.Thm_FullFormalization_exists_hidden_direction
import Theorems.Thm_FullFormalization_exists_nonzero_orthogonal_of_finrank_succ
import Theorems.Thm_FullFormalization_exists_unit_hidden_direction
import Theorems.Thm_FullFormalization_finrank_vanishingFirstBlock
import Theorems.Thm_FullFormalization_firstBlockProj_surjective
import Theorems.Thm_FullFormalization_foldl_bestStep_mem
import Theorems.Thm_FullFormalization_foldl_bestStep_some
import Theorems.Thm_FullFormalization_foldl_incumbent_zero
import Theorems.Thm_FullFormalization_gd_loss_ge
import Theorems.Thm_FullFormalization_gd_loss_sub
import Theorems.Thm_FullFormalization_gd_out
import Theorems.Thm_FullFormalization_gd_trajectory
import Theorems.Thm_FullFormalization_gradient_liftedHuberWith
import Theorems.Thm_FullFormalization_gradient_liftedHuberWith_line
import Theorems.Thm_FullFormalization_gradient_liftedHuber_line
import Theorems.Thm_FullFormalization_grid_loss_eq
import Theorems.Thm_FullFormalization_grid_out_eq_zero
import Theorems.Thm_FullFormalization_halfGD_out_eq
import Theorems.Thm_FullFormalization_halfGD_point_step_eq
import Theorems.Thm_FullFormalization_halfGD_point_succ
import Theorems.Thm_FullFormalization_halfGD_point_zero
import Theorems.Thm_FullFormalization_halfGD_step_eq
import Theorems.Thm_FullFormalization_halfgd_loss_ge
import Theorems.Thm_FullFormalization_halfgd_loss_sub
import Theorems.Thm_FullFormalization_halfgd_out
import Theorems.Thm_FullFormalization_halfgd_trajectory
import Theorems.Thm_FullFormalization_hasDerivAt_Hc
import Theorems.Thm_FullFormalization_hasFDerivAt_Hc_inner
import Theorems.Thm_FullFormalization_hasFDerivAt_half_norm_sq
import Theorems.Thm_FullFormalization_hasFDerivAt_liftedHuberWith
import Theorems.Thm_FullFormalization_hasFDerivAt_orthProj
import Theorems.Thm_FullFormalization_hasFirstSupport_probeAt
import Theorems.Thm_FullFormalization_hasFirstSupport_refineCandidate
import Theorems.Thm_FullFormalization_hasFirstSupport_zero
import Theorems.Thm_FullFormalization_inner_eq_zero_of_hasFirstSupport
import Theorems.Thm_FullFormalization_inner_orthProj
import Theorems.Thm_FullFormalization_inner_orthProj_left
import Theorems.Thm_FullFormalization_inner_u_self
import Theorems.Thm_FullFormalization_le_SN
import Theorems.Thm_FullFormalization_le_SNOf
import Theorems.Thm_FullFormalization_le_d
import Theorems.Thm_FullFormalization_le_gridDim
import Theorems.Thm_FullFormalization_liftedHuberWith_line
import Theorems.Thm_FullFormalization_liftedHuberWith_self
import Theorems.Thm_FullFormalization_liftedHuber_c_le_one
import Theorems.Thm_FullFormalization_liftedHuber_c_pos
import Theorems.Thm_FullFormalization_liftedHuber_eq
import Theorems.Thm_FullFormalization_liftedHuber_eq_BN_of_hasFirstSupport
import Theorems.Thm_FullFormalization_liftedHuber_eq_BN_of_inner_zero
import Theorems.Thm_FullFormalization_liftedHuber_ge_BN_of_inner_zero
import Theorems.Thm_FullFormalization_liftedHuber_line
import Theorems.Thm_FullFormalization_liftedHuber_self
import Theorems.Thm_FullFormalization_liftedHuber_zero
import Theorems.Thm_FullFormalization_liftedHuber_zero_le_of_hasFirstSupport
import Theorems.Thm_FullFormalization_lt_gridDim
import Theorems.Thm_FullFormalization_mom_eq
import Theorems.Thm_FullFormalization_mom_zero
import Theorems.Thm_FullFormalization_nagE_succ
import Theorems.Thm_FullFormalization_nagE_zero
import Theorems.Thm_FullFormalization_nagX_succ
import Theorems.Thm_FullFormalization_nagX_zero
import Theorems.Thm_FullFormalization_nagY_succ
import Theorems.Thm_FullFormalization_nagY_zero
import Theorems.Thm_FullFormalization_nag_loss
import Theorems.Thm_FullFormalization_nag_output
import Theorems.Thm_FullFormalization_nag_trajectory
import Theorems.Thm_FullFormalization_nat_mul_c_le
import Theorems.Thm_FullFormalization_norm_normalizeVec
import Theorems.Thm_FullFormalization_openBest_eq_zero
import Theorems.Thm_FullFormalization_openQueries_support
import Theorems.Thm_FullFormalization_opening_le_half
import Theorems.Thm_FullFormalization_oracleOf_gradient
import Theorems.Thm_FullFormalization_orthProjL_apply
import Theorems.Thm_FullFormalization_portfolioOutput_gd
import Theorems.Thm_FullFormalization_portfolioOutput_grid
import Theorems.Thm_FullFormalization_portfolioOutput_halfGD
import Theorems.Thm_FullFormalization_portfolioOutput_nag
import Theorems.Thm_FullFormalization_portfolioOutput_rand
import Theorems.Thm_FullFormalization_portfolio_extremizer_value
import Theorems.Thm_FullFormalization_probeAt_apply_eq_zero
import Theorems.Thm_FullFormalization_probeAt_apply_eq_zero_of_opening
import Theorems.Thm_FullFormalization_probeAt_of_ne_zero
import Theorems.Thm_FullFormalization_probeAt_zero
import Theorems.Thm_FullFormalization_probeAxis_lt_of_ne_zero_of_lt_opening
import Theorems.Thm_FullFormalization_qLoss_extremizer
import Theorems.Thm_FullFormalization_rand_loss_ge
import Theorems.Thm_FullFormalization_rand_out_value_ge
import Theorems.Thm_FullFormalization_rand_query_ge
import Theorems.Thm_FullFormalization_refineAxis_eq_of_lt
import Theorems.Thm_FullFormalization_refineCandidate_apply_of_ge
import Theorems.Thm_FullFormalization_refineLoop_succ
import Theorems.Thm_FullFormalization_refineLoop_zero_incumbent
import Theorems.Thm_FullFormalization_tau_eq_inv
import Theorems.Thm_FullFormalization_two_d_add_one
import Theorems.Thm_FullFormalization_two_d_add_one_pos
import Theorems.Thm_FullFormalization_u_apply_eq_zero_of_lt
import Theorems.Thm_FullFormalization_value_zero_le
open scoped Gradient RealInnerProductSpace Topology
open Set
set_option linter.unusedSectionVars false
namespace FullFormalization
noncomputable section
/-! ### Scalars: the cutoff `c = 1/(2 d_N+1)` and the value `B_N` -/
/-! ### The value of `f_N` on vectors orthogonal to `u`
`LiftedHuber.liftedHuber_eq` gives `f_N(z) = H_c(⟪u,z⟫-1) + ½‖z - ⟪u,z⟫u‖²`;
on `u^⊥` the first term is the constant `H_c(-1) = c - c²/2 = B_N` (26.5)-(26.6)
and the second is `½‖z‖²`. -/
/-! ### The hidden direction and the first-coordinate support
`HiddenDirection.exists_unit_hidden_direction` supplies `u` with `‖u‖ = 1`,
`u j = 0` for every coordinate `j` with `j < N`, and `⟪u, q i⟫ = 0` for every
predetermined query. Vectors whose coordinates `≥ N` vanish are exactly the
vectors of the source's "first `N` coordinate directions", and they are all
orthogonal to `u`. -/
/-! ### Section 27: the NAG trajectory on the extremizer -/
/-! ### Section 28: the two gradient-descent strategies -/
/-! ### Section 29: fixed-seed random search -/
/-! ### Section 30: grid-then-refine -/
/-! ### Section 31: the five algorithms combined -/
end
end FullFormalization
open FullFormalization
open scoped Gradient RealInnerProductSpace Topology
open Set
set_option linter.unusedSectionVars false
Formal statement
theorem FullFormalization.exists_extremizer (N : ℕ) (hN : 1 ≤ N) (q : Fin N → GridSpace N) :
∃ u : GridSpace N, ‖u‖ = 1 ∧
SNOf 1 1 (liftedHuber u N) (liftedHuber u N u) (portfolioOutput N u q hN) = tau N := by sorrySource
《有理动量 Nesterov 紧界与半径归一化五算法共同最坏情形 — 可审计完整证明稿》 (manuscript, 2026-10-08), §31, eq. (31.1), with (27.2), (28.1)–(28.2), (30.2); Lean: FullFormalization.CommonExtremizer lines 778–786