there is a theorem which states that

the resedues of a point inside a certain area

equals minus the resedues outside of the area.

but on the other hand

the resedue in the infinity point equals

minus the sum of the resedues

those two cant coexist together because

infinity is also a point on the inside of an area

so its not letting the first theorem to work

??