Alphabeta Math
AlgorithmAlgorithm: AI-adaptedProof: Not applicablePipeline-generatedjudge pass (gpt-6-luna)
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.

Revised-simplex basis QR recomputation with finite residual and pivot statuses

Definition

Input finite stored binary data for the standard-form LP of Basis dictionaries and reduced costs for revised simplex, with full-row-rank A∈Rm×n, a candidate ordered basis B of m distinct in-range indices, and a nonnegative integer budget K of basis evaluations. Stored values represent their exact dyadic rationals. Invalid dimensions, nonfinite inputs or repeated/out-of-range basis indices return invalid-input. Nonsingularity of C=AB must be established as part of an admitted basis input; a numerical rank threshold is not such an establishment. A basis whose validity is unavailable returns basis-validity-inconclusive.

A caller may request a primal or dual simplex transition after an audit, or only an audit. It may supply a finite sequence of transition records, one for each requested basis replacement, from Primal revised simplex with Bland's rule or Dual revised simplex with a finite pivot budget. A transition record has fields mode (primal or dual), basis_before (the ordered current basis, with its validity witness), leaving_position i, and entering_index j; it is checked rather than trusted as already verified. The initial basis and each record's basis_before must carry the validity witness described here. After a replacement, its checked nonzero pivot coefficient establishes the new basis; any next transition record must carry its own checked validity witness.

An admitted basis input includes either an exact rational inverse witness G with CG=GC=Im, checked exactly, or a rational matrix H and rational q with 0≤q<1 and ∥Im−HC∥∞≤q, also checked exactly. For matrices with at least one row, ∥M∥∞=max⁡i∑j∣Mij∣; the empty matrix has norm 0. For vectors it is the maximum absolute coordinate, with empty value 0. For m=0, the empty inverse witness satisfies the identities. If neither validity certificate is verified, return basis-validity-inconclusive before factorization. A numerical rank threshold is never a validity certificate.

With an exact inverse witness, first compare basis_before with the current ordered basis exactly. Then check a transition by exact rational arithmetic: compute xB=Gb, y=GTcB, dk=Gak for every nonbasic k, and cˉk=ck−akTy. A primal record is admissible exactly when xB≥0, j is the least-index nonbasic column with cˉj<0, some drj>0, and i minimizes xBr/drj over rows with drj>0, with ties resolved by least basic-variable index. A dual record is admissible exactly when every nonbasic cˉk≥0, Bi is the least-index basic variable with xBi<0, dij<0, and j minimizes cˉk/(−dik) over nonbasic k with dik<0, with ties resolved by least variable index. In either case, the checked nonzero pivot coefficient proves the replacement basis nonsingular.

Certified rational enclosures may instead establish a transition. For each current D=C and D=CT, provide rational HD,qD,MD with 0≤qD<1, ∥Im−HDD∥∞≤qD, and MD≥∥HD∥∞/(1−qD); verify these inequalities exactly. For each solve Dz=r, combine its returned candidate z^ and a rational upper bound η for its Step 3 residual bound to form the coordinate intervals [z^ℓ−MDη,z^ℓ+MDη]. For closed rational intervals I=[a,b] and J=[c,d], use I+J=[a+c,b+d], I−J=[a−d,b−c], IJ=[min⁡{ac,ad,bc,bd},max⁡{ac,ad,bc,bd}], and I/J=I⋅[min⁡{1/c,1/d},max⁡{1/c,1/d}] when 0∉J; division is undefined otherwise. Evaluate dot products, reduced costs, and ratio expressions with these exact rational endpoint operations. First compare basis_before with the current ordered basis exactly. An interval proves a sign or order only when its endpoints imply that relation. If a ratio comparison is not decided by interval endpoints, return pivot-inconclusive unless an exact inverse witness G is supplied for the current basis; with G, compute the exact rational ratios and compare them exactly, resolving equality by the least-index rule. Admit the record only when the required signs and comparisons, including all least-index rules, are proved. If a needed sign, ratio comparison, or basis match is not established, return pivot-inconclusive with the current basis and its last completed audit, without changing the basis.

