Formalizing Randomized Matching Algorithms (Logical Methods in Computer Science, 2012)