first implementation of Pearson counterexample algorithm in coq