Edit:
Ok.
It seems the general view is that Sophie would continue to be known as the Duchess of Edinburgh unless she married again.
Wife, son and daughter rank as wife, son and daughter of a duke and would not lose those rankings. So there would be an Earl ranking as a Duke. Correct?
Oops! Earl ranking as Duke is wrong. Ranks as Earl.
433