Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - refactor: redefine Subrel in terms of α → Prop instead of Set α #20475

Closed
wants to merge 13 commits into from

Conversation

vihdzp
Copy link
Collaborator

@vihdzp vihdzp commented Jan 4, 2025

Currently, Subrel r {x | p x} interacts poorly with simp, as the type signature is rewritten from ↑{x | p x} → ↑{x | p x} → Prop to {x // p x} → {x // p x} → Prop. This can be avoided by writing Subrel r p instead.


Open in Gitpod

@vihdzp vihdzp added the t-order Order theory label Jan 4, 2025
Copy link

github-actions bot commented Jan 4, 2025

PR summary 0a0294252c

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ instance (r : α → α → Prop) [IsAsymm α r] (p : α → Prop) : IsAsymm _ (Subrel r p)
+ instance (r : α → α → Prop) [IsIrrefl α r] (p : α → Prop) : IsIrrefl _ (Subrel r p)
+ instance (r : α → α → Prop) [IsRefl α r] (p : α → Prop) : IsRefl _ (Subrel r p)
+ instance (r : α → α → Prop) [IsSymm α r] (p : α → Prop) : IsSymm _ (Subrel r p)
+ instance (r : α → α → Prop) [IsTrans α r] (p : α → Prop) : IsTrans _ (Subrel r p)
+ instance (r : α → α → Prop) [IsWellOrder α r] (p : α → Prop) : IsWellOrder _ (Subrel r p)
- instance (r : α → α → Prop) (p : α → Prop) [IsWellOrder α r] :
- instance (r : α → α → Prop) [IsAsymm α r] (p : Set α) : IsAsymm p (Subrel r p)
- instance (r : α → α → Prop) [IsIrrefl α r] (p : Set α) : IsIrrefl p (Subrel r p)
- instance (r : α → α → Prop) [IsRefl α r] (p : Set α) : IsRefl p (Subrel r p)
- instance (r : α → α → Prop) [IsSymm α r] (p : Set α) : IsSymm p (Subrel r p)
- instance (r : α → α → Prop) [IsTrans α r] (p : Set α) : IsTrans p (Subrel r p)
- instance (r : α → α → Prop) [IsWellOrder α r] (p : Set α) : IsWellOrder p (Subrel r p)
-++- codRestrict

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

@mathlib4-dependent-issues-bot mathlib4-dependent-issues-bot added the blocked-by-other-PR This PR depends on another PR to Mathlib (this label is automatically managed by a bot) label Jan 4, 2025
Mathlib/Order/RelIso/Set.lean Outdated Show resolved Hide resolved
Mathlib/Order/RelIso/Set.lean Outdated Show resolved Hide resolved
Mathlib/Order/RelIso/Set.lean Outdated Show resolved Hide resolved
Mathlib/Order/RelIso/Set.lean Outdated Show resolved Hide resolved
Mathlib/Order/RelIso/Set.lean Show resolved Hide resolved
Mathlib/SetTheory/Cardinal/Cofinality.lean Outdated Show resolved Hide resolved
@mathlib4-dependent-issues-bot mathlib4-dependent-issues-bot removed the blocked-by-other-PR This PR depends on another PR to Mathlib (this label is automatically managed by a bot) label Jan 5, 2025
@mathlib4-dependent-issues-bot
Copy link
Collaborator

This PR/issue depends on:

@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 13, 2025
Copy link
Contributor

@b-mehta b-mehta left a comment

Choose a reason for hiding this comment

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

bors d+

Mathlib/Order/InitialSeg.lean Outdated Show resolved Hide resolved
Mathlib/Order/InitialSeg.lean Outdated Show resolved Hide resolved
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Jan 15, 2025

✌️ vihdzp can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@vihdzp vihdzp added the auto-merge-after-CI Please do not add manually. Requests for a bot to merge automatically once CI is done. label Jan 15, 2025
@leanprover-community-mathlib4-bot
Copy link
Collaborator

As this PR is labelled auto-merge-after-CI, we are now sending it to bors:

bors merge

@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Jan 15, 2025

👎 Rejected by label

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the ready-to-merge This PR has been sent to bors. label Jan 15, 2025
@leanprover-community-bot-assistant leanprover-community-bot-assistant removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 15, 2025
@vihdzp
Copy link
Collaborator Author

vihdzp commented Jan 15, 2025

bors r+

mathlib-bors bot pushed a commit that referenced this pull request Jan 15, 2025
…#20475)

Currently, `Subrel r {x | p x}` interacts poorly with `simp`, as the type signature is rewritten from `↑{x | p x} → ↑{x | p x} → Prop` to `{x // p x} → {x // p x} → Prop`. This can be avoided by writing `Subrel r p` instead.
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Jan 15, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title refactor: redefine Subrel in terms of α → Prop instead of Set α [Merged by Bors] - refactor: redefine Subrel in terms of α → Prop instead of Set α Jan 15, 2025
@mathlib-bors mathlib-bors bot closed this Jan 15, 2025
@mathlib-bors mathlib-bors bot deleted the vi.subrel branch January 15, 2025 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-after-CI Please do not add manually. Requests for a bot to merge automatically once CI is done. 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.

6 participants