Legislation doesn't define "main residence". So the term would take its ordinary meaning. In the old tax act the term used to be "principal place of residence" and there is ATO publication giving guidance on what this means. it might also be useful to look at legal some cases on the topic...