  Protoplanetary disks are thought to be truncated at orbital periods of around
10 days. Therefore, origin of rocky short period planets with $P < 10$ days is
a puzzle. We propose that many of these planets may form through the Type-I
migration of planets locked into a chain of mutual mean motion resonances. We
ran N-body simulations of planetary embryos embedded in a protoplanetary disk.
The embryos experienced gravitational scatterings, collisions, disk torques,
and dampening of orbital eccentricity and inclination. We then modelled Kepler
observations of these planets using a forward model of both the transit
probability and the detection efficiency of the Kepler pipeline. We found that
planets become locked into long chains of mean motion resonances that migrate
in unison. When the chain reaches the edge of the disk, the inner planets are
pushed past the edge due to the disk torques acting on the planets farther out
in the chain. Our simulated systems successfully reproduce the observed period
distribution of short period Kepler planets between 1 and 2 $R_\oplus$.
However, we obtain fewer closely packed short period planets than in the Kepler
sample. Our results provide valuable insight into the planet formation process,
and suggests that resonance locks, migration, and dynamical instabilities play
important roles the the formation and evolution of close-in small exoplanets.
