Formal Verification of Minimax Algorithms