The mechanization of science illustrated by the Lean formalization of the multi-graded Proj construction