Commit 2026-04-08 19:05 43840861

View on Github →

chore(Data/Finset/Lattice/Fold): use to_dual (#37047) This PR uses the @[to_dual] attribute to generate dual lemmas about Finset.sup. The lemmas about sdiff and himp are skipped, as HeytingAlgebra is not yet tagged with @[to_dual]. To improve the consistency between dual lemmas, several changes are made:

  • tag inf_insert with @[grind =]
  • rename le_inf_const_le to le_inf_const
  • tag inf_union with @[grind _=_]
  • tag inf_mono_fun with @[grind ←]
  • tag inf_mono with @[grind ←]
  • tag inf_attach with @[simp]
  • add le_inf_of_directed_le
  • add inf_eq_top_of_isEmpty
  • add inf_mem_of_nonempty
  • add inf'_mono_fun
  • rename comp_sup_eq_sup_comp_of_nonempty to apply_sup_eq_sup_comp_of_nonempty and add apply_inf_eq_inf_comp_of_nonempty

Estimated changes

deleted theorem Finset.coe_inf'
deleted theorem Finset.exists_inf_eq_iInf
deleted theorem Finset.exists_inf_le
deleted theorem Finset.exists_mem_eq_inf'
deleted theorem Finset.exists_mem_eq_inf
deleted def Finset.inf'
deleted theorem Finset.inf'_comp_eq_image
deleted theorem Finset.inf'_comp_eq_map
deleted theorem Finset.inf'_congr
deleted theorem Finset.inf'_cons
deleted theorem Finset.inf'_const
deleted theorem Finset.inf'_eq_inf
deleted theorem Finset.inf'_eq_of_forall
deleted theorem Finset.inf'_image
deleted theorem Finset.inf'_induction
deleted theorem Finset.inf'_insert
deleted theorem Finset.inf'_le
deleted theorem Finset.inf'_le_iff
deleted theorem Finset.inf'_le_of_le
deleted theorem Finset.inf'_lt_iff
deleted theorem Finset.inf'_map
deleted theorem Finset.inf'_mem
deleted theorem Finset.inf'_mono
deleted theorem Finset.inf'_singleton
deleted theorem Finset.inf'_union
deleted def Finset.inf
deleted theorem Finset.inf_attach
deleted theorem Finset.inf_coe
deleted theorem Finset.inf_congr
deleted theorem Finset.inf_cons
deleted theorem Finset.inf_const
deleted theorem Finset.inf_def
deleted theorem Finset.inf_disjSum
deleted theorem Finset.inf_dite_neg_le
deleted theorem Finset.inf_dite_pos_le
deleted theorem Finset.inf_empty
deleted theorem Finset.inf_eq_iInf
deleted theorem Finset.inf_eq_sInf_image
deleted theorem Finset.inf_erase_top
deleted theorem Finset.inf_id_eq_sInf
deleted theorem Finset.inf_image
deleted theorem Finset.inf_induction
deleted theorem Finset.inf_inf
deleted theorem Finset.inf_insert
deleted theorem Finset.inf_ite
deleted theorem Finset.inf_le
deleted theorem Finset.inf_le_of_le
deleted theorem Finset.inf_map
deleted theorem Finset.inf_mem
deleted theorem Finset.inf_mono
deleted theorem Finset.inf_mono_fun
deleted theorem Finset.inf_of_mem
deleted theorem Finset.inf_singleton
deleted theorem Finset.inf_top
deleted theorem Finset.inf_union
deleted theorem Finset.isGLB_inf'
deleted theorem Finset.isGLB_inf
deleted theorem Finset.isGLB_inf_id
deleted theorem Finset.le_inf'
deleted theorem Finset.le_inf'_iff
deleted theorem Finset.le_inf_const_le
deleted theorem Finset.lt_inf'_iff
deleted theorem Finset.ofDual_inf'
deleted theorem Finset.ofDual_inf
deleted theorem Finset.toDual_inf'
deleted theorem Finset.toDual_inf
deleted theorem map_finset_inf'
deleted theorem map_finset_inf