refactor: simplify the condition for sharing server extension entries This PR simplifies the check in `finalizeImport` for when `serverBaseExts` can reuse the main extension entries to `level != .server`. At `.private`, `importModulesCore` loads every module as `importAll`, so `serverData?` and `mainModule?` select the same part; at `.exported` they evaluate the same expression; and modules without data fall back to their `moduleData` entry at every level. This relies on `level` being the `globalLevel` the modules were loaded with, which holds for all callers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This is the repository for Lean 4.
See Install Lean.
Please read our Contribution Guidelines first.
See Building Lean.