Mathematics inside the black box