The greenhouse effect and intergenerational transfer