fix: reject replay map entries stored under a different name

This PR makes `leanchecker` reject `.olean` files whose constant name table does not match the names of the stored constants. Previously, a recursor, constructor or quotient entry stored under a different key was never compared against the kernel-generated declaration.

`Kernel.Environment.replay` now checks that each map key equals the name of the `ConstantInfo` stored under it. `leanchecker` additionally rejects modules with duplicate entries in `constNames` or with `constNames` and `constants` of different sizes.

Fixes #16675

Built with Claude

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 files changed