Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ignore unused alternatives in
Ord
derive handler (#3725)
Closes #3706 This derive handler's implementation is very similar to `BEq`'s, which already ignores unused alternative so as to work correctly on indexed inductive types. This PR simply implements the same solution as the one present in [`BEq.lean`](https://github.com/leanprover/lean4/blob/2c15cdda044e77bb8c3937c63501850790e60dc6/src/Lean/Elab/Deriving/BEq.lean#L94). After some tests, it doesn't seem like any other derive handler present in Core suffers from the same issue (though some handlers don't work on indexed inductives for other reasons).
- Loading branch information