Mathematical Foundations of Learning Interaction Kernels and Latent Functions in Operators