Title: Mathematical theory of x-ray powder diffractometry