Widening and Narrowing for Infinite Domains

Force an interval iteration to stabilize while preserving an upper approximation, then recover some useful bounds.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. A loop may extend an interval one unit at a time
  2. Use a guarded transition to refine a stabilized result

A loop may extend an interval one unit at a time

Starting at \(x=0\) and repeatedly incrementing \(x\) without a bound produces enclosures \([0,0],[0,1],[0,2],\ldots\) at the loop head. Ordinary iteration has infinitely many strict increases. One interval widening replaces an increasing upper endpoint by infinity and a decreasing lower endpoint by negative infinity. In this example an upper bound becomes infinite after its first increase.

Use a guarded transition to refine a stabilized result

If the loop increments only while \(x<10\), the widened head interval can still be \([0,\infty)\). The guard limits body input to at most \(9\). Including the entry and updates gives \([0,10]\). A narrowing phase can replace the infinite bound with this finite one, under a refinement rule preserving a post-fixpoint. Interval analysis supplies the enclosure operations. Worklist fixed points show why finite domains avoid the acceleration step.[1][2]

References

  1. Benjamin C. Pierce et al., Software Foundations ↩
  2. Anders Møller and Michael I. Schwartzbach, Static Program Analysis ↩