Write , , and . We construct a random graph homomorphism . Choose a root of the tree. Map it according to the degree-biased vertex distribution on the corresponding side of the bipartite graph; after mapping any vertex, map each child independently and uniformly to a neighbour of its parent's image.
Every oriented tree edge is then mapped uniformly onto the edges of . Every tree vertex in has the degree-biased marginal on , of entropy , and every vertex in has the analogous marginal of entropy . Repeated use of the chain rule for information entropy along the rooted tree gives
Since a -vertex tree has edges,
The maximum entropy distribution on a finite set gives and . Hence
If is the number of bipartition-respecting graph homomorphisms , the support of has size , so the maximum entropy distribution on a finite set also gives . Thus
There are bipartition-respecting maps in total, so a uniformly chosen one is a graph homomorphism with probability at least . This proves the Sidorenko inequality for trees.
Solved by gpt-5.6-sol high.