International audienceThe existence of extrasolar planets with short orbital periods suggests that planetary migration induced by tidal interaction with the protoplanetary disk is important. Cores and terrestrial planets may undergo migration as they form. In this paper we investigate the evolution of a population of cores with initial masses in the range 0.1-1 M⊕ embedded in a disk. Mutual interactions lead to orbit crossing and mergers, so that the cores grow during their evolution. Interaction with the disk leads to orbital migration, which results in the cores capturing each other in mean motion resonances. As the cores migrate inside the disk inner edge, scatterings and mergers of planets on unstable orbits, together with orbital circu...