Mathlib v3 is deprecated. Go to Mathlib v4

Commit 2022-10-04 05:52 561202d0

View on Github →

refactor(data/list/count): review API, add lemmas (#16736)

  • add list.countp_join, list.countp_map, list.countp_mono_left, list.countp_congr, and list.count_join;
  • add @[simp] attrs to list.countp_eq_zero, list.countp_eq_length, list.count_eq_zero, and list.count_eq_length;
  • golf the proofs of list.count_bind, list.count_map_of_injective, and list.count_le_count_map.

Estimated changes

modified theorem list.count_eq_length
modified theorem list.count_eq_zero
added theorem list.count_join
added theorem list.countp_congr
modified theorem list.countp_eq_length
modified theorem list.countp_eq_zero
modified theorem list.countp_false
modified theorem list.countp_filter
added theorem list.countp_join
added theorem list.countp_map
added theorem list.countp_mono_left
modified theorem list.countp_true