Whitehead's pointfree geometry and diametric posets