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.

✓ 5 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 4 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Revised simplex linear programming and certificates — Examples

1 · Prerequisites

2 · Summary

Objective

The examples trace a one-pivot primal optimum and dual certificate, verify an exact degenerate six-pivot cycle and Bland's terminating path, exhibit a negative-cost unbounded ray, compute a positive Phase I optimum with an explicit Farkas vector, and compare a small residual with the error and gap at an ill-conditioned basis.

3 · Logical flowchart

4 · Definitions, theorems and proofs

None yet.

5 · Examples, counterexamples and false statements

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

A one-pivot primal and dual certificate trace

Example

First consider min⁡x1+2x2 subject to x1+x2=1 and x1,x2≥0. Start from basis B=(2), so x=(0,1), y=2, and cˉ1=−1. The primal ratio test pivots x1 in at θ=1; the new basis is B=(1) with x=(1,0), y=1, and cˉ2=1.

For the same A and c but right-hand side b=−1, the basis B=(1) remains dual feasible and has basic value x1=−1. The dual-simplex row has no negative nonbasic coefficient, giving a Farkas certificate.

Facts & Assumptions

Given: The exact two-variable LP data in the Example and the basis definitions and pivot results below.

[F1]

Basis dictionaries and reduced costs for revised simplex: The basic vector x(B) is defined by xB(B)=AB−1b and xj(B)=0 for j∈N; the basis is primal feasible, and x(B) is a basic feasible solution, exactly when AB−1b≥0.

[F2]

Primal revised-simplex pivot identities and certificates: At a primal-feasible basis, a nonbasic j with cˉj<0 and some positive entry of d=AB−1aj admits a feasible minimum-ratio pivot with objective change θcˉj. If all nonbasic reduced costs are nonnegative at a primal-feasible basis, its basic vector is optimal.

[F3]

Dual-simplex invariant and Farkas infeasibility certificate: At a dual-feasible basis, for a row i with xBi<0, if there is no nonbasic j with dij=(AB−1aj)i<0, then q=AB−Tei satisfies ATq≥0 and bTq<0.

Verification

1.1F1givenalgebra

With B=(2), AB=1, x2=1, and y=c2=2. Thus cˉ1=1−2=−1, so x1 is a valid entering variable.

1.2F1givenalgebra

For the changed right-hand side b=−1 and basis B=(1), x1=−1 while y=1 and cˉ2=1≥0, so the basis is dual feasible and primal infeasible. Its only nonbasic coefficient is d12=AB−1a2=1≥0.

2.1F1F2step 1.1algebra

The direction coefficient is d=AB−1a1=1 and the ratio is x2/d=1. The pivot yields x1=1,x2=0 and changes cost by 1⋅(−1)=−1, from 2 to 1.

3.1F1F2step 2.1algebra

At the new basis B=(1), y=c1=1 and cˉ2=2−1=1≥0. The vector is feasible, so [F2] proves it is optimal; the primal and dual objective values are both 1.

4.1F3step 1.2algebra∎

There is no eligible negative coefficient. The certificate from [F3] is q=1, for which ATq=(1,1)≥0 and bTq=−1<0. Thus the modified system has no nonnegative feasible vector.

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

A degenerate six-pivot cycle prevented by Bland's rule

Example

Consider the exact minimization problem with x1,…,x7≥0 and 12x1−112x2−52x3+9x4+x5=0,12x1−32x2−12x3+x4+x6=0,x1+x7=1, minimizing −10x1+57x2+9x3+24x4. Start from basis (5,6,7); exact reduced costs and ratio tests below show that the most-negative reduced-cost rule cycles, while Bland's least-index entering and leaving rules terminate.

Facts & Assumptions

Given: The exact seven-variable LP in the Example and the two pivot rules being compared.

[F1]

Primal revised simplex with Bland's rule: On exact full-row-rank standard-form data at a primal-feasible basis, choose the least index j∉B with cˉj<0 and solve ABd=aj. Among minimum-ratio rows, leave the basic variable of least index.

[F2]

