[Merged by Bors] - chore: unsimp Set.coe_setOf#39582
Conversation
PR summary c02dada2cfImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
| Current number | Change | Type (strong) |
|---|---|---|
| 502 | 1 | erw |
| 4515 | -1 | backward.defeqAttrib.useBackward |
| 5675 | -4 | backward.isDefEq.respectTransparency |
Current commit c02dada2cf
Reference commit aaedc74a09
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
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
|
This pull request has conflicts, please merge |
|
This pull request has conflicts, please merge |
See [#mathlib4 > `Set.coe_setOf` @ 💬](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/.60Set.2Ecoe_setOf.60/near/579579409)
|
Pull request successfully merged into master. Build succeeded: |
Set.coe_setOfSet.coe_setOf
|
I am very worried about this PR. There are plenty of lemmas about the coercion of a set to a type, and now we will need to duplicate each of them to have both a version for sets and a version for predicates. See #41223. This issue is widespread enough that I suggest we revert this PR. |
|
Reading through the Zulip thread again more closely, I guess there wasn't really consensus that unsimping the lemma is a good idea. Personally, I think the diff in this PR is an overall improvement, and I think it is inconsistent that |
Why do we need such a duplication? The lemma |
|
As you say, in an ideal world one shouldn't be rewriting with the current |
The only solution I can think of for this is to make |
|
Why does this have anything to do with |
When |
|
I got this far myself, except for the fact that making it a one-field structure is the only remedy. Is the forbidden defeq for |
|
If you have another solution I'd love to hear it! |
|
Okay, let's fix it: #41506 |
See #mathlib4 > `Set.coe_setOf` @ 💬