The mechanism of the halogen migration

Via initial metalation of the starting compound (A) (eqn. 1), subsequent metal-halogen exchange between the metalated species thus obtained and unreacted starting material (eqn. 2) or polyhalogenated intermediates (eqns. 3 and 4), a final halogen migration product (C) is formed.