Alphabeta Math
Pipeline-generated
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

✓ 3 results · all verified · 1 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 2 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Nonlinear conjugate gradient methods — Examples

1 · Prerequisites

2 · Summary

The examples verify one accepted Rosenbrock step for both FR and PR+, exhibit an exact strong-Wolfe step after which the raw PR+ candidate ascends and the safeguard restores steepest descent, and trace exact-line FR/linear-CG agreement on a two-dimensional SPD quadratic.

3 · Logical flowchart

4 · Definitions, theorems and proofs

None yet.

5 · Examples, counterexamples and false statements

ExampleConstruction: AI-generatedVerification: AI-generatedprecheck passOpen item page →

One accepted Rosenbrock step gives different FR and PR+ coefficients

Example

For the Rosenbrock function f(x,y)=(1−x)2+100(y−x2)2, take x0=(−6/5,1) and d0=−g0. With c1=1/1000, c2=49/100, bounded search budgets E≥1, Z≥10, and outer budget K≥2, the first accepted step is t0=1/1024. Its FR and PR+ coefficients differ. The PR+ candidate ascends, so the safeguarded method restarts; for definiteness take σ=1/2 and C=2.

Facts & Assumptions

Given: The function, start and parameters in the Example, with exact arithmetic.

[F1]

Fletcher–Reeves and safeguarded Polak–Ribière nonlinear conjugate gradients: d0=−g0; FR uses β0FR=∥g1∥22/∥g0∥22, whereas the PR+ candidate uses β0PR+=max⁡{0,g1T(g1−g0)/∥g0∥22}; a failed descent or norm test resets it to −g1.

[F2]

Wolfe and strong Wolfe line-search conditions: strong Wolfe requires Armijo decrease and ∣ϕ′(t)∣≤c2∣ϕ′(0)∣.

[F3]

Finite-budget bracketing and zoom for a strong Wolfe step: the first expansion trial is 1; an Armijo failure calls zoom with endpoints (0,1), whose midpoint trials halve the positive endpoint while the same failure persists.

Verification

Given: The objective, initial point and budgets of the Example.

1.1givenF1algebra

Differentiation gives g0=(−1078/5,−88), d0=(1078/5,88), f(x0)=121/5, and ϕ′(0)=−G0 with G0=1,355,684/25=54,227.36. At a parameter t, write u=−6/5+(1078/5)t, v=1+88t, and r=v−u2. Then ϕ(t)=(1−u)2+100r2 and ϕ′(t)=(−400ur+2(u−1))(1078/5)+200r(88).

2.1givenF3step 1.1algebra

Exact substitution into step 1.1 gives integer lower bounds for ϕ(2−j), in order j=0,…,9: 210482437168, 12810991198, 758614013, 42388850, 2078788, 72456, 543, 211, 149, and 35. Each lower bound exceeds 121/5, whereas every positive-trial Armijo right side is below 121/5. Thus the initial trial fails Armijo and the first nine zoom trials fail it as well. By [F3], a=0 remains fixed and the tenth zoom trial is t0=2−10=1/1024.

3.1givenF2F3step 1.1step 2.1algebra

At this trial, x1=(−2533/2560,139/128) and r=700711/6553600. Exactly, f(x1)=43818224127785899345920<511100,g1=(160801353941943040,70071132768),h:=g1Td0=1064039515121104857600. The Armijo right side is 121/5−G0/(1000⋅1024)>24, so Armijo holds. Also 0<h<10148<26571<(49/100)G0=26571.4064, so strong curvature holds. The search therefore returns this tenth midpoint.

4.1givenF1step 3.1algebra

Put G1=∥g1∥22=3390155233212910921/1759218604441600. Because g0=−d0 and h>0, the coefficients are β0FR=G1/G0 and β0PR+=(G1+h)/G0>β0FR. The FR direction is −g1+(G1/G0)d0; the PR+ candidate is d1cand=−g1+((G1+h)/G0)d0. Exact values in step 3.1 give 1927<G1<1928, 10147<h<10148, and 54227<G0<54228. Hence g1Td1cand=−G1+(G1+h)hG0>−1928+(1927+10147)1014754228>331>0. It fails the descent safeguard for every σ>0. Thus the actual selected PR+ direction is d1=−g1 and its restart flag is true; the ascending candidate is not the selected direction.

5.1givenF1F2step 1.1algebra∎

For comparison, the originally displayed trial t^=1/1000 is also a mathematically valid strong Wolfe step, but is not an output of this dyadic search. It gives x^=(−2461/2500,136/125), r^=743479/6250000, f(x^)=5.35291158000896, g^=(42.8715665664,23.791328), and h^=g^Td0=11336.74661571584. Its Armijo bound is 24.14577264 and ∣h^∣<11400<26571.4064, verifying both inequalities directly. With G^=∥g^∥22, its distinct coefficients are G^/G0 and (G^+h^)/G0; these describe the hypothetical accepted update at t^, rather than the actual bounded-search trace above.

