Choose an affine open subscheme containing . Since is an affine morphism, ; by hypothesis is a finitely generated module over . If corresponds to the closed point , then . The scheme-theoretic fiber is
If generate the -module , their images span the algebra as a vector space over . It is therefore finite-dimensional. By the allowed fact about the spectrum of a finite-dimensional commutative algebra, it has only finitely many prime ideals. These are exactly the points of , so
The points of the scheme-theoretic fiber correspond to the prime ideals of contracting to , which explains the equality with the underlying set-theoretic fiber. An empty fiber is allowed. In fact, replacing by gives the same finite-dimensional argument for every point, without requiring it to be a closed point.
Let be a prime ideal of . Its quotient ring is a nonzero integral domain and a finite-dimensional -vector space. For , multiplication by is an injective -linear map , because has no zero divisors. An injective endomorphism of a finite-dimensional vector space is surjective. In particular for some . Every nonzero element is therefore invertible, so is a field and is a maximal ideal.
To prove finiteness, select any distinct maximal ideals . Distinct maximal ideals are comaximal: strictly contains , so must equal . The Chinese remainder theorem gives a surjection
Here is the needed surjectivity explicitly. For each , choose with , using comaximality. Then is one modulo and zero modulo the other selected ideals. Given any residue tuple represented by , the element maps to that tuple. Thus the displayed map really is surjective.
Each nonzero field quotient has -dimension at least one, so
There cannot be more than maximal ideals, because otherwise one could select a finite list exceeding this bound. Consequently
This proves the description of the spectrum of a finite-dimensional commutative algebra. If , its spectrum is empty and the same conclusion holds.