Generic estimate
This is the generic estimator interface and types; the idea is that the method are dispatched based on the basis type and the dynamic type.
RigorousInvariantMeasures.CoarseGridQuantities — Type
Struct that encapsulates the additional quantities needed on the coarse basis for a two-grid estimate, or on the (only) basis for a one-grid estimate. It is meant as an intermediate quantity that can be saved on the disk to avoid recomputing Q all the times.
RigorousInvariantMeasures.FineGridQuantities — Type
Struct that encapsulates all the quantities computed from the fine basis that are needed in the two-grid estimate. It is meant as an intermediate quantity that can be saved on the disk to avoid recomputing Q all the times
RigorousInvariantMeasures.compute_coarse_grid_quantities — Method
Compute FineGridQuantities and CoarseGridQuantities, given a function f(n) that computes B, D, Q = f(n)
RigorousInvariantMeasures.compute_fine_grid_quantities — Method
Compute FineGridQuantities, given a function f(n) that computes B, D, Q = f(n)
RigorousInvariantMeasures.distance_from_invariant — Method
Bounds rigorously the distance of w from the fixed point of Q (normalized with integral = 1), using a vector of bounds norms[k] ≥ ||Qh^k|{U_h^0}||. If ε₁ and normQ are given, then Q can be omitted
RigorousInvariantMeasures.distance_from_invariant_residual — Method
distance_from_invariant_residual(B::Basis, D::Dynamic, Q, w, norms;
ε₁ = residualbound(B, weak_norm(B), Q, w),
ε₂ = mag(integral_covector(B) * w - 1),
dfly_coefficients = dfly(strong_norm(B), aux_norm(B), D),
defect_coefficients = projection_defect_coefficients(B, D; dfly_coefficients))A posteriori (residual-based) rigorous upper bound for the weak-norm distance $\|h - w\|_w$ between the invariant density $h$ of the abstract transfer operator $L$ of the dynamic D and a computed candidate w in the approximating space of B.
This is the "exchanged" version of [Galatolo–Monge–Nisoli–Poloni, Chaos Solitons & Fractals 170 (2023) 113329, Theorem 3.4] anticipated in Remark 3.9 of that paper: there, the error $v = h - w$ is expanded in powers of the discretized operator $Q_h$, and one pays the a priori strong-norm bound $\|h\|_s \le B/(1-A)$ (Corollary 2.6) for the unknown density — that is distance_from_invariant. Here the error is instead expanded in powers of the abstract operator $L$, driven by the computed residual of the candidate; Remark 3.9 notes this requires summing $\|L^k r\|_w$, "a difficult task" a priori — the closed-form two-norm bound below performs that summation using only the computed norms $C_k$ of the discretized operator, the one-step Lasota–Yorke inequality, and the discretization-defect constants. It is sharper than the a priori bound whenever $\|w\|_s \ll B/(1-A)$, i.e. precisely when the Lasota–Yorke constants are poor ($A$ near $1$, small branches) — the candidate's strong norm is computed, not estimated.
Framework and assumptions (notation of the cited paper)
- $L$ preserves the integral, $\|L\|_{L^1}\le 1$, and satisfies the one-step Lasota–Yorke inequality $\|Lf\|_s \le A\|f\|_s + B\|f\|_{L^1}$ with $A < 1$ (
dfly_coefficients, cf.dfly); the norms satisfy $\|\cdot\|_{L^1} \le \|\cdot\|_w$ (Assumption 2.1(4) of the paper). Qis the rigorously assembled, integral-preserving discretized operator $Q_h$ of a compatible discretization;norms[k]$\ge \|Q_h^k|_{V_h^0}\|_w$ are certified (cf.powernormbounds,finepowernormbounds); $K_h$ =weak_projection_error.defect_coefficients$= (c_s, c_w)$ satisfy $\|(L-Q_h)v\|_w \le K_h(c_s\|v\|_s + c_w\|v\|_{L^1})$ (seeprojection_defect_coefficients).- $L$ has a unique invariant probability density $h$; uniqueness identifies the Neumann series below with $\bar w - h$ (any integral-zero fixed point of $L$ vanishes by ergodic decomposition). In practice this is certified from the same
normsby the small-matrix method (convergencerateabstract, Galatolo–Nisoli–Saussol). - The strong and $L^1$ norms of the candidate are bounded rigorously via
normbound(B, strong_norm(B), w)andnormbound(B, aux_norm(B), w); the basis must provide these methods.
Derivation
Let $\bar w = w/\int w$ (normalization defect $\varepsilon_2$ accounted at the end) and $r = L\bar w - \bar w$ the abstract residual, $i(r) = 0$. Then
\[\bar w - h = -(I-L)^{-1}\big|_{V^0}\, r = -\sum_{k\ge0} L^k r, \qquad \|h - \bar w\|_w \le \sum_{k\ge0} W_k,\]
with $W_k := \|L^k r\|_w$, $S_k := \|L^k r\|_s$.
(1) Both norms of the residual are computable. Writing $r = (L - Q_h)\bar w + (Q_h\bar w - \bar w)$, the second term is the computed eigen-residual ($\le \varepsilon_1/(1-\varepsilon_2)$) and the first pays the defect of the explicit candidate:
\[W_0 \le \frac{\varepsilon_1 + K_h (c_s \|w\|_s + c_w \|w\|_{L^1})}{1-\varepsilon_2}, \qquad S_0 \le \frac{(1+A)\|w\|_s + B\|w\|_{L^1}}{1-\varepsilon_2},\]
the latter from one Lasota–Yorke step applied to w and the triangle inequality.
(2) Two-channel recursion. Telescoping $L^k = Q_h^k + \sum_{j<k} Q_h^j (L - Q_h) L^{k-1-j}$ (all vectors have zero integral, so the restricted norms apply) and iterating the Lasota–Yorke inequality:
\[S_k \le A^k S_0 + B\sum_{i<k} A^i W_{k-1-i},\qquad W_k \le C_k W_0 + K_h \sum_{j<k} C_j\,\big(c_s S_{k-1-j} + c_w W_{k-1-j}\big).\]
(3) Sound closed-form summation. Summing over $k \ge 0$ (Fubini for nonnegative series), with $\Sigma_C := \sum_{k\ge0} C_k$ bounded by infinite_sum_norms:
\[\Sigma_S \le \frac{S_0}{1-A} + \frac{B}{1-A}\Sigma_W,\qquad \Sigma_W \le \Sigma_C W_0 + K_h\Sigma_C\big(c_s\Sigma_S + c_w\Sigma_W\big),\]
whence, provided the denominator below is positive (checked; an error is thrown otherwise),
\[\|h - \bar w\|_w \;\le\; \Sigma_W \;\le\; \frac{\Sigma_C W_0 + K_h \Sigma_C\, c_s\, S_0/(1-A)} {1 - K_h \Sigma_C \big(c_s\, B/(1-A) + c_w\big)} .\]
The same bound applies to every partial sum, so the Neumann series converges absolutely and the identity above is justified. Finally $\|h - w\|_w \le \Sigma_W + \tfrac{\varepsilon_2}{1-\varepsilon_2}\|w\|_w$.
All arithmetic is carried out in interval arithmetic; the returned value is a rigorous Float64 upper bound.
RigorousInvariantMeasures.finepowernormbounds — Method
finepowernormbounds(B, B_fine, D, coarse_norms; normQ_fine, dfly_coefficients, target, max_powers)Carry norms of powers computed on the coarse basis B to the fine basis B_fine, by the two-grid estimate of norms_of_powers_from_coarser_grid together with the trivial and the Lasota-Yorke bounds, and return norms with norms[k] ≥ ||Q_fine^k|_{U^0}||.
The vector returned is as long as the bounds themselves ask, which is not the length of coarse_norms: the two-grid step loses a factor at every power, so a fine vector of that length can end at or above one, and the geometric tail that infinite_sum_norms sums is then not summable. The missing thing is length rather than accuracy, and submultiplicativity supplies it without one further matrix power, so the vector is extended until its last entry is below target (1e-8 by default), at most max_powers entries.
Where no computed fine norm is below one the two-grid bound does not contract on that pair of grids, no vector of any length bounds the sum, and an error is raised rather than a vector that would make every enclosure built on it infinite. A finer coarse grid is what changes that; a finer fine grid changes the size of the bounds and not whether they contract.
RigorousInvariantMeasures.invariant_vector — Method
Return a numerical approximation to the (hopefully unique) invariant vector of the dynamic with discretized operator Q.
The vector is normalized so that integral_covector(B)*w ≈ 1
RigorousInvariantMeasures.one_grid_estimate — Method
Compute a one-grid error estimate.
The first return argument is the error, the second is the time breakdown according to ["dfly", "assembling", "eigen", "norms", "error"]. (The sum of that vector is the total time taken)
RigorousInvariantMeasures.powernormbounds — Method
Uses different strategies to compute power norm bounds.
If specified, m norms of powers are estimated computationally, and then m_extend norms are obtained with a cheaper refinement process. Otherwise these numbers are selected automatically.
A vector of length mextend is returned, such that norms[k] ≥ ||Qh^k|{Uh^0}||
RigorousInvariantMeasures.powernormbounds — Method
Computes bounds for norms of powers, taking (optionally) minimum values for the number of norms to compute
RigorousInvariantMeasures.projection_defect_coefficients — Method
projection_defect_coefficients(B::Basis, D::Dynamic;
dfly_coefficients = dfly(strong_norm(B), aux_norm(B), D),
normL = bound_weak_norm_abstract(B, D; dfly_coefficients = dfly_coefficients))Certified constants $(c_s, c_w)$ such that the discretization defect of the (integral-preserving) discretized operator $Q_h$ satisfies, for every $v$ in the strong space,
\[\|(L - Q_h)\,v\|_w \;\le\; K_h \,\big( c_s \|v\|_s + c_w \|v\|_{L^1} \big), \qquad K_h = \texttt{weak\_projection\_error}(B).\]
Generic method, valid for every compatible discretization in the sense of [Galatolo–Monge–Nisoli–Poloni, Chaos Solitons & Fractals 170 (2023) 113329, Definition 2.7]: by Lemma 3.5 of that paper, $\|(Q_h - L)f\|_w \le 2K_h(\|L\|_w \|f\|_s + \|Lf\|_s)$, and the one-step Lasota–Yorke inequality (5) gives $\|Lf\|_s \le A\|f\|_s + B\|f\|_{L^1}$, whence
\[(c_s, c_w) = \big(2(\|L\|_w + A),\; 2B\big).\]
Sharper basis-specific methods may be provided (see the Ulam method, where $(c_s, c_w) = (1+A, B)$).
The strong norm in which $\|v\|_s$ is to be measured is the one of dfly_coefficients, not the one of the basis, and the two can differ: a pair stated for VarCircle makes $c_s$ the coefficient of the variation on the circle. Take it from strong_kind, as distance_from_invariant_residual does.
RigorousInvariantMeasures.residualbound — Method
Return an upper bound to Q_h*w - w in the given norm
RigorousInvariantMeasures.two_grid_estimate — Method
Compute a two-grid error estimate.
The first return argument is the error, the second is the time breakdown according to ["dfly", "coarse", "assembling", "eigen", "norms", "error"]. (The sum of that vector is the total time taken)
DFLY
RigorousInvariantMeasures._dfly_circle_branchwise — Method
_dfly_circle_branchwise(D::PwMap) -> DFLYCoefficientsThe pair of the following lemma, which assumes no relation between the branches; it is what dfly(VarCircle, L1, D) returns when has_monotone_mod1_lift fails, and also when it holds but this pair has the smaller $B/(1-A)$.
Lemma. Let $T:[0,1]\to[0,1]$ have branches $T_i\in C^2(\bar I_i)$ on $I_i=(a_{i-1},a_i)$, $0=a_0<\dots<a_m=1$, and put $h_i=|I_i|$, $\lambda_i=\sup_{\bar I_i}|1/T_i'|$, $\mathrm{dist}_i=\sup_{\bar I_i}|T_i''/(T_i')^2|$,
\[A_i = \begin{cases} 2\lambda_i + \mathrm{dist}_i\,h_i, & T(I_i) = (0,1),\\ 3\lambda_i, & \text{otherwise,}\end{cases} \qquad B_i = \begin{cases} 2\,\mathrm{dist}_i, & T(I_i) = (0,1),\\ \mathrm{dist}_i + 2\lambda_i/h_i, & \text{otherwise.}\end{cases}\]
Then $\mathrm{Var}_{S^1}(Lf) \le (\max_i A_i)\,\mathrm{Var}_{S^1}(f) + (\max_i B_i)\,\|f\|_{L^1}$ for every $f \in BV(S^1)$.
Proof. Write $Lf=\sum_i\psi_i$ with $\psi_i=(f\circ g_i)|g_i'|$ on $J_i=T(I_i)$, extended by $0$, and $V_i=\mathrm{Var}_{I_i}(f)$. On $J_i$, the product inequality $\mathrm{Var}_J(\phi\psi)\le\sup_J|\psi|\mathrm{Var}_J(\phi)+\int_J|\phi||\psi'|$ and the change of variables $y=T(x)$ give $\mathrm{Var}_{J_i}(\psi_i)\le\lambda_iV_i+\mathrm{dist}_i\|f\|_{L^1(I_i)}$.
A point value of $f$ on $I_i$ is at most $\inf_{I_i}|f| + V_i \le \|f\|_{L^1(I_i)}/h_i + V_i$, and $|f(a_i^-)-f(a_{i-1}^+)|\le V_i$.
If $J_i$ is a proper arc, $\mathrm{Var}_{S^1}(\psi_i)=\mathrm{Var}_{J_i}(\psi_i) +|\psi_i(\text{left end})|+|\psi_i(\text{right end})|$, the two end terms being at most $\lambda_i$ times a point value of $f$ on $I_i$; this is the $3\lambda_i$ and the $\mathrm{dist}_i+2\lambda_i/h_i$. If instead $J_i=(0,1)$, so that $J_i$ is the whole circle, $\mathrm{Var}_{S^1}(\psi_i)=\mathrm{Var}_{J_i}(\psi_i)+ |\psi_i(1^-)-\psi_i(0^+)|$, and with $\delta_i=\mathrm{Var}_{J_i}(|g_i'|) =\int_{I_i}|T''/(T')^2|\,dx \le \mathrm{dist}_i h_i$ that last jump is at most $\lambda_i|f(a_i^-)-f(a_{i-1}^+)| + \delta_i\min(|f(a_i^-)|,|f(a_{i-1}^+)|) \le \lambda_iV_i+\delta_iV_i+\delta_i\|f\|_{L^1(I_i)}/h_i$, where $\delta_i/h_i\le\mathrm{dist}_i$; this is the $2\lambda_i+\mathrm{dist}_ih_i$ and the $2\,\mathrm{dist}_i$. Summing over the branches, with $\sum_iV_i\le\mathrm{Var}_{(0,1)}(f)\le\mathrm{Var}_{S^1}(f)$ and $\sum_i\|f\|_{L^1(I_i)}=\|f\|_{L^1}$, gives the statement. $\square$
The $3\lambda_i$ of a partial branch is what keeps this statement off the beta shift, where it returns $A=3/\beta=1.0352\ldots$. The other pair that needs no hypothesis is the conversion of the interval one by $\mathrm{Var}_{S^1}\le2\,\mathrm{Var}_{(0,1)}$, which doubles both constants, and neither dominates the other: on the beta shift the doubling gives $A=4/\beta=1.3803\ldots$, worse than the $3/\beta$ here, while for a map all of whose branches are onto the circle it gives $(2\lambda, 2\,\mathrm{dist})$ and so beats this pair by the term $\mathrm{dist}_ih_i$ in $A$. Only this one is computed; the doubling is a line of arithmetic on dfly(VarInterval, L1, D) for a caller who wants it.
RigorousInvariantMeasures._dfly_circle_from_lift — Method
_dfly_circle_from_lift(D::PwMap) -> DFLYCoefficientsThe pair of the following lemma, which needs has_monotone_mod1_lift.
Lemma. Let $T:[0,1]\to[0,1]$ have branches $T_i$ on $I_i=(a_{i-1},a_i)$, $0=a_0<\dots<a_m=1$, with $T_i\in C^2(\bar I_i)$,
\[\lambda := \max_i \sup_{\bar I_i}|1/T_i'| < 1, \qquad \mathrm{dist} := \max_i \sup_{\bar I_i}|T_i''/(T_i')^2| < \infty,\]
and let $T$ be the reduction mod $1$ of a strictly monotone $\tilde T:[0,1]\to\mathbb R$, that is, $T(a_i^-)=1$ and $T(a_i^+)=0$ at every interior branch point for increasing branches, the two exchanged for decreasing ones. Put
\[\lambda_L := \frac{1}{|T'(0^+)|},\qquad \lambda_R := \frac{1}{|T'(1^-)|},\qquad \theta := \sum_{i=1}^{m-1}\left| \frac{1}{|T'(a_i^-)|} - \frac{1}{|T'(a_i^+)|}\right| ,\]
\[\kappa := \theta + \begin{cases} |\lambda_L-\lambda_R| & \text{if } T(1^-) \text{ and } T(0^+) \text{ are the same point of } S^1,\\ \lambda_L+\lambda_R & \text{otherwise.} \end{cases}\]
Then, for every $f\in BV(S^1)$,
\[\mathrm{Var}_{S^1}(Lf) \le \left(\lambda+\frac{\kappa}{2}\right)\mathrm{Var}_{S^1}(f) + (\mathrm{dist}+\kappa)\,\|f\|_{L^1} .\]
Proof. Four steps.
(1) Point values. For $x,y$ points of approximate continuity of $f$, the two arcs of the circle joining them carry between them $\mathrm{Var}_{S^1}(f)$, and $|f(x)-f(y)|$ is at most the variation along either of them, so $|f(x)-f(y)|\le\frac12\mathrm{Var}_{S^1}(f)$; integrating in $y$ over the circle, whose length is $1$,
\[\|f\|_\infty \le \|f\|_{L^1} + \tfrac12\mathrm{Var}_{S^1}(f).\]
(2) $Lf$ is a periodisation. Let $G=\tilde T^{-1}:(\alpha_-,\alpha_+)\to(0,1)$, with $\{\alpha_-,\alpha_+\}=\{\tilde T(0),\tilde T(1)\}$, let $u = (f\circ G)\,|G'|$ on $(\alpha_-,\alpha_+)$ and let $u$ be extended by $0$ to $\mathbb R$. The preimages of $y\in S^1$ are the $G(y+n)$ with $y+n\in(\alpha_-,\alpha_+)$, so $Lf(y) = \sum_{n\in\mathbb Z} u(y+n)$.
(3) The variation of a periodisation. For $w\in BV(\mathbb R)$ of compact support and $Pw=\sum_n w(\cdot+n)$, the points of a cyclic partition of the circle, translated by all integers, form an increasing bi-infinite sequence in $\mathbb R$ along which the cyclic sum for $Pw$ is bounded term by term by the variation sum for $w$; hence $\mathrm{Var}_{S^1}(Pw)\le\mathrm{Var}_{\mathbb R}(w) =\mathrm{Var}_{(\alpha_-,\alpha_+)}(w)+|w(\alpha_-^+)|+|w(\alpha_+^-)|$. When $\alpha_+-\alpha_-\in\mathbb N$, which happens exactly when $T(1^-)$ and $T(0^+)$ are the same point of $S^1$, the two end jumps fall on one point of the circle and only their difference survives: $\mathrm{Var}_{S^1}(Pw)\le\mathrm{Var}_{(\alpha_-,\alpha_+)}(w)+|w(\alpha_-^+)-w(\alpha_+^-)|$.
(4) The two pieces. Let $t_i$ be the integer with $G(t_i)=a_i$. On each $(t_{i-1},t_i)$ the factor $|G'|$ is absolutely continuous, and $\mathrm{Var}_J(\phi\psi)\le\sup_J|\psi|\,\mathrm{Var}_J(\phi)+\int_J|\phi|\,|\psi'|$ with $\phi=f\circ G$, $\psi=|G'|$ gives $\lambda\,\mathrm{Var}_{I_i}(f)+\int_{I_i}|f|\,|T''/(T')^2|\,dx$ after the change of variables $y=T(x)$, since $|G''/G'|=|T''/(T')^2|$ and $\mathrm{Var}(f\circ G)= \mathrm{Var}(f)$ for monotone $G$. At an interior $t_i$ the jump of $u$ is at most $\lambda|f(a_i^+)-f(a_i^-)|$ plus $\|f\|_\infty$ times the jump of $1/|T'|$ there. Summing, and recognising $\sum_i\mathrm{Var}_{I_i}(f)$ plus the interior jumps of $f$ as $\mathrm{Var}_{(0,1)}(f)$,
\[\mathrm{Var}_{(\alpha_-,\alpha_+)}(u) \le \lambda\,\mathrm{Var}_{(0,1)}(f) + \mathrm{dist}\,\|f\|_{L^1} + \theta\,\|f\|_\infty .\]
For the end terms, $|u(\alpha_-^+)| = \lambda_L|f(0^+)|$ and $|u(\alpha_+^-)| = \lambda_R|f(1^-)|$ for an increasing lift, the two exchanged for a decreasing one, and writing $\lambda_L|a|+\lambda_R|b| = \lambda_R(|b|-|a|)+(\lambda_L+\lambda_R)|a|$ for $|a|\le|b|$ and symmetrically otherwise,
\[|u(\alpha_-^+)|+|u(\alpha_+^-)| \le \lambda\,|f(1^-)-f(0^+)| + (\lambda_L+\lambda_R)\|f\|_\infty ,\]
using $\max(\lambda_L,\lambda_R)\le\lambda$; in the case of step (3) where only the difference survives, $\lambda_L f(0^+)-\lambda_R f(1^-) = \lambda_L(f(0^+)-f(1^-)) + (\lambda_L-\lambda_R)f(1^-)$, and symmetrically, give the same bound with $|\lambda_L-\lambda_R|$ in place of $\lambda_L+\lambda_R$. In both cases the first summand is $\lambda$ times the jump of $f$ across $0$, which completes $\lambda\,\mathrm{Var}_{(0,1)}(f)$ into $\lambda\,\mathrm{Var}_{S^1}(f)$, and what is left is $\kappa\|f\|_\infty$. Step (1) turns that into $\kappa\|f\|_{L^1}+\frac{\kappa}{2}\mathrm{Var}_{S^1}(f)$. $\square$
A map with no partial branch, a $C^1$ lift, so that $\theta=0$, and $|T'(0^+)|=|T'(1^-)|$ has $\kappa=0$, hence $A=\lambda$ and $B=\mathrm{dist}$, which is the pair of the full-branch case of dfly(VarInterval, L1, D): for $x\mapsto 2x$ it is $A=1/2$, $B=0$, and $B/(1-A)=0$ is the variation of the invariant density, Lebesgue. The beta shift $\beta x \bmod 1$ has a linear lift, so $\mathrm{dist}=\theta=0$, and one partial branch, so $\kappa=\lambda_L+\lambda_R=2/\beta$, giving $A=B=2/\beta$.
The computed $\theta$, and in the closing case the computed $|\lambda_L-\lambda_R|$, carry a rounding residue. The two one-sided values at a branch point are evaluated as separate enclosures of $1/|T'|$, one from each branch's own formula, and interval subtraction of an enclosure from itself returns an interval symmetric about zero rather than zero; so a branch point where the true jump vanishes still contributes about one unit in the last place of $\lambda$. For $3x \bmod 1$ the two interior branch points and the two ends of the domain give $\kappa=1.67\cdot10^{-16}$, hence $B=1.67\cdot10^{-16}$ where the true $B$ is $0$, while for $2x$ and $4x$ it is exactly $0$ because $1/2$ and $1/4$ are representable. The pair is a valid bound either way; what the residue costs is $10^{-16}$ in $B$, and the tolerance in the ranking of dfly(VarCircle, L1, D).
Testing the two enclosures for equality would not remove it, since two different numbers can share an enclosure and so equal enclosures do not prove the jump is zero. What proves it is that the branches come from one $C^1$ lift, which mod1_dynamic knows when it builds them, reducing a single $f$ mod $1$, and which the PwMap does not record: has_monotone_mod1_lift establishes continuity of the circle map at the branch points, not differentiability of the lift across them. A record of that, written where the branches are built, is what would let $\theta$ be zero by hypothesis instead of by an inexact subtraction.
RigorousInvariantMeasures.analytic_dfly — Method
analytic_dfly(strong::Aη, η′, C, K) -> (A, B)Lasota–Yorke constants for the Fourier analytic norm $\|f\|_{A_η} = \sum_k |\hat c_k| e^{2πη|k|}$, with auxiliary norm $L^1(dx)$:
\[\|Lf\|_{A_η} \le A\,\|f\|_{A_η} + B\,\|f\|_{L^1}.\]
η′ > η is the enlarged strip certified by annulus_expansion and C bounds $\|L\|_{A_η \to A_{η′}}$. Splitting the Fourier series at K:
\[A(K) = C\,\frac{2q^{K+1}}{1-q},\quad q = e^{-2π(η′-η)}, \qquad B(K) = \sum_{|k| \le K} e^{2πη|k|} .\]
The B term uses $|\hat c_k(Lf)| \le \|Lf\|_{L^1} \le \|f\|_{L^1}$: the coefficient bound is uniform in k, and the transfer operator is an $L^1$ contraction, so no constant is lost.
RigorousInvariantMeasures.analytic_dfly — Method
analytic_dfly(strong::Eρ, ρ′, C, K; L1μ_bound = 1.0) -> (A, B)Lasota–Yorke constants for the Chebyshev analytic norm $\|f\|_{E_ρ} = \sum_k |\hat b_k| ρ^k$, with auxiliary norm $L^1(μ)$, μ the arcsine measure:
\[\|Lf\|_{E_ρ} \le A\,\|f\|_{E_ρ} + B\,\|f\|_{L^1(μ)} , \qquad A(K) = C\,\frac{2q^{K+1}}{1-q},\; q = ρ/ρ', \qquad B(K) = 2 D_μ \sum_{k \le K} ρ^k .\]
ρ′ > ρ is the enlarged ellipse certified by bernstein_expansion and C bounds $\|L\|_{E_ρ \to E_{ρ'}}$.
The Chebyshev coefficients are $\hat b_k = 2\int f\,T_k\,dμ$, so $|\hat b_k| \le 2\|f\|_{L^1(μ)}$ — but there is no uniform bound by $\|f\|_{L^1(dx)}$: concentrating f on a width-ε sliver at an endpoint gives $\|f\|_{L^1(dx)} \sim ε$ against $\|f\|_{L^1(μ)} \sim \sqrt{2ε}/π$, a ratio diverging like $ε^{-1/2}$.
Consequently L1μ_bound = $D_μ = \|L\|_{L^1(μ)}$ is not automatically 1, unlike the Lebesgue case where the transfer operator is a contraction. It must be supplied; the default of 1 is a placeholder and is only valid if you have established it independently.
RigorousInvariantMeasures.analytic_dfly_choose_K — Method
analytic_dfly_choose_K(strong, gain, C; target_A = 0.5, max_K = 4096, kwargs...)Smallest K for which analytic_dfly achieves A ≤ target_A, returned as (K, A, B). Since A(K) decreases geometrically and B(K) grows geometrically, this is the cheapest usable inequality: any smaller K fails the target, any larger one inflates B for nothing.
Returns nothing if the target is not reachable within max_K.
RigorousInvariantMeasures.analytic_dfly_degenerate — Method
analytic_dfly_degenerate(strong, gain, C₂) -> (A, 0.0)The degenerate Lasota–Yorke $\|Lf\|_{A_η} \le A\,\|f\|_{A_η}$, with no auxiliary term — that is, A is simply the continuity constant of L on the analytic space, valid for every f, not on any subspace.
C₂ is the bound between the two domains, $\|L\|_{A_η \to A_{η'}}$, and the enlargement is converted into a constant by splitting the weight at the gain δ:
\[\|Lf\|_{A_η} = \sum_k e^{-2πkδ}\,e^{2πkη'}|\hat c_k(Lf)| \;\le\; \Big(\sum_k e^{-2πkδ}\Big)\,\|Lf\|_{A_{η'}} \;\le\; G(δ)\,C_2\,\|f\|_{A_η},\]
the geometric sum converging exactly because the neighbourhood is enlarged. For Eρ the weight is ρ^k and the ratio is ρ/ρ'.
This is the single-space setting of Nisoli, Certified spectral approximation of transfer operators and the Gauss map, arXiv:2602.19435, where the analytic (Hardy-space) case needs only $\|L\|_{B \to B} \le C$ together with the truncation bound coming from the domain enlargement — the strong–weak DFLY scale of that paper's Appendix A being a separate setting. Compactness, not a contraction factor, is what drives the spectral certification, so A here need not be less than 1.
RigorousInvariantMeasures.analytic_transfer_bound — Method
analytic_transfer_bound(min_derivative, nbranches) -> C$C$ with $\|Lf\|_{∞,\,\text{nbhd}} \le C\,\|f\|_{∞,\,\text{nbhd}}$, for the transfer operator $Lf(z) = \sum_k f(g_k(z))\,g_k'(z)$.
Since $|g_k'| = 1/|T'\circ g_k|$ and the inverse branches land in the neighbourhood where min_derivative was certified,
\[C \;\le\; \frac{\#\text{branches}}{\min |T'|} .\]
min_derivative comes from min_modulus_on_ellipse or min_modulus_on_circle — i.e. from the complex neighbourhood, never from the assembled matrix.
RigorousInvariantMeasures.analytic_truncation_error — Method
analytic_truncation_error(strong, gain, C₂, K) -> ε_K$ε_K \ge \|(I - Π_K)L\|_{\mathcal B \to \mathcal B}$ on the analytic space $\mathcal B$, i.e. the truncation number of Assumption 2.1(3).
One line, from the domain gain alone. For f in the unit ball of $E_ρ$, $Lf$ lies in $A(E_{ρ'})$ with $\|Lf\|_{E_{ρ'}} \le C_2$; writing $Lf = \sum_j b_j T_j$,
\[\|(I-Π_K)Lf\|_{E_ρ} = \sum_{j>K}|b_j|ρ^j = \sum_{j>K}|b_j|ρ'^j\Big(\frac{ρ}{ρ'}\Big)^{j} \le C_2\,q^{K+1}, \qquad q = ρ/ρ' < 1 .\]
The Fourier case is identical with $q = e^{-2π(η'-η)}$.
Not in L itself but in the INCLUSION $A(E_{ρ'}) \hookrightarrow A(E_ρ)$, whose approximation numbers decay like $q^K$. Factoring $L = ι ∘ \tilde L$ with $\tilde L : A(E_ρ) → A(E_{ρ'})$ bounded by C₂ gives the bound above immediately. There is no separate $\|L(I-Π_K)\|$ to estimate as long as the discretization is taken one-sided, $L_K := Π_K L$, which has the same nonzero spectrum as $Π_K L Π_K$ (since $σ(AB)\setminus\{0\} = σ(BA)\setminus\{0\}$) and is therefore represented by the same assembled matrix.
RigorousInvariantMeasures.annulus_expansion — Method
annulus_expansion(f, η; n = 1024) -> (η_in, η_out)Certified enlargement of the strip $|\mathrm{Im}\,x| \le η$ under a circle map f, the Fourier counterpart of bernstein_expansion.
Under $x \mapsto z = e^{2πix}$ the strip becomes the annulus $e^{-2πη} \le |z| \le e^{2πη}$, so the image of each boundary circle is enclosed and its extreme modulus recorded:
\[η_{out} = \frac{\log \min_{|z| = e^{2πη}} |f(z)|}{2π}, \qquad η_{in} = \frac{-\log \max_{|z| = e^{-2πη}} |f(z)|}{2π}.\]
f acts on the z variable and must accept a Complex{Interval}. The strip is enlarged when both exceed η; min(η_in, η_out) is then the certified η′ for analytic_dfly.
RigorousInvariantMeasures.bernstein_geometry — Method
bernstein_geometry(strong::Eρ, D::PwMap; n = 1024) -> (ρ′, C₂)The two numbers the analytic theory rests on, computed once from the map:
ρ′ > ρ— the enlarged Bernstein parameter, certified bybernstein_expansionapplied to each branch in the GLOBAL chart $t = 2x-1$. It means the inverse branches contract: $g_k(E_{ρ'}) ⊆ E_ρ$.C₂ = Σ_k 1/\min_{E_ρ}|T_k'|— a bound for $\|L\|_{A(E_ρ) → A(E_{ρ'})}$.
These are exactly the quantities dfly(::Eρ, ::Type{L1}, ::PwMap) computes internally and then discards; exposing them avoids recomputing.
RigorousInvariantMeasures.dfly — Method
dfly(norm::Aη, ::Type{L1}, D::PwMap; C₂, n = 1024) -> (A, 0.0)
dfly(norm::Eρ, ::Type{L1}, D::PwMap; C₂, n = 1024) -> (A, 0.0)Degenerate Lasota–Yorke for the analytic norms: A is the continuity constant of L on the analytic space, and the auxiliary constant is 0.
Same call shape as every other dfly, so powernormbounds, refine_norms_of_powers and the coarse–fine workflow run unchanged once the basis fixes its strong and weak norms. Because B = 0 the auxiliary norm is multiplied by zero and plays no part; the weak norm is free to be whatever the approximation error is measured in, which for these bases is L2.
The geometry needs only forward enclosures — the branches of a PwMap evaluate at Complex{Interval} directly, so the enlarged neighbourhood is certified by strip_expansion / bernstein_expansion applied to each branch reparametrized onto its own domain. No complex derivative is involved.
C₂ bounds L between the two domains, $\|L\|_{A_η \to A_{η'}}$; the Hölder factor G(δ) from the enlargement then gives A = G(δ)C₂ (see analytic_dfly_degenerate).
C₂ is the one ingredient the forward enclosure does not determine on its own: the transfer operator carries the weight $|g_k'| = 1/|T_k'\circ g_k|$, so by default it is computed as $\sum_k 1/\min|T_k'|$ with the minimum taken over the enclosed neighbourhood — valid on the closed neighbourhood by the minimum modulus principle, $T_k'$ being zero-free for an expanding map. Pass C₂ explicitly to override it with a sharper estimate for your operator.
RigorousInvariantMeasures.dfly — Method
(A, B) = dfly(strongnorm, auxnorm, dynamic)
Constants (A, B) such that ||Lf||s ≦ A||f||s + B||f||_aux
RigorousInvariantMeasures.dfly — Method
dfly(VarCircle, L1, D::PwMap) -> DFLYCoefficientsConstants $(A,B)$ such that the transfer operator of D, read as a map of the circle $[0,1]/\{0\sim 1\}$, satisfies
\[\mathrm{Var}_{S^1}(Lf) \le A\,\mathrm{Var}_{S^1}(f) + B\,\|f\|_{L^1}, \qquad \mathrm{Var}_{S^1}(f) = \mathrm{Var}_{(0,1)}(f) + |f(1^-)-f(0^+)| ,\]
the norm of VarCircle. Two statements are proved below: _dfly_circle_from_lift, under the hypothesis of has_monotone_mod1_lift, which every map built by mod1_dynamic satisfies, and _dfly_circle_branchwise, which assumes nothing beyond expansivity. The second is returned when the first does not apply.
Where both apply they are ranked on $B/(1-A)$, the a priori bound on the strong norm of the invariant density that invariant_measure_strong_norm_bound reads off the pair, with a pair failing $A<1$ ranking last; two values of it differing by less than $10^{-8}$, in absolute terms or relative to the larger of the two, count as equal, and the smaller $A$ then decides. The tolerance is what keeps the rounding residue in $B$ described under _dfly_circle_from_lift from deciding $A$: on $3x \bmod 1$ the lift gives $(1/3, 1.67\cdot10^{-16})$ and the branchwise statement $(2/3, 0)$, so untolerated ranking returns $A=2/3$ where $A=1/3$ is proved, and the caller cannot see from the pair that it happened. A caller who needs to know which statement the pair came from compares it with _dfly_circle_from_lift(D); both routines may be called directly.
Two terms separate these from dfly(VarInterval, L1, D), which is derived from the same ingredients – the minimum of $|T'|$, the branch lengths and a bound on $T''/(T')^2$. The interval statement bounds a point value of $f$ on the $i$-th branch by $\inf_{I_i}|f| + \mathrm{Var}_{I_i}(f)$ and so pays $\|f\|_{L^1(I_i)}/|I_i|$, which is where its $B$ picks up the $2/\min_i|I_i|$ of the non-full-branch case; on the circle the two arcs joining two points carry between them the whole variation, so a point value costs $\|f\|_{L^1} + \frac12\mathrm{Var}_{S^1}(f)$ instead and the branch length leaves $B$ altogether. What appears in its place is the variation $Lf$ acquires across $0$, which the interval norm does not see; for a monotone mod 1 lift that variation is paid for by the jumps of $f$ itself except at the two ends of the domain, and the whole of the circle statement's $B$ comes from those two ends.
On the beta shift $T_0(x) = \beta x \bmod 1$ with $\beta = (1+\sqrt{23})/2$ the pair is $A = B = 2/\beta = 0.690151\ldots$, against $A = 0.690151\ldots$, $B = 2/(1-2/\beta) = 6.45476\ldots$ on the interval, so the a priori bound $B/(1-A)$ on the invariant density is $2/(\beta-2) = 2.22738\ldots$ in a norm larger than the one in which the interval pair gives $20.8320\ldots$.
Neither statement dominates the other: the lift pays $\theta$ and $|\lambda_L-\lambda_R|$ for the jumps of $1/|T'|$ at the branch points, which the branchwise statement charges to the distortion instead, so a piecewise linear map all of whose branches are onto the circle is sharper read branchwise – for $4x$ on $(0,1/2)$ continued by $8x$ on $(1/2,1)$ the branchwise pair is $(1/2, 0)$, and $B=0$ is sharp because Lebesgue is invariant, against $(3/8, 1/4)$ from the lift.
Throws an ArgumentError for a PwMap whose domain is not $[0,1]$, and for one with an infinite derivative at an endpoint: dfly_inf_der covers that case on the interval and has no circle counterpart here.
RigorousInvariantMeasures.invariant_measure_strong_norm_bound — Method
invariant_measure_strong_norm_bound(B, D; dfly_coefficients)Strong-norm bound on the invariant density.
The classical DFLY route is $B/(1-A)$, which needs A < 1 and B > 0. In the degenerate analytic case B = 0 and A is a continuity constant, and the bound is simply A — the density lies in the image of L, so the continuity constant already controls it.
RigorousInvariantMeasures.min_modulus_on_circle — Method
min_modulus_on_circle(g, η; n = 1024)Lower bound on |g| over both circles |z| = e^{±2πη}, the strip counterpart of min_modulus_on_ellipse.
RigorousInvariantMeasures.min_modulus_on_ellipse — Method
min_modulus_on_ellipse(g, ρ; n = 1024)Rigorous lower bound on $\min_{∂E_ρ} |g|$, by the same boundary covering as bernstein_expansion.
If g has no zero in the closed ellipse — which is the case for T' of an expanding map — the minimum modulus principle makes this a bound on the whole of $E_ρ$, not just its boundary.
RigorousInvariantMeasures.single_space_resolvent_lift — Method
single_space_resolvent_lift(R_K, ε_K) -> RCorollary 2.3 of the Gauss-map paper: if $α := ε_K R(z,L_K) < 1$ then $z ∈ ρ(L)$ and
\[R(z, L) \;\le\; \frac{R(z, L_K)}{1 - ε_K R(z, L_K)} .\]
Returns Inf when α ≥ 1.
Both arguments must be measured in the SAME norm — for the analytic bases, the $ℓ^2$ Bernstein norm of bernstein_l2_resolvent_bound, which is a diagonal reweighting and so is directly accessible to the verified SVD.
The result is a certificate on the ABSTRACT operator L. It is therefore a property of the map, not of the discretization: computed once at a small K it may be reused at any basis size and any working precision, and never needs recomputing.
RigorousInvariantMeasures.strip_expansion — Method
strip_expansion(f, η; n = 1024) -> η′min of the two values from annulus_expansion: the largest strip half-width certified to be reached from η.
RigorousInvariantMeasures.strip_geometry — Method
strip_geometry(strong::Aη, D::PwMap; n = 1024) -> (η′, C₂)Fourier counterpart of bernstein_geometry: the enlarged strip half-width and $\|L\|_{A_η → A_{η'}}$.