Arithmetic and geometric deformations of F-pure and F-regular singularities