Algebraic–Geometric Duality for Affine Varieties