The deformation theorem for flat chains