Skip to content

chore(SetTheory/Ordinal/Principal): prove IsCofinal version of ¬ BddAbove theorem - #45932

Open
vihdzp wants to merge 10 commits into
leanprover-community:masterfrom
vihdzp:cofinalprinci
Open

vihdzp wants to merge 10 commits into
leanprover-community:masterfrom
vihdzp:cofinalprinci

Conversation

@vihdzp

@vihdzp vihdzp commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

PR summary cdff0d02a0

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.SetTheory.Ordinal.Principal 866 867 +1 (+0.12%)
Import changes for all files
Files Import difference
Mathlib.SetTheory.Ordinal.Notation Mathlib.SetTheory.Ordinal.Principal 1

Declarations diff (regex)

+ isCofinal_setOfPred_isPrincipal
- isPrincipal_nfp_iSup

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

  • +1 new declarations
  • −0 removed declarations
+Ordinal.isCofinal_setOfPred_isPrincipal

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

Current commit cdff0d02a0
Reference commit 12f966a2d9

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

@vihdzp
vihdzp requested a review from YaelDillies November 12, 2026 09:51
@YaelDillies

Copy link
Copy Markdown
Contributor

Same objection as in #40876

@YaelDillies YaelDillies self-assigned this Nov 12, 2026
@YaelDillies YaelDillies added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Nov 12, 2026
@vihdzp

vihdzp commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator Author

I think there's a stronger case for canonizing IsCofinal here, given that this is the spelling used by all the cofinality lemmas only a few files over.

If the issue is one of discoverability, is there some other way to address that? Should I write a few words in the BddAbove docstring mentioning how IsCofinal also exists? Should I make not_bddAbove_iff_isCofinal into a simp lemma so people are more aware of it?

@YaelDillies

Copy link
Copy Markdown
Contributor

Yes, cross-referencing IsCofinal and BddAbove would be a good first step.

@mathlib-merge-conflicts mathlib-merge-conflicts Bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Nov 19, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

@vihdzp vihdzp changed the title chore(SetTheory/Ordinal/Principal): use IsCofinal instead of ¬ BddAbove chore(SetTheory/Ordinal/Principal): prove IsCofinal version of ¬ BddAbove theorem Nov 20, 2026
@vihdzp

vihdzp commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator Author

Well, I have further refactoring work that depends on this, so I don't want to block it on this discussion. I'll prove the IsCofinal version alongside the ¬ BddAbove version, and we can decide later on if we want to deprecate the latter.

@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 Nov 20, 2026

@YaelDillies YaelDillies left a comment

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.

Let's standardise \not IsCofinal to BddAbove and \not BddAbove to IsCofinal, per the Zulip discussion.

maintainer delegate

@YaelDillies YaelDillies removed their assignment Nov 25, 2026
@github-actions

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by YaelDillies.

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Nov 25, 2026
@vihdzp vihdzp removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Nov 26, 2026
@SnirBroshi

Copy link
Copy Markdown
Collaborator

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

maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. t-set-theory Set theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants