Cartan structure and Einstein equations