My naïve definition would be: a player was probably not cheating if they would have been able to come up with the same moves even if they had played in an isolated room with only basic supplies (such as water and sugar for human players and electricity for computer players). Thus a player who is consulting a chess book, a friend, the web or a computer is cheating, because those are not available in an isolated room.