Descent at TRAINED weights #
REDUCED CERTIFICATE MODEL — this file's concrete net is the 4×4-pooled 49-dim
MNIST family (width-8 hidden, /128–/256 rational weights), NOT the canonical
784→512→512→10 mlpVerified; chosen so every margin/norm/SOS check is exact rational
arithmetic in-kernel. Canonical surface: Proofs/MlpCanonical.lean.
binary32_linear_sgd_descends_concrete (Float/Binary32Instance.lean) holds only at
the degenerate W = 0 net — a satisfiability witness. This file gives a trained
instance: one SGD step with the FloatModel binary32 gradient on a TRAINED,
/128-rationalized bias-free 49→10 pooled-MNIST linear classifier (test acc
0.874) decreases the real cross-entropy loss of one example, MNIST test
image #8, with learning rate 1/8192. The update is taken in ℝ and the
exp is exact (fexp := Real.exp, eexp := 0); the rounding model is the
CONSTRUCTED rndP 23 grid (binary32), not an assumed one.
The trick that closes the descent window with zero exp evaluations: the
witness sample is MISCLASSIFIED (true label 5, predicted 6), so
z_5 ≤ z_6 is an exact rational inequality (hz_lbl_le) and
exp-monotonicity alone gives softmax_5 ≤ 1/2 (sm_lbl_le_half) —
whence the two gradient sums the window needs are bracketed by rationals:
Σ|∇| ≤ 2·Σxᵢ (gradL1_le, softmax sums to 1) and Σ∇² ≥ (Σxᵢ²)/4
(gradSq_lower). The float-forward drift hδ is the proven
dense_close_fresh budget evaluated exactly per class column (norm_num
computes the exact (1+2⁻²⁴)⁵¹); the exp(2δ)−1 term inside cotErr is
bounded by the γ-form exp_sub_one_le. Every hypothesis of
linear_float_sgd_descends is discharged — nothing assumed.
Being misclassified also makes the guaranteed drop STRICTLY positive
(trained_linear_sgd_strictly_descends): the loss drops by ≥ lr·(Σxᵢ²)/8
≈ 6.93e-05. Generated by scripts/certs/trained_linear_descent.py;
weights/input are DATA.
Trained linear weights (input×class, entries k/128), test acc 0.874.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
MNIST test image #8 (digit 5), 4×4-pooled exact pixel sums.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
Instances For
Σᵢ xᵢ exactly (all coordinates nonneg).
The gradient-oracle budget η = mulErr u32 1 1 0 (cotErr u32 0 δ 10),
bounded by ((81 : ℝ)/1000000) — the exp(2δ)−1 term via the γ-form.
Descent at TRAINED weights. One SGD step with the FloatModel binary32 gradient (lr = ((1 : ℝ)/8192)) on
the trained linear classifier, at the misclassified witness, decreases
the real cross-entropy by ≥ lr·‖∇L‖²/2 — every hypothesis of
linear_float_sgd_descends discharged at exact exp (fexp := Real.exp,
eexp := 0), the update taken in ℝ, the rounding model constructed
(rndP 23). A trained-weight peer of binary32_linear_sgd_descends_concrete,
which holds only at W = 0.
The drop is strictly positive: the witness is misclassified, so
Σ∇² ≥ ((1511461 : ℝ)/332928)/4 > 0 and the loss strictly decreases.