TITLE: Which concept of dimension of a ring of functions on a manifold, gives the dimension of the manifold?
QUESTION [9 upvotes]: Let $R$ be a ring of (smooth?) functions on a (connected?) manifold of dimension $n$. What concept of dimension (of the ring $R$) gives the dimension of the manifold? To what class of rings does this concept apply?

REPLY [3 votes]: There is an approach to this question through a smooth version of the Hochschild-Kostant-Rosenberg (HKR) Theorem, which is related to Robert Bryant's answer.  The smooth version is due to Alain Connes in its original form.
First, the original HKR theorem says that for a regular affine $k$-algebra $R$ (think of the algebra of polynomial functions on a smooth affine variety), there are isomorphisms
$$
\Lambda^\bullet (\Omega_{R/k}) \cong \mathrm{Tor}_\bullet^{R^e}(R,R) \overset{\mathrm{def}}{=} HH_\bullet(R)
$$
and
$$
\Lambda^\bullet (\mathrm{Der}(R)) \cong \mathrm{Ext}_{R^e}^\bullet (R,R) \overset{\mathrm{def}}{=} HH^\bullet(R).
$$
Here $\Omega_{R/k}$ is the $R$-module of Kahler differentials and $\mathrm{Der}(R)$ is the $R$-module of derivations of $R$, which are algebraic analogues of 1-forms and vector fields on $R$, respectively.  As Donu Arapura points out in his comment, Kahler differentials are the predual to derivations, rather than the other way around, as one normally defines forms to be dual to vector fields in the differential-geometric setting.
Also $R^e = R \otimes R$, and $HH_\bullet(R)$ and $HH^\bullet(R)$ are the Hochschild homology and cohomology of $R$, respectively.
The upshot is that when $R$ is the coordinate ring of a smooth affine variety, we can find the dimension of that variety by looking at the highest degree in which the Hochschild homology or cohomology does not vanish.
Moving to the smooth case one needs to be quite careful, however.  For a smooth manifold $M$, the Kahler differentials of $C^\infty(M)$ are not the same as the module of smooth 1-forms, as can be seen in this question.
The extra structure that $C^\infty(M)$ possesses is that of a Frechet algebra, where the seminorms are given by sup-norms of partial derivatives on compact subsets of $M$.
Hochschild homology and cohomology can be adapted to the setting of certain topological algebras, and then there is an analogue of the HKR theorem.  One formulation of it says that for $A = C^\infty(M)$, there are isomorphisms
$$
_cHH_\bullet(A,A) \cong \Omega^\bullet(M)
$$
and 
$$
_cHH^\bullet(A,A) \cong \Gamma^\infty(\Lambda^\bullet(TM)),
$$
where $\Omega^\bullet(M)$ is the algebra of differential forms, and $\Gamma^\infty(\Lambda^\bullet(TM))$ is the space of smooth polyvector fields on $M$, and the subscript $c$ indicates the continuous Hochschild homology and cohomology.
So again, the dimension of $M$ can be determined as the top degree in which the continuous Hochschild homology and cohomology do not vanish.
This was proved by Connes (see Chapter 3, Section 2 of his book Noncommutative Geometry, plus references therein) for compact manifolds.  For noncompact manifolds it is written up concisely in the paper On Continuous Hochschild Homology and Cohomology Groups, by Markus Pflaum.  Connes' version uses the language of de Rham currents, which are dual to differential forms.
Another source to look at is Chapter 8 of the book Elements of Noncommutative Geometry by Gracia-Bondia, Varilly, and Figueroa.