A proof of Bochner-Weil's theorem from its discrete form on weighted foundation semigroups