chore: move type lowering functions to CoreM (#9064)
This is the repository for Lean 4.
See Setting Up Lean.
Please read our Contribution Guidelines first.
See Building Lean.