Termination of Real Linear Loops
Pith reviewed 2026-05-09 15:19 UTC · model grok-4.3
The pith
Termination of linear and affine loops over the reals admits sound partial decision procedures on all robust instances.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
We show that both the universal termination problem for linear loops and for affine loops over the reals are as close to decidable as one can expect them to be: there exist sound partial algorithms that halt on all problem instances whose answer is robust under all sufficiently small perturbations. We further show that in each case the set of non-robust problem instances has Lebesgue measure zero.
What carries the argument
Robustness under small perturbations within the bit-model of real computation, which identifies the stable instances on which partial algorithms succeed.
If this is right
- Sound partial algorithms exist that decide universal termination for linear loops on every robust input.
- Sound partial algorithms exist that decide universal termination for affine loops on every robust input.
- The non-robust inputs form a Lebesgue measure zero set for both the linear and the affine case.
- The partial algorithms are guaranteed to halt precisely when the termination answer is invariant under all sufficiently small real perturbations.
Where Pith is reading between the lines
- The same near-decidability pattern may extend to other reachability or invariance questions for linear dynamical systems over the reals.
- Numerical perturbation checks could be used in practice to certify that a given loop instance is robust before applying the partial algorithm.
- Randomly sampled loop coefficients will almost surely produce decidable instances because the bad set has measure zero.
Load-bearing premise
The bit-model of real computation together with the chosen definition of robustness under perturbations correctly captures when an answer is stable enough to be decided.
What would settle it
An explicit linear loop whose termination status changes under some arbitrarily small perturbation of the coefficients, yet lies inside a positive Lebesgue measure set of such sensitive instances.
read the original abstract
We study the problem of deciding universal termination of linear and affine loops over the reals in the bit-model of real computation. We show that both problems are as close to decidable as one can expect them to be: there exist sound partial algorithms that halt on all problem instances whose answer is robust under all sufficiently small perturbations. We further show that in each case the set of non-robust problem instances has Lebesgue measure zero.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The manuscript studies the decidability of universal termination for linear and affine loops over the reals in the bit-model of real computation. It establishes that both problems admit sound partial algorithms that correctly decide all instances whose termination status is robust under sufficiently small perturbations, and proves that the set of non-robust instances has Lebesgue measure zero.
Significance. If the central claims hold, the work supplies a theoretically grounded form of near-decidability for a problem that is expected to be undecidable in full generality. The robustness-plus-measure-zero approach is a standard and useful technique in real algebraic decision procedures; when the partial algorithms are effective in the bit model, the result offers a practical handle on termination analysis for real-valued programs and clarifies the boundary between decidable and undecidable fragments.
major comments (2)
- [Main technical development of the partial algorithms] The soundness argument for the partial algorithms (stated in the abstract and presumably proved in the main technical section) must explicitly verify that the decision procedure remains effective when inputs are given as bit-model representations; without this, it is unclear whether the algorithms actually halt on all robust instances as claimed.
- [Proof of the measure-zero statement] The proof that the non-robust set has Lebesgue measure zero relies on the set being semi-algebraic or definable in an o-minimal structure; this reduction must be carried out explicitly for both the linear and affine cases, as it is the sole justification for the measure-zero claim.
minor comments (3)
- [Abstract and §1] The informal phrase 'as close to decidable as one can expect' in the abstract and introduction should be replaced by a precise statement of the robustness predicate and the class of instances on which the algorithms are guaranteed to succeed.
- [Preliminaries] Notation for loops, perturbations, and the bit-model encoding should be introduced once and used consistently; several passages reuse symbols without redefinition.
- [Related work] A short comparison table or paragraph relating the new partial algorithms to existing decision procedures for linear loops (e.g., those based on real algebraic geometry) would help readers assess the advance.
Simulated Author's Rebuttal
We thank the referee for the careful reading and constructive comments. We address each major comment below, indicating where we will strengthen the manuscript to make the arguments fully explicit.
read point-by-point responses
-
Referee: The soundness argument for the partial algorithms (stated in the abstract and presumably proved in the main technical section) must explicitly verify that the decision procedure remains effective when inputs are given as bit-model representations; without this, it is unclear whether the algorithms actually halt on all robust instances as claimed.
Authors: We thank the referee for highlighting this point. The soundness proof in Theorem 3.2 already reduces termination on robust instances to the effective decision of polynomial sign conditions via quantifier elimination over the reals, which is known to be computable in the bit model. Nevertheless, to remove any ambiguity, we will add an explicit paragraph immediately after the statement of Theorem 3.2 that spells out the bit-model representation of the input matrix and vector, the arithmetic operations used to compute the robustness witness, and why the procedure is guaranteed to terminate on every robust instance. This change will be incorporated in the revised version. revision: yes
-
Referee: The proof that the non-robust set has Lebesgue measure zero relies on the set being semi-algebraic or definable in an o-minimal structure; this reduction must be carried out explicitly for both the linear and affine cases, as it is the sole justification for the measure-zero claim.
Authors: We agree that the measure-zero argument should be stated more explicitly. In the linear case, Lemma 4.2 already exhibits the non-robust set as a finite union of proper algebraic varieties (hence a semi-algebraic set of positive codimension). For the affine case, the current proof sketches a homogenization that reduces the problem to the linear setting, but does not spell out the resulting semi-algebraic formula. We will expand Section 5 to include the full, explicit semi-algebraic definition of the non-robust affine instances and verify that it likewise has Lebesgue measure zero. This revision will appear in the next version of the manuscript. revision: yes
Circularity Check
No significant circularity identified
full rationale
The paper's central claims concern the existence of sound partial algorithms for termination of real linear and affine loops that halt precisely on robust instances under bit-model perturbations, together with a Lebesgue measure-zero result for the non-robust set. These statements are derived from the definability of the termination predicate in an o-minimal structure and standard measure-theoretic properties of semi-algebraic sets; no step reduces by construction to a fitted parameter, self-referential definition, or load-bearing self-citation whose content is merely renamed. The derivation chain is self-contained against external real-algebraic decision procedures and does not invoke any of the enumerated circularity patterns.
Axiom & Free-Parameter Ledger
axioms (1)
- standard math Standard axioms of the real numbers and Lebesgue measure theory
Reference graph
Works this paper leans on
- [1]
-
[2]
Bell, Jason P. and Gerhold, Stefan , title =. Israel Journal of Mathematics , volume =. 2007 , doi =
work page 2007
-
[3]
The fundamental theorem of algebra in recursive analysis , author =. 1969 , booktitle =
work page 1969
-
[4]
Basu, Saugata and Pollack, Richard and Roy, Marie-Fran. 2006 , publisher =
work page 2006
-
[5]
Mathematical Structures in Computer Science , volume =
Collins, Pieter , title =. Mathematical Structures in Computer Science , volume =
- [6]
- [7]
- [8]
-
[9]
Klaus Weihrauch , title =
-
[10]
Theoretical Computer Science , volume =
Brattka, Vasco and Presser, Gero , title =. Theoretical Computer Science , volume =
- [11]
-
[12]
Theoretical Computer Science , volume =
Schr\"oder, Matthias , title =. Theoretical Computer Science , volume =. 2002 , pages =
work page 2002
-
[13]
2021 , MONTH = Aug, KEYWORDS =
Eike Neumann , URL =. 2021 , MONTH = Aug, KEYWORDS =. doi:10.46298/lmcs-17(3:16)2021 , JOURNAL =
-
[14]
Theoretical Computer Science , volume =
Ziegler, Martin and Brattka, Vasco , title =. Theoretical Computer Science , volume =. 2004 , pages =
work page 2004
-
[15]
Logical Methods in Computer Science , volume =
Sewon Park and Franz Brau. Logical Methods in Computer Science , volume =. 2024 , doi =
work page 2024
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.