Mathlib v3 is deprecated. Go to Mathlib v4

Commit 2023-01-15 06:15 f694c7de

View on Github →

refactor(*): define list.replicate and migrate to it (#18127) This definition differs from list.repeat by the order of arguments. The new order is in sync with the Lean 4 version.

Estimated changes

deleted theorem list.eq_of_mem_repeat
deleted theorem list.eq_repeat'
deleted theorem list.eq_repeat
deleted theorem list.eq_repeat_of_mem
added theorem list.eq_replicate
deleted theorem list.join_repeat_nil
deleted theorem list.last_repeat_succ
added theorem list.length_replicate
modified theorem list.map_const
deleted theorem list.map_eq_repeat_iff
deleted theorem list.map_repeat
added theorem list.map_replicate
deleted theorem list.mem_repeat
added theorem list.mem_replicate
deleted theorem list.nth_le_repeat
added theorem list.nth_le_replicate
deleted theorem list.repeat_add
deleted theorem list.repeat_left_inj'
deleted theorem list.repeat_left_inj
deleted theorem list.repeat_right_inj
deleted theorem list.repeat_succ
added theorem list.replicate_add
added theorem list.replicate_succ
deleted theorem list.reverse_repeat
added theorem list.reverse_replicate
deleted theorem list.sublist_repeat_iff
modified theorem list.subset_singleton_iff
deleted theorem list.tail_repeat
added theorem list.tail_replicate
modified theorem list.take'_nil
deleted theorem list.take_repeat
added theorem list.take_replicate
deleted theorem multiset.card_repeat
deleted theorem multiset.coe_repeat
added theorem multiset.coe_replicate
deleted theorem multiset.count_repeat
deleted theorem multiset.eq_of_mem_repeat
deleted theorem multiset.eq_repeat'
deleted theorem multiset.eq_repeat
deleted theorem multiset.eq_repeat_of_mem
added theorem multiset.eq_replicate
modified theorem multiset.filter_eq'
modified theorem multiset.filter_eq
deleted theorem multiset.inter_repeat
deleted theorem multiset.le_repeat_iff
deleted theorem multiset.lt_repeat_succ
modified theorem multiset.map_const
deleted theorem multiset.map_repeat
added theorem multiset.map_replicate
deleted theorem multiset.mem_repeat
added theorem multiset.mem_replicate
deleted theorem multiset.nsmul_repeat
modified theorem multiset.nsmul_singleton
deleted theorem multiset.rel_repeat_left
deleted theorem multiset.rel_repeat_right
deleted def multiset.repeat
deleted theorem multiset.repeat_add
deleted theorem multiset.repeat_inf
deleted theorem multiset.repeat_injective
deleted theorem multiset.repeat_inter
deleted theorem multiset.repeat_le_coe
deleted theorem multiset.repeat_le_repeat
deleted theorem multiset.repeat_left_inj
deleted theorem multiset.repeat_one
deleted theorem multiset.repeat_succ
deleted theorem multiset.repeat_zero
added theorem multiset.replicate_add
added theorem multiset.replicate_one
deleted theorem sym.coe_repeat
added theorem sym.coe_replicate
deleted theorem sym.eq_repeat
deleted theorem sym.eq_repeat_iff
added theorem sym.eq_replicate
added theorem sym.eq_replicate_iff
deleted theorem sym.mem_repeat
added theorem sym.mem_replicate
deleted def sym.repeat
deleted theorem sym.repeat_left_inj
deleted theorem sym.repeat_left_injective
deleted theorem sym.repeat_succ
added def sym.replicate
added theorem sym.replicate_succ