CounterexampleConstruction: AI-generatedVerification: AI-generatedprecheck passOpen item page →

A strong Wolfe step can leave PR+ ascending; the safeguard restarts

Statement refuted

After every strong Wolfe step with a nonzero new gradient, the raw PR+ candidate direction is a descent direction.

Facts & Assumptions

Given: The raw PR+ coefficient and safeguard in Fletcher–Reeves and safeguarded Polak–Ribière nonlinear conjugate gradients and the strong Wolfe conditions of Wolfe and strong Wolfe line-search conditions.

[F1]

Fletcher–Reeves and safeguarded Polak–Ribière nonlinear conjugate gradients: βPR+=max⁡{0,g1T(g1−g0)/∥g0∥22} and d1cand=−g1+βPR+d0.

[F3]

Fletcher–Reeves and safeguarded Polak–Ribière nonlinear conjugate gradients: if the descent or norm safeguard test fails, the procedure resets to d1=−g1.

[F2]

Wolfe and strong Wolfe line-search conditions: a strong Wolfe step satisfies ϕ(t)≤ϕ(0)+c1tϕ′(0) and ∣ϕ′(t)∣≤c2∣ϕ′(0)∣.

Counterexample

Let H=(7/5−1/10−1/101),f(x)=12xTHx+x1. Start at x0=(0,0) with c1=1/100 and c2=49/100.

1.1givenalgebra

For every u≠0, uTHu=75(u1−114u2)2+139140u22>0. Thus H is positive definite. Also g0=(1,0) and d0=−g0=(−1,0).

2.1givenF2step 1.1algebra

Take t0=1. Then x1=(−1,0), f(x0)=0, f(x1)=−3/10, and g1=Hx1+(1,0)=(−2/5,1/10). The initial directional derivative is ϕ′(0)=−1 and the new one is g1Td0=2/5. Hence f(x1)=−3/10≤−1/100=f(x0)+c1t0ϕ′(0),∣g1Td0∣=2/5≤49/100. This is a strong Wolfe step.

3.1F1step 2.1algebra

Since g1−g0=(−7/5,1/10), βPR+=g1T(g1−g0)∥g0∥22=1425+1100=57100. Thus d1cand=−g1+βPR+d0=(−17/100,−1/10) and g1Td1cand=29500>0. The raw PR+ candidate is an ascent direction, refuting the statement.

4.1F3step 3.1algebra∎

For the safeguarded variant choose σ=1/2 and C=2. Since ∥g1∥22=17/100, we have 29500>−12∥g1∥22=−17200, so the descent test triggers a restart. The norm test alone would not: ∥d1cand∥22=389/10000<4∥g1∥22. The new direction d1=−g1 has g1Td1=−17/100<0 and cos⁡θ1=1.

ExampleConstruction: AI-generatedVerification: AI-generatedprecheck passjudge pass (gpt-6-luna)Open item page →

A two-dimensional SPD quadratic gives the same FR and linear-CG trace

Example

Take A=diag⁡(1,2), b=(1,1), and f(x)=12xTAx−bTx,x0=(0,0). Use exact-SPD-quadratic mode with outer budget K≥2 and c1=1/10, c2=1/4. An exact-line-search FR run reaches the solution in two steps, with the same directions and steps as linear CG.

Facts & Assumptions

Given: The quadratic, start point, and exact-line-search conditions in the Example.

[F1]

FR and unrestarted PR+ match linear CG on SPD quadratics: on a real SPD quadratic in exact arithmetic, FR exact-line-search iterates, residuals and directions equal linear CG through the zero-residual exit.

[F2]

The conjugate-gradient recurrence: αk=(rkTrk)/(pkTApk), rk+1=rk−αkApk, βk=(rk+1Trk+1)/(rkTrk), and pk+1=rk+1+βkpk.

Verification

Given: A=diag⁡(1,2), b=(1,1), and x0=(0,0).

1.1givenF2algebra

The initial residual and gradient are r0=(1,1) and g0=−r0=(−1,−1), so d0=(1,1). By [F2], α0=(r0Tr0)/(d0TAd0)=2/3, giving x1=(2/3,2/3) and r1=(1/3,−1/3).

2.1F2step 1.1algebra

The next coefficient is β0=(r1Tr1)/(r0Tr0)=(2/9)/2=1/9, hence d1=r1+β0d0=(4/9,−2/9). Also d1TAd1=8/27, so α1=(2/9)/(8/27)=3/4.

3.1F1step 2.1algebra∎

Therefore x2=x1+α1d1=(1,1/2) and r2=b−Ax2=0. By [F1], the exact-line-search FR run has these same directions, step lengths, and terminal point.