Frobenius theorem in Algebraic Geometry