caratheodorys fundamental theorem