Neighbour comparison on duplicate tapes #
Checks whether adjacent records in a sorted list agree whenever the second record is a lookup
(Uni.chkG), by streaming two shifted copies (Uni.PlG, Uni.QlG) across comparison tapes
cm false and cm true (Uni.emCm).
From VP ≠ VNP over every field [Ant26], module Nc.Uni.CmpU.
Main definitions #
Uni.chkG: generic neighbour check over any key typeκ.Uni.RdG,Uni.RdG.fst,Uni.RdG.snd: shifted comparison step.Uni.XG,Uni.PlG,Uni.QlG: comparison run witnessing adjacent records.Uni.Rk,Uni.rk,Uni.emRd,Uni.emCm,Uni.dimCm.
Main results #
One round of the shifted neighbour comparison: either an entry/arbitrary step (.inl (r, x))
or a matching lookup step (.inr r).
A run of the shifted neighbour comparison between the two copies of the sorted list.
- head : κ
key of the leading table entry on the first copy
sequence of adjacent-pair comparison rounds
trailing record on the second copy
Records stripped of rotation marks.
The read side of the first comparison tape copy.
The read side of the second comparison tape copy.
Dimension upper bound for the neighbour-comparison automaton with bucket count k.