Kim Morrison
ef05bdc449
chore: rename List.bind and Array.concatMap to flatMap ( #5731 )
2024-10-16 11:30:49 +00:00
Kim Morrison
aa2360a41d
chore: rename List.join to List.flatten
...
one more
one more
one more
fix test
2024-10-14 22:28:12 +11:00
Kim Morrison
a4fda010f3
feat: Array/Option.unattach ( #5586 )
...
More support for automatically removing `.attach`, for `Array` and
`Option`.
2024-10-03 07:29:00 +00:00
Kim Morrison
9322d8d639
feat: List.unattach and simp lemmas ( #5550 )
...
Co-authored-by: Joachim Breitner <mail@joachim-breitner.de>
2024-10-02 02:42:54 +00:00
Kim Morrison
e3811fd838
chore: cleanup unused variables ( #5579 )
...
This pulls changes to the standard library out of #5338 .
2024-10-02 01:51:22 +00:00
Kim Morrison
590c725943
feat: lemmas about List.maximum? ( #5394 )
2024-09-19 09:23:11 +00:00
Kim Morrison
9193196208
feat: List.fold / attach lemmas ( #5392 )
2024-09-19 08:26:06 +00:00
Kim Morrison
45af92fcd1
feat: lemmas about List.tail ( #5360 )
2024-09-16 09:25:24 +00:00
Kim Morrison
b1179d5cc3
chore: fix implicitness of List.getElem_mem ( #5331 )
2024-09-16 03:28:14 +00:00
Kim Morrison
0aac83fe40
feat: List.attachWith lemmas ( #5352 )
2024-09-16 02:24:14 +00:00
Kim Morrison
7432a6f01f
feat: more List.attach lemmas ( #5277 )
2024-09-07 05:29:40 +00:00
Kim Morrison
fcfead8cde
feat: lemmas about List.attach ( #5273 )
...
#5272 should be merged first; this contains some material from that PR.
2024-09-06 22:14:56 +00:00
Kim Morrison
d08051cf0b
chore: variables appearing on both sides of an iff should be implicit ( #5254 )
2024-09-04 08:33:24 +00:00
Kim Morrison
c4e4248487
chore: remove @[simp] from List.getLast_eq_iff_getLast_eq_some ( #5178 )
...
This was not a great simp lemma, and hurts simp confluence. Better to
just use it locally where it is useful.
Similarly `List.head_eq_iff_head?_eq_some`.
2024-08-27 03:23:39 +00:00
Kim Morrison
7e5d1103c2
feat: more lemmas about List.pmap/attach ( #5160 )
2024-08-26 02:15:58 +00:00
Kim Morrison
75781b46f5
feat: lemmas about List.attach/pmap ( #5153 )
2024-08-25 03:58:54 +00:00
Kim Morrison
bf304769e0
feat: misc List lemma updates ( #5127 )
2024-08-23 01:17:17 +00:00
Kim Morrison
69f86d6478
chore: split Init.Data.List.Lemmas ( #4863 )
...
Init.Data.List.Lemmas had reached 5000 lines: splitting into
function-specific files.
2024-07-30 03:17:34 +00:00
Kim Morrison
83ad82162f
feat: upstream more List lemmas ( #4856 )
2024-07-28 23:23:59 +00:00
L
a7bbe7416b
feat: upstream List.attach and Array.attach from Batteries ( #4586 )
...
Source material:
555ec79bc6/Batteries/Data/List/Init/Attach.lean
555ec79bc6/Batteries/Data/Array/Basic.lean (L133-L148)
Closes RFC #4414
2024-06-30 07:06:26 +00:00