Catalysis of the reaction: 1-(2-carboxyphenylamino)-1-deoxy-D-ribulose 5-phosphate = 1-(indol-3-yl)glycerol 3-phosphate + CO2 + H2O.
1-(2-carboxyphenylamino)-1-deoxy-D-ribulose-5-phosphate carboxy-lyase