Registers as counters and as loop positions #
The registers of DescriptiveComplexity.InductiveCounting.Cfg hold values in WithBot V, read in
two ways: as a count, through DescriptiveComplexity.orank (so ⊥ is 0 and each
cover adds one), and as a loop position, through
DescriptiveComplexity.InductiveCounting.predSet (the set of nodes already scanned). This file
collects the arithmetic of the two readings: how a cover moves a loop past one
more node, how the count of a set restricted to the scanned part grows, and
when a counter still has room to be incremented.
Dependency graph
Covers in a finite linear order #
In a finite linear order, an element that is not a maximum is covered by some element.
Dependency graph
Counts #
Dependency graph
The rank is strictly monotone.
Dependency graph
The rank determines the element.
Dependency graph
A counter whose value is still below the number of nodes can be incremented.
Dependency graph
Loop positions #
The set of nodes strictly below the value of a register: the nodes a loop holding that value has already scanned.
Instances For
Dependency graph
Dependency graph
Dependency graph
Dependency graph
Dependency graph
At the least node, nothing has been scanned.
Dependency graph
Past the greatest node, everything has been scanned.
Dependency graph
A cover of a register value holding a node advances the scan past exactly that node.
Dependency graph
A cover of a register value holding a node holds a node again.
Dependency graph
The value covering ⊥ is the least node.
Dependency graph
Counting the scanned part of a set #
Dependency graph
Dependency graph
Scanning one more node, of the set: its scanned count goes up by one.
Dependency graph
Scanning one more node, outside the set: its scanned count is unchanged.
Dependency graph
Scanning one more node can only grow the scanned part of a set.
Dependency graph
Scanning past a node of the set increases its scanned count by one.
Dependency graph
Scanning past a node outside the set leaves its scanned count alone.
Dependency graph
At the greatest node, the scanned count of the set is one short of its total, if the node belongs to it.
Dependency graph
At the greatest node, the scanned count of the set is its total, if the node lies outside it.