What is this PVC pipe in my basement
My basement has a 4 inch perforated drain pipe in 16 inches of washed septic gravel under the concrete floor.  It is reduced to a smaller diameter and taken up to the roof.  It is to vent any radon or any other gas that might be under the floor.  Could the OP's pipe be a vent?