Mathlib v3 is deprecated. Go to Mathlib v4

Commit 2021-10-11 07:59 082aa832

View on Github →

feat(data/finset): add finset.erase_none (#9630)

  • move option.to_finset and finset.insert_none to a new file data.finset.option; redefine the latter in terms of finset.cons;
  • define finset.erase_none, prove lemmas about it;
  • add finset.prod_cons, finset.sum_cons, finset.coe_cons, finset.cons_subset_cons, finset.card_cons;
  • add finset.subtype_mono and finset.bUnion_congr;
  • add set.insert_subset_insert_iff;
  • add @[simp] to finset.map_subset_map;
  • upgrade finset.map_embedding to an order_embedding;
  • add @[simps] to equiv.option_is_some_equiv and function.embedding.some;
  • golf some proofs.

Estimated changes

added theorem finset.bUnion_congr
added theorem finset.card_cons
added theorem finset.coe_cons
modified def finset.map_embedding
modified theorem finset.map_inj
modified theorem finset.map_subset_map
modified theorem finset.mem_cons
added theorem finset.subtype_mono
deleted theorem option.mem_to_finset
deleted def option.to_finset
deleted theorem option.to_finset_none
deleted theorem option.to_finset_some