Primal revised-simplex pivot identities and certificates: At a primal-feasible basis with nonbasic entering index j and cˉj<0, put d=AB−1aj. If some di>0, the step θ=min⁡di>0(xBi/di) is finite and nonnegative, every minimizing row gives a valid pivot, the new basic vector is feasible, and the objective change is θcˉj≤0. A primal-feasible basis with all nonbasic reduced costs nonnegative is optimal.

[F3]

Bland-rule finite termination and optimal-basis existence: Under its exact-arithmetic, finite-standard-form, full-row-rank hypotheses, the primal run terminates after finitely many pivots at an optimal basis or returns a feasible ray of strictly negative cost.

Verification

1.1givenF1F2algebra

Initially B=(5,6,7), xB=(0,0,1), and the only negative reduced cost is cˉ1=−10. For entering x1, d=(1/2,1/2,1) gives ratios (0,0,1) for (x5,x6,x7), so the least-index leaving tie is x5 and θ=0. The next basis is (1,6,7).

2.1F1F2step 1.1algebra

At B=(1,6,7) the negative reduced costs are cˉ2=−53 and cˉ3=−41. Both rules choose x2. Its direction is d=(−11,4,11); the eligible ratios for (x6,x7) are (0,1/11), so x6 leaves at θ=0 and the basis becomes (1,2,7).

3.1F1F2step 2.1algebra

At B=(1,2,7) the negative reduced cost is cˉ3=−29/2. Its direction is d=(1/2,1/2,−1/2), so the eligible ratios for (x1,x2) are (0,0); the least-index leaving variable is x1, giving θ=0 and basis (3,2,7).

4.1F1F2step 3.1algebra

At B=(3,2,7) the negative reduced costs are cˉ4=−18 and cˉ5=−15, so both rules choose x4. Its direction is d=(−8,2,0); the only eligible ratio is 0 for x2, which leaves and gives basis (3,4,7).

5.1F1F2step 4.1algebra

At B=(3,4,7) the only negative reduced cost is cˉ5=−21/2. Its direction is d=(1/2,1/4,0); the eligible ratios for (x3,x4) are (0,0), so x3 leaves at θ=0 and the basis becomes (5,4,7). Thus the first five pivots agree under both rules.

6.1F2step 1.1step 5.1algebra

At B=(5,4,7), cˉ1=−22 and cˉ6=−24. The most-negative rule chooses x6, whose direction d=(−9,1,0) has only the eligible ratio 0 for x4. The pivot leaves x4 and returns to (5,6,7) with the same basic vector and objective 0; repeating the deterministic choices cycles.

6.2F1F2step 5.1algebra

At the same basis (5,4,7), Bland chooses x1 because 1<6. Its direction is d=(−4,1/2,1); the eligible ratios for (x4,x7) are (0,1), so x4 leaves and the next basis is (5,1,7), still with θ=0.

7.1F1F2step 6.2algebra

At B=(5,1,7) the only negative reduced cost is cˉ3=−1. Its direction is d=(−2,−1,1), so only x7 is eligible and its ratio is 1. The pivot gives basis (5,1,3) and basic values (2,1,1), hence the full vector is x=(1,0,1,0,2,0,0).

8.1F1F2F3step 7.1algebra∎

At this final basis the objective is −10+9=−1 and the remaining reduced costs for (x2,x4,x6,x7) are (30,42,18,1), all nonnegative. The basic vector is feasible, so [F2] proves it optimal; [F3] also confirms finite termination. The six-pivot most-negative cycle and Bland's terminating branch are thereby checked with exact rational pivots.

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

A revised-simplex unbounded ray

Example

Minimize −x1 subject to x1−x2=0 and x1,x2≥0. Use B=(2) as the initial feasible basis.

Facts & Assumptions

Given: A=(1,−1), b=0, c=(−1,0), and the basis B=(2).

[F1]

