A discerning child who understands prayer can legally serve as the sole follower behind an Imam to establish a valid congregational prayer.

The Congregational Prayer (الجماعة): Legal Status and Importance