I have studied linear algebra and commutative algebra, there are two kinds of dimension there : the vector space's dimension and the Krull dimension.
Also, in physics, dimension is also a very intuitive concepts.
My question is : What is the nearest mathematical definition of dimension to the physical one ?
In the wikipedia page, they also list some mathematical types of dimension : Dimension
The relevant notion of dimension to physics as I understand it is the dimension of a manifold (e.g. a (3+1)-dimensional Lorentzian manifold). If the manifold is smooth (which is, as I understand it, the case in physics) then the dimension of a manifold agrees with the dimension of its tangent spaces, so morally it is the linear-algebraic notion that is relevant here.
(Of course, in nice cases the Krull dimension ought to also equal the dimension of Zariski tangent spaces. But as far as I know, the universe is not profitably modeled as an algebraic variety.)