Arithmetic geometry, hermitian lattices and theta correspondences