For m≥1, use the operationwise arithmetic of Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add, with 0<u<1, mu<1, (m+3)u<1, and γm+3<1/8. All nonzero exact intermediates must be normal. Norms and certificate expressions below are evaluated exactly or by certified upward bounds; failure to obtain a finite valid bound is a numerical failure. Process the following loop:

  1. Maintain an attempt counter t, initially 0. If t=K, return budget-exhausted with the current basis, the last completed audit if any, and the basis to which that audit belongs. Otherwise set t←t+1 before starting this basis evaluation. Every budget, numerical-failure, basis-validity-inconclusive, or pivot-inconclusive return includes the current basis and identifies the basis associated with any retained audit; state explicitly when no audit exists.

  2. Separately for D=C=AB and D=CT, copy the current stored entries into a working matrix W. For k=1,…,m, set r=m−k+1, take the active column x=Wk:m,k and trailing block T=Wk:m,k+1:m, and call Scaled Householder reflector formation and application once on (x,T). On success, save its reflector data and replace the active block Wk:m,k:m by its returned output, which writes the new diagonal entry and exact zeros below it; leave earlier rows and columns unchanged. If x=0, save an identity marker and leave the trailing block unchanged. Stop with numerical-failure at the first failed call, recording the factorization, column k, and failure stage. The final W is the computed upper-triangular factor R^D.

    To apply these stored reflectors to any right-hand side s, start with z=s and visit k=1,…,m in that same order. Skip an identity marker. Otherwise, on the active suffix zk:m compute the sequential rounded dot d=fl⁡(vkTzk:m), then p=fl⁡(τ^kvk), u=fl⁡(p d) componentwise, and zk:m=fl⁡(zk:m−u) componentwise, using the operation order of Scaled Householder reflector formation and application without a column overwrite. Stop at the first failure and record the right-hand side, reflector index, and failure stage. For Dz=s, apply this replay to obtain the transformed right-hand side and solve R^Dz^=z by descending substitution: for i=m,…,1, sequentially compute ti=fl⁡(∑j=i+1m(R^D)ijz^j), hi=fl⁡(zi−ti), and z^i=fl⁡(hi/(R^D)ii). A zero diagonal or any failed operation returns numerical-failure with the solve and row index. Reuse the C factorization for x^B and every nonbasic direction d^j; reuse the CT factorization for y^. Never substitute a rounded dense orthogonal product for the exact orthogonal representative in the proof. After every admitted basis replacement discard both factorizations and recompute; no rank-one factorization-update implementation is claimed.

  3. Independently certify each returned solve for its actual current matrix D=C or CT and right-hand side r. Compute v^=fl⁡(Dz^) and w^=fl⁡(v^−r) by the sequential products/subtraction of Rounded matrix products give certified linear and normal-equation residual allowances. Put gm=1+6u1−(m−1)u−1,W=gm∥D∥F∥z^∥2+u(∥v^∥2+∥r∥2). With the local coefficient κm of The scaled computed Householder step satisfies the local backward error premise, put β=(1+κm)m−1,βD=β+γm+3(1+β), and report the valid upper bound η(D,r,z^)=min⁡{∥w^∥2+W, βD∥D∥F∥z^∥2+β∥r∥2}. A finite concrete certificate option uses exact rational arithmetic on the stored dyadic entries and a rational upper bound for u satisfying all displayed admissibility inequalities. Use ∥v∥2≤∑i∣vi∣ and ∥D∥F≤∑i,j∣Dij∣ as rational upper bounds for every norm in the two nonnegative expressions. For the local coefficient, substitute eˉm=(1+u)m+3−1 for em=(1+u)m/2+3−1 in the source formula: put dˉm=eˉm+u(2+eˉm), am=(1+u)/(1−u)m−1, gmQR=mu/(1−mu), cm=2((1+am)(1+u)2(1+gmQR)−1), and κˉm=max⁡{eˉm+8dˉm,(1+u)cm+3u}. These are rational upper bounds because m+3≥m/2+3 and all constituent nonnegative formulas increase in their arguments. Then βˉ=(1+κˉm)m−1 and βˉD=βˉ+γm+3(1+βˉ) are rational upper bounds for the QR coefficients. Compute both candidate bounds by finite exact rational sums/products/powers and take their minimum as the returned η. This implements the certificate without a norm oracle; other finite certified upper-bound procedures are allowed. Any factorization, substitution, dot, subtraction, range or certificate failure returns numerical-failure, with its stage and the last completed audit; it returns no certificate for the failed solve.

  4. Embed x^B in x^∈Rn with zero nonbasic entries, and call Exact residual audit of finite-precision simplex candidates on these actual stored x^,y^. Retain its exact rp=Ax^−b, rd=c−ATy^, objective difference g, and audit status together with all solve residual bounds. basis-solves-residual-certified means only that the returned bounds certify those linear equations; any requested thresholds must also be checked before declaring them met. verified-optimal-for-stored-data is issued only by the exact audit's primal/sign/zero-gap checks. Other completed candidates remain candidate-only; small residuals or a failed/ambiguous pivot never certify infeasibility.

  5. Return if audit-only mode or the caller has no further transition. Otherwise compare the next record with the current basis and apply the exact or enclosure admission predicate above. A failed or unresolved predicate returns pivot-inconclusive or basis-validity-inconclusive, retaining the current basis and last completed audit. On admission, replace position i by j, discard both factorizations, and continue at Step 1. Exact driver invariants remain those of the existing driver, not consequences of successful floating solves.

For m=0, skip QR and substitution: the basis and multiplier are empty, every direction is the empty vector, and their basis-equation residuals and solve bounds η are zero. Evaluate the existing exact audit with x^=0; no basis replacement is possible. The budget and invalid-input branches remain in force.

Remarks

No exact-arithmetic simplex method, Bland termination theorem, dual invariant, PhaseI certificate or existing residual audit is replaced. The procedure recomputes canonical current-basis QR data, checks caller-supplied transitions, and reports computed candidates with independently certified residuals. A useful forward-accuracy interpretation requires a conditioning bound; signs and ratios are used only when exact checks or certified enclosures establish them. Pre-rounded input uncertainty requires separate data enclosures. No numerical-success, anti-cycling or polynomial-time guarantee is added.

Depends on

Used by

Dependency tree · two levels

21 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources