translation to SMTLib format + binary search tree proved

The last few lines are specific for KernelC, but should be generated automatically.