A formal model of abstraction for planning