That's exactly how Mathlib and Lean work, and apparently that was sufficient to solve two mathematical physics problems to a significant degree (NS fully, YM partially).