Skip to content

[Merged by Bors] - chore: reduce the abuse of the defeq Set α := α → Prop - #42169

Closed
YaelDillies wants to merge 3 commits into
leanprover-community:masterfrom
YaelDillies:less_set_abuse
Closed

YaelDillies wants to merge 3 commits into
leanprover-community:masterfrom
YaelDillies:less_set_abuse

Conversation

@YaelDillies

@YaelDillies YaelDillies commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

All these changes fix issues of the form "A function is expecting Set α but is given α → Prop, or vice-versa".

Generated by Claude Opus, then reviewed and cherry-picked line-by-line by myself.

Assisted-by: Claude Opus 4.8


Open in Gitpod

@YaelDillies YaelDillies added t-data Data (lists, quotients, numbers, etc) LLM-generated PRs with substantial input from LLMs - review accordingly labels Jul 28, 2026
@github-actions

github-actions Bot commented Jul 28, 2026 •

Copy link
Copy Markdown

PR summary 9a49d2a9c5

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

No declarations were harmed in the making of this PR! 🐙

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

  • +0 new declarations
  • −0 removed declarations

No declaration differences.


Decrease in strong tech debt: (relative, absolute) = (1.00, 0.00)
Current number Change Type (strong)
7115 -1 backward.isDefEq.respectTransparency
No changes to weak technical debt.

Current commit 9a49d2a9c5
Reference commit 996c094298

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

All these changes fix issues of the form "A function is expecting `Set α` but is given `α → Prop`, or vice-versa".

Generated by Claude Opus, then reviewed and cherry-picked line-by-line by mysefl.

Assisted-by: Claude Opus 4.8

@grunweg grunweg left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks! Two questions where a second pair of eyes would help, one optional further tweak.
maintainer delegate

Comment thread Archive/Imo/Imo1987Q1.lean Resolved
Comment thread Mathlib/Algebra/DirectSum/Module.lean Resolved
@github-actions

Copy link
Copy Markdown

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

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jul 28, 2026
Co-authored-by: Michael Rothgang <[email protected]>

@TwoFX TwoFX left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!
bors d+

Comment thread Mathlib/Algebra/DirectSum/Module.lean Resolved
Comment thread Mathlib/Algebra/DirectSum/Module.lean Resolved
@mathlib-bors mathlib-bors Bot added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Jul 28, 2026
@mathlib-bors

mathlib-bors Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

✌️ YaelDillies can now approve this pull request until 2026-08-11 09:39 UTC (in 2 weeks). To approve and merge, reply with bors r+. More detailed instructions are available here.

⚠️ This delegation only covers changes within Archive/**, Counterexamples/**, docs/**, DownstreamTest/**, Mathlib/**, MathlibTest/**, widget/**, Archive.lean, Counterexamples.lean, docs.lean, Mathlib.lean; an author commit touching anything else will revoke it. Bors also revokes it if a later push changes too many files for it to check the full list — even if it stays within scope.

@mathlib-triage mathlib-triage Bot removed the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jul 28, 2026
@YaelDillies

Copy link
Copy Markdown
Contributor Author

bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Jul 28, 2026
@github-actions github-actions Bot added the tech debt Fixes cross-cutting technical debt, see the "technical debt counters" stream on zulip label Jul 28, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Jul 28, 2026
All these changes fix issues of the form "A function is expecting `Set α` but is given `α → Prop`, or vice-versa".

Generated by Claude Opus, then reviewed and cherry-picked line-by-line by myself.

Assisted-by: Claude Opus 4.8
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Jul 28, 2026
@mathlib-bors

mathlib-bors Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title chore: reduce the abuse of the defeq Set α := α → Prop [Merged by Bors] - chore: reduce the abuse of the defeq Set α := α → Prop Jul 28, 2026
@mathlib-bors mathlib-bors Bot closed this Jul 28, 2026
@mathlib-bors mathlib-bors Bot removed the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Jul 28, 2026
@YaelDillies
YaelDillies deleted the less_set_abuse branch July 28, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bors-staging This PR is currently being built by bors on the staging branch. LLM-generated PRs with substantial input from LLMs - review accordingly ready-to-merge This PR has been sent to bors. t-data Data (lists, quotients, numbers, etc) tech debt Fixes cross-cutting technical debt, see the "technical debt counters" stream on zulip

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants