refractor proof_tree.