proof for sum_of_logs_even