Quasi-periodic solutions, quasicrystals, hull functions,KAM theory