Whatever your views on the referendum result, it is raising some fascinating constitutional issues.