Thanks, this is interesting....
...it says
.....>>>>>QUOTE
Requirements for HV Spacing?
There is no absolute limit per-se’ on HV spacing. The
electronics industry has used TO-220 packages to 1600 V
for many years
<<<<<<UNQUOTE
Also it says...
>>>>QUOTE
If 320 mils (0.320 inches) is the spacing for an opto rated at 5 KV peak, then the allowable spacing must be 15.7 V per 1 mil (0.001 inch) (5000/320= 15.7 V) for creepage and clearance.2. Since a TO-220 has a 0.050 clearance, this equals 785 V (15.7 * 50). This seems to agree with the industry rule of thumb of around 800 volts.
>>>>>>UNQUOTE
...so they are hashing a guess at 618V/mm for functional spacing in SMPS....as you can see, they do not use any official safety docs for the 618V/mm thing
...more estimation is done here...
>>>QUOTE
How much spacing is needed in high voltage circuits and setups? The general guideline in common use is to allow 7,500 to 10,000 volts, dc per inch in air; or 7.5 to 10 volts per 0.001 inches. These voltages will typically be lower over the surface of a material due to surface contaminants, moisture and/or the nature of the material.
>>>>>>>UNQUOTE
....kind of......give or take the odd kilovolt or so , ...whatever.
It makes you realise that its overthinking it to look very deeply into spacing for eg rcd clamp voltage to primary ground in a offline flyback.