refactor: reimplement mkNoConfusionType in Lean (#10334) This PR reimplements `mkNoConfusionType` in lean, thus removing the remaining C code related to this construction. Also uses the ctor elimination principles only when there are more than three ctors.
This is the repository for Lean 4.
See Setting Up Lean.
Please read our Contribution Guidelines first.
See Building Lean.