Can someone explain me why weight and density are topological properties.
Here standard definitions are used. Namely,
$1)$ Weight w(X), the least cardinality of a basis of the topology of the space X
$2)$ Density d(X), the least cardinality of a subset of X whose closure is X.