Skip to content

[Merged by Bors] - feat(Order): WithBotTop and the extended integers#33876

Closed
joelriou wants to merge 14 commits intoleanprover-community:masterfrom
joelriou:spectral-sequences-3-eint
Closed

[Merged by Bors] - feat(Order): WithBotTop and the extended integers#33876
joelriou wants to merge 14 commits intoleanprover-community:masterfrom
joelriou:spectral-sequences-3-eint

Conversation

@joelriou
Copy link
Contributor

@joelriou joelriou commented Jan 12, 2026

This files defines an abbreviation WithBotTop ι for WithBot (WithTop ι).
We also introduce an abbreviation EInt for WithBotTop ℤ.

Kevin Buzzard is made a coauthor of the file because it is very similar to Data.EReal.Basic.


relevant Zulip topic

Open in Gitpod

@joelriou joelriou added the t-algebra Algebra (groups, rings, fields, etc) label Jan 12, 2026
@github-actions github-actions bot added the t-data Data (lists, quotients, numbers, etc) label Jan 12, 2026
@github-actions
Copy link

github-actions bot commented Jan 12, 2026

PR summary ec57dd4792

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.Order.WithBotTop (new file) 171

Declarations diff

+ EInt
+ WithBotTop
+ WithBotTop.coe
+ coe_injective
+ coe_le_coe
+ coe_lt_coe
+ coe_monotone
+ coe_ne_bot
+ coe_ne_top
+ coe_strictMono
+ instance : Coe ι (WithBotTop ι) := ⟨WithBotTop.coe⟩
+ rec
+ rec_bot
+ rec_coe
+ rec_top
+ top_ne_bot

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/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
Copy link
Collaborator

vihdzp commented Jan 12, 2026

You don't have to do it here, but would there be any value in defining Extended X or WithBotTop X as WithBot (WithTop X) so as to standardize a single spelling for this concept?

joelriou and others added 4 commits January 13, 2026 09:07
Co-authored-by: Violeta Hernández Palacios <vi.hdz.p@gmail.com>
Co-authored-by: Violeta Hernández Palacios <vi.hdz.p@gmail.com>
@joelriou
Copy link
Contributor Author

You don't have to do it here, but would there be any value in defining Extended X or WithBotTop X as WithBot (WithTop X) so as to standardize a single spelling for this concept?

I have generalized the lemmas to a more general setting, and made EInt a particular case of that.

@joelriou joelriou changed the title feat(Data): the extended integers feat(Order): WithBotTop and the extended integers Jan 13, 2026
@joneugster joneugster added t-data Data (lists, quotients, numbers, etc) and removed t-data Data (lists, quotients, numbers, etc) labels Jan 17, 2026
@joneugster joneugster self-assigned this Jan 31, 2026
@joneugster joneugster added awaiting-author A reviewer has asked the author a question or requested changes. and removed t-algebra Algebra (groups, rings, fields, etc) labels Jan 31, 2026
@joneugster joneugster added t-order Order theory and removed t-data Data (lists, quotients, numbers, etc) labels Jan 31, 2026
@joelriou joelriou removed the awaiting-author A reviewer has asked the author a question or requested changes. label Jan 31, 2026
Copy link
Contributor

@joneugster joneugster left a comment

Choose a reason for hiding this comment

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

From the Zulip discussion, I gather that the dual version of WithBotTop gives a different value for ⊥ + ⊤ and that there have been refactors previously exactly to make the value of this behave better.

It seems that this choice is driven by actual use cases in the library. I suggest to leave the question about how - if at all - WithTop (WithBot ι) should be integrated into the existing API to future work. And having WithBotTop merged might even help in that development.

Thank you for the PR! I suggest

maintainer merge

@github-actions
Copy link

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

@ghost ghost added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jan 31, 2026
Copy link
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

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

Thanks 🎉

bors merge

@ghost ghost added ready-to-merge This PR has been sent to bors. and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Feb 2, 2026
mathlib-bors bot pushed a commit that referenced this pull request Feb 2, 2026
This files defines an abbreviation `WithBotTop ι` for `WithBot (WithTop ι)`.
We also introduce an abbreviation `EInt` for `WithBotTop ℤ`.

Kevin Buzzard is made a coauthor of the file because it is very similar to `Data.EReal.Basic`.
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Feb 2, 2026

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(Order): WithBotTop and the extended integers [Merged by Bors] - feat(Order): WithBotTop and the extended integers Feb 2, 2026
@mathlib-bors mathlib-bors bot closed this Feb 2, 2026
YellPika pushed a commit to YellPika/mathlib4 that referenced this pull request Feb 3, 2026
…nity#33876)

This files defines an abbreviation `WithBotTop ι` for `WithBot (WithTop ι)`.
We also introduce an abbreviation `EInt` for `WithBotTop ℤ`.

Kevin Buzzard is made a coauthor of the file because it is very similar to `Data.EReal.Basic`.
michaellee94 pushed a commit to michaellee94/mathlib4 that referenced this pull request Feb 15, 2026
…nity#33876)

This files defines an abbreviation `WithBotTop ι` for `WithBot (WithTop ι)`.
We also introduce an abbreviation `EInt` for `WithBotTop ℤ`.

Kevin Buzzard is made a coauthor of the file because it is very similar to `Data.EReal.Basic`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors. t-order Order theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Comments