Collective predictive coding as model of science: formalizing scientific activities towards generative science