syzygy wrote: ↑Wed Jan 21, 2026 1:21 am
You will need to consider the nonsensical ones to be sure that you get the sensical ones right.
Not really. If you assume conversion to the non-sensical one is lost for the strong side by default (i.e. without 'considering it'), and a predecessor still is totallly won because there are sufficient conversions to sensical successors, you will have the sensical predecessor right. This is basically the definition of non-sensical: P-slices the strong side would never have to visit to secure the win.
There could be some discussion about what 'getting it right' means, though. By declaring some conversions a loss by default, while they actually could be a win, some winning positions might prove their win by forcing another winning conversion, taking more moves to force it. So their DTZ would not be the same as when you would have solved the non-sensical P-slice to get correct WDL values for all conversions to it. (This only applies to P-slices that use the non-sensical one as direct successor: they might have deviating DTZ, but if they have the correct WDL (e.g. because the DTZ is never pushed above 100 ply) their predecessors are fully identical to those for a complete DTZ solution.)
But so what? DTZ is not sacred. Playing according to DTZ in general gives idiotic play, first shedding all unnecessary material until a lengthy win with an absolute minimum of advantage is reached. Going for the fastest conversion is in general not the way to get the fastest win. Avoiding conversions to unclear P-slices is likely to do more good than harm in this respect. DTNSZ ('distance to non-sacrificial zeroing') or DTNNZ ('distance to no-nonsense zeroing') could be much more desirable.
We have gone through this before. There will always be positions where you need an underpromotion and many more positions where a promotion is not winning. "Usually" is not enough to "correctly generate a tablebase".
This again seems to argue from the POV that a 'tablebase' is a monolithic thing containing all P-slices, and that it is not 'correctly generated' untill all these P-slices have been solved. While in practice the P-slices are largely independent, and even having a small fraction of the P-slices for a given material composition can be very useful. As long you have the P-slices that are most likely to occur in actual games. Quite similar to a sitiation where you don't have the full 7-man set, but only KRPPKRP; having KQQQKQQ (or even KQQRKQR) in addition will be zero help for winning more games.
You can know which P-slices might be tainted by ignoring underpromotion, and simply leave those out. If you have solved a P-slice under assumption that all conversions to a certain successor are losses, you can then check whether the positions from which such conversions are possible still remain wins. If they are the result of the conversion was immaterial, basically subject to alpha-beta cutoff.
If there are any positions the WDL value is dependent on the value of 'forbidden' conversions, this can be treated in several ways. You could simply leave out the P-slice from the set. You can also build the P-slice in WDLU format, introducing a new result Undecided. Conversions into the P-slice that probe a U position could by default assume a loss for the strong side, repeating the procedure during retrograde propagation through the P-slices. If the number of such conversions is very small, you can try to repair it by investigating these conversions through alpha-beta search, possibly considering underpromotion in that search. Usually the problem is a very quick stalemate, that promotion to Rook would cure.