We study the equilibrium configurations of heteropolymer chains in the
infinite-dimensional space. The number of sorts of monomers composing
the chains is finite. The interactions between pairs of monomers are
defined (using Hebbian learning rule) in such a way that in the thermo
dynamic limit the equilibrium configurations of the polymers are some
preassigned shapes. The phase diagram of the model is obtained and the
memory capacity is computed.