lean4-htt/src/Init/Data/Array
Matthew Robert Ballard b54a9ec9b9
feat: swap arguments to Membership.mem (#5020)
We swap the arguments for `Membership.mem` so that when proceeded by a
`SetLike` coercion, as is often the case in Mathlib, the resulting
expression is recognized as eta expanded and reduce for many
computations. The most beneficial outcome is that the discrimination
tree keys for instances and simp lemmas concerning subsets become more
robust resulting in more efficient searches.

Closes `RFC` #4932

---------

Co-authored-by: Kim Morrison <kim@tqft.net>
Co-authored-by: Henrik Böving <hargonix@gmail.com>
2024-08-26 12:35:47 +00:00
..
Subarray feat: show diffs when #guard_msgs fails (#3912) 2024-04-18 15:09:44 +00:00
Attach.lean feat: upstream List.attach and Array.attach from Batteries (#4586) 2024-06-30 07:06:26 +00:00
Basic.lean chore: correct doc-string for Array.swap! (#4869) 2024-07-31 04:02:30 +00:00
BasicAux.lean chore: reorganisation of List API (#4469) 2024-06-17 04:21:53 +00:00
BinSearch.lean chore: remove [Inhabited A] from binSearch / binInsert 2022-11-13 15:00:26 -08:00
DecidableEq.lean fix: split (for if-expressions) should work on non-propositional goals (#4349) 2024-06-05 04:43:46 +00:00
InsertionSort.lean feat: use sepBy1Indent for tactic blocks 2022-09-18 16:43:23 -07:00
Lemmas.lean feat: Std.Sat.AIG (#4953) 2024-08-12 14:58:38 +00:00
Mem.lean feat: swap arguments to Membership.mem (#5020) 2024-08-26 12:35:47 +00:00
QSort.lean perf: use with_reducible in special-purpose decreasing_trivial macros (#3991) 2024-04-29 15:12:27 +00:00
Subarray.lean feat: remove Decidable instances from GetElem (#4560) 2024-06-27 02:09:29 +00:00
TakeDrop.lean chore: split Init.Data.List.Lemmas (#4863) 2024-07-30 03:17:34 +00:00