I am a bit confused about the terminology used in the context of sampling of populations. The Horvitz-Thompson estimator, as well as the Hansen-Hurwitz estimator, for example, are examples of estimators introduced to deal with various sampling methods.
However, I don't understand why they are considered to be estimators in the strictest sense of the word. An estimator is a function that maps the sample space to a set of sample estimates, so to speak. This means that if the following function (the Horvitz-Thompson estimator) is an estimator
$\hat{Y}_{HT}=\sum_{i=1}^{n}\pi_{i}^{-1}Y_{i}$
Then $(Y_{1},...,Y_{n})$ is a random sample and therefore $Y_{i}$ is apparently a random variable. Nevertheless, in this context, the $Y_{i}$ are not treated as random variables (as they are, for example, in books on statistical inference). Precisely because they are not random variables, when proving the unbiasedness of the Horvitz-Thompson estimator, one has to introduce some kind of supporting random variable. Note (https://en.wikipedia.org/wiki/Horvitz%E2%80%93Thompson_estimator), for instance, the difference between the definition of the Horvitz-Thompson estimator when introduced formally, and the definition of the Horvitz-Thompson estimator when proving the unbiasedness of the estimator for the mean.
How is this tension solved?