chore: define Complex.UnitDisc using Subsemigroup.unitBall#39385
chore: define Complex.UnitDisc using Subsemigroup.unitBall#39385ocfnash wants to merge 1 commit into
Complex.UnitDisc using Subsemigroup.unitBall#39385Conversation
ocfnash
commented
May 14, 2026
PR summary dcd756f437Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
|
bors r- Can you elaborate in the PR description on the benefit of this? Inferring all the instances as |
|
Canceled. Address comments or fix if necessary, and then someone with permission can run |
|
The motivation is to have some local consistency between the definitions of The background is that we are about to add I admit I did not consider the potential performance point you raise but I would be very surprised if it mattered. |
| /-- Coercion to `ℂ`. -/ | ||
| @[coe] protected def coe : 𝔻 → ℂ := Subtype.val | ||
|
|
||
| instance instCommSemigroup : CommSemigroup UnitDisc := inferInstanceAs <| CommSemigroup (ball _ _) |
There was a problem hiding this comment.
Note that Circle does not use deriving, presumably for the performance reasons I mention:
mathlib4/Mathlib/Analysis/Complex/Circle.lean
Lines 50 to 51 in 54f98fd