Mathematical reasoning is an important facet of human cognitive talents, driving progress in scientific discoveries and…