Diastereoselectivity in an electrocyclization reaction of cyclopentadienones