Yu Gong Yi Shan is an allegorical story of Liezi, a thinker in the Warring States Period. Since it is a fable, it is not true. There is also a saying that this story originated from Zhu Fahu's translation of "Buddha said that Lu Xun moved mountains", which is a Buddhist classic in the Middle Ages.
At the beginning of the story, he said, "Taihang Mountain, the prince of Wu, is 700 miles square and high. This is in the south of Jizhou and the north of Heyang. " So they moved the two mountains.