Commit 2026-06-09 08:51 da74387b

View on Github →

chore: rename diff to sdiff (#40184) This PR changes diff to sdiff in identifier names when referring to the SDiff.sdiff operation \. Notes:

  • For subset_image_diff, I made its replacement private, deprecating it to the stronger image_sdiff.
  • There are some names with diff that are a bit mysterious to me, which I did not change in this PR: inverse_add_norm_diff_first_order, inverse_add_norm_diff_second_order, inverse_add_norm_diff_nth_order SimpleGraph.Adj.diff_dist_adj
  • Batteries has the definition List.diff, which maybe should instead be the \ operation?

Estimated changes

deleted theorem Set.encard_diff
added theorem Set.encard_sdiff
deleted theorem Set.le_ncard_diff
added theorem Set.le_ncard_sdiff
deleted theorem Set.ncard_diff'
deleted theorem Set.ncard_diff
deleted theorem Set.ncard_diff_add_ncard
added theorem Set.ncard_sdiff'
added theorem Set.ncard_sdiff
deleted theorem Set.diff_eq
deleted theorem Set.mem_diff
deleted theorem Set.mem_diff_of_mem
added theorem Set.mem_sdiff
added theorem Set.mem_sdiff_of_mem
added theorem Set.sdiff_eq
deleted theorem Set.compl_diff
deleted theorem Set.compl_eq_univ_diff
added theorem Set.compl_sdiff
deleted theorem Set.diff_compl
deleted theorem Set.diff_diff
deleted theorem Set.diff_diff_cancel_left
deleted theorem Set.diff_diff_comm
deleted theorem Set.diff_diff_right
deleted theorem Set.diff_diff_right_self
deleted theorem Set.diff_empty
deleted theorem Set.diff_eq_compl_inter
deleted theorem Set.diff_eq_empty
deleted theorem Set.diff_insert_of_notMem
deleted theorem Set.diff_inter
deleted theorem Set.diff_inter_diff
deleted theorem Set.diff_inter_right_comm
deleted theorem Set.diff_inter_self
deleted theorem Set.diff_nonempty
deleted theorem Set.diff_self
deleted theorem Set.diff_self_inter
deleted theorem Set.diff_ssubset_left_iff
deleted theorem Set.diff_subset
deleted theorem Set.diff_subset_comm
deleted theorem Set.diff_subset_compl
deleted theorem Set.diff_subset_diff
deleted theorem Set.diff_subset_diff_left
deleted theorem Set.diff_subset_iff
deleted theorem Set.diff_union_inter
deleted theorem Set.diff_union_of_subset
deleted theorem Set.diff_union_self
deleted theorem Set.diff_univ
deleted theorem Set.empty_diff
added theorem Set.empty_sdiff
deleted theorem Set.insert_diff_insert
deleted theorem Set.insert_diff_of_mem
deleted theorem Set.insert_diff_of_notMem
deleted theorem Set.insert_diff_singleton
deleted theorem Set.insert_diff_subset
deleted theorem Set.inter_diff_assoc
deleted theorem Set.inter_diff_right_comm
deleted theorem Set.inter_diff_self
added theorem Set.inter_sdiff_assoc
added theorem Set.inter_sdiff_self
deleted theorem Set.inter_union_diff
added theorem Set.inter_union_sdiff
deleted theorem Set.ite_diff_self
added theorem Set.ite_sdiff_self
deleted theorem Set.mem_diff_singleton
deleted theorem Set.mem_of_mem_diff
added theorem Set.mem_of_mem_sdiff
deleted theorem Set.notMem_diff_of_mem
deleted theorem Set.notMem_of_mem_diff
deleted theorem Set.pair_diff_left
deleted theorem Set.pair_diff_right
added theorem Set.pair_sdiff_left
added theorem Set.pair_sdiff_right
added theorem Set.sdiff_compl
added theorem Set.sdiff_empty
added theorem Set.sdiff_eq_empty
added theorem Set.sdiff_inter
added theorem Set.sdiff_inter_sdiff
added theorem Set.sdiff_inter_self
added theorem Set.sdiff_nonempty
added theorem Set.sdiff_sdiff
added theorem Set.sdiff_sdiff_comm
added theorem Set.sdiff_sdiff_right
added theorem Set.sdiff_self
added theorem Set.sdiff_self_inter
added theorem Set.sdiff_subset
added theorem Set.sdiff_subset_comm
added theorem Set.sdiff_subset_compl
added theorem Set.sdiff_subset_iff
added theorem Set.sdiff_subset_sdiff
added theorem Set.sdiff_union_inter
added theorem Set.sdiff_union_self
added theorem Set.sdiff_univ
deleted theorem Set.subset_diff
deleted theorem Set.subset_diff_singleton
deleted theorem Set.subset_diff_union
added theorem Set.subset_sdiff
added theorem Set.subset_sdiff_union
deleted theorem Set.union_diff_cancel'
deleted theorem Set.union_diff_cancel
deleted theorem Set.union_diff_distrib
deleted theorem Set.union_diff_left
deleted theorem Set.union_diff_right
deleted theorem Set.union_diff_self
added theorem Set.union_sdiff_cancel
added theorem Set.union_sdiff_left
added theorem Set.union_sdiff_right
added theorem Set.union_sdiff_self
deleted theorem Set.Icc_diff_Ico_same
deleted theorem Set.Icc_diff_Ioo_same
deleted theorem Set.Icc_diff_both
deleted theorem Set.Icc_diff_left
added theorem Set.Icc_sdiff_Ico_same
added theorem Set.Icc_sdiff_Ioo_same
added theorem Set.Icc_sdiff_both
added theorem Set.Icc_sdiff_left
deleted theorem Set.Ico_diff_Ioo_same
deleted theorem Set.Ico_diff_left
added theorem Set.Ico_sdiff_Ioo_same
added theorem Set.Ico_sdiff_left
deleted theorem Set.Iic_diff_Iio_same
deleted theorem Set.Iic_diff_right
added theorem Set.Iic_sdiff_Iio_same
added theorem Set.Iic_sdiff_right
deleted theorem Set.Ici_diff_Ici
deleted theorem Set.Ici_diff_Ioi
added theorem Set.Ici_sdiff_Ici
added theorem Set.Ici_sdiff_Ioi
deleted theorem Set.Ico_diff_Iio
added theorem Set.Ico_sdiff_Iio
deleted theorem Set.Iic_diff_Ioc
added theorem Set.Iic_sdiff_Ioc
deleted theorem Set.Ioc_diff_Iic
deleted theorem Set.Ioc_diff_Ioi
added theorem Set.Ioc_sdiff_Iic
added theorem Set.Ioc_sdiff_Ioi
deleted theorem Set.Ioi_diff_Ici
deleted theorem Set.Ioi_diff_Ioc
deleted theorem Set.Ioi_diff_Ioi
added theorem Set.Ioi_sdiff_Ici
added theorem Set.Ioi_sdiff_Ioc
added theorem Set.Ioi_sdiff_Ioi