Skip to content

chore: deprecate StrictMono.not_bddAbove_range_of_wellFoundedLT → StrictMono.isCofinal_range - #40876

Open
vihdzp wants to merge 6 commits into
leanprover-community:masterfrom
vihdzp:cofinal6
Open

vihdzp wants to merge 6 commits into
leanprover-community:masterfrom
vihdzp:cofinal6

Conversation

@vihdzp

@vihdzp vihdzp commented Jun 21, 2026

Copy link
Copy Markdown
Collaborator

In a linear order without a maximum, the statements ¬ BddAbove s and IsCofinal s are equivalent. The IsCofinal version of this theorem works even without the NoMaxOrder assumption, so it is strictly more general.


Open in Gitpod

@github-actions

github-actions Bot commented Jun 21, 2026 •

Copy link
Copy Markdown

PR summary 8ebada6aad

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.SetTheory.Ordinal.Enum 721 722 +1 (+0.14%)
Import changes for all files
Files Import difference
5 files Mathlib.SetTheory.Ordinal.Enum Mathlib.SetTheory.Ordinal.FixedPoint Mathlib.SetTheory.Ordinal.Notation Mathlib.SetTheory.Ordinal.Principal Mathlib.SetTheory.Ordinal.Veblen
1

Declarations diff (regex)

+ BddAbove.not_isCofinal
+ IsCofinal.not_bddAbove
+ StrictMono.isCofinal_range
+ StrictMono.isCoinitial_range

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

  • +4 new declarations
  • −0 removed declarations
+BddAbove.not_isCofinal
+IsCofinal.not_bddAbove
+StrictMono.isCofinal_range
+StrictMono.isCoinitial_range

No changes to strong technical debt.

No changes to weak technical debt.

Current commit 8ebada6aad
Reference commit 6f1ef4e5dd

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

@vihdzp vihdzp added the t-order Order theory label Jun 21, 2026
Comment thread Mathlib/Order/WellFounded.lean Resolved
@vihdzp
vihdzp requested a review from YaelDillies August 11, 2026 00:33
@YaelDillies

Copy link
Copy Markdown
Contributor

Boundedness is a commonplace concept in mathematics while cofinality is much less widespread. Can we keep the "not bounded above" spelling for discovery? I would be happy for you to add a comment to the lemma saying "In this situation, a set is bounded above iff it's not cofinal"

@YaelDillies YaelDillies added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Aug 13, 2026
@vihdzp

vihdzp commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator Author

I'd rather not duplicate every lemma we have on IsCofinal with a BddAbove spelling. Maybe I could just add a comment "in a NoMaxOrder, this implies \not BddAbove via IsCofinal.not_bddAbove"?

@YaelDillies

Copy link
Copy Markdown
Contributor

I am saying that this is bad, because people will be searching for "not bounded" and not find the lemma

@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 Aug 24, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

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

@SnirBroshi

SnirBroshi commented Nov 28, 2026 •

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

awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) t-order Order theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants