Markets often decide poorly. What even would a market for mathematics look like? I think this obsession with the market solving everything is the religion of destructive philistines.
Their is plenty of evidence of markets not making rational decisions (think virtually any bubble) why sacrifice all human affairs, art and culture to such a god?
There is no sacrifice occurring. It was fine all along.
If you take it metaphorically - you publish your math on arxiv and other mathematicians either like it or they dont.
People often say "market" when they really mean - does society like this.
As a tangent though, i think lean is doing more to reduce gatekeeping then AI is. People who appear to be cranks generally get ignored. Show up with a lean verified proof, and people will take you more seriously.