Skip to content

[Merged by Bors] - chore(UnitDisc): review API - #33639

Closed
urkud wants to merge 6 commits into
leanprover-community:masterfrom
urkud:unit-disc-review
Closed

urkud wants to merge 6 commits into
leanprover-community:masterfrom
urkud:unit-disc-review

Conversation

@urkud

@urkud urkud commented Jan 6, 2026

Copy link
Copy Markdown
Member
  • Define a Star instance instead of UnitDisc.conj.
  • Move the notation from the _root_.UnitDisc scope to
    Complex.UnitDisc.
  • Define casesOn.
  • Add inst to instance names.

Cherry-picked from #33368


Open in Gitpod

- Define a `Star` instance instead of `UnitDisc.conj`.
- Move the notation from the `_root_.UnitDisc` scope to
  `Complex.UnitDisc`.
- Define `casesOn`.
- Add `inst` to instance names.
@github-actions

github-actions Bot commented Jan 6, 2026 •

Copy link
Copy Markdown

PR summary 5e280db0a7

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ casesOn
+ casesOn_mk
+ coe_circle_smul
+ coe_closedBall_smul
+ coe_neg
+ coe_star
+ im_star
+ instIsScalarTower_circle
+ instIsScalarTower_circle_circle
+ instIsScalarTower_closedBall
+ instIsScalarTower_closedBall_closedBall
+ instMulActionCircle
+ instMulActionClosedBall
+ instSMulCommClass_circle_left
+ instSMulCommClass_circle_right
+ instSMulCommClass_closedBall_left
+ instSMulCommClass_closedBall_right
+ instance : InvolutiveStar 𝔻
+ instance : Star 𝔻
+ instance : StarMul 𝔻
+ re_star
+ sq_norm_lt_one
+ star_eq_zero
+ star_neg
+ star_zero
+ «conj»
- circleAction
- closedBallAction
- conj
- conj_zero
- instSMulCommClass_circle
- instSMulCommClass_circle'
- instSMulCommClass_closedBall
- instSMulCommClass_closedBall'
- isScalarTower_circle
- isScalarTower_circle_circle
- isScalarTower_closedBall
- isScalarTower_closedBall_closedBall

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

@github-actions github-actions Bot added the t-analysis Analysis (normed *, calculus) label Jan 6, 2026

@j-loreaux j-loreaux 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! I think this is better since conj (i.e., starRingEnd) was only the preferred form for ℂ since it's a (bundled) ring isomorphism.

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Jan 6, 2026
@mathlib-bors

mathlib-bors Bot commented Jan 6, 2026

Copy link
Copy Markdown
Contributor

Merge conflict.

@Ruben-VandeVelde

Copy link
Copy Markdown
Contributor

bors r-

@kim-em

kim-em commented Jan 6, 2026

Copy link
Copy Markdown
Contributor

bors d+

@mathlib-bors

mathlib-bors Bot commented Jan 6, 2026

Copy link
Copy Markdown
Contributor

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

@ghost ghost added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Jan 6, 2026
@urkud

urkud commented Jan 6, 2026

Copy link
Copy Markdown
Member Author

Some deprecations are wrong. I'll fix them, then merge it.

@urkud

urkud commented Jan 7, 2026

Copy link
Copy Markdown
Member Author

bors d+

@mathlib-bors

mathlib-bors Bot commented Jan 7, 2026

Copy link
Copy Markdown
Contributor

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

@urkud

urkud commented Jan 7, 2026

Copy link
Copy Markdown
Member Author

Wrong command
bors merge

mathlib-bors Bot pushed a commit that referenced this pull request Jan 7, 2026
- Define a `Star` instance instead of `UnitDisc.conj`.
- Move the notation from the `_root_.UnitDisc` scope to
  `Complex.UnitDisc`.
- Define `casesOn`.
- Add `inst` to instance names.

Cherry-picked from #33368
@mathlib-bors

mathlib-bors Bot commented Jan 7, 2026

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title chore(UnitDisc): review API [Merged by Bors] - chore(UnitDisc): review API Jan 7, 2026
@mathlib-bors mathlib-bors Bot closed this Jan 7, 2026
@urkud
urkud deleted the unit-disc-review branch January 8, 2026 17:05
@github-actions github-actions Bot mentioned this pull request Jan 16, 2026
goliath-klein pushed a commit to PrParadoxy/mathlib4 that referenced this pull request Jan 24, 2026
- Define a `Star` instance instead of `UnitDisc.conj`.
- Move the notation from the `_root_.UnitDisc` scope to
  `Complex.UnitDisc`.
- Define `casesOn`.
- Add `inst` to instance names.

Cherry-picked from leanprover-community#33368
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). ready-to-merge This PR has been sent to bors. t-analysis Analysis (normed *, calculus)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants