Skip to content

refactor: rename Cardinal.lt_aleph0_iff_finite → Cardinal.mk_lt_aleph0_iff - #45889

Open
vihdzp wants to merge 5 commits into
leanprover-community:masterfrom
vihdzp:carddupes
Open

vihdzp wants to merge 5 commits into
leanprover-community:masterfrom
vihdzp:carddupes

Conversation

@vihdzp

@vihdzp vihdzp commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

I claim that the older name is not good, since it doesn't mention Cardinal.mk. We also rename some similar surrounding theorems. This incidentally gets rid of two duplicate declarations.


@vihdzp vihdzp added t-set-theory Set theory tech debt Fixes cross-cutting technical debt, see the "technical debt counters" stream on zulip awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. labels Nov 11, 2026
@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

PR summary 45804594ac

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

+ finite_Iic_nat
+ finite_Iio_nat
+ mk_finset_lt_aleph0
+ mk_set_lt_aleph0_iff
+ mk_subtype_lt_aleph0_iff

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 4580459).

  • +7 new declarations
  • −1 removed declarations
+Cardinal.mk_finset_lt_aleph0
+Cardinal.mk_set_lt_aleph0_iff
+Cardinal.mk_subtype_lt_aleph0_iff
+Module.instFiniteElemExtendOfFiniteSubtypeMemSubmoduleSpan
-Module.instFintypeElemExtendOfFiniteSubtypeMemSubmoduleSpan
+Set.Finite.mk_lt_aleph0
+Set.finite_Iic_nat
+Set.finite_Iio_nat

No changes to strong technical debt.
No changes to weak technical debt.

Current commit 45804594ac
Reference commit bfce241797

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.py 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).

@github-actions github-actions Bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Nov 11, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-set-theory Set theory tech debt Fixes cross-cutting technical debt, see the "technical debt counters" stream on zulip

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant