arXiv:2611.00176math.LOOct 2026

Manuscript Offprint

arXiv:2611.00176

Coinduction in Grounded Arithmetic

Bryan Ford

Abstract

A grounded arithmetic counts a sentence as true only when a terminating process establishes it; a sentence no such process settles has no value. Such a logic can state that an event happens, but not that it never happens under unbounded choice. This paper extends such a logic so that it can. The base is Reflective Grounded Arithmetic (RGA) with Inductive Grounded Arithmetic (IGA)'s least-fixed-point reading and ground induction. It adds a separate greatest-fixed-point former ν\nu with Park's coinduction rule, proves that one former cannot carry both ground induction and coinduction, and adds a dichotomy rule: the classical disjunction between a least-fixed-point atom and the greatest-fixed-point atom of its dual, under a derivable premise that the body's leaves are decided. The systems are sound for an explicit model reading every ν\nu-body at its greatest fixed point, hence consistent; they agree with the least model wherever it has a value and prove sentences it leaves without one. The dichotomy replaces the underivable hypothesis that an order is well-founded by the derivable one that its steps are decided; the change of model pays for the move. With ground induction the dichotomy derives the omniscience rule of the sibling arithmetic OGA, so the system has no semantics whose certificates for universals are its own proofs. The systems prove, as single sentences, that every decided tree is well-founded or has an infinite branch given by a term, total in the new model; that random assignment terminates while its divergent twin runs forever; that a fair loop terminates and the alternating-bit protocol delivers every message; that open games are determined; that the termination gap in Nakata and Uustalu's trace semantics closes; and that Cinderella wins the bucket game at capacity three. Isabelle/HOL checks every result.

1 Introduction

Five buckets of capacity three stand in a circle. Every round the Stepmother pours one unit of water, divided among the buckets as she likes; then Cinderella empties two adjacent buckets. The Stepmother wins if a bucket ever overflows. Does Cinderella have a strategy that keeps the water in the buckets forever? At capacity three she does, and a single round-robin invariant certifies it; smaller capacities are not attempted here. The game is a standard benchmark for infinite-state safety games [5,9]. Look at what the two players claim. The Stepmother claims that an overflow happens: a terminating event, witnessed by a finite play. Cinderella claims that it never happens, whatever the Stepmother pours, and a unit can be divided in infinitely many ways, so the plays branch without bound at every round. A logic that counts as true only what a terminating process establishes can state the Stepmother's claim. It can also state that one given play never overflows, a universal over the play's rounds. It cannot state Cinderella's claim, a "never" over unboundedly branching plays, except as the negation of a claim that nobody has shown false.

This paper is about such logics, and about the step that lets them say what Cinderella says. A grounded arithmetic is one in which a sentence is true only when a terminating computation, or a well-founded tree of them, makes it so; a sentence that no such process settles is not false but has no value. Picture a logician leafing through a book of computations and coloring some of them true. The grounded tradition colors only terminating ones. What if the logician also colored certain computations that never terminate? Not all of them: the Liar never terminates, and coloring the Liar true is the inconsistency that grounded logic exists to avoid. The question is which non-terminating computations deserve the color. The answer this paper gives is the coinductive one. A computation deserves the color when it is an instance of a recursive definition declared for the greatest fixed point and lies in that fixed point, so that the definition's own unfolding never refutes it. The paper's thesis is that a grounded arithmetic supports that reading exactly, with its rule, its model and its limits stated as theorems.

The setting is Reflective Grounded Arithmetic (RGA) [22], a paraccomplete arithmetic, one in which a sentence may be neither true nor false, where every term is a computation and self-reference is native: a fixed-point former turns any body into a term that unfolds to itself. Its extension IGA, Inductive Grounded Arithmetic [24], adds the elimination rule for every positive self-referential term, called ground induction, and with it the grounded meaning of a positive recursive definition is its least fixed point: accessibility, well-foundedness, the winning positions of a game, and RGA's own truth predicate are single terms with induction principles. The least fixed point is the inductive reading, written μ\mu below. Cinderella's claim needs the other one.

