This is a reference request. I am not asking for a proof.
If I remember correctly, there is a theorem that states that if a bounded [criterion added after editing] function $f:\mathbb Z^2\to\mathbb R$ satisfies, for all $(x,y)\in\mathbb Z^2$, $$f(x,y)=\frac{f(x+1,y)+f(x-1,y)+f(x,y+1)+f(x,y-1)}{4},$$ then $f$ is constant. As I recall, the proof I saw is non-elementary and uses Alaoglu’s compactness theorem the Krein–Milman theorem.
Can anyone help me locate an author/text/name? Thanks in advance.