lean4-htt/src
Arthur Adjedj bf8b66c6a5
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`](2c15cdda04/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).
2024-03-21 10:29:22 +00:00
..
bin feat: Web Assembly Build (#2599) 2023-10-04 09:04:20 +02:00
cmake
include/lean fix: do not dllexport symbols in core static libraries (#3601) 2024-03-15 11:58:34 +00:00
Init feat: BitVec.ofBoolListLE and theorems (#3721) 2024-03-21 04:48:29 +00:00
initialize chore: fix more typos in comments 2023-10-08 14:37:34 -07:00
kernel feat: type of theorems must be propositions 2024-03-13 12:37:58 -07:00
lake doc: lake: fix typo (#3704) 2024-03-17 18:23:21 +00:00
Lean fix: ignore unused alternatives in Ord derive handler (#3725) 2024-03-21 10:29:22 +00:00
library perf: LLVM backend, put all allocas in the first BB to enable mem2reg (#3244) 2024-02-13 14:54:40 +00:00
runtime fix: deadlock in IO.Promise.resolve (#3693) 2024-03-20 12:47:52 +00:00
shell fix: do not dllexport symbols in core static libraries (#3601) 2024-03-15 11:58:34 +00:00
util fix: remove target triple parameter from FFI that no longer exists in the Lean API 2023-11-02 23:21:47 +01:00
CMakeLists.txt fix: do not dllexport symbols in core static libraries (#3601) 2024-03-15 11:58:34 +00:00
config.h.in
githash.h.in
Init.lean chore: upstream omega (#3367) 2024-02-19 00:19:55 +00:00
lean-toolchain doc: VS Code dev setup (#2961) 2023-11-30 08:35:03 +00:00
Lean.lean feat: reserved names (#3675) 2024-03-15 00:33:22 +00:00
lean.mk.in fix: do not dllexport symbols in core static libraries (#3601) 2024-03-15 11:58:34 +00:00
Leanc.lean fix: do not dllexport symbols in core static libraries (#3601) 2024-03-15 11:58:34 +00:00
stdlib.make.in fix: do not dllexport symbols in core static libraries (#3601) 2024-03-15 11:58:34 +00:00
stdlib_flags.h chore: update domain 2023-09-20 15:13:27 -07:00
version.h.in feat: System.Platform.target (#3207) 2024-01-24 12:11:00 +00:00