Skip to content

[Merged by Bors] - chore(Data): rename setOf to Set.ofPred - #41507

Closed
YaelDillies wants to merge 3 commits into
leanprover-community:masterfrom
YaelDillies:set_of_pred
Closed

YaelDillies wants to merge 3 commits into
leanprover-community:masterfrom
YaelDillies:set_of_pred

Conversation

@YaelDillies

@YaelDillies YaelDillies commented Jul 8, 2026 •

Copy link
Copy Markdown
Contributor

This is in prevision of making Set a one-field structure. ofPred will then be the constructor.

Generated by Claude Opus then reviewed line-by-line by myself.

Assisted-by: Claude Opus 4.8


Open in Gitpod

@YaelDillies YaelDillies changed the title chore(Data): rename setOf to Set.ofPred` chore(Data): rename setOf to Set.ofPred Jul 8, 2026
@github-actions

github-actions Bot commented Jul 8, 2026 •

Copy link
Copy Markdown

PR summary 736341416f

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

+ AddAction.properVAdd_iff_isCompact_setOf_inter_nonempty
+ Antitone.countable_setOfPred_two_preimages
+ AntitoneOn.countable_setOfPred_two_preimages
+ ContinuousMap.dense_setOfPred_contDiff
+ Convex.setOfPred_const_imp
+ Convex.setOfPred_gauge_le
+ Countable.ofPred_finite
+ DefinableFun.ofPred_eq
+ DefinableFun.ofPred_eq_const
+ Equicontinuous.isClosed_setOfPred_tendsto
+ Filter.TotallyBounded.isCompact_setOfPred_clusterPt
+ Filter.TotallyBounded.totallyBounded_setOfPred_clusterPt
+ Ideal.setOfPred_isPrincipal_wellFoundedOn_gt
+ Indep.closure_eq_setOfPred_isBasis_insert
+ Indep.isBasis_setOfPred_insert_isBasis
+ IsAntichain.eq_setOfPred_maximal
+ IsAntichain.eq_setOfPred_minimal
+ IsClosed.setOfPred_mapsTo
+ IsGδ.setOfPred_continuousAt
+ IsGδ.setOfPred_irrational
+ IsGδ.setOfPred_liouville
+ IsHamiltonian.setOfPred_support
+ LHom.setOfPred_realize_onFormula
+ LinearOrderedAddCommGroup.wellFoundedOn_setOfPred_ge_gt_iff_nonempty_discrete
+ LinearOrderedAddCommGroup.wellFoundedOn_setOfPred_le_lt_iff_nonempty_discrete
+ LinearOrderedCommGroup.wellFoundedOn_setOfPred_ge_gt_iff_nonempty_discrete
+ LinearOrderedCommGroup.wellFoundedOn_setOfPred_le_lt_iff_nonempty_discrete
+ LinearOrderedCommGroupWithZero.wellFoundedOn_setOfPred_ge_gt_iff_nonempty_discrete_of_ne_zero
+ LinearOrderedCommGroupWithZero.wellFoundedOn_setOfPred_le_lt_iff_nonempty_discrete_of_ne_zero
+ MeasurableSet.setOfPred_finite
+ MeasurableSet.setOfPred_infinite
+ MeromorphicOn.codiscreteWithin_setOfPred_ne_zero
+ Monotone.countable_setOfPred_two_preimages
+ MonotoneOn.countable_setOfPred_two_preimages
+ MulAction.properSMul_iff_isCompact_setOfPred_inter_nonempty
+ Nat.isSemilinearSet_setOfPred_eq
+ Nat.isSemilinearSet_setOfPred_mulVec_eq
+ ProperSMul.isCompact_setOfPred_inter_nonempty
+ ProperVAdd.isCompact_setOf_inter_nonempty
+ Ring.KrullDimLE.minimalPrimes_eq_setOfPred_isMaximal
+ Ring.KrullDimLE.minimalPrimes_eq_setOfPred_isPrime
+ Set.coe_ofPred
+ Set.ofPred
+ Valuation.exists_setOfPred_restrict_le_iff
+ Walk.setOfPred_length_eq_add_one
+ Walk.setOfPred_length_eq_zero
+ Walk.setOfPred_length_eq_zero_of_ne
+ WfDvdMonoid.of_setOfPred_isPrincipal_wellFoundedOn_gt
+ _root_.Irreducible.maximalIdeal_eq_setOfPred_le_v_coe
+ _root_.Irreducible.maximalIdeal_pow_eq_setOfPred_le_v_coe_pow
+ _root_.Set.Ioc_mem_ofPred_Ioc_le
+ _root_.convex_setOfPred_holderOnWith
+ _root_.convex_setOfPred_holderWith
+ addSubmonoid_closure_setOfPred_eq_monomial
+ add_closure_setOfPred_eq_single
+ ae_finite_setOfPred_mem
+ aeconst_of_dense_setOfPred_preimage_smul_ae
+ aeconst_of_dense_setOfPred_preimage_smul_eq
+ aeconst_of_dense_setOf_preimage_vadd_ae
+ aeconst_of_dense_setOf_preimage_vadd_eq
+ antitone_ofPred
+ bddAbove_setOfPred_infinite_setOfPred_apply_eq
+ bddAbove_setOfPred_k_lt_card
+ closure_inter_setOfPred_isNonloop_eq
+ closure_setOfPred_im_lt
+ closure_setOfPred_lt_im
+ closure_setOfPred_lt_re
+ closure_setOfPred_re_lt
+ codiscreteWithin_setOfPred_analyticOrderAt_eq_zero_or_top
+ codiscreteWithin_setOfPred_meromorphicOrderAt_eq_zero_or_top
+ codiscrete_setOfPred_analyticOrderAt_eq_zero_or_top
+ codiscrete_setOfPred_meromorphicOrderAt_eq_zero_or_top
+ coe_setOfPred
+ coe_span_singleton_eq_setOfPred_le_v_algebraMap
+ coe_span_singleton_eq_setOfPred_le_v_coe
+ compl_image_ofPred
+ compl_ofPred
+ compl_setOfPred_mem
+ countable_ofPred_finite_subset
+ countable_ofPred_nonempty_of_disjoint
+ countable_setOfPred_covBy_right
+ countable_setOfPred_isolated_left
+ countable_setOfPred_isolated_left_within
+ countable_setOfPred_isolated_right
+ countable_setOfPred_isolated_right_within
+ countable_setOf_covBy_left
+ diagSet_eq_setOfPred_isDiag
+ edgeSet_eq_setOfPred_exists_isLink
+ eq_mem_ofPred
+ eq_setOfPred_le_sSup_and_isAtom
+ equivSetOfPred
+ exists_infinite_setOfPred_apply_eq
+ exists_isSemilinearSet_setOfPred_le
+ finite_setOfPred_absNorm_eq
+ finite_setOfPred_absNorm_le
+ finite_setOfPred_absNorm_le₀
+ finite_setOfPred_addOrderOf_eq
+ finite_setOfPred_apply_eq_iff_not_small
+ finite_setOfPred_apply_eq_k_add_one
+ finite_setOfPred_bounded
+ finite_setOfPred_isIntegral_nat_mul_and_mulHeight₁_le
+ finite_setOfPred_isMin
+ finite_setOfPred_isRestriction
+ finite_setOfPred_isRoot
+ finite_setOfPred_k_lt_card
+ finite_setOfPred_logHeight₁_le
+ finite_setOfPred_matroid
+ finite_setOfPred_matroid'
+ finite_setOfPred_mem
+ finite_setOfPred_mulHeight_nat_le
+ finite_setOfPred_mulHeight₁_le
+ finite_setOfPred_pattern_support_eq
+ finite_setOfPred_prod_infinitePlace_iSup_le
+ finite_setOfPred_setGcd_dvd_and_mem_span
+ frontier_setOfPred_im_le
+ frontier_setOfPred_im_lt
+ frontier_setOfPred_le_im
+ frontier_setOfPred_le_re
+ frontier_setOfPred_le_re_and_im_le
+ frontier_setOfPred_le_re_and_le_im
+ frontier_setOfPred_lt_im
+ frontier_setOfPred_lt_re
+ frontier_setOfPred_re_le
+ frontier_setOfPred_re_lt
+ generateFrom_setOfPred_isOpen
+ iInter_ofPred
+ iInter_setOfPred_subset
+ iUnion_ofPred
+ iUnion_smul_eq_ofPred_exists
+ iUnion_vadd_eq_setOf_exists
+ image_antitone_setOfPred_minimal
+ image_antitone_setOfPred_minimal_mem
+ image_antitone_setOf_maximal
+ image_antitone_setOf_maximal_mem
+ image_monotone_setOfPred_minimal
+ image_monotone_setOfPred_minimal_mem
+ image_monotone_setOf_maximal
+ image_monotone_setOf_maximal_mem
+ image_setOf_maximal
+ infinite_setOfPred_apply_eq_anti
+ infinite_setOfPred_apply_eq_iff_small
+ infinite_setOfPred_apply_eq_k
+ infinite_setOfPred_apply_eq_one
+ infinite_setOfPred_prime
+ infinite_setOfPred_prime_and_eq_mod
+ infinite_setOfPred_prime_and_modEq
+ infinite_setOfPred_prime_modEq_one
+ infinite_setOfPred_pseudoprimes
+ injOn_setOfPred_apply_add_one_eq_of_M_le
+ injOn_setOfPred_mem_Icc_setOfPred_lower_eq
+ instance {k : ℕ} : Fintype (fiber α k) := inferInstanceAs <| Fintype (Set.ofPred _)
+ integral_lt_integral_of_ae_le_of_measure_setOfPred_lt_ne_zero
+ inter_ofPred_eq_sep
+ inter_preimage_setOfPred_minimal_eq_of_subset
+ inter_preimage_setOf_maximal_eq_of_subset
+ interior_setOfPred_eq
+ interior_setOfPred_im_le
+ interior_setOfPred_le_im
+ interior_setOfPred_le_re
+ interior_setOfPred_re_le
+ inv_ofPred
+ isClopen_setOfPred_analyticOrderAt_eq_top
+ isClopen_setOfPred_mapsTo
+ isClopen_setOfPred_meromorphicOrderAt_eq_top
+ isClopen_setOfPred_rel
+ isClosed_setOfPred_blockTriangular
+ isClosed_setOfPred_clusterPt
+ isClosed_setOfPred_concaveOn
+ isClosed_setOfPred_convexOn
+ isClosed_setOfPred_iff
+ isClosed_setOfPred_inseparable
+ isClosed_setOfPred_isCompactOperator
+ isClosed_setOfPred_lipschitzOnWith
+ isClosed_setOfPred_lipschitzWith
+ isClosed_setOfPred_map_inv
+ isClosed_setOfPred_map_mul
+ isClosed_setOfPred_map_one
+ isClosed_setOfPred_map_smul
+ isClosed_setOfPred_mapsTo
+ isClosed_setOfPred_preimage_ae_eq
+ isClosed_setOfPred_specializes
+ isClosed_setOfPred_sublevelLeft_subset
+ isClosed_setOfPred_tendsto_birkhoffAverage
+ isClosed_setOf_map_add
+ isClosed_setOf_map_neg
+ isClosed_setOf_map_zero
+ isCofinal_setOfPred_imp_lt
+ isCompact_setOfPred_finiteMeasure_eq_of_compactSpace
+ isCompact_setOfPred_finiteMeasure_le_of_compactSpace
+ isCompact_setOfPred_finiteMeasure_le_of_isCompact
+ isCompact_setOfPred_finiteMeasure_mass_eq_compl_isCompact_le
+ isCompact_setOfPred_finiteMeasure_mass_le_compl_isCompact_le
+ isCompact_setOfPred_probabilityMeasure_mass_eq_compl_isCompact_le
+ isComplete_setOfPred_eqOn
+ isConnected_setOfPred_sOppSide
+ isConnected_setOfPred_sSameSide
+ isConnected_setOfPred_sameRay
+ isConnected_setOfPred_sameRay_and_ne_zero
+ isConnected_setOfPred_wOppSide
+ isConnected_setOfPred_wSameSide
+ isLowerSet_setOfPred
+ isOpen_setOfPred_affineIndependent
+ isOpen_setOfPred_disjoint
+ isOpen_setOfPred_disjoint_nhds_nhds
+ isOpen_setOfPred_eventually_nhds
+ isOpen_setOfPred_eventually_nhdsWithin
+ isOpen_setOfPred_harmonicAt
+ isOpen_setOfPred_linearIndependent
+ isOpen_setOfPred_mapsTo
+ isOpen_setOfPred_mem
+ isOpen_setOfPred_mem_nhds_and_isMaxOn_norm
+ isOpen_setOfPred_nat_le_rank
+ isOpen_setOfPred_range_subset
+ isOpen_setOf_rel
+ isPreconnected_setOfPred_sOppSide
+ isPreconnected_setOfPred_sSameSide
+ isPreconnected_setOfPred_wOppSide
+ isPreconnected_setOfPred_wSameSide
+ isPrincipal_iff_exists_eq_setOfPred_valuation_le
+ isSemilinearSet_setOfPred_eq
+ isStarProjection_iff_mem_extremePoints_setOfPred_nonneg_inter_unitClosedBall
+ isUpperSet_setOfPred
+ maximalIdeal_eq_setOfPred_le_v_algebraMap
+ maximalIdeal_pow_eq_setOfPred_le_v_algebraMap_pow
+ measurableSet_setOfPred
+ measurable_setOfPred
+ measure_setOfPred_frequently_eq_zero
+ mem_ofPred
+ mem_ofPred_eq
+ monotone_ofPred
+ neg_setOf
+ nonempty_setOfPred_infinite_setOfPred_apply_eq
+ notMem_ofPred_iff
+ not_bddAbove_setOfPred_isPrincipal
+ not_bddAbove_setOfPred_prime
+ ofPred_and
+ ofPred_bijective
+ ofPred_bot
+ ofPred_eq_eq_singleton
+ ofPred_eq_eq_singleton'
+ ofPred_exists
+ ofPred_false
+ ofPred_forall
+ ofPred_inj
+ ofPred_injective
+ ofPred_inter_eq_sep
+ ofPred_mem_eq
+ ofPred_mem_list_eq_replicate
+ ofPred_mem_list_eq_singleton_of_nodup
+ ofPred_or
+ ofPred_subset
+ ofPred_subset_ofPred
+ ofPred_subset_ofPred_of_imp
+ ofPred_top
+ ofPred_true
+ ordConnected_setOfPred_closedEBall_subset
+ ordConnected_setOfPred_eball_subset
+ polarSubmodule_eq_setOfPred
+ preimage_ofPred_eq
+ preimage_setOfPred_dist
+ schnirelmannDensity_setOfPred_Odd
+ schnirelmannDensity_setOfPred_even
+ schnirelmannDensity_setOfPred_mod_eq_one
+ schnirelmannDensity_setOfPred_modeq_one
+ schnirelmannDensity_setOfPred_prime
+ self_subset_setOfPred_gauge_le_one
+ sep_ofPred
+ sep_subset_ofPred
+ setOfMaximalIsoSetOfMinimal
+ setOfPred
+ setOfPredMinimalIsoSetOfPredMaximal
+ setOfPred_apply_eq_of_apply_big_of_N'_le
+ setOfPred_apply_symm_eq_image_setOfPred
+ setOfPred_dep_eq
+ setOfPred_dual_isBase_eq
+ setOfPred_gauge_le_eq
+ setOfPred_gauge_lt_eq
+ setOfPred_gauge_lt_eq'
+ setOfPred_gauge_lt_one_eq_interior
+ setOfPred_gauge_lt_one_eq_self_of_isOpen
+ setOfPred_gauge_lt_one_subset_self
+ setOfPred_indep_eq
+ setOfPred_index_eq_univ
+ setOfPred_isClosed_eq_range_closure
+ setOfPred_isExtremePt_eq_bot
+ setOfPred_isExtremePt_isAdmissible
+ setOfPred_isMaximal_finite
+ setOfPred_isNonloop_eq
+ setOfPred_isOpen
+ setOfPred_isOpen_iSup
+ setOfPred_isOpen_injective
+ setOfPred_isOpen_sSup
+ setOfPred_isOpen_sup
+ setOfPred_isPreconnected_eq_of_ordered
+ setOfPred_isPreconnected_subset_of_ordered
+ setOfPred_isPrime_finite
+ setOfPred_isUnit_inter_mul_comm
+ setOfPred_liouvilleWith_subset_aux
+ setOfPred_liouville_eq_iInter_iUnion
+ setOfPred_liouville_eq_irrational_inter_iInter_iUnion
+ setOfPred_maximal_antichain
+ setOfPred_mem
+ setOfPred_mem_cons
+ setOfPred_mem_eq
+ setOfPred_mem_eq_empty_iff
+ setOfPred_mem_eq_univ_iff
+ setOfPred_mem_integer_eq_closedBall
+ setOfPred_minimal_antichain
+ setOfPred_minimal_subset
+ setOfPred_odd_degree_eq
+ setOfPred_polynomial_valuation_lt_one_and_ne_zero_nonempty
+ setOfPred_pow_dvd_eq_Icc_factorization
+ setOfPred_riemannianEDist_lt_subset_nhds
+ setOfPred_riemannianEDist_lt_subset_nhds'
+ setOfPred_root_add_zsmul_eq_Icc_of_linearIndependent
+ setOfPred_root_add_zsmul_mem_eq_Icc
+ setOfPred_root_sub_zsmul_mem_eq_Icc
+ setOfPred_sOppSide_eq_image2
+ setOfPred_sSameSide_eq_image2
+ setOfPred_sublevelLeft_subset
+ setOfPred_subset_eq_empty_iff
+ setOfPred_subset_eq_univ_iff
+ setOfPred_wOppSide_eq_image2
+ setOfPred_wSameSide_eq_image2
+ setOf_apply
+ setOf_maximal_subset
+ setOf_symm_apply
+ span_setOfPred_mem_eq_top
+ subset_ofPred
+ subsingleton_setOfPred_mem_iff_pairwise_disjoint
+ surjective_count_of_infinite_setOfPred
+ volume_iUnion_setOfPred_liouvilleWith
+ volume_setOfPred_liouville
++ dense_setOfPred_finite
++ image_setOfPred_minimal
++ isClosed_setOfPred_continuous
++ isClosed_setOfPred_totallyBounded
++ isOpen_setOfPred_disjoint_coe
++ setOfPred_mem_sym2
++ toFinset_ofPred
++-- dense_setOf_finite
++-- image_setOf_minimal
++-- isClosed_setOf_continuous
++-- isClosed_setOf_totallyBounded
++-- isOpen_setOf_disjoint_coe
++-- setOf
++-- setOf_mem_eq
++-- setOf_mem_sym2
++-- toFinset_setOf
- Nat.isSemilinearSet_setOf_eq
- _root_.Irreducible.maximalIdeal_eq_setOf_le_v_coe
- _root_.Irreducible.maximalIdeal_pow_eq_setOf_le_v_coe_pow
- _root_.Set.Ioc_mem_setOf_Ioc_le
- _root_.convex_setOf_holderOnWith
- _root_.convex_setOf_holderWith
- exists_isSemilinearSet_setOf_le
- finite_setOf_bounded
- finite_setOf_isIntegral_nat_mul_and_mulHeight₁_le
- instance {k : ℕ} : Fintype (fiber α k) := inferInstanceAs <| Fintype (setOf _)

You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.

Declarations diff (Lean)

✅ Lean-aware diff — post-build, computed from the Lean environment (commit 7363414).

  • +334 new declarations
  • −9 removed declarations

(showing first 200 of 343 lines)

+AddAction.properVAdd_iff_isCompact_setOfPred_inter_nonempty
+AddCircle.finite_setOfPred_addOrderOf_eq
+AffineSubspace.isConnected_setOfPred_sOppSide
+AffineSubspace.isConnected_setOfPred_sSameSide
+AffineSubspace.isConnected_setOfPred_wOppSide
+AffineSubspace.isConnected_setOfPred_wSameSide
+AffineSubspace.isPreconnected_setOfPred_sOppSide
+AffineSubspace.isPreconnected_setOfPred_sSameSide
+AffineSubspace.isPreconnected_setOfPred_wOppSide
+AffineSubspace.isPreconnected_setOfPred_wSameSide
+AffineSubspace.setOfPred_sOppSide_eq_image2
+AffineSubspace.setOfPred_sSameSide_eq_image2
+AffineSubspace.setOfPred_wOppSide_eq_image2
+AffineSubspace.setOfPred_wSameSide_eq_image2
+AnalyticOnNhd.codiscreteWithin_setOfPred_analyticOrderAt_eq_zero_or_top
+AnalyticOnNhd.codiscrete_setOfPred_analyticOrderAt_eq_zero_or_top
+AnalyticOnNhd.isClopen_setOfPred_analyticOrderAt_eq_top
+Antitone.countable_setOfPred_two_preimages
+AntitoneOn.countable_setOfPred_two_preimages
+BoxIntegral.Prepartition.injOn_setOfPred_mem_Icc_setOfPred_lower_eq
+CategoryTheory.GradedObject.instFiniteElemProdNatOfPredEqHAddFstSnd
-CategoryTheory.GradedObject.instFiniteElemProdNatSetOfEqHAddFstSnd
+ChainCompletePartialOrder.IsExtremePt.setOfPred_isExtremePt_eq_bot
+ChainCompletePartialOrder.IsExtremePt.setOfPred_isExtremePt_isAdmissible
+ClosureOperator.setOfPred_isClosed_eq_range_closure
+CompleteAtomicBooleanAlgebra.eq_setOfPred_le_sSup_and_isAtom
+Complex.closure_setOfPred_im_lt
+Complex.closure_setOfPred_lt_im
+Complex.closure_setOfPred_lt_re
+Complex.closure_setOfPred_re_lt
+Complex.frontier_setOfPred_im_le
+Complex.frontier_setOfPred_im_lt
+Complex.frontier_setOfPred_le_im
+Complex.frontier_setOfPred_le_re
+Complex.frontier_setOfPred_le_re_and_im_le
+Complex.frontier_setOfPred_le_re_and_le_im
+Complex.frontier_setOfPred_lt_im
+Complex.frontier_setOfPred_lt_re
+Complex.frontier_setOfPred_re_le
+Complex.frontier_setOfPred_re_lt
+Complex.interior_setOfPred_im_le
+Complex.interior_setOfPred_le_im
+Complex.interior_setOfPred_le_re
+Complex.interior_setOfPred_re_le
+Complex.isOpen_setOfPred_mem_nhds_and_isMaxOn_norm
+ContinuousFunctions.instCoeFunElemForallOfPredContinuous
-ContinuousFunctions.instCoeFunElemForallSetOfContinuous
+ContinuousMap.dense_setOfPred_contDiff
+ContinuousMap.isClopen_setOfPred_mapsTo
+ContinuousMap.isClosed_setOfPred_mapsTo
+ContinuousMap.isComplete_setOfPred_eqOn
+ContinuousMap.isOpen_setOfPred_mapsTo
+ContinuousMap.isOpen_setOfPred_range_subset
+Convex.setOfPred_const_imp
+Convex.setOfPred_gauge_le
+DiscreteQuotient.isClopen_setOfPred_rel
+DiscreteQuotient.isOpen_setOfPred_rel
+Equicontinuous.isClosed_setOfPred_tendsto
+Equiv.setOfPred_apply_symm_eq_image_setOfPred
+Filter.TotallyBounded.isCompact_setOfPred_clusterPt
+Filter.TotallyBounded.totallyBounded_setOfPred_clusterPt
+Filter.isOpen_setOfPred_mem
+Finset.setOfPred_mem
+Finsupp.add_closure_setOfPred_eq_single
+FirstOrder.Language.LHom.setOfPred_realize_onFormula
+FirstOrder.Language.Theory.CompleteType.compl_setOfPred_mem
+FirstOrder.Language.Theory.CompleteType.iInter_setOfPred_subset
+FirstOrder.Language.Theory.CompleteType.setOfPred_mem_eq_univ_iff
+FirstOrder.Language.Theory.CompleteType.setOfPred_subset_eq_empty_iff
+FirstOrder.Language.Theory.CompleteType.setOfPred_subset_eq_univ_iff
+Graph.edgeSet_eq_setOfPred_exists_isLink
+Homeomorph.isClosed_setOfPred_iff
+Ideal.finite_setOfPred_absNorm_eq
+Ideal.finite_setOfPred_absNorm_le
+Ideal.finite_setOfPred_absNorm_le₀
+Ideal.setOfPred_isPrincipal_wellFoundedOn_gt
+InnerProductSpace.isOpen_setOfPred_harmonicAt
+Irreducible.maximalIdeal_eq_setOfPred_le_v_coe
+Irreducible.maximalIdeal_pow_eq_setOfPred_le_v_coe_pow
+IsAntichain.eq_setOfPred_maximal
+IsAntichain.eq_setOfPred_minimal
+IsArtinianRing.setOfPred_isMaximal_finite
+IsArtinianRing.setOfPred_isPrime_finite
+IsClosed.setOfPred_mapsTo
+IsGδ.setOfPred_continuousAt
+IsGδ.setOfPred_irrational
+IsGδ.setOfPred_liouville
+Isometry.preimage_setOfPred_dist
+LieModule.Weight.equivSetOfPred
+LinearOrderedAddCommGroup.wellFoundedOn_setOfPred_ge_gt_iff_nonempty_discrete
+LinearOrderedAddCommGroup.wellFoundedOn_setOfPred_le_lt_iff_nonempty_discrete
+LinearOrderedCommGroup.wellFoundedOn_setOfPred_ge_gt_iff_nonempty_discrete
+LinearOrderedCommGroup.wellFoundedOn_setOfPred_le_lt_iff_nonempty_discrete
+LinearOrderedCommGroupWithZero.wellFoundedOn_setOfPred_ge_gt_iff_nonempty_discrete_of_ne_zero
+LinearOrderedCommGroupWithZero.wellFoundedOn_setOfPred_le_lt_iff_nonempty_discrete_of_ne_zero
+List.setOfPred_mem_cons
+List.setOfPred_mem_eq_empty_iff
+List.setOfPred_mem_sym2
+Mathlib.Meta.ofPred.unexpander
+Mathlib.Meta.ofPredPatternMatchUnexpander
-Mathlib.Meta.setOf.unexpander
-Mathlib.Meta.setOfPatternMatchUnexpander
+Matroid.Indep.closure_eq_setOfPred_isBasis_insert
+Matroid.Indep.isBasis_setOfPred_insert_isBasis
+Matroid.closure_inter_setOfPred_isNonloop_eq
+Matroid.finite_setOfPred_isRestriction
+Matroid.finite_setOfPred_matroid
+Matroid.finite_setOfPred_matroid'
+Matroid.instNonemptyElemSetOfPredAndIsFlatLeInterE
-Matroid.instNonemptyElemSetSetOfAndIsFlatLeInterE
+Matroid.setOfPred_dep_eq
+Matroid.setOfPred_dual_isBase_eq
+Matroid.setOfPred_indep_eq
+Matroid.setOfPred_isNonloop_eq
+MeasurableEquiv.coe_setOfPred
+MeasurableEquiv.setOfPred
+MeasurableEquiv.setOfPred_apply
+MeasurableEquiv.setOfPred_symm_apply
+MeasurableSet.setOfPred_finite
+MeasurableSet.setOfPred_infinite
+MeasureTheory.ae_finite_setOfPred_mem
+MeasureTheory.isClosed_setOfPred_preimage_ae_eq
+MeasureTheory.measure_setOfPred_frequently_eq_zero
+MeromorphicAt.MeromorphicOn.codiscreteWithin_setOfPred_ne_zero
+MeromorphicOn.codiscreteWithin_setOfPred_meromorphicOrderAt_eq_zero_or_top
+MeromorphicOn.codiscrete_setOfPred_meromorphicOrderAt_eq_zero_or_top
+MeromorphicOn.isClopen_setOfPred_meromorphicOrderAt_eq_top
+Metric.ordConnected_setOfPred_closedEBall_subset
+Metric.ordConnected_setOfPred_eball_subset
+Monotone.countable_setOfPred_two_preimages
+MonotoneOn.countable_setOfPred_two_preimages
+MulAction.properSMul_iff_isCompact_setOfPred_inter_nonempty
+Multiset.instFintypeElemProdNatOfPredLtSndCountFst
-Multiset.instFintypeElemProdNatSetOfLtSndCountFst
+Multiset.setOfPred_mem_sym2
+Nat.finite_setOfPred_setGcd_dvd_and_mem_span
+Nat.infinite_setOfPred_prime
+Nat.infinite_setOfPred_prime_and_eq_mod
+Nat.infinite_setOfPred_prime_and_modEq
+Nat.infinite_setOfPred_prime_modEq_one
+Nat.infinite_setOfPred_pseudoprimes
+Nat.isSemilinearSet_setOfPred_mulVec_eq
+Nat.not_bddAbove_setOfPred_prime
+Nat.setOfPred_pow_dvd_eq_Icc_factorization
+Nat.surjective_count_of_infinite_setOfPred
+NumberField.finite_setOfPred_logHeight₁_le
+NumberField.finite_setOfPred_mulHeight_nat_le
+NumberField.finite_setOfPred_mulHeight₁_le
+NumberField.finite_setOfPred_prod_infinitePlace_iSup_le
+OrderEmbedding.image_setOfPred_minimal
+OrderEmbedding.inter_preimage_setOfPred_maximal_eq_of_subset
+OrderEmbedding.inter_preimage_setOfPred_minimal_eq_of_subset
+OrderIso.image_setOfPred_maximal
+OrderIso.image_setOfPred_minimal
+OrderIso.setOfPredMaximalIsoSetOfPredMinimal
+OrderIso.setOfPredMinimalIsoSetOfPredMaximal
+Ordinal.not_bddAbove_setOfPred_isPrincipal
+Polynomial.addSubmonoid_closure_setOfPred_eq_monomial
+Polynomial.finite_setOfPred_isRoot
+PrimeSpectrum.finite_setOfPred_isMin
+ProperSMul.isCompact_setOfPred_inter_nonempty
+ProperVAdd.isCompact_setOfPred_inter_nonempty
+RatFunc.setOfPred_polynomial_valuation_lt_one_and_ne_zero_nonempty
+Ring.HasFiniteQuotients.finite_setOfPred_mem
+Ring.KrullDimLE.minimalPrimes_eq_setOfPred_isMaximal
+Ring.KrullDimLE.minimalPrimes_eq_setOfPred_isPrime
+RootPairing.EmbeddedG2.setOfPred_index_eq_univ
+RootPairing.setOfPred_root_add_zsmul_eq_Icc_of_linearIndependent
+RootPairing.setOfPred_root_add_zsmul_mem_eq_Icc
+RootPairing.setOfPred_root_sub_zsmul_mem_eq_Icc
+Set.Countable.ofPred_finite
+Set.DefinableFun.ofPred_eq
+Set.DefinableFun.ofPred_eq_const
+Set.Finite.toFinset_ofPred
+Set.antitone_ofPred
+Set.coe_ofPred
+Set.compl_image_ofPred
+Set.compl_ofPred
+Set.countable_ofPred_finite_subset
+Set.countable_ofPred_nonempty_of_disjoint
+Set.eq_mem_ofPred
+Set.iInter_ofPred
+Set.iUnion_ofPred
+Set.iUnion_smul_eq_ofPred_exists
+Set.iUnion_vadd_eq_ofPred_exists
+Set.inter_ofPred_eq_sep
+Set.inv_ofPred
+Set.mem_ofPred
+Set.mem_ofPred_eq
+Set.monotone_ofPred
+Set.neg_ofPred
+Set.notMem_ofPred_iff
+Set.ofPred
+Set.ofPred_and
+Set.ofPred_bijective
+Set.ofPred_bot
+Set.ofPred_eq_eq_singleton
+Set.ofPred_eq_eq_singleton'
+Set.ofPred_exists
+Set.ofPred_false

No changes to strong technical debt.

No changes to weak technical debt.

Current commit 736341416f
Reference commit fd1d54bcac

This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:

git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@YaelDillies YaelDillies added t-data Data (lists, quotients, numbers, etc) LLM-generated PRs with substantial input from LLMs - review accordingly labels Jul 9, 2026

@themathqueen themathqueen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think there's a need for both Generated by: and Assisted by:, either one suffices, I think

@themathqueen

Copy link
Copy Markdown
Member

Note that this conflicts with #39110, namely the naming Set.ofPred there is used as an equivalence rather than the renaming of setOf. And these PRs in general take over that PR, so I think it's safe to say we can close that?
I'd like to at least wait for CI to pass here before closing anything though.

@YaelDillies

Copy link
Copy Markdown
Contributor Author

#39110 is doing eps of the required work. I have the whole refactor building locally.

@YaelDillies

Copy link
Copy Markdown
Contributor Author

Don't think there's a need for both Generated by: and Assisted by:, either one suffices, I think

The former is an informal description of how I used LLM tools. The latter is in a machine-readable format that follows the Linux kernel contribution convention.

@SnirBroshi

Copy link
Copy Markdown
Collaborator

I think merging the small bit will help the review & merge effort (compared to a +3k PR), but I should first fix any incompatibilities with your full PR (and also solve conflicts on my side so that you don't get any).

Does it not?

@YaelDillies

Copy link
Copy Markdown
Contributor Author

I think merging the small bit will help the review & merge effort (compared to a +3k PR)

I doubt so, because your small bits are going against what I am doing in #41506. But don't worry I am going to extract the fixes that can be made on master 😉

@themathqueen

Copy link
Copy Markdown
Member

@SnirBroshi, I don't think you should waste time on trying to make that PR more compatible with these (it's far more work than you think, the full PR is huge). Your PR should've been merged 2 months ago (but Yury got busy, I'm assuming), but now with these new PRs, I'm not so sure anymore. I haven't checked, but I think the same stuff is basically in Yaël's PR anyway?

Anyway, I think this PR would be easier to review than the rest since it's just a renaming PR. I'll set aside an hour of review time to do this later when it's fully ready.

Comment on lines 80 to 87
/-lemma autEmbedding_range :
Set.range (autEmbedding F) =
⋂ (f : Arrow C), { a | F.map f.hom ≫ (a f.right).hom = (a f.left).hom ≫ F.map f.hom } := by
ext a
simp only [Set.mem_range, id_obj, Set.mem_iInter, Set.mem_setOf_eq]
simp only [Set.mem_range, id_obj, Set.mem_iInter, Set.mem_ofPred_eq]
refine ⟨fun ⟨σ, h⟩ i ↦ h.symm ▸ σ.hom.naturality i.hom, fun h ↦ ?_⟩
· use NatIso.ofComponents a (fun {X Y} f ↦ h ⟨X, Y, f⟩)
rfl-/

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you know why this is commented out?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No clue, but probably out of scope to touch it in this PR?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, definitely out of scope

Comment thread Mathlib/ModelTheory/Semantics.lean Resolved
Comment thread Mathlib/ModelTheory/Substructures.lean Resolved
Comment thread Mathlib/Data/Set/Insert.lean Resolved
Comment thread Mathlib/Data/Sym/Sym2.lean Resolved
@@ -258,6 +258,9 @@ def abbreviationDict : Std.HashMap String String := .ofList [

("neTop", "NeBot"),
("decidableSucc", "DecidablePred"),
-- `Set.ofPred` is not dual to `Set.ofSucc`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is Set.ofSucc?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't exist and that's the point. If you don't add the line below (which we can't see here, please make multiline comments!), then to_dual tries translating ofPred to ofSucc.

@themathqueen themathqueen added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Jul 10, 2026
@SnirBroshi

Copy link
Copy Markdown
Collaborator

Hey, could you also rename List.set_of_mem_cons and Set.compl_image_set_of?
I wanted to fix their set_of to setOf, but if this PR will merge soon we can avoid double deprecations.

@YaelDillies YaelDillies removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Jul 13, 2026
Comment on lines +261 to +263
-- `Set.ofPred` is not dual to `Set.ofSucc`
("ofSucc", "OfPred"),
("setOfSucc", "SetOfPred"),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for not making a multiline comment before.

Anyway, I see. Let's keep this comment unresolved for other reviewers (especially because I don't fully understand this).

@themathqueen

Copy link
Copy Markdown
Member

I think there are some things to fix outside of mathlib btw, in docs/100.yaml, docs/1000.yaml and docs/undergrad.yaml

@themathqueen

Copy link
Copy Markdown
Member

Tried helping out with some fixes. But not sure how much I helped, sorry

@github-actions github-actions Bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jul 17, 2026
@Vierkantor

Copy link
Copy Markdown
Contributor

I checked a very minimized version of the diff using git diff $(git merge-base HEAD upstream/master) | grep -E '^[+-].+$' | grep -Ev -- '---|\+\+\+' | grep -Ev 'setOf|Set.ofPred|ofPred|setOfPred|SetOfPred', so together with your manual reviews this looks good (thanks so much for that)!

Looks like the "lint and suggest" step is also broken elsewhere, so I'm happy to merge this now. Thanks!

bors d+

@mathlib-bors mathlib-bors Bot added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Jul 17, 2026
@mathlib-bors

mathlib-bors Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

✌️ YaelDillies can now approve this pull request until 2026-07-31 09:18 UTC (in 2 weeks). To approve and merge, reply with bors r+. More detailed instructions are available here.

⚠️ This delegation only covers changes within Archive/**, Counterexamples/**, docs/**, DownstreamTest/**, Mathlib/**, MathlibTest/**, widget/**, Archive.lean, Counterexamples.lean, docs.lean, Mathlib.lean; an author commit touching anything else will revoke it. Bors also revokes it if a later push changes too many files for it to check the full list — even if it stays within scope.

@mathlib-triage mathlib-triage Bot removed the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jul 17, 2026
@YaelDillies

Copy link
Copy Markdown
Contributor Author

Did you mean

bors merge

since I can't do anything about Lint and suggest?

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Jul 17, 2026
@Vierkantor

Copy link
Copy Markdown
Contributor

Yes, if you don't know how to fix the error then let's try merging it.

mathlib-bors Bot pushed a commit that referenced this pull request Jul 17, 2026
This is in prevision of making `Set` a one-field structure. `ofPred` will then be the constructor.

Generated by Claude Opus then reviewed line-by-line by myself.

Assisted-by: Claude Opus 4.8
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Jul 17, 2026
@mathlib-bors

mathlib-bors Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title chore(Data): rename setOf to Set.ofPred [Merged by Bors] - chore(Data): rename setOf to Set.ofPred Jul 17, 2026
@mathlib-bors mathlib-bors Bot closed this Jul 17, 2026
@mathlib-bors mathlib-bors Bot removed the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Jul 17, 2026
@YaelDillies
YaelDillies deleted the set_of_pred branch July 17, 2026 10:51
YaelDillies added a commit to YaelDillies/mathlib4 that referenced this pull request Jul 28, 2026
Follow-up to leanprover-community#41507

Generated by Claude Opus, then reviewed and cherry-picked line-by-line by myself.

Assisted-by: Claude Opus 4.8
mathlib-bors Bot pushed a commit that referenced this pull request Jul 28, 2026
Follow-up to #41507

Generated by Claude Opus, then reviewed and cherry-picked line-by-line by myself.

Assisted-by: Claude Opus 4.8
mathlib-bors Bot pushed a commit that referenced this pull request Jul 28, 2026
Follow-up to #41507

Generated by Claude Opus, then reviewed and cherry-picked line-by-line by myself.

Assisted-by: Claude Opus 4.8
mpacholski pushed a commit to mpacholski/mathlib4 that referenced this pull request Jul 29, 2026
…42172)

Follow-up to leanprover-community#41507

Generated by Claude Opus, then reviewed and cherry-picked line-by-line by myself.

Assisted-by: Claude Opus 4.8
@JovanGerb

Copy link
Copy Markdown
Contributor

@YaelDillies, I just noticed that this PR replaced have by haveI in two places unnecessarily. Presumably, this change was generated by your LLM and then not caught in review by you or anyone else.

Is there a way that in the future a PR like this can be made in a way where we do not get unexpected unnecessary changes like this that no human would ever make?

obtain ⟨p, hp⟩ := h
have : Nonempty s := ⟨⟨p, hp⟩⟩
rw [setOf_sOppSide_eq_image2 hx hp, ← Set.image_prod]
haveI : Nonempty s := ⟨⟨p, hp⟩⟩

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specifically here

@@ -81,8 +81,8 @@ variable {M}

theorem commProb_eq_one_iff [h : Nonempty M] : commProb M = 1 ↔ IsMulCommutative M := by
classical
have := Fintype.ofFinite M
rw [commProb, ← Set.coe_setOf, Nat.card_eq_fintype_card, Nat.card_eq_fintype_card]
haveI := Fintype.ofFinite M

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here

@JovanGerb

Copy link
Copy Markdown
Contributor

By the way, I've also made #42251 that cleans up the to_dual abbreviation dictionary after this PR.

@YaelDillies

YaelDillies commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor Author

Is there a way that in the future a PR like this can be made in a way where we do not get unexpected unnecessary changes like this that no human would ever make?

I have reviewed every single line of code myself, but clearly my eyes must have gotten tired at some point. In similar circumstances, I have tried asking the LLM to revert the purely cosmetic changes, but it overreverted changes that were unnecesarry to make the build pass but still relevant. I am still learning how to use LLMs best and I acknowledge this is an issue, but here the extra lines account for 0.6% of the diff and they could have been caught by a linter that has been talked about on Zulip (haveI should never appear in a by block), so I wouldn't worry much.

mpacholski pushed a commit to mpacholski/mathlib4 that referenced this pull request Jul 30, 2026
This is in prevision of making `Set` a one-field structure. `ofPred` will then be the constructor.

Generated by Claude Opus then reviewed line-by-line by myself.

Assisted-by: Claude Opus 4.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bors-staging This PR is currently being built by bors on the staging branch. LLM-generated PRs with substantial input from LLMs - review accordingly ready-to-merge This PR has been sent to bors. t-data Data (lists, quotients, numbers, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants