The odometer order of sections #
A section of a list of lists L = [l₀, l₁, …] picks one entry from each list (List.sections).
List.sections lists them in odometer order, with the first entry running fastest.
Cslib.Algorithms.WordRAM.PPSZ.nextSection is the odometer step: advance the first entry to its
successor in its list, or, at the end of that list, return it to the start and carry into the
rest. Cslib.Algorithms.WordRAM.PPSZ.nextSection_sections proves that it steps through
List.sections L in order and stops after the last section, when every list is duplicate-free.
A word-RAM program that keeps a section in an array and steps it with nextSection therefore
visits every section exactly once.
Main definitions #
Cslib.Algorithms.WordRAM.PPSZ.succIn: the entry after a given one in a list.Cslib.Algorithms.WordRAM.PPSZ.nextSection: the odometer step on sections.Cslib.Algorithms.WordRAM.PPSZ.Enumerates: a list of sections in odometer order, ending with a section that has no successor.
Main results #
Cslib.Algorithms.WordRAM.PPSZ.succIn_getElem: the successor in a duplicate-free list.Cslib.Algorithms.WordRAM.PPSZ.nextSection_sections: the odometer enumeratesList.sections L.
The odometer step: the section after t among the sections of L, if any. The first entry
advances to its successor in its list; at the end of its list, it returns to the start of the list
and the rest of the section advances.
The rest of an enumeration.
The odometer enumerates the sections. When every list of L is duplicate-free, the
odometer step leads from each section of L to the next one in List.sections L, and from the
last one nowhere.