 In Counterfactuals, Lewis does not say a lot about similarity of worlds. He has some short arguments that we can make sense of the notion of two worlds being similar. And he notes that on different occasions we may wish to use different notions of similarity, suggesting a kind of context dependency of counterfactuals. But the notion is not spelled out in much more detail.