Primal revised-simplex pivot identities and certificates: Let B be a primal-feasible basis, let j be nonbasic with cˉj<0, and put d=AB−1aj. If di≤0 for every basic row i, then rj=1, rB=−d, and rk=0 for the other nonbasic indices define a feasible ray with Ar=0 and cTr=cˉj<0; the LP is unbounded below.

Verification

1.1givenalgebra

The basis matrix is AB=−1, so x2=(−1)−10=0. The multiplier is y=(−1)−1c2=0, and the nonbasic reduced cost is cˉ1=−1−1⋅0=−1.

2.1givenF1step 1.1algebra∎

The entering direction coefficient is d=AB−1a1=−1. There is no row with di>0, so the ray has r1=1 and r2=−d=1. Then Ar=1−1=0, r≥0, and cTr=−1<0; [F1] gives unboundedness below.

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

An infeasible Phase I problem and its Farkas certificate

Example

Consider x1=1, x2=1, and −x1−x2+x3=−3 with x1,x2,x3≥0. The equality matrix has full row rank.

Facts & Assumptions

Given: A=[100010−1−11], b=(1,1,−3)T, and x≥0.

[F1]

Phase I revised simplex and rank reduction: Add artificial variables u∈Rm and solve the Phase I problem min⁡1Tu subject to A~x+u=b~, x,u≥0, starting at x=0,u=b~ with artificial basis Im.

[F2]

Phase I feasible-basis extraction and infeasibility certificate: If its minimum artificial-variable sum is positive, its returned vector yields a Farkas certificate ATq≥0, bTq<0, so the original system is infeasible.

Verification

1.1givenF1algebra

The third right-hand side is negative, so D=diag⁡(1,1,−1) gives A~=DA=[10001011−1] and b~=Db=(1,1,3)T. The Phase I point x=(1,1,0), u=(0,0,1) satisfies A~x+u=b~ and has objective 1.

1.2givenF1algebra

The Phase I dual vector y=(−1,−1,1) satisfies A~Ty=(0,0,−1)T≤0 and b~Ty=1. For any Phase I feasible (x,u), its objective 1Tu is at least b~Ty=1 by multiplying the constraints by y and using A~Ty≤0, u≥0, and y≤1. Thus the displayed feasible point attains the Phase I optimum 1>0.

2.1F2step 1.1step 1.2algebra∎

The original Farkas vector is q=−DTy=(1,1,1). Direct calculation gives ATq=(0,0,1)T≥0 and bTq=1+1−3=−1<0. Hence no x≥0 can satisfy Ax=b, as also follows from [F2].

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

A small residual at an ill-conditioned basis

Example

Let δ=2−27, A=diag⁡(1,δ), b=(1,δ)T, and c=(1,1)T. The exact primal solution is x∗=(1,1) and the dual vector y=(1,δ−1) satisfies ATy=c. Audit the finite binary candidate x^=(1,1+δ).

Facts & Assumptions

Given: The exact dyadic LP data and candidate in the Example.

[F1]

Exact residual audit of finite-precision simplex candidates: Otherwise use exact integer/rational arithmetic to compute rp=Ax^−b, rd=c−ATy^, and g=cTx^−bTy^.

[F2]

Primal-dual residual gap bound for a simplex candidate: ∣g∣≤∥x∥1∥rd∥∞+∥y∥1∥rp∥∞.

Verification

1.1givenalgebra

The basis matrix has ∥A∥2=1 and ∥A−1∥2=δ−1=227, so its 2-norm condition number is 227. The exact solution is (1,1), while the candidate has forward error x^−x∗=(0,δ).

2.1F1step 1.1algebra

Exact multiplication gives rp=(0,δ2)=(0,2−54), rd=(0,0), and g=δ=2−27. Thus the residual norm is 2−54 although the absolute forward error is 2−27, larger by the condition factor.

3.1F2step 2.1algebra∎

Here ∥x^∥1=2+δ, ∥y∥1=1+δ−1, so [F2] gives ∣g∣≤(1+δ−1)δ2=δ+δ2. The candidate is not exactly primal feasible and has a positive gap; the small residual alone therefore does not certify exact optimality or infeasibility.

Sources