'Hafal' = equal, 'i' = to ; 'Yn hafal i' = to be equal to,
The full phrase should use 'Mae' eg 'Mae pedwar adio dau yn hafal i chwech' = 'Four add two is equal to six' (or Four add two equals six), however the initial 'mae' is often dropped, especially in school lessons.