Alphabeta Math
AlgorithmAlgorithm: Literature-sourcedProof: AI-adaptedPipeline-generatedprecheck pass
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.

Finite-budget stable block reordering for Schur and QZ forms

Definition

Inputs are an order d≥0 real or complex Schur matrix T, or a regular real or complex generalized Schur pair (S,T), with the declared diagonal block partition. Complex Schur and QZ forms have scalar blocks; real Schur forms have scalar blocks or real 2×2 blocks; real generalized Schur forms have real 1×1 or 2×2 blocks. Each generalized diagonal block pair must be regular. Optional accumulated factors are exact unitary/orthogonal products; if omitted they are identity. Other inputs are a CARE selector (strict left half-plane) or DARE selector (strict unit disk), a required integer selected dimension 0≤r≤d, nonnegative integer budgets K and W, a positive local separation threshold η, and either an exact arithmetic controller or a bounded outward evaluator.

Use the CARE selector with an ordinary Schur form and the DARE selector with a generalized Schur form; an unmatched form-selector combination returns invalid-form.

Before any charged operation, initialize attempts, accepted swaps and primitive/evaluator counts to zero, diagnostic lists to empty, and every uncomputed diagnostic to unavailable. In particular, the actual selected dimension, block labels, boundary and separation predicates, and initial inversion count remain unavailable until their respective scans or tests finish; the requested dimension r is always retained separately. Report only completed tests and certificates, together with the last committed arrays and factors, on an early exit. Unavailable predicates assert neither truth nor falsity.

The entries of the input arrays are treated as their exact represented real or complex values. All local transformed arrays and accumulated factors are retained exactly as finite products; a rounded dense copy is only a separately evaluated diagnostic. Before each scalar primitive or outward evaluation, return work-budget-exhausted if no units of W remain; otherwise consume one unit before requesting the operation. Charge validation, label and inversion-count scans, local construction, and the final ordering scan to this same budget. For rational or dyadic arrays, the exact core uses rational arithmetic and positive square roots, with exact real-algebraic sign comparisons where needed. Exact decisions on arbitrary real inputs are an exact-real arithmetic model, not a bit-computability claim. The bounded-evaluator branch returns arithmetic-inconclusive whenever a needed zero, sign, division, or normalization remains unresolved.

  1. Validate dimensions, the declared block pattern, and regularity of each generalized diagonal pair in one finite scan. For ordinary scalar blocks over either field classify tii by Re⁡tii<0 or >0 for CARE; for real 2×2 blocks first verify negative discriminant and then classify by trace less than or greater than zero. For generalized scalar blocks over either field [sii:tii], verify the pair is nonzero and classify by ∣sii∣<∣tii∣ or ∣sii∣>∣tii∣ for DARE; thus tii=0, sii≠0 is complementary and represents infinity without division. For a real generalized 2×2 block, verify det⁡(Tb)≠0 and that det⁡(Sb−λTb) has negative discriminant; its conjugate roots have common squared modulus det⁡(Sb)/det⁡(Tb), so classify by strict comparison of this ratio with one, cross-multiplying with the certified sign of det⁡(Tb). Exact equality with the selected boundary returns boundary-spectrum. A bounded enclosure touching the boundary returns separation-inconclusive. Require that the selected block sizes sum to r, or return dimension-mismatch. Invalid patterns or singular local homogeneous pairs return invalid-form. Compute the initial inversion count once by scanning all ordered block pairs after classification.

  2. Give every whole block its selected or complementary label. Locate the leftmost adjacent complementary-selected inversion. If none exists, return ordered with the current exact arrays and accumulated factors. If an inversion exists but K swap attempts have already been made, return swap-budget-exhausted. Otherwise consume one attempt before starting its local construction. Never split a real conjugate pair.

  3. Let p,q∈{1,2} be the two adjacent block sizes (over C, p=q=1), with local blocks TJJ=[AC0B] for ordinary Schur form, or SJJ=[AC0B],TJJ=[DF0E] for QZ form. With column-vectorization, form the local coefficient system H=Iq⊗A−BT⊗Ip,h=−vec⁡(C) for ordinary Schur, with unknown vec⁡(R), and H=[Iq⊗A−BT⊗IpIq⊗D−ET⊗Ip],h=−[vec⁡(C)vec⁡(F)] for QZ, with unknown [vec⁡(R);vec⁡(L)]. The transpose in BT and ET is intentional, also over C. Solve Hx=h and HY=I by finite Gaussian elimination with complete pivoting: at each stage scan the finite remaining submatrix, choose an entry of largest certified modulus with lexicographic ties, swap rows and columns, eliminate, and back-substitute while undoing column permutations. An exact all-zero remaining submatrix returns swap-singular. An unresolved pivot or range failure returns separation-inconclusive or range-failure. Verify Hx=h and HY=I exactly, or verify a usable approximate-inverse certificate ∥I−YH∥2≤θ<1 and still solve Hx=h exactly. In the latter case it gives ∥H−1∥2≤∥Y∥2/(1−θ). In the exact-inverse branch take β=∥Y∥F in exact arithmetic, or an outward upper bound for that norm; in the approximate-inverse branch take an outward bound for ∥Y∥2/(1−θ). Require ηβ≤1; otherwise return swap-separation-inconclusive. Record the threshold, solves, pivot decisions and certificate.

  4. For ordinary Schur form set V=[R;Iq]. For QZ set V=[R;Iq] and WL=[L;Iq]. Complete the columns of V, and separately WL, to exact orthonormal bases by Gram–Schmidt: process the graph columns first, then e1,…,ep+q, skipping exactly zero residuals and normalizing each nonzero residual by the positive square root of its squared norm. The graph columns are independent because their last q rows form Iq; the coordinate scan completes a basis. An unresolved zero or normalization decision in bounded mode returns arithmetic-inconclusive.

  5. Let Zloc be the ordinary orthogonal/unitary completion; for QZ let Zloc be the right completion and Qloc the left completion. Propose the local transform Zloc∗TZloc in the ordinary case, or Qloc∗SZloc and Qloc∗TZloc in the QZ case. Apply it to the entire affected row and column panels, including upper off-diagonal blocks. The lower-left block is set to exact zero only by the local equations solved in step 3. For a real QZ form, factor each newly formed real 2×2 diagonal block as Tb=LbRb by Gram–Schmidt on its two columns, apply the embedded Lb∗ to the corresponding rows of both arrays, and update Qloc←QlocLb with the same embedded factor; such a block is nonsingular because its roots are finite and nonreal. A size-one infinite pair requires no division by its zero second coordinate. Commit the provisional panels and factor updates only after every required local operation succeeds, incrementing accepted swaps by one as part of that same commit; otherwise return the previous committed arrays with a failed-attempt diagnostic and leave accepted swaps unchanged.

  6. After a committed exchange, swap the two labels and sizes and return to step 2. Ordinary accumulated factors are updated by right multiplication with Zloc; generalized accumulated factors are updated as Q←QQloc and Z←ZZloc. The first r columns of the updated factor are reported as the selected basis candidate; in QZ the right factor Z, not the left factor Q, supplies the right deflating basis.

On every exit return the current partial form, exact product factors, status, selected dimension, boundary and separation predicates, initial inversion count, attempts, accepted swaps, primitive/evaluator counts, original residual certificates, local inverse-norm certificates, and any residual transport data. Other statuses are work-budget-exhausted, arithmetic-inconclusive, range-failure, invalid-form, dimension-mismatch, boundary-spectrum, separation-inconclusive, swap-singular, swap-separation-inconclusive, and swap-budget-exhausted. ordered is distinct from any Riccati acceptance status. Reordering a computed form does not assert a structured Hamiltonian or symplectic backward-error theorem.

Facts & Assumptions

Given: The exact represented Schur or generalized Schur input, its block partition, selector, required dimension, two finite budgets and the declared exact controller or bounded evaluator.

[F1]

Real and complex Schur forms: a complex Schur form is upper triangular; a real Schur form is block upper triangular with 1×1 blocks and real 2×2 blocks of negative discriminant.

[F2]

Complex and real generalized Schur forms: complex generalized Schur factors are unitary with upper-triangular arrays and nonzero diagonal homogeneous pairs; the real form retains whole 1×1 and 2×2 diagonal blocks.

[F3]

Verified point and uniform linear residual certificate data: a uniform approximate-inverse/residual certificate is usable only under its stated strict norm bound.

[F4]

A uniform approximate inverse and residual enclose every linear solution: usable certificate data bound every exact solution; unavailable or unusable data do not assert a finite enclosure.

[F5]

Outward-rounded operations are inclusion-isotone and enclose DAG evaluations: a finite outward evaluator enclosure contains the exact value, while non-finite statuses make no finite claim.

[F6]

Gram–Schmidt turns every finite independent list into an orthonormal list with the same successive spans: finite independent vectors yield an orthonormal list with the same successive spans.

[F7]

A Neumann defect bounds the inverse norm: if ∥E∥2≤θ<1, then I−E is invertible and its inverse norm is at most (1−θ)−1.

[F8]

The operator norm is submultiplicative and satisfies ||T^*T|| = ||T||^2: compatible operator norms are submultiplicative.

[F9]

Rank-nullity: dim⁡FV=nullity⁡T+rank⁡T: an injective or surjective endomorphism of a finite-dimensional space is bijective.

Proof

1.1givenF1F2F5algebra

The validation scan and each selector test examine finitely many matrix entries or declared blocks. The listed Schur forms and homogeneous block conventions are exactly [F1] and [F2]; every sign decision either has an exact result or a finite outward enclosure by [F5]. Invalid structure, boundary equality, an unresolved enclosure, or a dimension mismatch takes its declared return branch before a swap is committed.

1.2F3F4F5F7F8F9givenalgebra

At each local attempt p,q≤2, so the coefficient matrix has order at most eight and the pivot search is finite. Complete pivoting uses invertible row and column permutations; each elimination subtracts a pivot-row multiple and is reversed by adding it back. Exact back-substitution therefore solves the recorded system or detects an exact zero remaining block. If ∥I−YH∥2≤θ<1, [F7] makes YH invertible; (YH)−1Y is a left inverse of square H, so [F9] makes H invertible and [F8] gives ∥H−1∥2≤∥Y∥2/(1−θ). The routine still verifies Hx=h exactly. An unavailable solve, comparison, or bound takes its explicit failure status.

2.1F6step 1.1algebra

The last q rows of each graph matrix [R;Iq] and [L;Iq] form Iq, so both have independent columns. By [F6], Gram–Schmidt gives orthonormal graph columns with the same span. If the current span is proper, some standard coordinate vector lies outside it because those vectors span Fp+q; the finite scan therefore completes a basis.

3.1givenstep 1.1step 1.2step 2.1algebra∎

All remaining loops are finite scans of blocks, rows, columns, pivots, or the bounded standard basis. Every arithmetic or evaluation request consumes one unit of W before execution, and every local attempt consumes one unit of K before construction. Each failure returns without committing provisional data. Thus the procedure returns a declared status after finitely many operations or reaches ordered after finitely many committed exchanges; no unresolved comparison is retried indefinitely.

Depends on

Used by

Dependency tree · two levels

33 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