translation to SMTLib format + binary search tree proved

Can you add some comments for each major step in this method? Thanks.