PLANNER: a language for proving theorems in robots