CertifiedPseudospectra.jl

Certified bounds on pseudospectra, resolvents and eigenvalue counts of matrices and of linear operators given by x ↦ Ax and x ↦ A*x, in ball arithmetic on BallArithmetic.jl. The package has two layers.

The reverse Ritz inclusion (src/*.jl), the companion code of I. Nisoli, The reverse Ritz inclusion: computable bounds on the pseudospectra of an operator by those of a finite-rank compression, arXiv:2610.30530. For an operator A and a frame Q, with G11, G12, G21, G22 the blocks of A in the splitting of the space into the range of Q and its orthogonal complement, it certifies σ_min(G11 − zI), the couplings ‖G12‖, ‖G21‖ and ‖G22‖, and from them a lower bound on σ_min(A − zI) outside the disc of radius ‖G22‖, the inclusion of pseudospectra, the count of eigenvalues outside a circle, isolation discs and spectral gaps. The docstrings cite the paper's labels.

src/twoblock.jl    §2 the two-block bound, contours, the self-adjoint corollaries
src/operator.jl    the operator and its rounding model (eq:roundA)
src/couplings.jl   §3.3 the couplings (eq:gram) and the almost-orthonormal frame
src/farblock.jl    §4 the far block: the sweep in floating point, certified afterwards
src/frame.jl       §5.1, §5.3 the frame and the depth search (floating point)
src/splitting.jl   §5 the certified splitting and the entry points
src/helper.jl      floating-point estimates of a run's parameters, before it is made

Dense certification (src/dense/), moved from BallArithmetic: contour enclosures, block and SVD-frame resolvent floors, pseudospectrum cells, the resolvent bound of a block triangular matrix through a Sylvester similarity, and CertifiedPseudospectra.CertifScripts, the Schur-based certification of the resolvent on a circle, with a Distributed extension (ext/DistributedExt.jl). CertifScripts is the validated linear algebra of I. Nisoli, Certified spectral approximation of transfer operators and the Gauss map, arXiv:2602.19435, whose code is GKWExperiments.jl; its Schur-to-original step also uses Lemma 5.1 of A. Blumenthal, I. Nisoli and T. Taylor-Crush, A pseudospectral approach to rigorous numerical estimation of resonances of transfer operators, arXiv:2507.09021, whose code is ExperimentsPseudospectra.jl.

implementation.md maps the labels of the two Nisoli papers to the code and lists the departures.

Installation

] add CertifiedPseudospectra

The package requires Julia 1.12 or later and BallArithmetic 0.4; it also depends on JLD2 and the standard libraries LinearAlgebra, SparseArrays and Random. Loading Distributed loads the extension that runs CertifScripts on several workers.

The reverse Ritz inclusion

The routines are listed on The Reverse Ritz Inclusion.

The upper bidiagonal matrix below has the eigenvalues 1, 1/2, 1/4, …; we certify that exactly two of them lie outside the circle of radius R = 0.375. The frame is built in floating point by two_sided_frame (Definition def:Q: Arnoldi eigendirections of modulus > R and ks leading singular vectors on each side); nothing about it needs to be certified, since every quantity the certificate uses is certified for the frame actually given.

using CertifiedPseudospectra, LinearAlgebra

n = 200
A = diagm(0 => 0.5 .^ (0:(n - 1)), 1 => fill(0.1, n - 1))
R = 0.375
Q, _ = two_sided_frame(x -> A * x, x -> A' * x, n, R; ks = 10)

sc = certify_split(A, Q; target = R)       # ‖G22‖ < sc.gbar, ‖A‖ < sc.abar, ‖G12‖ ≤ sc.γ1, ...
resolvent_floor(sc, 0.7).floor             # thm:assembly: σ_min(A − 0.7I) ≥ 0.1216...
ext = certify_exterior(sc, R)              # prop:count, cor:agree
ext.count                                  # 2 eigenvalues of modulus > R, ext.ok == true
certify_gap(sc, 0.75).certified            # cor:gap: one eigenvalue outside |z| = 0.75
certify_projector(sc, 0, R; region = :exterior).bound   # prop:projector: ‖P − P₀‖ ≤ 17.07...

Each routine returns its bound together with a flag (ok, certified), and the bound holds only when the flag is true; resolvent_floor returns floor = 0 when its hypothesis is not certified. ext.discs holds the isolation discs, each with its centre, radius and the number of eigenvalues of A it contains. For an operator that is not stored, certify_split(Amul, Aadj, n, Q; epsA) takes the two applications and the constant epsA of the rounding model eq:roundA, which the caller must supply.

The dense certification of the resolvent on a circle

run_certification lives in the submodule CertifScripts, which is loaded with using CertifiedPseudospectra.CertifScripts. It computes a Schur form A = ZTZ* with certified defects, covers the circle adaptively by a polygon through sample points, encloses σ_min(T − zI) at each sample, and carries the bound back to A.

using CertifiedPseudospectra, LinearAlgebra
using CertifiedPseudospectra.CertifScripts

n = 20
A = diagm(0 => 0.5 .^ (0:(n - 1)), 1 => fill(0.1, n - 1))
cert = run_certification(A, CertificationCircle(0.0, 0.75; samples = 64); log_io = devnull)
cert.resolvent_original     # ‖(zI − A)⁻¹‖₂ ≤ 9.904... on the polygon through the samples

The bound is for the polygon; circle_resolvent_bound carries it to the circle. Pseudospectra Certification describes the other modes: distributed, Ogita-refined, BigFloat and parametric.

Citing

If you use the package, cite the paper of the layer you use (CITATION.cff lists them):

  • I. Nisoli, The reverse Ritz inclusion: computable bounds on the pseudospectra of an operator by those of a finite-rank compression, arXiv:2610.30530 (2026);
  • I. Nisoli, Certified spectral approximation of transfer operators and the Gauss map, arXiv:2602.19435 (2026);
  • A. Blumenthal, I. Nisoli and T. Taylor-Crush, A pseudospectral approach to rigorous numerical estimation of resonances of transfer operators, arXiv:2507.09021 (2025).