What the paper adds. Two rules, each with its semantics, a theorem about what they cost, and a body of examples:

  • a greatest-fixed-point former ν\nu with Park's coinduction rule, a five-line theorem that one former cannot carry both ground induction and coinduction, and an explicit model M∗M^* for which the systems with the rule are sound and consistent, and semantically conservative over the least model (§4);

  • a dichotomy rule, a characterization of exactly when it is valid in M∗M^*, and its soundness there (§5);

  • a theorem that, with ground induction, the dichotomy derives the omniscience rule of IGA's sibling OGA, and that no system with that rule, a recursively enumerable set of theorems and no false claim of nontermination is sound for no semantics whose certificates for universals are its own proofs (§5);

  • examples: streams, runs and branches; random assignment and fair termination through it, up to the alternating-bit protocol; Nakata and Uustalu's gap between termination and non-divergence; open determinacy and the bucket game; the decidedness of Kleene's ordinal notations (§§6–7);

  • a map, produced by build-time checks, of which rules each proof applies (§9).

The coinduction rule. The former ν\nu is separate in syntax from μ\mu, with Park's coinduction rule as its introduction. To show that a point lies in νΦ\nu\Phi, exhibit a certificate: a predicate that holds at the point and that, wherever it holds, makes the body true with the certificate in place of the recursive variable. The rule's closure premise is a hypothetical derivation at an undecided hypothesis, which a grounded system admits as a premise sequent and would not admit as an implication inside a term. Elimination is unfolding. Ground induction cannot be extended to ν\nu-atoms: at a ν\nu-term it is inconsistent in five lines, which is why the two formers are separate. The resulting systems, INGA (IGA with ν\nu) and OINGA (the union OIGA of IGA with its sibling OGA [23], with ν\nu), are sound for an explicit model M∗M^* in which every body of the ν\nu class is read at its greatest fixed point and everything else as in the least model. The systems are consistent. On every sentence the least model values, they agree with the least model. And they prove sentences the least model leaves without a value, among them the all-zeros atom of the five-line argument, which is the coloring made precise.

The dichotomy. Classically ¬μΦ\neg\mu\Phi is ν(¬Φ∂)\nu(\neg\Phi^\partial), the greatest fixed point of the co-body ¬Φ∂\neg\Phi^\partial (the De Morgan dual of the body). A grounded system has no rule that turns a failed verification of the μ\mu-atom into a proof of the ν\nu-atom, so the two live apart. The dichotomy rule supplies the classical disjunction μΦ⋅x∨ν(¬Φ∂)⋅x\mu\Phi \cdot x \vee \nu(\neg\Phi^\partial) \cdot x at one body and one point, under a premise that is a sentence of the system rather than a semantic condition: every non-recursive leaf of the body is decided. With its premise the rule is sound for M∗M^*, and a theorem says exactly when the rule is valid there: when the ν\nu-atom has a value at every instance. The IGA paper priced the rule of bivalence of accessibility, and the price was a hypothesis on the order, that it is well-founded. The dichotomy's premise is a hypothesis on the order too, that its steps are decided, but one that is derivable whenever the steps are computed by decided terms, as in every example here; the change of model pays for the move (§5). A second cost comes with ATI, the omniscience rule of OGA. RGA and IGA are proof-grounded: each is sound and complete for a semantics in which a universal is true only through a certificate that is one of the system's own proofs (§5 defines the term and its counterpart, omega-grounded). With ground induction the dichotomy derives ATI, and in a system with ATI whose theorems are recursively enumerable and include no false claim of nontermination, no semantics of that kind is sound. The system with both new rules, DINGA (INGA with the dichotomy), is sound for M∗M^* (Theorem 5.4) and, by Theorem 5.5, for no semantics of that kind, and neither is OINGA. So DINGA's verdicts on ν\nu-atoms are grounded only in an extended sense: they rest on M∗M^*, which reads a ν\nu-body at its greatest fixed point and a universal through all its instances, and not on a terminating or well-founded process. Figure 1 shows the six systems.

Figure

Figure 1: The six systems over RGA, ordered by inclusion of their rules; an edge is labeled with the rule it adds (μ\mu, ground induction; ATI, OGA's rule; ν\nu, coinduction; Dich, the dichotomy). DINGA has no ATI rule but derives it (Theorem 5.3), so OINGA with the dichotomy, the dashed edge, has DINGA's theorems (Theorem 5.4). The shaded systems are sound for M∗M^* and unsound for the least model by design; the others are sound for both. Under each name: whether the system has a semantics whose certificates for universals are its own proofs (§5); OGA's label is an instance of Theorem 5.5 with soundness for the least model; for INGA the question is open.

The examples. The examples are the reason for the rules. Streams are terms the system proves total, their prefix sets the derived view, and the round trip between the two is proved. Runs of a transition system are streams, and "some run is infinite" is a ν\nu-atom. Every decided tree is well-founded at its root or has an infinite branch, with no bound on the branching; the branch is a term, total in M∗M^*, and Kónig's lemma is the bounded corollary. Random assignment terminates by an arithmetic argument and has no natural-number variant, and its divergent twin runs forever. Fairness enters through Apt and Olderog's transformation of a fair program into one with random assignment: a fair loop terminates, a twin of the loop separates strong from weak fairness as accessibility against the path atom, and the alternating-bit protocol over lossy channels delivers every message. For a search, Nakata and Uustalu's gap between termination and non-divergence closes in two independent ways. The winning regions of an open game are determined, and in the Baire instance player II's strategy is a term, total in M∗M^*. Cinderella wins at capacity three by one coinductive step whose certificate carries her round-robin strategy, while the Stepmother's loss is a refutation. The decidedness of O\mathcal{O}, Kleene's set of notations for computable ordinals, and the split of a tree into its scattered part and its perfect kernel, the shape of the Cantor–Bendixson theorem, close the list.

Coinduction and reactive systems. A reader from verification will want to know what coinduction buys for reactive systems. On a given trace, safety and liveness are both arithmetic, and the proof of a liveness claim is a ranking argument. The new rules enter with unbounded choice: when the trace is not given, the controller's forced eventuality is a μ\mu-atom with a universal inside its body, its negation is the ν\nu-atom of the dual, and the dichotomy is determinacy of the reachability game. §8 says this with a table, after the examples have supplied the cases.

Where each rule is spent. Isabelle/HOL checks every theorem in the paper, and the theories of the examples end with a build-time check that records which rules a proof applies and which it does not. The map that results is a finding in its own right. In the examples, asserting a termination claim, a μ\mu-atom, is arithmetic: folding plus number induction; the examples reach ranks below ωω\omega^\omega, and the IGA paper's ladder of ordinal notations exists because at higher ranks this fails. Using a region, by unfolding or searching inside it, is arithmetic too. A ν\nu-region costs one coinductive step when it is established. The proofs of the dichotomies themselves (accessibility or a path, termination or divergence, determinacy, the bucket game, the scattered part or the kernel) and of the decided ν\nu-regions apply neither the coinduction rule nor ATI as a rule; the decidedness of O\mathcal{O} applies ATI, a rule the calculus derives. §9 gives the map and says exactly what the checks certify.

Reading the metatheory. Five kinds of claim appear. A grounded claim is a derivation in one of the systems. A classical claim is a HOL theorem about a system or about the least model. A claim in M∗M^{*} is a classical claim about the specific model that reads ν\nu-bodies at their greatest fixed points; the paper never presents it as truth without that qualifier, because M∗M^{*} is not the least model. A prediction is a claim the paper expects but does not prove. And a reading interprets a proved statement, a rank or a count read off a proof, and is not formalized. Every theorem header in the main text names its kind; the appendices, which restate the theorems with every hypothesis, name it where a clause's kind is not clear from its wording.

Road map. §2 recalls RGA and IGA. §3 reads a body at both fixed points and finds the four regions a point can lie in. §4 adds ν\nu: the former, the rule, the model, the systems. §5 adds the dichotomy and prices it. §6 builds streams, runs and branches. §7 works the examples, fairness among them. §8 says where coinduction adds truth. §9 is the map. §10 places the work and §11 lists what is open and where the artifact is. Theorem headers carry at most two Isabelle names and the kind of claim; Appendix H carries every name.

References (100)

Couldn't load all references. Reload the page to try again.