Skip to content

refactor(Order): make CompletePartialOrder extend OrderBot#34477

Open
spanning-tree wants to merge 3 commits intoleanprover-community:masterfrom
spanning-tree:CPO
Open

refactor(Order): make CompletePartialOrder extend OrderBot#34477
spanning-tree wants to merge 3 commits intoleanprover-community:masterfrom
spanning-tree:CPO

Conversation

@spanning-tree
Copy link
Copy Markdown

Make CompletePartialOrder extend OrderBot, and add a constructor completePartialOrderOfLubOfDirected. Previously, CompletePartialOrder had an implicit bottom element but did not extend OrderBot explicitly.

Breaking change: CompletePartialOrder instances must provide and bot_le, or use the constructor.

See discussion in Zulip.


Open in Gitpod

@github-actions github-actions bot added the new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! label Jan 27, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 27, 2026

PR summary 72b9c8db26

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ completePartialOrderOfLubOfDirected

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

@github-actions github-actions bot added the t-order Order theory label Jan 27, 2026
@spanning-tree spanning-tree force-pushed the CPO branch 2 times, most recently from cb98a61 to 1e4311a Compare January 27, 2026 20:46
Make `CompletePartialOrder` extend `OrderBot`, and add a constructor `completePartialOrderOfLubOfDirected`. Previously, `CompletePartialOrder` had an implicit bottom element but did not extend OrderBot explicitly.

Breaking change: `CompletePartialOrder` instances must provide `⊥` and `bot_le`, or use the constructor.
Copy link
Copy Markdown
Contributor

@Citronhat Citronhat left a comment

Choose a reason for hiding this comment

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

A slightly shorter.

@mathlib-merge-conflicts
Copy link
Copy Markdown

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

@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 Feb 16, 2026
@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 Mar 1, 2026
@mathlib-triage mathlib-triage bot assigned bryangingechen and unassigned pechersky Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! t-order Order theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants