The Hessenberg shifted QR step and its potential
Library · Source module
The Hessenberg shifted QR step and its potential
The objects of the exact-arithmetic analysis of the Hessenberg shifted QR algorithm [BanksGarzaVargasSrivastava2021], and their basic theory. A square matrix is indexed by Fin (n + 1), so that its last row \mathbf{e}_n^{\mathsf{H}}\mathbf{H} is H (Fin.last n) and its n subdiagonal entries are \mathbf{H}_{i+1,i} for i : Fin n.
* NLAlib.IsDecoupled δ H: some subdiagonal entry has modulus at most \delta\|\mathbf{H}\|_2 (with \delta = 0: \mathbf{H} is reduced). * NLAlib.hessenbergPotential k H: the geometric mean \psi_k(\mathbf{H}) of the last k subdiagonal moduli, the potential that tracks convergence. * NLAlib.shiftPoly ss: the monic polynomial \prod_{s}(z - s) with roots the list ss. * NLAlib.shiftedQRStep H s: one single-shift QR step \mathbf{Q}^{\mathsf{H}}\mathbf{H}\mathbf{Q}, \mathbf{Q} the unitary factor of Givens QR of \mathbf{H} - s\mathbf{I}; NLAlib.multiShiftedQRStep H ss composes them, which is the degree k step with shift polynomial shiftPoly ss (the implicit QR step of the paper, in exact arithmetic). * NLAlib.trailingBlock k H, NLAlib.ritzValues k H: the trailing k \times k block and its eigenvalues, the Ritz values.
The step is a specification, not an implementation: Givens coefficients take exact square roots, the definitions are noncomputable and carry no cost. The finite-precision algorithm of [BanksGarzaVargasSrivastava2022] is to refine them (design note docs/design/Eigensolvers-ShiftedQR.md, §9).
The results: the last row of p(\mathbf{H}) for upper Hessenberg \mathbf{H} and the variational formula for the potential (Lemma 2.3 there); the step keeps the Hessenberg form, the norm and the eigenvector condition number, and is a QR step of the shift polynomial ([BanksGarzaVargasSrivastava2022, Lemma 3.2]); the potential after the step is at most \tau_p(\mathbf{H}) (Lemma 2.5 there); and the singular case, which the paper treats in one line: a singular shift decouples exactly, and an exact zero on the subdiagonal persists.
Main definitions
* NLAlib.IsDecoupled, NLAlib.hessenbergPotential, NLAlib.shiftPoly, NLAlib.shiftedQRStep, NLAlib.multiShiftedQRStep, NLAlib.trailingBlock, NLAlib.ritzValues.
Main results
* NLAlib.IsUpperHessenberg.aeval_apply_last_eq_zero, NLAlib.IsUpperHessenberg.aeval_apply_last_eq_prod: the last row of p(\mathbf{H}). * NLAlib.IsUpperHessenberg.hessenbergPotential_pow_le_norm_aeval, NLAlib.IsUpperHessenberg.norm_aeval_charpoly_trailingBlock_eq: the variational formula \psi_k(\mathbf{H})^k = \min_p\|\mathbf{e}_n^{\mathsf{H}}p(\mathbf{H})\|. * NLAlib.hessenbergPotential_le_specNorm, NLAlib.isDecoupled_of_hessenbergPotential_le. * NLAlib.IsUpperHessenberg.isUpperHessenberg_multiShiftedQRStep, NLAlib.specNorm_multiShiftedQRStep, NLAlib.exists_isUnit_mul_eq_mul_diagonal_multiShiftedQRStep: invariants of the step. * NLAlib.IsUpperHessenberg.exists_isQR_aeval_shiftPoly: the step is a QR step of p(\mathbf{H}). * NLAlib.IsUpperHessenberg.hessenbergPotential_multiShiftedQRStep_pow_mul_le, NLAlib.IsUpperHessenberg.hessenbergPotential_multiShiftedQRStep_replicate_pow_mul_le: the potential after the step is at most \tau_p(\mathbf{H}). * NLAlib.IsUpperHessenberg.isDecoupled_zero_multiShiftedQRStep, NLAlib.IsUpperHessenberg.isDecoupled_zero_multiShiftedQRStep_of_det_eq_zero: a reduced matrix stays reduced, and a singular shift polynomial decouples.
Declarations
- NLAlib.IsDecoupled
- NLAlib.IsUpperHessenberg.aeval_apply_last_eq_prod
- NLAlib.IsUpperHessenberg.aeval_apply_last_eq_zero
- NLAlib.IsUpperHessenberg.exists_isQR_aeval_shiftPoly
- NLAlib.IsUpperHessenberg.hessenbergPotential_multiShiftedQRStep_pow_mul_le
- NLAlib.IsUpperHessenberg.hessenbergPotential_multiShiftedQRStep_replicate_pow_mul_le
- NLAlib.IsUpperHessenberg.hessenbergPotential_pow_le_norm_aeval
- NLAlib.IsUpperHessenberg.isDecoupled_zero_multiShiftedQRStep
- NLAlib.IsUpperHessenberg.isDecoupled_zero_multiShiftedQRStep_of_det_eq_zero
- NLAlib.IsUpperHessenberg.isDecoupled_zero_shiftedQRStep_of_det_eq_zero
- NLAlib.IsUpperHessenberg.isUnreducedHessenberg_iff_not_isDecoupled
- NLAlib.IsUpperHessenberg.isUpperHessenberg_multiShiftedQRStep
- NLAlib.IsUpperHessenberg.isUpperHessenberg_shiftedQRStep
- NLAlib.IsUpperHessenberg.norm_aeval_charpoly_trailingBlock_eq
- NLAlib.IsUpperHessenberg.shiftedQRStep_apply_succ_castSucc_eq_zero
- NLAlib.aeval_shiftPoly_replicate
- NLAlib.eval_shiftPoly_ne_zero
- NLAlib.exists_isUnit_mul_eq_mul_diagonal_multiShiftedQRStep
- NLAlib.hessenbergPotential
- NLAlib.hessenbergPotential_le_specNorm
- NLAlib.hessenbergPotential_nonneg
- NLAlib.hessenbergPotential_pow
- NLAlib.isDecoupled_of_hessenbergPotential_le
- NLAlib.multiShiftedQRStep
- NLAlib.natDegree_shiftPoly
- NLAlib.norm_eval_shiftPoly
- NLAlib.ritzValues
- NLAlib.shiftPoly
- NLAlib.shiftPoly_append
- NLAlib.shiftPoly_flatten_replicate
- NLAlib.shiftPoly_monic
- NLAlib.shiftedQRStep
- NLAlib.specNorm_multiShiftedQRStep
- NLAlib.trailingBlock