A SAT-based Resolution of Lam's Problem