Quasi-periodic solutions, long-range interactions, quasicrystals, hull functions, KAM theory