Skip to content

[Merged by Bors] - feat(Order/Partition): add refinement order#36574

Closed
Jun2M wants to merge 12 commits intoleanprover-community:masterfrom
Jun2M:partition-repfun
Closed

[Merged by Bors] - feat(Order/Partition): add refinement order#36574
Jun2M wants to merge 12 commits intoleanprover-community:masterfrom
Jun2M:partition-repfun

Conversation

@Jun2M
Copy link
Copy Markdown
Collaborator

@Jun2M Jun2M commented Mar 13, 2026

This PR expands the API for Partition s

Introduces a PartialOrder (Partition s) instance where partitions are ordered by refinement (P ≤ Q if every part of P is contained in a part of Q). Also adds an OrderTop instance where the top partition consists of the single part s.

Co-authored-by: Peter Nelson [email protected]


Open in Gitpod

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 13, 2026

PR summary 68e18bf8ed

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ eq_of_not_disjoint
+ eq_or_disjoint
+ existsUnique_of_mem_le
+ exists_le_of_mem_le
+ instance : OrderTop (Partition s)
+ instance : PartialOrder (Partition s)
+ instance : Unique (Partition (⊥ : α))
+ le_def
+ mem_removeBot
+ mem_top_iff
+ ne_bot_of_mem'
+ notMem_of_bot
+ parts_top
+ parts_top_subset
+ top_def
- instance : PartialOrder (Partition s) := .ofSetLike (Partition s) α

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

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

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


No changes to technical debt.

You can run this locally as

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

@github-actions github-actions bot added the t-order Order theory label Mar 13, 2026
Copy link
Copy Markdown
Contributor

@YaelDillies YaelDillies left a comment

Choose a reason for hiding this comment

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

This PR is doing too many things at once. Could you move out everything past the refinement order?

@YaelDillies YaelDillies added the awaiting-author A reviewer has asked the author a question or requested changes. label Mar 22, 2026
@Jun2M Jun2M added awaiting-author A reviewer has asked the author a question or requested changes. and removed awaiting-author A reviewer has asked the author a question or requested changes. labels Mar 22, 2026
@Jun2M Jun2M changed the title feat(Order/Partition): add refinement order and set partition API feat(Order/Partition): add refinement order Mar 22, 2026
@Jun2M Jun2M removed the awaiting-author A reviewer has asked the author a question or requested changes. label Mar 22, 2026
Copy link
Copy Markdown
Contributor

@YaelDillies YaelDillies left a comment

Choose a reason for hiding this comment

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

Thanks!

maintainer delegate

@github-actions
Copy link
Copy Markdown

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


pull_request_review, wf_run

@mathlib-triage mathlib-triage bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Mar 23, 2026
@YaelDillies YaelDillies removed their assignment Mar 23, 2026
Copy link
Copy Markdown
Contributor

@YaelDillies YaelDillies left a comment

Choose a reason for hiding this comment

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

Thanks!

maintainer delegate

@github-actions
Copy link
Copy Markdown

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


pull_request_review, wf_run

Copy link
Copy Markdown
Contributor

@bryangingechen bryangingechen 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 r+

@mathlib-triage mathlib-triage bot 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 Mar 26, 2026
mathlib-bors bot pushed a commit that referenced this pull request Mar 26, 2026
This PR expands the API for `Partition s` 

Introduces a `PartialOrder (Partition s)` instance where partitions are ordered by refinement (`P ≤ Q` if every part of `P` is contained in a part of `Q`). Also adds an `OrderTop` instance where the top partition consists of the single part `s`.

Co-authored-by: Peter Nelson <[email protected]>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Mar 26, 2026

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(Order/Partition): add refinement order [Merged by Bors] - feat(Order/Partition): add refinement order Mar 26, 2026
@mathlib-bors mathlib-bors bot closed this Mar 26, 2026
justus-springer pushed a commit to justus-springer/mathlib4 that referenced this pull request Mar 28, 2026
This PR expands the API for `Partition s` 

Introduces a `PartialOrder (Partition s)` instance where partitions are ordered by refinement (`P ≤ Q` if every part of `P` is contained in a part of `Q`). Also adds an `OrderTop` instance where the top partition consists of the single part `s`.

Co-authored-by: Peter Nelson <[email protected]>
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.

3 participants