[Merged by Bors] - refactor(SetTheory/ZFC): deduplicate coercion to sets#31287
[Merged by Bors] - refactor(SetTheory/ZFC): deduplicate coercion to sets#31287YaelDillies wants to merge 7 commits intoleanprover-community:masterfrom
Conversation
Currently, we have both `ZFSet.toSet` and `SetLike.coe` to turn a `ZFSet` into a `Set ZFSet`. This is bad for simp normal form. This PR removes the first spelling in favor of the second one.
PR summary 7df0b99484Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
| Quotient.inductionOn₂ x y fun _ _ h => Quotient.sound (Mem.ext fun w => h ⟦w⟧) | ||
|
|
||
| instance : SetLike ZFSet.{u} ZFSet.{u} where | ||
| coe x := {y | y ∈ x} |
There was a problem hiding this comment.
Since this file used { x | p } only, could you please follow this style?
| coe x := {y | y ∈ x} | |
| coe x := { y | y ∈ x } |
There was a problem hiding this comment.
This looks like remnants from the port, since mathport was wrongly inserting the spaces. I'll keep it like that
There was a problem hiding this comment.
So {y | y ∈ x} is actually preferred in Mathlib?
staroperator
left a comment
There was a problem hiding this comment.
Looks good! Maybe beyond this PR, what should we do with PSet.toSet after deprecating ZFSet.toSet (note that PSet is not SetLike)?
|
We keep it, most likely |
|
Thanks 🎉 bors merge |
Currently, we have both `ZFSet.toSet` and `SetLike.coe` to turn a `ZFSet` into a `Set ZFSet`. This is bad for simp normal form. This PR removes the first spelling in favor of the second one.
|
Build failed (retrying...): |
Currently, we have both `ZFSet.toSet` and `SetLike.coe` to turn a `ZFSet` into a `Set ZFSet`. This is bad for simp normal form. This PR removes the first spelling in favor of the second one.
|
Pull request successfully merged into master. Build succeeded: |
Currently, we have both
ZFSet.toSetandSetLike.coeto turn aZFSetinto aSet ZFSet. This is bad for simp normal form. This PR removes the first spelling in favor of the second one.