Extending a preorder efficiently and correctly | Hacker News Reader