Inverse theorems for Jacobi matrices