Spaces of polynomial functions of bounded degrees on an embedded manifold and their duals