On the Right Hamiltonian for Singular Perturbations: General Theory